#elif defined(FIRMWARE_4_75DEX) // Ported by Joonie, special thanks to @aldostools for his awesome Getsymbol tool!!!!

#define TOC						0x3758E0 //Verified with IDA by Joonie

#define create_kernel_object_symbol			0x125F8 // Verified with IDA by Joonie
#define open_shared_kernel_object_symbol		0x12A58 // Verified with IDA by Joonie
#define destroy_kernel_object_symbol			0x11F5C // Verified with IDA by Joonie
#define destroy_shared_kernel_object_symbol		0x118D0 // Verified with IDA by Joonie
#define open_kernel_object_symbol			0x12C48 // Verified with IDA by Joonie
#define open_shared_kernel_object_symbol		0x12A58 // Verified with IDA by Joonie
#define close_kernel_object_handle_symbol		0x12078 // Verified with IDA by Joonie

#define alloc_symbol					0x681F4 // Verified with IDA by Joonie
#define dealloc_symbol					0x68630 // Verified with IDA by Joonie
#define copy_to_user_symbol				0xFEB4 // Verified with IDA by Joonie
#define copy_from_user_symbol				0x100D0 //Verified with IDA by Joonie
#define copy_to_process_symbol				0xFF6C // Verified with IDA by Joonie
#define copy_from_process_symbol			0xFD7C // Verified with IDA by Joonie
#define page_allocate_symbol				0x63D64 // Verified with IDA by Joonie
#define page_free_symbol				0x637C8 // Verified with IDA by Joonie
#define page_export_to_proc_symbol			0x63F00 // Verified with IDA by Joonie
#define page_unexport_from_proc_symbol			0x636BC // Verified with IDA by Joonie
#define kernel_ea_to_lpar_addr_symbol			0x73C9C // Verified with IDA by Joonie
#define process_ea_to_lpar_addr_ex_symbol		0x7B83C // Verified with IDA by Joonie
#define set_pte_symbol					0x61D60 // Verified with IDA by Joonie
#define map_process_memory_symbol			0x7B348 // Verified with IDA by Joonie
#define panic_symbol					0x2754A0 // Verified with IDA by Joonie

#define memcpy_symbol					0x82A08 // Verified with IDA by Joonie
#define memset_symbol					0x51014 // Verified with IDA by Joonie
#define memcmp_symbol					0x50324 // Verified with IDA by Joonie
#define memchr_symbol					0x502D4 // Verified with IDA by Joonie
#define printf_symbol					0x278978 // Verified with IDA by Joonie
#define printfnull_symbol				0x27D400 // Verified with IDA by Joonie
#define sprintf_symbol					0x5243C // Verified with IDA by Joonie
#define snprintf_symbol					0x523A8 // Verified with IDA by Joonie
#define strcpy_symbol					0x511C0 // Verified with IDA by Joonie
#define strncpy_symbol					0x51288 // Verified with IDA by Joonie
#define strlen_symbol					0x511E8 // Verified with IDA by Joonie
#define strcat_symbol					0x510F0 // Verified with IDA by Joonie
#define strcmp_symbol					0x5116C // Verified with IDA by Joonie
#define strncmp_symbol					0x51214 // Verified with IDA by Joonie
#define strchr_symbol					0x51128 // Verified with IDA by Joonie
#define strrchr_symbol					0x512F8 // Verified with IDA by Joonie

#define spin_lock_irqsave_ex_symbol			0x275670 // Verified with IDA by Joonie
#define spin_unlock_irqrestore_ex_symbol		0x275644 // Verified with IDA by Joonie

#define create_process_common_symbol			0x272468 // Verified with IDA by Joonie
#define create_process_base_symbol			0x271B00 // Verified with IDA by Joonie
#define load_process_symbol				0x5004 // Verified with IDA by Joonie
#define process_kill_symbol				0x272268 // Verified with IDA by Joonie

#define ppu_thread_create_symbol			0x145FC // Verified with IDA by Joonie
#define ppu_thread_exit_symbol                          0x146B4 // Verified with IDA by Joonie
#define ppu_thread_join_symbol				0x14708 // Verified with IDA by Joonie
#define ppu_thread_delay_symbol				0x2A6E8 // Verified with IDA by Joonie
#define create_kernel_thread_symbol			0x267D0 // Verified with IDA by Joonie
#define create_user_thread_symbol			0x26F0C // Verified with IDA by Joonie
#define create_user_thread2_symbol			0x26D30 // Verified with IDA by Joonie
#define start_thread_symbol				0x25868 // Verified with IDA by Joonie
#define run_thread_symbol				0x2502C // Verified with IDA by Joonie
#define register_thread_symbol				0x26E270 // Verified with IDA by Joonie
#define allocate_user_stack_symbol			0x26EA58 // Verified with IDA by Joonie
#define deallocate_user_stack_symbol			0x26E9C0 // Verified with IDA by Joonie

#define mutex_create_symbol				0x13C8C // Verified with IDA by Joonie
#define mutex_destroy_symbol                            0x13C24 // Verified with IDA by Joonie
#define mutex_lock_symbol				0x13C1C // Verified with IDA by Joonie
#define mutex_lock_ex_symbol				0x1F60C // Verified with IDA by Joonie
#define mutex_trylock_symbol				0x13C18 // Verified with IDA by Joonie
#define mutex_unlock_symbol                             0x13C14 // Verified with IDA by Joonie

#define cond_create_symbol				0x13DF8 // Verified with IDA by Joonie
#define cond_destroy_symbol				0x13DA8 // Verified with IDA by Joonie
#define cond_wait_symbol				0x13DA0 // Verified with IDA by Joonie
#define cond_wait_ex_symbol				0x20BF8 // Verified with IDA by Joonie
#define cond_signal_symbol				0x13D7C // Verified with IDA by Joonie
#define cond_signal_all_symbol				0x13754 // Verified with IDA by Joonie
#define semaphore_initialize_symbol			0x34574 // Verified with IDA by Joonie
#define semaphore_wait_ex_symbol			0x3427C // Verified with IDA by Joonie
#define semaphore_trywait_symbol			0x33E64 // Verified with IDA by Joonie
#define semaphore_post_ex_symbol			0x33FB0 // Verified with IDA by Joonie

#define event_port_create_symbol			0x136C8 //  Verified with IDA by Joonie
#define event_port_destroy_symbol                       0x13B30 // Verified with IDA by Joonie
#define event_port_connect_symbol			0x13BA8 // Verified with IDA by Joonie
#define event_port_disconnect_symbol			0x13AD4 // Verified with IDA by Joonie
#define event_port_send_symbol				0x136C0 // Verified with IDA by Joonie
#define event_port_send_ex_symbol			0x2D2C8 // Verified with IDA by Joonie

#define event_queue_create_symbol			0x139D0 // Verified with IDA by Joonie
#define event_queue_destroy_symbol                      0x13958 // Verified with IDA by Joonie
#define event_queue_receive_symbol			0x1379C // Verified with IDA by Joonie
#define event_queue_tryreceive_symbol			0x13868 // Verified with IDA by Joonie

#define cellFsOpen_symbol				0x2B27C0 // Verified with IDA by Joonie
#define cellFsClose_symbol                              0x2B2628 // Verified with IDA by Joonie
#define cellFsRead_symbol				0x2B2764 // Verified with IDA by Joonie
#define cellFsWrite_symbol				0x2B26D0 // Verified with IDA by Joonie
#define cellFsLseek_symbol				0x2B1F24 // Verified with IDA by Joonie
#define cellFsStat_symbol				0x2B1FDC // Verified with IDA by Joonie
#define cellFsUtime_symbol				0x2B394C // Verified with IDA by Joonie
#define cellFsUnlink_internal_symbol			0x1A29D8 // Verified with IDA by Joonie

#define cellFsUtilMount_symbol				0x2B1C98 // Verified with IDA by Joonie
#define cellFsUtilUmount_symbol				0x2B1C6C // Verified with IDA by Joonie
#define cellFsUtilNewfs_symbol				0x2B35E4 // Verified with IDA by Joonie

#define pathdup_from_user_symbol			0x2B7A84 // Verified with IDA by Joonie
#define open_path_symbol                                0x2B24F8 // Verified with IDA by Joonie
#define open_fs_object_symbol                           0x190CFC // Verified with IDA by Joonie
#define close_fs_object_symbol				0x18FC38 // Verified with IDA by Joonie

#define storage_get_device_info_symbol			0x28CA00 // Verified with IDA by Joonie
#define storage_get_device_config_symbol		0x28B08C // Verified with IDA by Joonie
#define storage_open_symbol                             0x28CC28 // Verified with IDA by Joonie
#define storage_close_symbol                            0x28B414 // Verified with IDA by Joonie
#define storage_read_symbol                             0x28A390 // Verified with IDA by Joonie
#define storage_write_symbol                            0x28A260 // Verified with IDA by Joonie
#define storage_send_device_command_symbol              0x289EB0 // Verified with IDA by Joonie
#define storage_map_io_memory_symbol                    0x28C8AC // Verified with IDA by Joonie
#define storage_unmap_io_memory_symbol                  0x28C768 // Verified with IDA by Joonie
#define new_medium_listener_object_symbol		0x9CC34 // Verified with IDA by Joonie
#define delete_medium_listener_object_symbol		0x9E46C // Verified with IDA by Joonie
#define set_medium_event_callbacks_symbol		0x9E7D0 // Verified with IDA by Joonie

#define cellUsbdRegisterLdd_symbol			0x266758 // Verified with IDA by Joonie
#define cellUsbdUnregisterLdd_symbol			0x266708 // Verified with IDA by Joonie
#define cellUsbdScanStaticDescriptor_symbol		0x267958 // Verified with IDA by Joonie
#define cellUsbdOpenPipe_symbol			        0x267A08 // Verified with IDA by Joonie
#define cellUsbdClosePipe_symbol			0x2679B8 // Verified with IDA by Joonie
#define cellUsbdControlTransfer_symbol			0x2678BC // Verified with IDA by Joonie
#define cellUsbdBulkTransfer_symbol			0x26783C // Verified with IDA by Joonie

#define decrypt_func_symbol				0x38290 // Verified with IDA by Joonie
#define lv1_call_99_wrapper_symbol			0x52850 // Verified with IDA by Joonie
#define modules_verification_symbol			0x5C488 // Verified with IDA by Joonie
#define authenticate_program_segment_symbol		0x5E2E0 // Verified with IDA by Joonie

#define prx_load_module_symbol				0x8D308 // Verified with IDA by Joonie
#define prx_start_module_symbol				0x8BFD4 // Verified with IDA by Joonie
#define prx_stop_module_symbol				0x8D3AC // Verified with IDA by Joonie
#define prx_unload_module_symbol			0x8BD08 // Verified with IDA by Joonie
#define prx_get_module_info_symbol			0x8B700 // Verified with IDA by Joonie
#define prx_get_module_id_by_address_symbol		0x8B610 // Verified with IDA by Joonie
#define prx_get_module_id_by_name_symbol		0x8B660 // Verified with IDA by Joonie
#define prx_get_module_list_symbol			0x8B780 // Verified with IDA by Joonie
#define load_module_by_fd_symbol			0x8C938 // Verified with IDA by Joonie
#define parse_sprx_symbol				0x8A62C // Verified with IDA by Joonie
#define open_prx_object_symbol				0x835D4 // Verified with IDA by Joonie
#define close_prx_object_symbol				0x83EE4 // Verified with IDA by Joonie
#define lock_prx_mutex_symbol				0x8B5B8 // Verified with IDA by Joonie
#define unlock_prx_mutex_symbol				0x8B5C4 // Verified with IDA by Joonie

#define extend_kstack_symbol				0x73BF4 // Verified with IDA by Joonie

#define get_pseudo_random_number_symbol                 0x22E65C // Verified with IDA by Joonie
#define md5_reset_symbol				0x1681AC // Verified with IDA by Joonie
#define md5_update_symbol				0x168C4C // Verified with IDA by Joonie
#define md5_final_symbol				0x168DCC // Verified with IDA by Joonie
#define ss_get_open_psid_symbol				0x230B44 // Verified with IDA by Joonie
#define update_mgr_read_eeprom_symbol			0x229F3C // Verified with IDA by Joonie
#define update_mgr_write_eeprom_symbol			0x229E70 // Verified with IDA by Joonie

#define ss_params_get_update_status_symbol		0x5445C // Verified with IDA by Joonie

#define syscall_table_symbol				0x38A3E8 //Verified with IDA by Joonie
#define syscall_call_offset				0x27DEE4 // Verified with IDA by Joonie

#define read_bdvd0_symbol				0x1AAACC // Verified with IDA by Joonie
#define read_bdvd1_symbol				0x1AC6F8 // Verified with IDA by Joonie
#define read_bdvd2_symbol				0x1B98B0 // Verified with IDA by Joonie

#define storage_internal_get_device_object_symbol       0x289968 // Verified with IDA by Joonie

#define hid_mgr_read_usb_symbol				0x107F48 // Verified with IDA by Joonie
#define hid_mgr_read_bt_symbol				0x101E20 //Verified with IDA by Joonie

#define bt_set_controller_info_internal_symbol		0xF5E8C // Verified with IDA by Joonie

/* Calls, jumps */
#define device_event_port_send_call			0x296BFC // Verified with IDA by Joonie

#define ss_pid_call_1					0x21974C // Verified with IDA by Joonie

#define process_map_caller_call				0x4D24 // Verified with IDA by Joonie

#define read_module_header_call				0x834C8 // Verified with IDA by Joonie
#define read_module_body_call				0x671C // Verified with IDA by Joonie
#define load_module_by_fd_call1				0x8D1A4 // Verified with IDA by Joonie

#define shutdown_copy_params_call			0xAB4C // Verified with IDA by Joonie

#define fsloop_open_call				0x2B2958 // Verified with IDA by Joonie
#define fsloop_close_call				0x2B29A8 // Verified with IDA by Joonie
#define fsloop_read_call				0x2B29E8 // Verified with IDA by Joonie

/* Patches */
#define shutdown_patch_offset				0xAB38 // Verified with IDA by Joonie
#define module_sdk_version_patch_offset			0x26D898 // Verified with IDA by Joonie
#define module_add_parameter_to_parse_sprxpatch_offset	0x8CA14 // Verified with IDA by Joonie

#define user_thread_prio_patch				0x21EAC // Verified with IDA by Joonie
#define user_thread_prio_patch2				0x21EB8 // Verified with IDA by Joonie
// ODE Protection Removal patches
#define lic_patch					0x59C00 //  Verified with IDA by Joonie
#define ode_patch					0x22DAD0 //  Verified with IDA by Joonie

/* Rtoc entries */

#define io_rtoc_entry_1					-0xD140 //found at 0x2B4C2F 2EC0E97E8038EBC1FFF0F9630000
#define io_sub_rtoc_entry_1				-0x7EA0 //found at 0x16AF13 8160E97E8168EB9E8140EBBE8170

#define decrypt_rtoc_entry_2 				-0x65C0 //found at 0x5D283 9A404BFFBC25392000004BFFFFCC2C2400007C0802A6
#define decrypter_data_entry				-0x7F10 //Verified with IDA by Joonie

#define storage_rtoc_entry_1				0x22B0 //found at 0x289BF3 22B07C0802A6F821FF51F80100C0FBE100A87C9F23

#define device_event_rtoc_entry_1			0x2638 //found at 0x296BE7 263878050620E8CA00387D052B78E92B0000

#define time_rtoc_entry_1				-0x75E0 //Verified with IDA by Joonie
#define time_rtoc_entry_2				-0x75E8 //Verified with IDA by Joonie

#define thread_rtoc_entry_1				-0x7660 //found at 0x21837 89A080090000900100704BFFFFE0

#define process_rtoc_entry_1				-0x77A0 //found at 0x1BC07 88603FC0800163DE0005E87D0000

#define bt_rtoc_entry_1					-0x3558 //found at 0xF4897 CAA838A0000048001F617FA4EB78

/* Permissions */
#define permissions_func_symbol				0x3560 // Verified with IDA by Joonie
#define permissions_exception1 				0x26DB0 // Verified with IDA by Joonie
#define permissions_exception2				0xC8A08 // Verified with IDA by Joonie
#define permissions_exception3				0x21F80 // Verified with IDA by Joonie

/* Legacy patches with no names yet */
/* Kernel offsets */
#define patch_data1_offset				0x409940 // Verified with IDA by Joonie
#define patch_func2 					0x5D754 // Verified with IDA by Joonie
#define patch_func2_offset 				0x2C
#define patch_func8 					0x59DDC // Verified with IDA by Joonie
#define patch_func8_offset1 				0xA4 // bytes matched: 0x68  0000000000000000000000000000000000000000000000000000000000000000
#define patch_func8_offset2 				0x208 // bytes matched: 0x80  4800000000000000000000000000000000000000000000000000000000000000
#define patch_func9 					0x5DC10 //Verified with IDA by Joonie
#define patch_func9_offset 				0x438 // bytes matched: 0x7C****  0000000000000000000000000000000000000000000000000000000000000000
#define mem_base2					0x3D90 // bytes matched: 0x24  F821FEB17C0802A6FB8101307C9C2378388100D8FBE10148FBA10138FBC10140

/* vars */
#define thread_info_symbol                              0x3A4930 // Verified with IDA by Joonie

