#elif defined(FIRMWARE_4_46)

#define TOC                                         0x348DF0

#define open_shared_kernel_object_symbol            0x12474
#define close_kernel_object_handle_symbol           0x11A94

#define alloc_symbol                                0x62F78
#define dealloc_symbol                              0x633B4
#define copy_to_user_symbol                         0xF85C
#define copy_from_user_symbol                       0xFA78
#define copy_to_process_symbol                      0xF914
#define copy_from_process_symbol                    0xF724
#define page_allocate_symbol                        0x5EAE8
#define page_free_symbol                            0x5E54C
#define page_export_to_proc_symbol                  0x5EC84
#define page_unexport_from_proc_symbol              0x5E440
#define kernel_ea_to_lpar_addr_symbol               0x6E86C
#define map_process_memory_symbol                   0x7598C

#define memcpy_symbol                               0x7D04C
#define memset_symbol                               0x4D494
#define memcmp_symbol                               0x4C7A4

#define sprintf_symbol                              0x4E8BC
#define snprintf_symbol                             0x4E828
#define strcpy_symbol                               0x4D640
#define strncpy_symbol                              0x4D708
#define strlen_symbol                               0x4D668
#define strcat_symbol                               0x4D570
#define strcmp_symbol                               0x4D5EC
#define strncmp_symbol                              0x4D694
#define strchr_symbol                               0x4D5A8

#define spin_lock_irqsave_ex_symbol                 0x29D900
#define spin_unlock_irqrestore_ex_symbol            0x29D8D4

#define load_process_symbol                         0x5004

#define ppu_thread_create_symbol                    0x13F2C
#define ppu_thread_exit_symbol                      0x13FE4
#define ppu_thread_join_symbol                      0x14038
#define ppu_thread_delay_symbol                     0x285CC

#define create_user_thread2_symbol                  0x24EB0
#define start_thread_symbol                         0x23B7C
#define run_thread_symbol                           0x233AC /* temp name */
#define register_thread_symbol                      0x297B10
#define allocate_user_stack_symbol                  0x2982F8

#define mutex_create_symbol                         0x136A0
#define mutex_destroy_symbol                        0x13638
#define mutex_lock_symbol                           0x13630
#define mutex_unlock_symbol                         0x13628

#define event_port_create_symbol                    0x130DC
#define event_port_destroy_symbol                   0x13544
#define event_port_connect_symbol                   0x135BC
#define event_port_disconnect_symbol                0x134E8
#define event_port_send_symbol                      0x130D4

#define event_queue_create_symbol                   0x133E4
#define event_queue_destroy_symbol                  0x1336C
#define event_queue_receive_symbol                  0x131B0

#define cellFsOpen_symbol                           0x2C4A78
#define cellFsClose_symbol                          0x2C48E0
#define cellFsRead_symbol                           0x2C4A1C
#define cellFsWrite_symbol                          0x2C4988
#define cellFsLseek_symbol                          0x2C4010
#define cellFsStat_symbol                           0x2C4294
#define cellFsUnlink_internal_symbol                0x1AAF70


#define cellFsUtilMount_symbol                      0x2C3DF0
#define cellFsUtilUmount_symbol                     0x2C3DC4

#define pathdup_from_user_symbol                    0x1B1000
#define open_path_symbol                            0x2C47B0
#define open_fs_object_symbol                       0x190420
#define close_fs_object_symbol                      0x18F41C

#define storage_get_device_info_symbol              0x2A9C50
#define storage_open_symbol                         0x2A9660
#define storage_close_symbol                        0x2A9450
#define storage_read_symbol                         0x2A89C0
#define storage_send_device_command_symbol          0x2A854C
#define storage_map_io_memory_symbol                0x2A9B0C
#define storage_unmap_io_memory_symbol              0x2A99D8
#define storage_internal_get_device_object_symbol   0x2A8004

#define decrypt_func_symbol                         0x34798
#define lv1_call_99_wrapper_symbol                  0x4ECD0
#define modules_verification_symbol                 0x58828

#define prx_load_module_symbol                      0x87234
#define prx_start_module_symbol                     0x85F00
#define prx_stop_module_symbol                      0x872D8
#define prx_unload_module_symbol                    0x85C34


#define extend_kstack_symbol                        0x6E7C4

#define get_pseudo_random_number_symbol             0x2587A0

#define syscall_table_symbol                        0x35E860
#define syscall_call_offset                         0x2A5D54

#define read_bdvd0_symbol                           0x1BBF70
#define read_bdvd1_symbol                           0x1BDB9C
#define read_bdvd2_symbol                           0x1CAD54

/* Calls, jumps */
#define device_event_port_send_call                 0x2B2184

#define process_map_caller_call                     0x4D24

#define fsloop_open_call                            0x2C4C10
#define fsloop_close_call                           0x2C4C60
#define fsloop_read_call                            0x2C4CA0

/* Patches */

#define user_thread_prio_patch                      0x2022C
#define user_thread_prio_patch2                     0x20238

/* Rtoc entries */

#define io_rtoc_entry_1                             -0x150
#define io_sub_rtoc_entry_1                         -0x7EA0

#define decrypt_rtoc_entry_2                        -0x6688

#define storage_rtoc_entry_1                        0x1E98

#define device_event_rtoc_entry_1                   0x2108

/* Legacy patches with no names yet */
/* Kernel offsets */

#define patch_func2                                 0x591E0 // modules_patching
#define patch_func2_offset                          0x2C

/* vars */
// TODO: #define open_psid_buf_symbol               0x45218C
#define thread_info_symbol                          0x376E30
