2022-10-16 16:05:58 +00:00
|
|
|
.include "macros.inc"
|
|
|
|
|
|
|
|
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_dev_init
|
|
|
|
btm_dev_init:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800801F4 0007C034 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 800801F8 0007C038 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800801FC 0007C03C 38 8D 84 E0 */ addi r4, r13, "@2067_80556900"@sda21
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080200 0007C040 38 A0 00 03 */ li r5, 0x3
|
|
|
|
/* 80080204 0007C044 90 01 00 14 */ stw r0, 0x14(r1)
|
|
|
|
/* 80080208 0007C048 93 E1 00 0C */ stw r31, 0xc(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008020C 0007C04C 3F E0 80 4F */ lis r31, btm_cb@ha
|
|
|
|
/* 80080210 0007C050 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080214 0007C054 38 7F 06 48 */ addi r3, r31, 0x648
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080218 0007C058 4B F8 3D E9 */ bl memcpy
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008021C 0007C05C 3C 60 00 01 */ lis r3, 0x1
|
|
|
|
/* 80080220 0007C060 38 E0 00 FF */ li r7, 0xff
|
|
|
|
/* 80080224 0007C064 39 23 CC 18 */ addi r9, r3, -0x33e8
|
|
|
|
/* 80080228 0007C068 39 80 00 01 */ li r12, 0x1
|
|
|
|
/* 8008022C 0007C06C 38 60 14 00 */ li r3, 0x1400
|
|
|
|
/* 80080230 0007C070 39 60 00 02 */ li r11, 0x2
|
|
|
|
/* 80080234 0007C074 39 40 00 04 */ li r10, 0x4
|
|
|
|
/* 80080238 0007C078 39 00 00 3F */ li r8, 0x3f
|
|
|
|
/* 8008023C 0007C07C 38 C0 00 00 */ li r6, 0x0
|
|
|
|
/* 80080240 0007C080 38 00 00 05 */ li r0, 0x5
|
|
|
|
/* 80080244 0007C084 B0 7F 06 4C */ sth r3, 0x64c(r31)
|
|
|
|
/* 80080248 0007C088 38 7F 05 74 */ addi r3, r31, 0x574
|
|
|
|
/* 8008024C 0007C08C 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 80080250 0007C090 38 A0 00 04 */ li r5, 0x4
|
|
|
|
/* 80080254 0007C094 91 9F 05 84 */ stw r12, 0x584(r31)
|
|
|
|
/* 80080258 0007C098 91 7F 05 A0 */ stw r11, 0x5a0(r31)
|
|
|
|
/* 8008025C 0007C09C 91 5F 05 BC */ stw r10, 0x5bc(r31)
|
|
|
|
/* 80080260 0007C0A0 B1 3F 06 54 */ sth r9, 0x654(r31)
|
|
|
|
/* 80080264 0007C0A4 B1 1F 06 56 */ sth r8, 0x656(r31)
|
|
|
|
/* 80080268 0007C0A8 98 FF 27 BD */ stb r7, 0x27bd(r31)
|
|
|
|
/* 8008026C 0007C0AC 98 FF 27 BE */ stb r7, 0x27be(r31)
|
|
|
|
/* 80080270 0007C0B0 98 DF 06 4E */ stb r6, 0x64e(r31)
|
|
|
|
/* 80080274 0007C0B4 98 1F 06 4F */ stb r0, 0x64f(r31)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080278 0007C0B8 4B FF 7C 39 */ bl btu_start_timer
|
|
|
|
/* 8008027C 0007C0BC 48 00 B9 A1 */ bl btsnd_hcic_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080280 0007C0C0 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80080284 0007C0C4 83 E1 00 0C */ lwz r31, 0xc(r1)
|
|
|
|
/* 80080288 0007C0C8 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 8008028C 0007C0CC 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80080290 0007C0D0 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_db_reset
|
|
|
|
btm_db_reset:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080294 0007C0D4 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 80080298 0007C0D8 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 8008029C 0007C0DC 90 01 00 14 */ stw r0, 0x14(r1)
|
|
|
|
/* 800802A0 0007C0E0 38 00 00 0C */ li r0, 0xc
|
|
|
|
/* 800802A4 0007C0E4 98 01 00 08 */ stb r0, 0x8(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800802A8 0007C0E8 48 00 27 B9 */ bl btm_inq_db_reset
|
|
|
|
/* 800802AC 0007C0EC 48 00 19 49 */ bl btm_discovery_db_reset
|
|
|
|
/* 800802B0 0007C0F0 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 800802B4 0007C0F4 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800802B8 0007C0F8 81 83 05 A8 */ lwz r12, 0x5a8(r3)
|
|
|
|
/* 800802BC 0007C0FC 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 800802C0 0007C100 41 82 00 1C */ beq lbl_800802DC
|
|
|
|
/* 800802C4 0007C104 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 800802C8 0007C108 90 03 05 A8 */ stw r0, 0x5a8(r3)
|
|
|
|
/* 800802CC 0007C10C 41 82 00 10 */ beq lbl_800802DC
|
|
|
|
/* 800802D0 0007C110 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 800802D4 0007C114 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 800802D8 0007C118 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_800802DC
|
|
|
|
lbl_800802DC:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800802DC 0007C11C 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 800802E0 0007C120 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800802E4 0007C124 81 83 05 C4 */ lwz r12, 0x5c4(r3)
|
|
|
|
/* 800802E8 0007C128 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 800802EC 0007C12C 41 82 00 1C */ beq lbl_80080308
|
|
|
|
/* 800802F0 0007C130 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 800802F4 0007C134 90 03 05 C4 */ stw r0, 0x5c4(r3)
|
|
|
|
/* 800802F8 0007C138 41 82 00 10 */ beq lbl_80080308
|
|
|
|
/* 800802FC 0007C13C 38 61 00 08 */ addi r3, r1, 0x8
|
|
|
|
/* 80080300 0007C140 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80080304 0007C144 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_80080308
|
|
|
|
lbl_80080308:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080308 0007C148 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 8008030C 0007C14C 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080310 0007C150 81 83 05 E0 */ lwz r12, 0x5e0(r3)
|
|
|
|
/* 80080314 0007C154 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 80080318 0007C158 41 82 00 1C */ beq lbl_80080334
|
|
|
|
/* 8008031C 0007C15C 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 80080320 0007C160 90 03 05 E0 */ stw r0, 0x5e0(r3)
|
|
|
|
/* 80080324 0007C164 41 82 00 10 */ beq lbl_80080334
|
|
|
|
/* 80080328 0007C168 38 61 00 08 */ addi r3, r1, 0x8
|
|
|
|
/* 8008032C 0007C16C 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80080330 0007C170 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_80080334
|
|
|
|
lbl_80080334:
|
|
|
|
/* 80080334 0007C174 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80080338 0007C178 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 8008033C 0007C17C 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80080340 0007C180 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_DeviceReset
|
|
|
|
BTM_DeviceReset:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080344 0007C184 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 80080348 0007C188 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008034C 0007C18C 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080350 0007C190 90 01 00 14 */ stw r0, 0x14(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080354 0007C194 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080358 0007C198 93 E1 00 0C */ stw r31, 0xc(r1)
|
|
|
|
/* 8008035C 0007C19C 93 C1 00 08 */ stw r30, 0x8(r1)
|
|
|
|
/* 80080360 0007C1A0 7C 7E 1B 78 */ mr r30, r3
|
|
|
|
/* 80080364 0007C1A4 80 04 05 8C */ lwz r0, 0x58c(r4)
|
|
|
|
/* 80080368 0007C1A8 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 8008036C 0007C1AC 41 82 00 0C */ beq lbl_80080378
|
|
|
|
/* 80080370 0007C1B0 7C 00 18 40 */ cmplw r0, r3
|
|
|
|
/* 80080374 0007C1B4 40 82 00 54 */ bne lbl_800803C8
|
|
|
|
.global lbl_80080378
|
|
|
|
lbl_80080378:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080378 0007C1B8 4B FF DE E5 */ bl btm_acl_device_down
|
|
|
|
/* 8008037C 0007C1BC 4B FF FF 19 */ bl btm_db_reset
|
|
|
|
/* 80080380 0007C1C0 3F E0 80 4F */ lis r31, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080384 0007C1C4 38 C0 00 00 */ li r6, 0x0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080388 0007C1C8 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008038C 0007C1CC 38 00 00 05 */ li r0, 0x5
|
|
|
|
/* 80080390 0007C1D0 93 DF 05 8C */ stw r30, 0x58c(r31)
|
|
|
|
/* 80080394 0007C1D4 38 7F 05 74 */ addi r3, r31, 0x574
|
|
|
|
/* 80080398 0007C1D8 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 8008039C 0007C1DC 38 A0 00 04 */ li r5, 0x4
|
|
|
|
/* 800803A0 0007C1E0 98 DF 06 4E */ stb r6, 0x64e(r31)
|
|
|
|
/* 800803A4 0007C1E4 98 1F 06 4F */ stb r0, 0x64f(r31)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800803A8 0007C1E8 4B FF 7B 09 */ bl btu_start_timer
|
|
|
|
/* 800803AC 0007C1EC 48 00 B8 71 */ bl btsnd_hcic_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800803B0 0007C1F0 81 9F 05 68 */ lwz r12, 0x568(r31)
|
|
|
|
/* 800803B4 0007C1F4 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 800803B8 0007C1F8 41 82 00 10 */ beq lbl_800803C8
|
|
|
|
/* 800803BC 0007C1FC 38 60 00 01 */ li r3, 0x1
|
|
|
|
/* 800803C0 0007C200 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 800803C4 0007C204 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_800803C8
|
|
|
|
lbl_800803C8:
|
|
|
|
/* 800803C8 0007C208 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 800803CC 0007C20C 83 E1 00 0C */ lwz r31, 0xc(r1)
|
|
|
|
/* 800803D0 0007C210 83 C1 00 08 */ lwz r30, 0x8(r1)
|
|
|
|
/* 800803D4 0007C214 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 800803D8 0007C218 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 800803DC 0007C21C 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_SendHciReset
|
|
|
|
BTM_SendHciReset:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800803E0 0007C220 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 800803E4 0007C224 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800803E8 0007C228 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800803EC 0007C22C 90 01 00 14 */ stw r0, 0x14(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800803F0 0007C230 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800803F4 0007C234 93 E1 00 0C */ stw r31, 0xc(r1)
|
|
|
|
/* 800803F8 0007C238 93 C1 00 08 */ stw r30, 0x8(r1)
|
|
|
|
/* 800803FC 0007C23C 7C 7E 1B 78 */ mr r30, r3
|
|
|
|
/* 80080400 0007C240 80 04 05 8C */ lwz r0, 0x58c(r4)
|
|
|
|
/* 80080404 0007C244 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 80080408 0007C248 41 82 00 18 */ beq lbl_80080420
|
|
|
|
/* 8008040C 0007C24C 7C 00 18 40 */ cmplw r0, r3
|
|
|
|
/* 80080410 0007C250 41 82 00 10 */ beq lbl_80080420
|
|
|
|
/* 80080414 0007C254 80 04 06 20 */ lwz r0, 0x620(r4)
|
|
|
|
/* 80080418 0007C258 7C 00 18 40 */ cmplw r0, r3
|
|
|
|
/* 8008041C 0007C25C 40 82 00 54 */ bne lbl_80080470
|
|
|
|
.global lbl_80080420
|
|
|
|
lbl_80080420:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080420 0007C260 4B FF DE 3D */ bl btm_acl_device_down
|
|
|
|
/* 80080424 0007C264 4B FF FE 71 */ bl btm_db_reset
|
|
|
|
/* 80080428 0007C268 3F E0 80 4F */ lis r31, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008042C 0007C26C 38 C0 00 00 */ li r6, 0x0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080430 0007C270 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080434 0007C274 38 00 00 05 */ li r0, 0x5
|
|
|
|
/* 80080438 0007C278 93 DF 06 20 */ stw r30, 0x620(r31)
|
|
|
|
/* 8008043C 0007C27C 38 7F 05 74 */ addi r3, r31, 0x574
|
|
|
|
/* 80080440 0007C280 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 80080444 0007C284 38 A0 00 04 */ li r5, 0x4
|
|
|
|
/* 80080448 0007C288 98 DF 06 4E */ stb r6, 0x64e(r31)
|
|
|
|
/* 8008044C 0007C28C 98 1F 06 4F */ stb r0, 0x64f(r31)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080450 0007C290 4B FF 7A 61 */ bl btu_start_timer
|
|
|
|
/* 80080454 0007C294 48 00 B7 C9 */ bl btsnd_hcic_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080458 0007C298 81 9F 05 68 */ lwz r12, 0x568(r31)
|
|
|
|
/* 8008045C 0007C29C 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 80080460 0007C2A0 41 82 00 10 */ beq lbl_80080470
|
|
|
|
/* 80080464 0007C2A4 38 60 00 01 */ li r3, 0x1
|
|
|
|
/* 80080468 0007C2A8 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 8008046C 0007C2AC 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_80080470
|
|
|
|
lbl_80080470:
|
|
|
|
/* 80080470 0007C2B0 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80080474 0007C2B4 83 E1 00 0C */ lwz r31, 0xc(r1)
|
|
|
|
/* 80080478 0007C2B8 83 C1 00 08 */ lwz r30, 0x8(r1)
|
|
|
|
/* 8008047C 0007C2BC 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80080480 0007C2C0 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80080484 0007C2C4 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_IsDeviceUp
|
|
|
|
BTM_IsDeviceUp:
|
|
|
|
/* 80080488 0007C2C8 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 8008048C 0007C2CC 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080490 0007C2D0 88 63 06 4E */ lbz r3, 0x64e(r3)
|
|
|
|
/* 80080494 0007C2D4 38 03 FF FB */ addi r0, r3, -0x5
|
|
|
|
/* 80080498 0007C2D8 7C 00 00 34 */ cntlzw r0, r0
|
|
|
|
/* 8008049C 0007C2DC 54 03 DE 3E */ extrwi r3, r0, 8, 19
|
|
|
|
/* 800804A0 0007C2E0 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_SetAfhChannels
|
|
|
|
BTM_SetAfhChannels:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800804A4 0007C2E4 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 800804A8 0007C2E8 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800804AC 0007C2EC 3C E0 80 4F */ lis r7, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800804B0 0007C2F0 90 01 00 14 */ stw r0, 0x14(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800804B4 0007C2F4 38 E7 5F 58 */ addi r7, r7, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800804B8 0007C2F8 93 E1 00 0C */ stw r31, 0xc(r1)
|
|
|
|
/* 800804BC 0007C2FC 7C 9F 23 78 */ mr r31, r4
|
|
|
|
/* 800804C0 0007C300 93 C1 00 08 */ stw r30, 0x8(r1)
|
|
|
|
/* 800804C4 0007C304 7C 7E 1B 78 */ mr r30, r3
|
|
|
|
/* 800804C8 0007C308 88 07 27 C0 */ lbz r0, 0x27c0(r7)
|
|
|
|
/* 800804CC 0007C30C 28 00 00 03 */ cmplwi r0, 0x3
|
|
|
|
/* 800804D0 0007C310 41 80 00 28 */ blt lbl_800804F8
|
|
|
|
/* 800804D4 0007C314 3C 60 00 0D */ lis r3, 0xd
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800804D8 0007C318 3C 80 80 44 */ lis r4, "@2107_8043BAD0"@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800804DC 0007C31C 88 C7 27 BD */ lbz r6, 0x27bd(r7)
|
|
|
|
/* 800804E0 0007C320 7F C5 F3 78 */ mr r5, r30
|
|
|
|
/* 800804E4 0007C324 89 07 27 BE */ lbz r8, 0x27be(r7)
|
|
|
|
/* 800804E8 0007C328 7F E7 FB 78 */ mr r7, r31
|
|
|
|
/* 800804EC 0007C32C 38 63 00 02 */ addi r3, r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800804F0 0007C330 38 84 BA D0 */ addi r4, r4, "@2107_8043BAD0"@l
|
|
|
|
/* 800804F4 0007C334 4B FF 74 6D */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_800804F8
|
|
|
|
lbl_800804F8:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800804F8 0007C338 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 800804FC 0007C33C 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080500 0007C340 88 83 06 45 */ lbz r4, 0x645(r3)
|
|
|
|
/* 80080504 0007C344 54 80 07 39 */ rlwinm. r0, r4, 0, 28, 28
|
|
|
|
/* 80080508 0007C348 40 82 00 20 */ bne lbl_80080528
|
|
|
|
/* 8008050C 0007C34C 88 03 06 44 */ lbz r0, 0x644(r3)
|
|
|
|
/* 80080510 0007C350 54 00 06 F7 */ rlwinm. r0, r0, 0, 27, 27
|
|
|
|
/* 80080514 0007C354 40 82 00 14 */ bne lbl_80080528
|
|
|
|
/* 80080518 0007C358 54 80 06 F7 */ rlwinm. r0, r4, 0, 27, 27
|
|
|
|
/* 8008051C 0007C35C 40 82 00 0C */ bne lbl_80080528
|
|
|
|
/* 80080520 0007C360 38 60 00 04 */ li r3, 0x4
|
|
|
|
/* 80080524 0007C364 48 00 00 58 */ b lbl_8008057C
|
|
|
|
.global lbl_80080528
|
|
|
|
lbl_80080528:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080528 0007C368 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 8008052C 0007C36C 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080530 0007C370 88 03 27 BD */ lbz r0, 0x27bd(r3)
|
|
|
|
/* 80080534 0007C374 7C 00 F0 40 */ cmplw r0, r30
|
|
|
|
/* 80080538 0007C378 40 82 00 10 */ bne lbl_80080548
|
|
|
|
/* 8008053C 0007C37C 88 03 27 BE */ lbz r0, 0x27be(r3)
|
|
|
|
/* 80080540 0007C380 7C 00 F8 40 */ cmplw r0, r31
|
|
|
|
/* 80080544 0007C384 41 82 00 34 */ beq lbl_80080578
|
|
|
|
.global lbl_80080548
|
|
|
|
lbl_80080548:
|
|
|
|
/* 80080548 0007C388 7F C3 F3 78 */ mr r3, r30
|
|
|
|
/* 8008054C 0007C38C 7F E4 FB 78 */ mr r4, r31
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080550 0007C390 48 00 C3 C1 */ bl btsnd_hcic_set_afh_channels
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080554 0007C394 54 60 06 3F */ clrlwi. r0, r3, 24
|
|
|
|
/* 80080558 0007C398 41 82 00 18 */ beq lbl_80080570
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008055C 0007C39C 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080560 0007C3A0 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080564 0007C3A4 9B C3 27 BD */ stb r30, 0x27bd(r3)
|
|
|
|
/* 80080568 0007C3A8 9B E3 27 BE */ stb r31, 0x27be(r3)
|
|
|
|
/* 8008056C 0007C3AC 48 00 00 0C */ b lbl_80080578
|
|
|
|
.global lbl_80080570
|
|
|
|
lbl_80080570:
|
|
|
|
/* 80080570 0007C3B0 38 60 00 03 */ li r3, 0x3
|
|
|
|
/* 80080574 0007C3B4 48 00 00 08 */ b lbl_8008057C
|
|
|
|
.global lbl_80080578
|
|
|
|
lbl_80080578:
|
|
|
|
/* 80080578 0007C3B8 38 60 00 00 */ li r3, 0x0
|
|
|
|
.global lbl_8008057C
|
|
|
|
lbl_8008057C:
|
|
|
|
/* 8008057C 0007C3BC 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80080580 0007C3C0 83 E1 00 0C */ lwz r31, 0xc(r1)
|
|
|
|
/* 80080584 0007C3C4 83 C1 00 08 */ lwz r30, 0x8(r1)
|
|
|
|
/* 80080588 0007C3C8 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 8008058C 0007C3CC 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80080590 0007C3D0 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_dev_timeout
|
|
|
|
btm_dev_timeout:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080594 0007C3D4 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 80080598 0007C3D8 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 8008059C 0007C3DC 90 01 00 14 */ stw r0, 0x14(r1)
|
|
|
|
/* 800805A0 0007C3E0 93 E1 00 0C */ stw r31, 0xc(r1)
|
|
|
|
/* 800805A4 0007C3E4 93 C1 00 08 */ stw r30, 0x8(r1)
|
|
|
|
/* 800805A8 0007C3E8 80 03 00 10 */ lwz r0, 0x10(r3)
|
|
|
|
/* 800805AC 0007C3EC 28 00 00 01 */ cmplwi r0, 0x1
|
|
|
|
/* 800805B0 0007C3F0 40 82 02 34 */ bne lbl_800807E4
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800805B4 0007C3F4 3C C0 80 4F */ lis r6, btm_cb@ha
|
|
|
|
/* 800805B8 0007C3F8 38 C6 5F 58 */ addi r6, r6, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800805BC 0007C3FC 88 06 06 4E */ lbz r0, 0x64e(r6)
|
|
|
|
/* 800805C0 0007C400 2C 00 00 02 */ cmpwi r0, 0x2
|
|
|
|
/* 800805C4 0007C404 41 82 01 60 */ beq lbl_80080724
|
|
|
|
/* 800805C8 0007C408 40 80 00 14 */ bge lbl_800805DC
|
|
|
|
/* 800805CC 0007C40C 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 800805D0 0007C410 41 82 00 18 */ beq lbl_800805E8
|
|
|
|
/* 800805D4 0007C414 40 80 00 3C */ bge lbl_80080610
|
|
|
|
/* 800805D8 0007C418 48 00 02 3C */ b lbl_80080814
|
|
|
|
.global lbl_800805DC
|
|
|
|
lbl_800805DC:
|
|
|
|
/* 800805DC 0007C41C 2C 00 00 04 */ cmpwi r0, 0x4
|
|
|
|
/* 800805E0 0007C420 40 80 02 34 */ bge lbl_80080814
|
|
|
|
/* 800805E4 0007C424 48 00 01 A4 */ b lbl_80080788
|
|
|
|
.global lbl_800805E8
|
|
|
|
lbl_800805E8:
|
|
|
|
/* 800805E8 0007C428 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 800805EC 0007C42C 38 00 00 05 */ li r0, 0x5
|
|
|
|
/* 800805F0 0007C430 98 66 06 4E */ stb r3, 0x64e(r6)
|
|
|
|
/* 800805F4 0007C434 38 66 05 74 */ addi r3, r6, 0x574
|
|
|
|
/* 800805F8 0007C438 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 800805FC 0007C43C 38 A0 00 04 */ li r5, 0x4
|
|
|
|
/* 80080600 0007C440 98 06 06 4F */ stb r0, 0x64f(r6)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080604 0007C444 4B FF 78 AD */ bl btu_start_timer
|
|
|
|
/* 80080608 0007C448 48 00 B6 15 */ bl btsnd_hcic_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008060C 0007C44C 48 00 02 08 */ b lbl_80080814
|
|
|
|
.global lbl_80080610
|
|
|
|
lbl_80080610:
|
|
|
|
/* 80080610 0007C450 38 00 00 04 */ li r0, 0x4
|
|
|
|
/* 80080614 0007C454 38 60 00 02 */ li r3, 0x2
|
|
|
|
/* 80080618 0007C458 98 66 06 4E */ stb r3, 0x64e(r6)
|
|
|
|
/* 8008061C 0007C45C 98 06 06 4F */ stb r0, 0x64f(r6)
|
|
|
|
/* 80080620 0007C460 48 00 00 18 */ b lbl_80080638
|
|
|
|
/* 80080624 0007C464 98 06 06 4F */ stb r0, 0x64f(r6)
|
|
|
|
/* 80080628 0007C468 98 06 06 4E */ stb r0, 0x64e(r6)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008062C 0007C46C 4B FF 78 85 */ bl btu_start_timer
|
|
|
|
/* 80080630 0007C470 48 00 B5 ED */ bl btsnd_hcic_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080634 0007C474 48 00 00 28 */ b lbl_8008065C
|
|
|
|
.global lbl_80080638
|
|
|
|
lbl_80080638:
|
|
|
|
/* 80080638 0007C478 38 66 05 74 */ addi r3, r6, 0x574
|
|
|
|
/* 8008063C 0007C47C 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 80080640 0007C480 38 A0 00 01 */ li r5, 0x1
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080644 0007C484 4B FF 78 6D */ bl btu_start_timer
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080648 0007C488 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008064C 0007C48C 4B FF 47 D5 */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080650 0007C490 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 80080654 0007C494 41 82 00 08 */ beq lbl_8008065C
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080658 0007C498 48 00 C1 3D */ bl btsnd_hcic_read_buffer_size
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_8008065C
|
|
|
|
lbl_8008065C:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008065C 0007C49C 3F E0 80 4F */ lis r31, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080660 0007C4A0 38 A0 00 03 */ li r5, 0x3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080664 0007C4A4 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080668 0007C4A8 38 7F 06 48 */ addi r3, r31, 0x648
|
|
|
|
/* 8008066C 0007C4AC 7C 64 1B 78 */ mr r4, r3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080670 0007C4B0 4B F8 39 91 */ bl memcpy
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080674 0007C4B4 88 1F 06 4E */ lbz r0, 0x64e(r31)
|
|
|
|
/* 80080678 0007C4B8 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 8008067C 0007C4BC 41 82 00 24 */ beq lbl_800806A0
|
|
|
|
/* 80080680 0007C4C0 28 00 00 01 */ cmplwi r0, 0x1
|
|
|
|
/* 80080684 0007C4C4 41 82 00 1C */ beq lbl_800806A0
|
|
|
|
/* 80080688 0007C4C8 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008068C 0007C4CC 4B FF 47 95 */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080690 0007C4D0 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 80080694 0007C4D4 41 82 00 0C */ beq lbl_800806A0
|
|
|
|
/* 80080698 0007C4D8 38 9F 06 48 */ addi r4, r31, 0x648
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008069C 0007C4DC 48 00 BD F5 */ bl btsnd_hcic_write_dev_class
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_800806A0
|
|
|
|
lbl_800806A0:
|
|
|
|
/* 800806A0 0007C4E0 3C 00 80 4F */ lis r0, 0x804f
|
|
|
|
/* 800806A4 0007C4E4 37 E0 5F 58 */ addic. r31, r0, 0x5f58
|
|
|
|
/* 800806A8 0007C4E8 41 82 00 60 */ beq lbl_80080708
|
|
|
|
/* 800806AC 0007C4EC 88 1F 06 4E */ lbz r0, 0x64e(r31)
|
|
|
|
/* 800806B0 0007C4F0 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 800806B4 0007C4F4 41 82 00 54 */ beq lbl_80080708
|
|
|
|
/* 800806B8 0007C4F8 28 00 00 01 */ cmplwi r0, 0x1
|
|
|
|
/* 800806BC 0007C4FC 41 82 00 4C */ beq lbl_80080708
|
|
|
|
/* 800806C0 0007C500 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800806C4 0007C504 4B FF 47 5D */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800806C8 0007C508 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 800806CC 0007C50C 7C 7E 1B 78 */ mr r30, r3
|
|
|
|
/* 800806D0 0007C510 41 82 00 38 */ beq lbl_80080708
|
|
|
|
/* 800806D4 0007C514 7C 1F F8 40 */ cmplw r31, r31
|
|
|
|
/* 800806D8 0007C518 41 82 00 24 */ beq lbl_800806FC
|
|
|
|
/* 800806DC 0007C51C 7F E3 FB 78 */ mr r3, r31
|
|
|
|
/* 800806E0 0007C520 38 80 00 00 */ li r4, 0x0
|
|
|
|
/* 800806E4 0007C524 38 A0 00 20 */ li r5, 0x20
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800806E8 0007C528 4B F8 3C 69 */ bl memset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800806EC 0007C52C 7F E3 FB 78 */ mr r3, r31
|
|
|
|
/* 800806F0 0007C530 7F E4 FB 78 */ mr r4, r31
|
|
|
|
/* 800806F4 0007C534 38 A0 00 1F */ li r5, 0x1f
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800806F8 0007C538 4B F8 D3 89 */ bl strncpy
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_800806FC
|
|
|
|
lbl_800806FC:
|
|
|
|
/* 800806FC 0007C53C 7F C3 F3 78 */ mr r3, r30
|
|
|
|
/* 80080700 0007C540 7F E4 FB 78 */ mr r4, r31
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080704 0007C544 48 00 BA 75 */ bl btsnd_hcic_change_name
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80080708
|
|
|
|
lbl_80080708:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080708 0007C548 3C A0 80 4F */ lis r5, btm_cb@ha
|
|
|
|
/* 8008070C 0007C54C 38 A5 5F 58 */ addi r5, r5, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080710 0007C550 88 65 00 20 */ lbz r3, 0x20(r5)
|
|
|
|
/* 80080714 0007C554 38 85 00 22 */ addi r4, r5, 0x22
|
|
|
|
/* 80080718 0007C558 88 A5 00 21 */ lbz r5, 0x21(r5)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008071C 0007C55C 48 00 4C 69 */ bl BTM_SetPinType
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080720 0007C560 48 00 00 F4 */ b lbl_80080814
|
|
|
|
.global lbl_80080724
|
|
|
|
lbl_80080724:
|
|
|
|
/* 80080724 0007C564 88 66 06 4F */ lbz r3, 0x64f(r6)
|
|
|
|
/* 80080728 0007C568 38 63 FF FF */ addi r3, r3, -0x1
|
|
|
|
/* 8008072C 0007C56C 54 60 06 3F */ clrlwi. r0, r3, 24
|
|
|
|
/* 80080730 0007C570 98 66 06 4F */ stb r3, 0x64f(r6)
|
|
|
|
/* 80080734 0007C574 40 82 00 2C */ bne lbl_80080760
|
|
|
|
/* 80080738 0007C578 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 8008073C 0007C57C 38 00 00 05 */ li r0, 0x5
|
|
|
|
/* 80080740 0007C580 98 66 06 4E */ stb r3, 0x64e(r6)
|
|
|
|
/* 80080744 0007C584 38 66 05 74 */ addi r3, r6, 0x574
|
|
|
|
/* 80080748 0007C588 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 8008074C 0007C58C 38 A0 00 04 */ li r5, 0x4
|
|
|
|
/* 80080750 0007C590 98 06 06 4F */ stb r0, 0x64f(r6)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080754 0007C594 4B FF 77 5D */ bl btu_start_timer
|
|
|
|
/* 80080758 0007C598 48 00 B4 C5 */ bl btsnd_hcic_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008075C 0007C59C 48 00 00 B8 */ b lbl_80080814
|
|
|
|
.global lbl_80080760
|
|
|
|
lbl_80080760:
|
|
|
|
/* 80080760 0007C5A0 38 66 05 74 */ addi r3, r6, 0x574
|
|
|
|
/* 80080764 0007C5A4 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 80080768 0007C5A8 38 A0 00 01 */ li r5, 0x1
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008076C 0007C5AC 4B FF 77 45 */ bl btu_start_timer
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080770 0007C5B0 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080774 0007C5B4 4B FF 46 AD */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080778 0007C5B8 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 8008077C 0007C5BC 41 82 00 98 */ beq lbl_80080814
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080780 0007C5C0 48 00 C0 15 */ bl btsnd_hcic_read_buffer_size
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080784 0007C5C4 48 00 00 90 */ b lbl_80080814
|
|
|
|
.global lbl_80080788
|
|
|
|
lbl_80080788:
|
|
|
|
/* 80080788 0007C5C8 88 66 06 4F */ lbz r3, 0x64f(r6)
|
|
|
|
/* 8008078C 0007C5CC 38 63 FF FF */ addi r3, r3, -0x1
|
|
|
|
/* 80080790 0007C5D0 54 60 06 3F */ clrlwi. r0, r3, 24
|
|
|
|
/* 80080794 0007C5D4 98 66 06 4F */ stb r3, 0x64f(r6)
|
|
|
|
/* 80080798 0007C5D8 40 82 00 2C */ bne lbl_800807C4
|
|
|
|
/* 8008079C 0007C5DC 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 800807A0 0007C5E0 38 00 00 05 */ li r0, 0x5
|
|
|
|
/* 800807A4 0007C5E4 98 66 06 4E */ stb r3, 0x64e(r6)
|
|
|
|
/* 800807A8 0007C5E8 38 66 05 74 */ addi r3, r6, 0x574
|
|
|
|
/* 800807AC 0007C5EC 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 800807B0 0007C5F0 38 A0 00 04 */ li r5, 0x4
|
|
|
|
/* 800807B4 0007C5F4 98 06 06 4F */ stb r0, 0x64f(r6)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800807B8 0007C5F8 4B FF 76 F9 */ bl btu_start_timer
|
|
|
|
/* 800807BC 0007C5FC 48 00 B4 61 */ bl btsnd_hcic_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800807C0 0007C600 48 00 00 54 */ b lbl_80080814
|
|
|
|
.global lbl_800807C4
|
|
|
|
lbl_800807C4:
|
|
|
|
/* 800807C4 0007C604 38 66 05 74 */ addi r3, r6, 0x574
|
|
|
|
/* 800807C8 0007C608 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 800807CC 0007C60C 38 A0 00 01 */ li r5, 0x1
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800807D0 0007C610 4B FF 76 E1 */ bl btu_start_timer
|
|
|
|
/* 800807D4 0007C614 48 00 BF 05 */ bl btsnd_hcic_read_local_ver
|
|
|
|
/* 800807D8 0007C618 48 00 BF E5 */ bl btsnd_hcic_read_bd_addr
|
|
|
|
/* 800807DC 0007C61C 48 00 33 05 */ bl btm_pm_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800807E0 0007C620 48 00 00 34 */ b lbl_80080814
|
|
|
|
.global lbl_800807E4
|
|
|
|
lbl_800807E4:
|
|
|
|
/* 800807E4 0007C624 28 00 00 02 */ cmplwi r0, 0x2
|
|
|
|
/* 800807E8 0007C628 40 82 00 2C */ bne lbl_80080814
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800807EC 0007C62C 3C 60 80 4F */ lis r3, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800807F0 0007C630 38 00 00 00 */ li r0, 0x0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800807F4 0007C634 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800807F8 0007C638 81 83 05 A8 */ lwz r12, 0x5a8(r3)
|
|
|
|
/* 800807FC 0007C63C 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 80080800 0007C640 90 03 05 A8 */ stw r0, 0x5a8(r3)
|
|
|
|
/* 80080804 0007C644 41 82 00 10 */ beq lbl_80080814
|
|
|
|
/* 80080808 0007C648 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 8008080C 0007C64C 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80080810 0007C650 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_80080814
|
|
|
|
lbl_80080814:
|
|
|
|
/* 80080814 0007C654 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80080818 0007C658 83 E1 00 0C */ lwz r31, 0xc(r1)
|
|
|
|
/* 8008081C 0007C65C 83 C1 00 08 */ lwz r30, 0x8(r1)
|
|
|
|
/* 80080820 0007C660 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80080824 0007C664 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80080828 0007C668 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_reset_complete
|
|
|
|
btm_reset_complete:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008082C 0007C66C 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 80080830 0007C670 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080834 0007C674 3C 60 80 4F */ lis r3, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080838 0007C678 90 01 00 14 */ stw r0, 0x14(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008083C 0007C67C 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080840 0007C680 93 E1 00 0C */ stw r31, 0xc(r1)
|
|
|
|
/* 80080844 0007C684 93 C1 00 08 */ stw r30, 0x8(r1)
|
|
|
|
/* 80080848 0007C688 88 03 27 C0 */ lbz r0, 0x27c0(r3)
|
|
|
|
/* 8008084C 0007C68C 28 00 00 04 */ cmplwi r0, 0x4
|
|
|
|
/* 80080850 0007C690 41 80 00 18 */ blt lbl_80080868
|
|
|
|
/* 80080854 0007C694 3C 60 00 0D */ lis r3, 0xd
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080858 0007C698 3C 80 80 44 */ lis r4, "@2174"@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008085C 0007C69C 38 63 00 03 */ addi r3, r3, 0x3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080860 0007C6A0 38 84 BB 00 */ addi r4, r4, "@2174"@l
|
|
|
|
/* 80080864 0007C6A4 4B FF 70 FD */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80080868
|
|
|
|
lbl_80080868:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080868 0007C6A8 3F E0 80 4F */ lis r31, btm_cb@ha
|
|
|
|
/* 8008086C 0007C6AC 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080870 0007C6B0 81 9F 06 20 */ lwz r12, 0x620(r31)
|
|
|
|
/* 80080874 0007C6B4 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 80080878 0007C6B8 41 82 00 1C */ beq lbl_80080894
|
|
|
|
/* 8008087C 0007C6BC 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 80080880 0007C6C0 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 80080884 0007C6C4 90 1F 06 20 */ stw r0, 0x620(r31)
|
|
|
|
/* 80080888 0007C6C8 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 8008088C 0007C6CC 4E 80 04 21 */ bctrl
|
|
|
|
/* 80080890 0007C6D0 48 00 01 48 */ b lbl_800809D8
|
|
|
|
.global lbl_80080894
|
|
|
|
lbl_80080894:
|
|
|
|
/* 80080894 0007C6D4 88 1F 06 4E */ lbz r0, 0x64e(r31)
|
|
|
|
/* 80080898 0007C6D8 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 8008089C 0007C6DC 40 82 01 3C */ bne lbl_800809D8
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800808A0 0007C6E0 48 01 56 99 */ bl l2cu_device_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800808A4 0007C6E4 38 C0 00 12 */ li r6, 0x12
|
|
|
|
/* 800808A8 0007C6E8 38 A0 08 00 */ li r5, 0x800
|
|
|
|
/* 800808AC 0007C6EC 38 80 00 00 */ li r4, 0x0
|
|
|
|
/* 800808B0 0007C6F0 38 00 00 04 */ li r0, 0x4
|
|
|
|
/* 800808B4 0007C6F4 38 60 00 02 */ li r3, 0x2
|
|
|
|
/* 800808B8 0007C6F8 B0 DF 16 A0 */ sth r6, 0x16a0(r31)
|
|
|
|
/* 800808BC 0007C6FC B0 BF 16 A2 */ sth r5, 0x16a2(r31)
|
|
|
|
/* 800808C0 0007C700 B0 9F 16 A4 */ sth r4, 0x16a4(r31)
|
|
|
|
/* 800808C4 0007C704 B0 DF 16 9C */ sth r6, 0x169c(r31)
|
|
|
|
/* 800808C8 0007C708 B0 BF 16 9E */ sth r5, 0x169e(r31)
|
|
|
|
/* 800808CC 0007C70C B0 9F 16 A6 */ sth r4, 0x16a6(r31)
|
|
|
|
/* 800808D0 0007C710 98 7F 06 4E */ stb r3, 0x64e(r31)
|
|
|
|
/* 800808D4 0007C714 98 1F 06 4F */ stb r0, 0x64f(r31)
|
|
|
|
/* 800808D8 0007C718 48 00 00 18 */ b lbl_800808F0
|
|
|
|
/* 800808DC 0007C71C 98 9F 06 4E */ stb r4, 0x64e(r31)
|
|
|
|
/* 800808E0 0007C720 98 1F 06 4F */ stb r0, 0x64f(r31)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800808E4 0007C724 4B FF 75 CD */ bl btu_start_timer
|
|
|
|
/* 800808E8 0007C728 48 00 B3 35 */ bl btsnd_hcic_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800808EC 0007C72C 48 00 00 28 */ b lbl_80080914
|
|
|
|
.global lbl_800808F0
|
|
|
|
lbl_800808F0:
|
|
|
|
/* 800808F0 0007C730 38 7F 05 74 */ addi r3, r31, 0x574
|
|
|
|
/* 800808F4 0007C734 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 800808F8 0007C738 38 A0 00 01 */ li r5, 0x1
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800808FC 0007C73C 4B FF 75 B5 */ bl btu_start_timer
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080900 0007C740 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080904 0007C744 4B FF 45 1D */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080908 0007C748 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 8008090C 0007C74C 41 82 00 08 */ beq lbl_80080914
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080910 0007C750 48 00 BE 85 */ bl btsnd_hcic_read_buffer_size
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80080914
|
|
|
|
lbl_80080914:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080914 0007C754 3F E0 80 4F */ lis r31, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080918 0007C758 38 A0 00 03 */ li r5, 0x3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008091C 0007C75C 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080920 0007C760 38 7F 06 48 */ addi r3, r31, 0x648
|
|
|
|
/* 80080924 0007C764 7C 64 1B 78 */ mr r4, r3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080928 0007C768 4B F8 36 D9 */ bl memcpy
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008092C 0007C76C 88 1F 06 4E */ lbz r0, 0x64e(r31)
|
|
|
|
/* 80080930 0007C770 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 80080934 0007C774 41 82 00 24 */ beq lbl_80080958
|
|
|
|
/* 80080938 0007C778 28 00 00 01 */ cmplwi r0, 0x1
|
|
|
|
/* 8008093C 0007C77C 41 82 00 1C */ beq lbl_80080958
|
|
|
|
/* 80080940 0007C780 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080944 0007C784 4B FF 44 DD */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080948 0007C788 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 8008094C 0007C78C 41 82 00 0C */ beq lbl_80080958
|
|
|
|
/* 80080950 0007C790 38 9F 06 48 */ addi r4, r31, 0x648
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080954 0007C794 48 00 BB 3D */ bl btsnd_hcic_write_dev_class
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80080958
|
|
|
|
lbl_80080958:
|
|
|
|
/* 80080958 0007C798 3C 00 80 4F */ lis r0, 0x804f
|
|
|
|
/* 8008095C 0007C79C 37 E0 5F 58 */ addic. r31, r0, 0x5f58
|
|
|
|
/* 80080960 0007C7A0 41 82 00 60 */ beq lbl_800809C0
|
|
|
|
/* 80080964 0007C7A4 88 1F 06 4E */ lbz r0, 0x64e(r31)
|
|
|
|
/* 80080968 0007C7A8 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 8008096C 0007C7AC 41 82 00 54 */ beq lbl_800809C0
|
|
|
|
/* 80080970 0007C7B0 28 00 00 01 */ cmplwi r0, 0x1
|
|
|
|
/* 80080974 0007C7B4 41 82 00 4C */ beq lbl_800809C0
|
|
|
|
/* 80080978 0007C7B8 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008097C 0007C7BC 4B FF 44 A5 */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080980 0007C7C0 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 80080984 0007C7C4 7C 7E 1B 78 */ mr r30, r3
|
|
|
|
/* 80080988 0007C7C8 41 82 00 38 */ beq lbl_800809C0
|
|
|
|
/* 8008098C 0007C7CC 7C 1F F8 40 */ cmplw r31, r31
|
|
|
|
/* 80080990 0007C7D0 41 82 00 24 */ beq lbl_800809B4
|
|
|
|
/* 80080994 0007C7D4 7F E3 FB 78 */ mr r3, r31
|
|
|
|
/* 80080998 0007C7D8 38 80 00 00 */ li r4, 0x0
|
|
|
|
/* 8008099C 0007C7DC 38 A0 00 20 */ li r5, 0x20
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800809A0 0007C7E0 4B F8 39 B1 */ bl memset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800809A4 0007C7E4 7F E3 FB 78 */ mr r3, r31
|
|
|
|
/* 800809A8 0007C7E8 7F E4 FB 78 */ mr r4, r31
|
|
|
|
/* 800809AC 0007C7EC 38 A0 00 1F */ li r5, 0x1f
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800809B0 0007C7F0 4B F8 D0 D1 */ bl strncpy
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_800809B4
|
|
|
|
lbl_800809B4:
|
|
|
|
/* 800809B4 0007C7F4 7F C3 F3 78 */ mr r3, r30
|
|
|
|
/* 800809B8 0007C7F8 7F E4 FB 78 */ mr r4, r31
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800809BC 0007C7FC 48 00 B7 BD */ bl btsnd_hcic_change_name
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_800809C0
|
|
|
|
lbl_800809C0:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800809C0 0007C800 3C A0 80 4F */ lis r5, btm_cb@ha
|
|
|
|
/* 800809C4 0007C804 38 A5 5F 58 */ addi r5, r5, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800809C8 0007C808 88 65 00 20 */ lbz r3, 0x20(r5)
|
|
|
|
/* 800809CC 0007C80C 38 85 00 22 */ addi r4, r5, 0x22
|
|
|
|
/* 800809D0 0007C810 88 A5 00 21 */ lbz r5, 0x21(r5)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800809D4 0007C814 48 00 49 B1 */ bl BTM_SetPinType
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_800809D8
|
|
|
|
lbl_800809D8:
|
|
|
|
/* 800809D8 0007C818 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 800809DC 0007C81C 83 E1 00 0C */ lwz r31, 0xc(r1)
|
|
|
|
/* 800809E0 0007C820 83 C1 00 08 */ lwz r30, 0x8(r1)
|
|
|
|
/* 800809E4 0007C824 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 800809E8 0007C828 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 800809EC 0007C82C 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_read_hci_buf_size_complete
|
|
|
|
btm_read_hci_buf_size_complete:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800809F0 0007C830 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 800809F4 0007C834 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 800809F8 0007C838 90 01 00 14 */ stw r0, 0x14(r1)
|
|
|
|
/* 800809FC 0007C83C 88 03 00 00 */ lbz r0, 0x0(r3)
|
|
|
|
/* 80080A00 0007C840 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 80080A04 0007C844 40 82 00 58 */ bne lbl_80080A5C
|
|
|
|
/* 80080A08 0007C848 88 03 00 02 */ lbz r0, 0x2(r3)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080A0C 0007C84C 3C C0 80 4F */ lis r6, btu_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080A10 0007C850 88 83 00 01 */ lbz r4, 0x1(r3)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080A14 0007C854 38 C6 5A 30 */ addi r6, r6, btu_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080A18 0007C858 54 00 40 2E */ slwi r0, r0, 8
|
|
|
|
/* 80080A1C 0007C85C 7C 04 02 14 */ add r0, r4, r0
|
|
|
|
/* 80080A20 0007C860 B0 06 00 7C */ sth r0, 0x7c(r6)
|
|
|
|
/* 80080A24 0007C864 54 04 04 3E */ clrlwi r4, r0, 16
|
|
|
|
/* 80080A28 0007C868 38 04 00 04 */ addi r0, r4, 0x4
|
|
|
|
/* 80080A2C 0007C86C 88 83 00 05 */ lbz r4, 0x5(r3)
|
|
|
|
/* 80080A30 0007C870 88 A3 00 04 */ lbz r5, 0x4(r3)
|
|
|
|
/* 80080A34 0007C874 54 83 40 2E */ slwi r3, r4, 8
|
|
|
|
/* 80080A38 0007C878 7C 65 1A 14 */ add r3, r5, r3
|
|
|
|
/* 80080A3C 0007C87C B0 06 00 7E */ sth r0, 0x7e(r6)
|
|
|
|
/* 80080A40 0007C880 54 63 04 3E */ clrlwi r3, r3, 16
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080A44 0007C884 48 01 25 71 */ bl l2c_link_processs_num_bufs
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080A48 0007C888 38 60 06 9B */ li r3, 0x69b
|
|
|
|
/* 80080A4C 0007C88C 38 80 00 1E */ li r4, 0x1e
|
|
|
|
/* 80080A50 0007C890 38 A0 00 14 */ li r5, 0x14
|
|
|
|
/* 80080A54 0007C894 38 C0 00 0A */ li r6, 0xa
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080A58 0007C898 48 00 BA C1 */ bl btsnd_hcic_set_host_buf_size
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80080A5C
|
|
|
|
lbl_80080A5C:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080A5C 0007C89C 3C 60 80 4F */ lis r3, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080A60 0007C8A0 38 00 00 04 */ li r0, 0x4
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080A64 0007C8A4 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080A68 0007C8A8 38 80 00 03 */ li r4, 0x3
|
|
|
|
/* 80080A6C 0007C8AC 98 83 06 4E */ stb r4, 0x64e(r3)
|
|
|
|
/* 80080A70 0007C8B0 98 03 06 4F */ stb r0, 0x64f(r3)
|
|
|
|
/* 80080A74 0007C8B4 48 00 00 18 */ b lbl_80080A8C
|
|
|
|
/* 80080A78 0007C8B8 98 03 06 4F */ stb r0, 0x64f(r3)
|
|
|
|
/* 80080A7C 0007C8BC 98 03 06 4E */ stb r0, 0x64e(r3)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080A80 0007C8C0 4B FF 74 31 */ bl btu_start_timer
|
|
|
|
/* 80080A84 0007C8C4 48 00 B1 99 */ bl btsnd_hcic_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080A88 0007C8C8 48 00 00 20 */ b lbl_80080AA8
|
|
|
|
.global lbl_80080A8C
|
|
|
|
lbl_80080A8C:
|
|
|
|
/* 80080A8C 0007C8CC 38 63 05 74 */ addi r3, r3, 0x574
|
|
|
|
/* 80080A90 0007C8D0 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 80080A94 0007C8D4 38 A0 00 01 */ li r5, 0x1
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080A98 0007C8D8 4B FF 74 19 */ bl btu_start_timer
|
|
|
|
/* 80080A9C 0007C8DC 48 00 BC 3D */ bl btsnd_hcic_read_local_ver
|
|
|
|
/* 80080AA0 0007C8E0 48 00 BD 1D */ bl btsnd_hcic_read_bd_addr
|
|
|
|
/* 80080AA4 0007C8E4 48 00 30 3D */ bl btm_pm_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80080AA8
|
|
|
|
lbl_80080AA8:
|
|
|
|
/* 80080AA8 0007C8E8 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80080AAC 0007C8EC 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80080AB0 0007C8F0 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80080AB4 0007C8F4 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_read_local_version_complete
|
|
|
|
btm_read_local_version_complete:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080AB8 0007C8F8 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 80080ABC 0007C8FC 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080AC0 0007C900 3C A0 80 4F */ lis r5, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080AC4 0007C904 90 01 00 14 */ stw r0, 0x14(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080AC8 0007C908 38 A5 5F 58 */ addi r5, r5, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080ACC 0007C90C 88 03 00 00 */ lbz r0, 0x0(r3)
|
|
|
|
/* 80080AD0 0007C910 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 80080AD4 0007C914 40 82 00 50 */ bne lbl_80080B24
|
|
|
|
/* 80080AD8 0007C918 88 03 00 01 */ lbz r0, 0x1(r3)
|
|
|
|
/* 80080ADC 0007C91C 98 05 06 36 */ stb r0, 0x636(r5)
|
|
|
|
/* 80080AE0 0007C920 88 03 00 03 */ lbz r0, 0x3(r3)
|
|
|
|
/* 80080AE4 0007C924 88 83 00 02 */ lbz r4, 0x2(r3)
|
|
|
|
/* 80080AE8 0007C928 54 00 40 2E */ slwi r0, r0, 8
|
|
|
|
/* 80080AEC 0007C92C 7C 04 02 14 */ add r0, r4, r0
|
|
|
|
/* 80080AF0 0007C930 B0 05 06 38 */ sth r0, 0x638(r5)
|
|
|
|
/* 80080AF4 0007C934 88 03 00 04 */ lbz r0, 0x4(r3)
|
|
|
|
/* 80080AF8 0007C938 98 05 06 3A */ stb r0, 0x63a(r5)
|
|
|
|
/* 80080AFC 0007C93C 88 03 00 06 */ lbz r0, 0x6(r3)
|
|
|
|
/* 80080B00 0007C940 88 83 00 05 */ lbz r4, 0x5(r3)
|
|
|
|
/* 80080B04 0007C944 54 00 40 2E */ slwi r0, r0, 8
|
|
|
|
/* 80080B08 0007C948 7C 04 02 14 */ add r0, r4, r0
|
|
|
|
/* 80080B0C 0007C94C B0 05 06 3C */ sth r0, 0x63c(r5)
|
|
|
|
/* 80080B10 0007C950 88 03 00 08 */ lbz r0, 0x8(r3)
|
|
|
|
/* 80080B14 0007C954 88 63 00 07 */ lbz r3, 0x7(r3)
|
|
|
|
/* 80080B18 0007C958 54 00 40 2E */ slwi r0, r0, 8
|
|
|
|
/* 80080B1C 0007C95C 7C 03 02 14 */ add r0, r3, r0
|
|
|
|
/* 80080B20 0007C960 B0 05 06 3E */ sth r0, 0x63e(r5)
|
|
|
|
.global lbl_80080B24
|
|
|
|
lbl_80080B24:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080B24 0007C964 3C 60 80 4F */ lis r3, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080B28 0007C968 38 00 00 04 */ li r0, 0x4
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080B2C 0007C96C 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080B30 0007C970 98 03 06 4E */ stb r0, 0x64e(r3)
|
|
|
|
/* 80080B34 0007C974 98 03 06 4F */ stb r0, 0x64f(r3)
|
|
|
|
/* 80080B38 0007C978 48 00 00 18 */ b lbl_80080B50
|
|
|
|
/* 80080B3C 0007C97C 98 03 06 4F */ stb r0, 0x64f(r3)
|
|
|
|
/* 80080B40 0007C980 98 03 06 4E */ stb r0, 0x64e(r3)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080B44 0007C984 4B FF 73 6D */ bl btu_start_timer
|
|
|
|
/* 80080B48 0007C988 48 00 B0 D5 */ bl btsnd_hcic_reset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080B4C 0007C98C 48 00 00 18 */ b lbl_80080B64
|
|
|
|
.global lbl_80080B50
|
|
|
|
lbl_80080B50:
|
|
|
|
/* 80080B50 0007C990 38 63 05 74 */ addi r3, r3, 0x574
|
|
|
|
/* 80080B54 0007C994 38 80 00 01 */ li r4, 0x1
|
|
|
|
/* 80080B58 0007C998 38 A0 00 01 */ li r5, 0x1
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080B5C 0007C99C 4B FF 73 55 */ bl btu_start_timer
|
|
|
|
/* 80080B60 0007C9A0 48 00 BB D9 */ bl btsnd_hcic_read_local_features
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80080B64
|
|
|
|
lbl_80080B64:
|
|
|
|
/* 80080B64 0007C9A4 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80080B68 0007C9A8 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80080B6C 0007C9AC 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80080B70 0007C9B0 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_read_local_features_complete
|
|
|
|
btm_read_local_features_complete:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080B74 0007C9B4 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
|
|
/* 80080B78 0007C9B8 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 80080B7C 0007C9BC 90 01 00 24 */ stw r0, 0x24(r1)
|
|
|
|
/* 80080B80 0007C9C0 39 61 00 20 */ addi r11, r1, 0x20
|
|
|
|
/* 80080B84 0007C9C4 4B F8 67 B9 */ bl lbl_8000733C
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080B88 0007C9C8 3F E0 80 4F */ lis r31, btm_cb@ha
|
|
|
|
/* 80080B8C 0007C9CC 3F C0 80 44 */ lis r30, "@2107_8043BAD0"@ha
|
|
|
|
/* 80080B90 0007C9D0 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080B94 0007C9D4 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 80080B98 0007C9D8 83 9F 05 8C */ lwz r28, 0x58c(r31)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080B9C 0007C9DC 3B DE BA D0 */ addi r30, r30, "@2107_8043BAD0"@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080BA0 0007C9E0 90 1F 05 8C */ stw r0, 0x58c(r31)
|
|
|
|
/* 80080BA4 0007C9E4 88 03 00 00 */ lbz r0, 0x0(r3)
|
|
|
|
/* 80080BA8 0007C9E8 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 80080BAC 0007C9EC 40 82 04 AC */ bne lbl_80081058
|
|
|
|
/* 80080BB0 0007C9F0 38 00 00 05 */ li r0, 0x5
|
|
|
|
/* 80080BB4 0007C9F4 38 80 00 18 */ li r4, 0x18
|
|
|
|
/* 80080BB8 0007C9F8 98 1F 06 4E */ stb r0, 0x64e(r31)
|
|
|
|
/* 80080BBC 0007C9FC 88 03 00 01 */ lbz r0, 0x1(r3)
|
|
|
|
/* 80080BC0 0007CA00 98 1F 06 40 */ stb r0, 0x640(r31)
|
|
|
|
/* 80080BC4 0007CA04 54 00 07 FF */ clrlwi. r0, r0, 31
|
|
|
|
/* 80080BC8 0007CA08 88 03 00 02 */ lbz r0, 0x2(r3)
|
|
|
|
/* 80080BCC 0007CA0C 98 1F 06 41 */ stb r0, 0x641(r31)
|
|
|
|
/* 80080BD0 0007CA10 88 03 00 03 */ lbz r0, 0x3(r3)
|
|
|
|
/* 80080BD4 0007CA14 98 1F 06 42 */ stb r0, 0x642(r31)
|
|
|
|
/* 80080BD8 0007CA18 88 03 00 04 */ lbz r0, 0x4(r3)
|
|
|
|
/* 80080BDC 0007CA1C 98 1F 06 43 */ stb r0, 0x643(r31)
|
|
|
|
/* 80080BE0 0007CA20 88 03 00 05 */ lbz r0, 0x5(r3)
|
|
|
|
/* 80080BE4 0007CA24 98 1F 06 44 */ stb r0, 0x644(r31)
|
|
|
|
/* 80080BE8 0007CA28 88 03 00 06 */ lbz r0, 0x6(r3)
|
|
|
|
/* 80080BEC 0007CA2C 98 1F 06 45 */ stb r0, 0x645(r31)
|
|
|
|
/* 80080BF0 0007CA30 88 03 00 07 */ lbz r0, 0x7(r3)
|
|
|
|
/* 80080BF4 0007CA34 98 1F 06 46 */ stb r0, 0x646(r31)
|
|
|
|
/* 80080BF8 0007CA38 88 03 00 08 */ lbz r0, 0x8(r3)
|
|
|
|
/* 80080BFC 0007CA3C 98 1F 06 47 */ stb r0, 0x647(r31)
|
|
|
|
/* 80080C00 0007CA40 B0 9F 06 54 */ sth r4, 0x654(r31)
|
|
|
|
/* 80080C04 0007CA44 41 82 00 0C */ beq lbl_80080C10
|
|
|
|
/* 80080C08 0007CA48 60 80 0C 00 */ ori r0, r4, 0xc00
|
|
|
|
/* 80080C0C 0007CA4C B0 1F 06 54 */ sth r0, 0x654(r31)
|
|
|
|
.global lbl_80080C10
|
|
|
|
lbl_80080C10:
|
|
|
|
/* 80080C10 0007CA50 88 1F 06 40 */ lbz r0, 0x640(r31)
|
|
|
|
/* 80080C14 0007CA54 54 00 07 BD */ rlwinm. r0, r0, 0, 30, 30
|
|
|
|
/* 80080C18 0007CA58 41 82 00 18 */ beq lbl_80080C30
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080C1C 0007CA5C 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080C20 0007CA60 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080C24 0007CA64 A0 03 06 54 */ lhz r0, 0x654(r3)
|
|
|
|
/* 80080C28 0007CA68 60 00 C0 00 */ ori r0, r0, 0xc000
|
|
|
|
/* 80080C2C 0007CA6C B0 03 06 54 */ sth r0, 0x654(r3)
|
|
|
|
.global lbl_80080C30
|
|
|
|
lbl_80080C30:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080C30 0007CA70 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080C34 0007CA74 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080C38 0007CA78 88 03 06 36 */ lbz r0, 0x636(r3)
|
|
|
|
/* 80080C3C 0007CA7C 28 00 00 03 */ cmplwi r0, 0x3
|
|
|
|
/* 80080C40 0007CA80 41 80 00 90 */ blt lbl_80080CD0
|
|
|
|
/* 80080C44 0007CA84 88 1F 06 43 */ lbz r0, 0x643(r31)
|
|
|
|
/* 80080C48 0007CA88 54 00 07 BD */ rlwinm. r0, r0, 0, 30, 30
|
|
|
|
/* 80080C4C 0007CA8C 40 82 00 10 */ bne lbl_80080C5C
|
|
|
|
/* 80080C50 0007CA90 A0 03 06 54 */ lhz r0, 0x654(r3)
|
|
|
|
/* 80080C54 0007CA94 60 00 11 02 */ ori r0, r0, 0x1102
|
|
|
|
/* 80080C58 0007CA98 B0 03 06 54 */ sth r0, 0x654(r3)
|
|
|
|
.global lbl_80080C5C
|
|
|
|
lbl_80080C5C:
|
|
|
|
/* 80080C5C 0007CA9C 88 1F 06 43 */ lbz r0, 0x643(r31)
|
|
|
|
/* 80080C60 0007CAA0 54 00 07 7B */ rlwinm. r0, r0, 0, 29, 29
|
|
|
|
/* 80080C64 0007CAA4 40 82 00 18 */ bne lbl_80080C7C
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080C68 0007CAA8 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080C6C 0007CAAC 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080C70 0007CAB0 A0 03 06 54 */ lhz r0, 0x654(r3)
|
|
|
|
/* 80080C74 0007CAB4 60 00 22 04 */ ori r0, r0, 0x2204
|
|
|
|
/* 80080C78 0007CAB8 B0 03 06 54 */ sth r0, 0x654(r3)
|
|
|
|
.global lbl_80080C7C
|
|
|
|
lbl_80080C7C:
|
|
|
|
/* 80080C7C 0007CABC 88 7F 06 43 */ lbz r3, 0x643(r31)
|
|
|
|
/* 80080C80 0007CAC0 54 60 07 BD */ rlwinm. r0, r3, 0, 30, 30
|
|
|
|
/* 80080C84 0007CAC4 40 82 00 0C */ bne lbl_80080C90
|
|
|
|
/* 80080C88 0007CAC8 54 60 07 7B */ rlwinm. r0, r3, 0, 29, 29
|
|
|
|
/* 80080C8C 0007CACC 41 82 00 44 */ beq lbl_80080CD0
|
|
|
|
.global lbl_80080C90
|
|
|
|
lbl_80080C90:
|
|
|
|
/* 80080C90 0007CAD0 88 1F 06 44 */ lbz r0, 0x644(r31)
|
|
|
|
/* 80080C94 0007CAD4 54 00 06 31 */ rlwinm. r0, r0, 0, 24, 24
|
|
|
|
/* 80080C98 0007CAD8 40 82 00 18 */ bne lbl_80080CB0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080C9C 0007CADC 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080CA0 0007CAE0 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080CA4 0007CAE4 A0 03 06 54 */ lhz r0, 0x654(r3)
|
|
|
|
/* 80080CA8 0007CAE8 60 00 03 00 */ ori r0, r0, 0x300
|
|
|
|
/* 80080CAC 0007CAEC B0 03 06 54 */ sth r0, 0x654(r3)
|
|
|
|
.global lbl_80080CB0
|
|
|
|
lbl_80080CB0:
|
|
|
|
/* 80080CB0 0007CAF0 88 1F 06 45 */ lbz r0, 0x645(r31)
|
|
|
|
/* 80080CB4 0007CAF4 54 00 07 FF */ clrlwi. r0, r0, 31
|
|
|
|
/* 80080CB8 0007CAF8 40 82 00 18 */ bne lbl_80080CD0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080CBC 0007CAFC 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080CC0 0007CB00 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080CC4 0007CB04 A0 03 06 54 */ lhz r0, 0x654(r3)
|
|
|
|
/* 80080CC8 0007CB08 60 00 30 00 */ ori r0, r0, 0x3000
|
|
|
|
/* 80080CCC 0007CB0C B0 03 06 54 */ sth r0, 0x654(r3)
|
|
|
|
.global lbl_80080CD0
|
|
|
|
lbl_80080CD0:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080CD0 0007CB10 3C 80 80 4F */ lis r4, btm_cb@ha
|
|
|
|
/* 80080CD4 0007CB14 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080CD8 0007CB18 88 04 27 C0 */ lbz r0, 0x27c0(r4)
|
|
|
|
/* 80080CDC 0007CB1C 28 00 00 05 */ cmplwi r0, 0x5
|
|
|
|
/* 80080CE0 0007CB20 41 80 00 18 */ blt lbl_80080CF8
|
|
|
|
/* 80080CE4 0007CB24 3C 60 00 0D */ lis r3, 0xd
|
|
|
|
/* 80080CE8 0007CB28 A0 A4 06 54 */ lhz r5, 0x654(r4)
|
|
|
|
/* 80080CEC 0007CB2C 38 63 00 04 */ addi r3, r3, 0x4
|
|
|
|
/* 80080CF0 0007CB30 38 9E 00 44 */ addi r4, r30, 0x44
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080CF4 0007CB34 4B FF 6C 6D */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80080CF8
|
|
|
|
lbl_80080CF8:
|
|
|
|
/* 80080CF8 0007CB38 88 7F 06 41 */ lbz r3, 0x641(r31)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080CFC 0007CB3C 3C 80 80 4F */ lis r4, btm_cb@ha
|
|
|
|
/* 80080D00 0007CB40 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080D04 0007CB44 38 A0 00 00 */ li r5, 0x0
|
|
|
|
/* 80080D08 0007CB48 54 60 07 39 */ rlwinm. r0, r3, 0, 28, 28
|
|
|
|
/* 80080D0C 0007CB4C B0 A4 06 56 */ sth r5, 0x656(r4)
|
|
|
|
/* 80080D10 0007CB50 98 A4 19 08 */ stb r5, 0x1908(r4)
|
|
|
|
/* 80080D14 0007CB54 41 82 00 3C */ beq lbl_80080D50
|
|
|
|
/* 80080D18 0007CB58 54 60 06 F7 */ rlwinm. r0, r3, 0, 27, 27
|
|
|
|
/* 80080D1C 0007CB5C 38 00 00 01 */ li r0, 0x1
|
|
|
|
/* 80080D20 0007CB60 B0 04 06 56 */ sth r0, 0x656(r4)
|
|
|
|
/* 80080D24 0007CB64 41 82 00 0C */ beq lbl_80080D30
|
|
|
|
/* 80080D28 0007CB68 60 00 00 02 */ ori r0, r0, 0x2
|
|
|
|
/* 80080D2C 0007CB6C B0 04 06 56 */ sth r0, 0x656(r4)
|
|
|
|
.global lbl_80080D30
|
|
|
|
lbl_80080D30:
|
|
|
|
/* 80080D30 0007CB70 88 1F 06 41 */ lbz r0, 0x641(r31)
|
|
|
|
/* 80080D34 0007CB74 54 00 06 B5 */ rlwinm. r0, r0, 0, 26, 26
|
|
|
|
/* 80080D38 0007CB78 41 82 00 18 */ beq lbl_80080D50
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080D3C 0007CB7C 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080D40 0007CB80 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080D44 0007CB84 A0 03 06 56 */ lhz r0, 0x656(r3)
|
|
|
|
/* 80080D48 0007CB88 60 00 00 04 */ ori r0, r0, 0x4
|
|
|
|
/* 80080D4C 0007CB8C B0 03 06 56 */ sth r0, 0x656(r3)
|
|
|
|
.global lbl_80080D50
|
|
|
|
lbl_80080D50:
|
|
|
|
/* 80080D50 0007CB90 88 1F 06 43 */ lbz r0, 0x643(r31)
|
|
|
|
/* 80080D54 0007CB94 54 00 06 31 */ rlwinm. r0, r0, 0, 24, 24
|
|
|
|
/* 80080D58 0007CB98 41 82 00 18 */ beq lbl_80080D70
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080D5C 0007CB9C 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080D60 0007CBA0 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080D64 0007CBA4 A0 03 06 56 */ lhz r0, 0x656(r3)
|
|
|
|
/* 80080D68 0007CBA8 60 00 00 08 */ ori r0, r0, 0x8
|
|
|
|
/* 80080D6C 0007CBAC B0 03 06 56 */ sth r0, 0x656(r3)
|
|
|
|
.global lbl_80080D70
|
|
|
|
lbl_80080D70:
|
|
|
|
/* 80080D70 0007CBB0 88 1F 06 44 */ lbz r0, 0x644(r31)
|
|
|
|
/* 80080D74 0007CBB4 54 00 07 FF */ clrlwi. r0, r0, 31
|
|
|
|
/* 80080D78 0007CBB8 41 82 00 18 */ beq lbl_80080D90
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080D7C 0007CBBC 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080D80 0007CBC0 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080D84 0007CBC4 A0 03 06 56 */ lhz r0, 0x656(r3)
|
|
|
|
/* 80080D88 0007CBC8 60 00 00 10 */ ori r0, r0, 0x10
|
|
|
|
/* 80080D8C 0007CBCC B0 03 06 56 */ sth r0, 0x656(r3)
|
|
|
|
.global lbl_80080D90
|
|
|
|
lbl_80080D90:
|
|
|
|
/* 80080D90 0007CBD0 88 1F 06 44 */ lbz r0, 0x644(r31)
|
|
|
|
/* 80080D94 0007CBD4 54 00 07 BD */ rlwinm. r0, r0, 0, 30, 30
|
|
|
|
/* 80080D98 0007CBD8 41 82 00 18 */ beq lbl_80080DB0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080D9C 0007CBDC 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080DA0 0007CBE0 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080DA4 0007CBE4 A0 03 06 56 */ lhz r0, 0x656(r3)
|
|
|
|
/* 80080DA8 0007CBE8 60 00 00 20 */ ori r0, r0, 0x20
|
|
|
|
/* 80080DAC 0007CBEC B0 03 06 56 */ sth r0, 0x656(r3)
|
|
|
|
.global lbl_80080DB0
|
|
|
|
lbl_80080DB0:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080DB0 0007CBF0 3C 80 80 4F */ lis r4, btm_cb@ha
|
|
|
|
/* 80080DB4 0007CBF4 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080DB8 0007CBF8 A0 64 06 56 */ lhz r3, 0x656(r4)
|
|
|
|
/* 80080DBC 0007CBFC 54 60 06 B9 */ rlwinm. r0, r3, 0, 26, 28
|
|
|
|
/* 80080DC0 0007CC00 41 82 00 74 */ beq lbl_80080E34
|
|
|
|
/* 80080DC4 0007CC04 88 BF 06 45 */ lbz r5, 0x645(r31)
|
|
|
|
/* 80080DC8 0007CC08 38 00 00 01 */ li r0, 0x1
|
|
|
|
/* 80080DCC 0007CC0C 98 04 19 08 */ stb r0, 0x1908(r4)
|
|
|
|
/* 80080DD0 0007CC10 54 A0 06 B5 */ rlwinm. r0, r5, 0, 26, 26
|
|
|
|
/* 80080DD4 0007CC14 41 82 00 18 */ beq lbl_80080DEC
|
|
|
|
/* 80080DD8 0007CC18 54 A0 06 31 */ rlwinm. r0, r5, 0, 24, 24
|
|
|
|
/* 80080DDC 0007CC1C 40 82 00 18 */ bne lbl_80080DF4
|
|
|
|
/* 80080DE0 0007CC20 60 60 01 00 */ ori r0, r3, 0x100
|
|
|
|
/* 80080DE4 0007CC24 B0 04 06 56 */ sth r0, 0x656(r4)
|
|
|
|
/* 80080DE8 0007CC28 48 00 00 0C */ b lbl_80080DF4
|
|
|
|
.global lbl_80080DEC
|
|
|
|
lbl_80080DEC:
|
|
|
|
/* 80080DEC 0007CC2C 60 60 01 40 */ ori r0, r3, 0x140
|
|
|
|
/* 80080DF0 0007CC30 B0 04 06 56 */ sth r0, 0x656(r4)
|
|
|
|
.global lbl_80080DF4
|
|
|
|
lbl_80080DF4:
|
|
|
|
/* 80080DF4 0007CC34 88 7F 06 45 */ lbz r3, 0x645(r31)
|
|
|
|
/* 80080DF8 0007CC38 54 60 06 73 */ rlwinm. r0, r3, 0, 25, 25
|
|
|
|
/* 80080DFC 0007CC3C 41 82 00 24 */ beq lbl_80080E20
|
|
|
|
/* 80080E00 0007CC40 54 60 06 31 */ rlwinm. r0, r3, 0, 24, 24
|
|
|
|
/* 80080E04 0007CC44 40 82 00 30 */ bne lbl_80080E34
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080E08 0007CC48 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080E0C 0007CC4C 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080E10 0007CC50 A0 03 06 56 */ lhz r0, 0x656(r3)
|
|
|
|
/* 80080E14 0007CC54 60 00 02 00 */ ori r0, r0, 0x200
|
|
|
|
/* 80080E18 0007CC58 B0 03 06 56 */ sth r0, 0x656(r3)
|
|
|
|
/* 80080E1C 0007CC5C 48 00 00 18 */ b lbl_80080E34
|
|
|
|
.global lbl_80080E20
|
|
|
|
lbl_80080E20:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080E20 0007CC60 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080E24 0007CC64 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080E28 0007CC68 A0 03 06 56 */ lhz r0, 0x656(r3)
|
|
|
|
/* 80080E2C 0007CC6C 60 00 02 80 */ ori r0, r0, 0x280
|
|
|
|
/* 80080E30 0007CC70 B0 03 06 56 */ sth r0, 0x656(r3)
|
|
|
|
.global lbl_80080E34
|
|
|
|
lbl_80080E34:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080E34 0007CC74 3C 80 80 4F */ lis r4, btm_cb@ha
|
|
|
|
/* 80080E38 0007CC78 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080E3C 0007CC7C 88 04 27 C0 */ lbz r0, 0x27c0(r4)
|
|
|
|
/* 80080E40 0007CC80 28 00 00 05 */ cmplwi r0, 0x5
|
|
|
|
/* 80080E44 0007CC84 41 80 00 18 */ blt lbl_80080E5C
|
|
|
|
/* 80080E48 0007CC88 3C 60 00 0D */ lis r3, 0xd
|
|
|
|
/* 80080E4C 0007CC8C A0 A4 06 56 */ lhz r5, 0x656(r4)
|
|
|
|
/* 80080E50 0007CC90 38 63 00 04 */ addi r3, r3, 0x4
|
|
|
|
/* 80080E54 0007CC94 38 9E 00 70 */ addi r4, r30, 0x70
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080E58 0007CC98 4B FF 6B 09 */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80080E5C
|
|
|
|
lbl_80080E5C:
|
|
|
|
/* 80080E5C 0007CC9C 88 1F 06 40 */ lbz r0, 0x640(r31)
|
|
|
|
/* 80080E60 0007CCA0 54 00 06 B5 */ rlwinm. r0, r0, 0, 26, 26
|
|
|
|
/* 80080E64 0007CCA4 41 82 00 1C */ beq lbl_80080E80
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080E68 0007CCA8 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080E6C 0007CCAC 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080E70 0007CCB0 A0 03 04 C4 */ lhz r0, 0x4c4(r3)
|
|
|
|
/* 80080E74 0007CCB4 60 00 00 01 */ ori r0, r0, 0x1
|
|
|
|
/* 80080E78 0007CCB8 B0 03 04 C4 */ sth r0, 0x4c4(r3)
|
|
|
|
/* 80080E7C 0007CCBC 48 00 00 18 */ b lbl_80080E94
|
|
|
|
.global lbl_80080E80
|
|
|
|
lbl_80080E80:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080E80 0007CCC0 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080E84 0007CCC4 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080E88 0007CCC8 A0 03 04 C4 */ lhz r0, 0x4c4(r3)
|
|
|
|
/* 80080E8C 0007CCCC 54 00 04 3C */ rlwinm r0, r0, 0, 16, 30
|
|
|
|
/* 80080E90 0007CCD0 B0 03 04 C4 */ sth r0, 0x4c4(r3)
|
|
|
|
.global lbl_80080E94
|
|
|
|
lbl_80080E94:
|
|
|
|
/* 80080E94 0007CCD4 88 1F 06 40 */ lbz r0, 0x640(r31)
|
|
|
|
/* 80080E98 0007CCD8 54 00 06 73 */ rlwinm. r0, r0, 0, 25, 25
|
|
|
|
/* 80080E9C 0007CCDC 41 82 00 1C */ beq lbl_80080EB8
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080EA0 0007CCE0 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080EA4 0007CCE4 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080EA8 0007CCE8 A0 03 04 C4 */ lhz r0, 0x4c4(r3)
|
|
|
|
/* 80080EAC 0007CCEC 60 00 00 02 */ ori r0, r0, 0x2
|
|
|
|
/* 80080EB0 0007CCF0 B0 03 04 C4 */ sth r0, 0x4c4(r3)
|
|
|
|
/* 80080EB4 0007CCF4 48 00 00 18 */ b lbl_80080ECC
|
|
|
|
.global lbl_80080EB8
|
|
|
|
lbl_80080EB8:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080EB8 0007CCF8 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080EBC 0007CCFC 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080EC0 0007CD00 A0 03 04 C4 */ lhz r0, 0x4c4(r3)
|
|
|
|
/* 80080EC4 0007CD04 54 00 07 FA */ rlwinm r0, r0, 0, 31, 29
|
|
|
|
/* 80080EC8 0007CD08 B0 03 04 C4 */ sth r0, 0x4c4(r3)
|
|
|
|
.global lbl_80080ECC
|
|
|
|
lbl_80080ECC:
|
|
|
|
/* 80080ECC 0007CD0C 88 1F 06 40 */ lbz r0, 0x640(r31)
|
|
|
|
/* 80080ED0 0007CD10 54 00 06 31 */ rlwinm. r0, r0, 0, 24, 24
|
|
|
|
/* 80080ED4 0007CD14 41 82 00 1C */ beq lbl_80080EF0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080ED8 0007CD18 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080EDC 0007CD1C 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080EE0 0007CD20 A0 03 04 C4 */ lhz r0, 0x4c4(r3)
|
|
|
|
/* 80080EE4 0007CD24 60 00 00 04 */ ori r0, r0, 0x4
|
|
|
|
/* 80080EE8 0007CD28 B0 03 04 C4 */ sth r0, 0x4c4(r3)
|
|
|
|
/* 80080EEC 0007CD2C 48 00 00 18 */ b lbl_80080F04
|
|
|
|
.global lbl_80080EF0
|
|
|
|
lbl_80080EF0:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080EF0 0007CD30 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080EF4 0007CD34 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080EF8 0007CD38 A0 03 04 C4 */ lhz r0, 0x4c4(r3)
|
|
|
|
/* 80080EFC 0007CD3C 54 00 07 B8 */ rlwinm r0, r0, 0, 30, 28
|
|
|
|
/* 80080F00 0007CD40 B0 03 04 C4 */ sth r0, 0x4c4(r3)
|
|
|
|
.global lbl_80080F04
|
|
|
|
lbl_80080F04:
|
|
|
|
/* 80080F04 0007CD44 88 1F 06 41 */ lbz r0, 0x641(r31)
|
|
|
|
/* 80080F08 0007CD48 54 00 07 FF */ clrlwi. r0, r0, 31
|
|
|
|
/* 80080F0C 0007CD4C 41 82 00 1C */ beq lbl_80080F28
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080F10 0007CD50 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080F14 0007CD54 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080F18 0007CD58 A0 03 04 C4 */ lhz r0, 0x4c4(r3)
|
|
|
|
/* 80080F1C 0007CD5C 60 00 00 08 */ ori r0, r0, 0x8
|
|
|
|
/* 80080F20 0007CD60 B0 03 04 C4 */ sth r0, 0x4c4(r3)
|
|
|
|
/* 80080F24 0007CD64 48 00 00 18 */ b lbl_80080F3C
|
|
|
|
.global lbl_80080F28
|
|
|
|
lbl_80080F28:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080F28 0007CD68 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080F2C 0007CD6C 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080F30 0007CD70 A0 03 04 C4 */ lhz r0, 0x4c4(r3)
|
|
|
|
/* 80080F34 0007CD74 54 00 07 76 */ rlwinm r0, r0, 0, 29, 27
|
|
|
|
/* 80080F38 0007CD78 B0 03 04 C4 */ sth r0, 0x4c4(r3)
|
|
|
|
.global lbl_80080F3C
|
|
|
|
lbl_80080F3C:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080F3C 0007CD7C 48 00 55 D5 */ bl btm_sec_dev_reset
|
|
|
|
/* 80080F40 0007CD80 3C 80 80 4F */ lis r4, btm_cb@ha
|
|
|
|
/* 80080F44 0007CD84 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080F48 0007CD88 8B A4 27 BE */ lbz r29, 0x27be(r4)
|
|
|
|
/* 80080F4C 0007CD8C 28 1D 00 FF */ cmplwi r29, 0xff
|
|
|
|
/* 80080F50 0007CD90 41 82 00 AC */ beq lbl_80080FFC
|
|
|
|
/* 80080F54 0007CD94 88 04 27 C0 */ lbz r0, 0x27c0(r4)
|
|
|
|
/* 80080F58 0007CD98 38 60 00 FF */ li r3, 0xff
|
|
|
|
/* 80080F5C 0007CD9C 8B 64 27 BD */ lbz r27, 0x27bd(r4)
|
|
|
|
/* 80080F60 0007CDA0 28 00 00 03 */ cmplwi r0, 0x3
|
|
|
|
/* 80080F64 0007CDA4 98 64 27 BE */ stb r3, 0x27be(r4)
|
|
|
|
/* 80080F68 0007CDA8 98 64 27 BD */ stb r3, 0x27bd(r4)
|
|
|
|
/* 80080F6C 0007CDAC 41 80 00 24 */ blt lbl_80080F90
|
|
|
|
/* 80080F70 0007CDB0 3C 60 00 0D */ lis r3, 0xd
|
|
|
|
/* 80080F74 0007CDB4 7F 65 DB 78 */ mr r5, r27
|
|
|
|
/* 80080F78 0007CDB8 7F A7 EB 78 */ mr r7, r29
|
|
|
|
/* 80080F7C 0007CDBC 38 9E 00 00 */ addi r4, r30, 0x0
|
|
|
|
/* 80080F80 0007CDC0 38 63 00 02 */ addi r3, r3, 0x2
|
|
|
|
/* 80080F84 0007CDC4 38 C0 00 FF */ li r6, 0xff
|
|
|
|
/* 80080F88 0007CDC8 39 00 00 FF */ li r8, 0xff
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080F8C 0007CDCC 4B FF 69 D5 */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80080F90
|
|
|
|
lbl_80080F90:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080F90 0007CDD0 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080F94 0007CDD4 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080F98 0007CDD8 88 83 06 45 */ lbz r4, 0x645(r3)
|
|
|
|
/* 80080F9C 0007CDDC 54 80 07 39 */ rlwinm. r0, r4, 0, 28, 28
|
|
|
|
/* 80080FA0 0007CDE0 40 82 00 18 */ bne lbl_80080FB8
|
|
|
|
/* 80080FA4 0007CDE4 88 03 06 44 */ lbz r0, 0x644(r3)
|
|
|
|
/* 80080FA8 0007CDE8 54 00 06 F7 */ rlwinm. r0, r0, 0, 27, 27
|
|
|
|
/* 80080FAC 0007CDEC 40 82 00 0C */ bne lbl_80080FB8
|
|
|
|
/* 80080FB0 0007CDF0 54 80 06 F7 */ rlwinm. r0, r4, 0, 27, 27
|
|
|
|
/* 80080FB4 0007CDF4 41 82 00 48 */ beq lbl_80080FFC
|
|
|
|
.global lbl_80080FB8
|
|
|
|
lbl_80080FB8:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080FB8 0007CDF8 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080FBC 0007CDFC 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080FC0 0007CE00 88 03 27 BD */ lbz r0, 0x27bd(r3)
|
|
|
|
/* 80080FC4 0007CE04 7C 00 D8 40 */ cmplw r0, r27
|
|
|
|
/* 80080FC8 0007CE08 40 82 00 10 */ bne lbl_80080FD8
|
|
|
|
/* 80080FCC 0007CE0C 88 03 27 BE */ lbz r0, 0x27be(r3)
|
|
|
|
/* 80080FD0 0007CE10 7C 00 E8 40 */ cmplw r0, r29
|
|
|
|
/* 80080FD4 0007CE14 41 82 00 28 */ beq lbl_80080FFC
|
|
|
|
.global lbl_80080FD8
|
|
|
|
lbl_80080FD8:
|
|
|
|
/* 80080FD8 0007CE18 7F 63 DB 78 */ mr r3, r27
|
|
|
|
/* 80080FDC 0007CE1C 7F A4 EB 78 */ mr r4, r29
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080FE0 0007CE20 48 00 B9 31 */ bl btsnd_hcic_set_afh_channels
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080FE4 0007CE24 54 60 06 3F */ clrlwi. r0, r3, 24
|
|
|
|
/* 80080FE8 0007CE28 41 82 00 14 */ beq lbl_80080FFC
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80080FEC 0007CE2C 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80080FF0 0007CE30 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80080FF4 0007CE34 9B 63 27 BD */ stb r27, 0x27bd(r3)
|
|
|
|
/* 80080FF8 0007CE38 9B A3 27 BE */ stb r29, 0x27be(r3)
|
|
|
|
.global lbl_80080FFC
|
|
|
|
lbl_80080FFC:
|
|
|
|
/* 80080FFC 0007CE3C 88 1F 06 43 */ lbz r0, 0x643(r31)
|
|
|
|
/* 80081000 0007CE40 54 00 06 73 */ rlwinm. r0, r0, 0, 25, 25
|
|
|
|
/* 80081004 0007CE44 41 82 00 0C */ beq lbl_80081010
|
|
|
|
/* 80081008 0007CE48 38 60 00 01 */ li r3, 0x1
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008100C 0007CE4C 48 00 10 85 */ bl BTM_SetInquiryMode
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80081010
|
|
|
|
lbl_80081010:
|
|
|
|
/* 80081010 0007CE50 38 60 00 01 */ li r3, 0x1
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081014 0007CE54 48 00 0F CD */ bl BTM_SetPageScanType
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081018 0007CE58 38 60 00 01 */ li r3, 0x1
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008101C 0007CE5C 48 00 0F 15 */ bl BTM_SetInquiryScanType
|
|
|
|
/* 80081020 0007CE60 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80081024 0007CE64 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081028 0007CE68 81 83 05 68 */ lwz r12, 0x568(r3)
|
|
|
|
/* 8008102C 0007CE6C 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 80081030 0007CE70 41 82 00 10 */ beq lbl_80081040
|
|
|
|
/* 80081034 0007CE74 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 80081038 0007CE78 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 8008103C 0007CE7C 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_80081040
|
|
|
|
lbl_80081040:
|
|
|
|
/* 80081040 0007CE80 2C 1C 00 00 */ cmpwi r28, 0x0
|
|
|
|
/* 80081044 0007CE84 41 82 00 14 */ beq lbl_80081058
|
|
|
|
/* 80081048 0007CE88 7F 8C E3 78 */ mr r12, r28
|
|
|
|
/* 8008104C 0007CE8C 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 80081050 0007CE90 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80081054 0007CE94 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_80081058
|
|
|
|
lbl_80081058:
|
|
|
|
/* 80081058 0007CE98 39 61 00 20 */ addi r11, r1, 0x20
|
|
|
|
/* 8008105C 0007CE9C 4B F8 63 2D */ bl lbl_80007388
|
|
|
|
/* 80081060 0007CEA0 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
|
|
/* 80081064 0007CEA4 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80081068 0007CEA8 38 21 00 20 */ addi r1, r1, 0x20
|
|
|
|
/* 8008106C 0007CEAC 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_SetLocalDeviceName
|
|
|
|
BTM_SetLocalDeviceName:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081070 0007CEB0 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
|
|
/* 80081074 0007CEB4 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 80081078 0007CEB8 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 8008107C 0007CEBC 90 01 00 24 */ stw r0, 0x24(r1)
|
|
|
|
/* 80081080 0007CEC0 93 E1 00 1C */ stw r31, 0x1c(r1)
|
|
|
|
/* 80081084 0007CEC4 93 C1 00 18 */ stw r30, 0x18(r1)
|
|
|
|
/* 80081088 0007CEC8 93 A1 00 14 */ stw r29, 0x14(r1)
|
|
|
|
/* 8008108C 0007CECC 7C 7D 1B 78 */ mr r29, r3
|
|
|
|
/* 80081090 0007CED0 40 82 00 0C */ bne lbl_8008109C
|
|
|
|
/* 80081094 0007CED4 38 60 00 05 */ li r3, 0x5
|
|
|
|
/* 80081098 0007CED8 48 00 00 74 */ b lbl_8008110C
|
|
|
|
.global lbl_8008109C
|
|
|
|
lbl_8008109C:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008109C 0007CEDC 3F C0 80 4F */ lis r30, btm_cb@ha
|
|
|
|
/* 800810A0 0007CEE0 3B DE 5F 58 */ addi r30, r30, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800810A4 0007CEE4 88 1E 06 4E */ lbz r0, 0x64e(r30)
|
|
|
|
/* 800810A8 0007CEE8 28 00 00 01 */ cmplwi r0, 0x1
|
|
|
|
/* 800810AC 0007CEEC 41 81 00 0C */ bgt lbl_800810B8
|
|
|
|
/* 800810B0 0007CEF0 38 60 00 0C */ li r3, 0xc
|
|
|
|
/* 800810B4 0007CEF4 48 00 00 58 */ b lbl_8008110C
|
|
|
|
.global lbl_800810B8
|
|
|
|
lbl_800810B8:
|
|
|
|
/* 800810B8 0007CEF8 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800810BC 0007CEFC 4B FF 3D 65 */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800810C0 0007CF00 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 800810C4 0007CF04 7C 7F 1B 78 */ mr r31, r3
|
|
|
|
/* 800810C8 0007CF08 41 82 00 40 */ beq lbl_80081108
|
|
|
|
/* 800810CC 0007CF0C 7C 1E E8 40 */ cmplw r30, r29
|
|
|
|
/* 800810D0 0007CF10 41 82 00 24 */ beq lbl_800810F4
|
|
|
|
/* 800810D4 0007CF14 7F C3 F3 78 */ mr r3, r30
|
|
|
|
/* 800810D8 0007CF18 38 80 00 00 */ li r4, 0x0
|
|
|
|
/* 800810DC 0007CF1C 38 A0 00 20 */ li r5, 0x20
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800810E0 0007CF20 4B F8 32 71 */ bl memset
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800810E4 0007CF24 7F C3 F3 78 */ mr r3, r30
|
|
|
|
/* 800810E8 0007CF28 7F A4 EB 78 */ mr r4, r29
|
|
|
|
/* 800810EC 0007CF2C 38 A0 00 1F */ li r5, 0x1f
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800810F0 0007CF30 4B F8 C9 91 */ bl strncpy
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_800810F4
|
|
|
|
lbl_800810F4:
|
|
|
|
/* 800810F4 0007CF34 7F E3 FB 78 */ mr r3, r31
|
|
|
|
/* 800810F8 0007CF38 7F C4 F3 78 */ mr r4, r30
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800810FC 0007CF3C 48 00 B0 7D */ bl btsnd_hcic_change_name
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081100 0007CF40 38 60 00 01 */ li r3, 0x1
|
|
|
|
/* 80081104 0007CF44 48 00 00 08 */ b lbl_8008110C
|
|
|
|
.global lbl_80081108
|
|
|
|
lbl_80081108:
|
|
|
|
/* 80081108 0007CF48 38 60 00 03 */ li r3, 0x3
|
|
|
|
.global lbl_8008110C
|
|
|
|
lbl_8008110C:
|
|
|
|
/* 8008110C 0007CF4C 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
|
|
/* 80081110 0007CF50 83 E1 00 1C */ lwz r31, 0x1c(r1)
|
|
|
|
/* 80081114 0007CF54 83 C1 00 18 */ lwz r30, 0x18(r1)
|
|
|
|
/* 80081118 0007CF58 83 A1 00 14 */ lwz r29, 0x14(r1)
|
|
|
|
/* 8008111C 0007CF5C 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80081120 0007CF60 38 21 00 20 */ addi r1, r1, 0x20
|
|
|
|
/* 80081124 0007CF64 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_read_local_name_complete
|
|
|
|
btm_read_local_name_complete:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081128 0007CF68 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
|
|
/* 8008112C 0007CF6C 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 80081130 0007CF70 90 01 00 24 */ stw r0, 0x24(r1)
|
|
|
|
/* 80081134 0007CF74 93 E1 00 1C */ stw r31, 0x1c(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081138 0007CF78 3F E0 80 4F */ lis r31, btm_cb@ha
|
|
|
|
/* 8008113C 0007CF7C 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081140 0007CF80 93 C1 00 18 */ stw r30, 0x18(r1)
|
|
|
|
/* 80081144 0007CF84 93 A1 00 14 */ stw r29, 0x14(r1)
|
|
|
|
/* 80081148 0007CF88 7C 7D 1B 78 */ mr r29, r3
|
|
|
|
/* 8008114C 0007CF8C 38 7F 05 90 */ addi r3, r31, 0x590
|
|
|
|
/* 80081150 0007CF90 83 DF 05 A8 */ lwz r30, 0x5a8(r31)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081154 0007CF94 4B FF 6D CD */ bl btu_stop_timer
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081158 0007CF98 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 8008115C 0007CF9C 2C 1E 00 00 */ cmpwi r30, 0x0
|
|
|
|
/* 80081160 0007CFA0 90 1F 05 A8 */ stw r0, 0x5a8(r31)
|
|
|
|
/* 80081164 0007CFA4 41 82 00 34 */ beq lbl_80081198
|
|
|
|
/* 80081168 0007CFA8 88 1D 00 00 */ lbz r0, 0x0(r29)
|
|
|
|
/* 8008116C 0007CFAC 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 80081170 0007CFB0 40 82 00 18 */ bne lbl_80081188
|
|
|
|
/* 80081174 0007CFB4 7F CC F3 78 */ mr r12, r30
|
|
|
|
/* 80081178 0007CFB8 38 7D 00 01 */ addi r3, r29, 0x1
|
|
|
|
/* 8008117C 0007CFBC 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80081180 0007CFC0 4E 80 04 21 */ bctrl
|
|
|
|
/* 80081184 0007CFC4 48 00 00 14 */ b lbl_80081198
|
|
|
|
.global lbl_80081188
|
|
|
|
lbl_80081188:
|
|
|
|
/* 80081188 0007CFC8 7F CC F3 78 */ mr r12, r30
|
|
|
|
/* 8008118C 0007CFCC 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 80081190 0007CFD0 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80081194 0007CFD4 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_80081198
|
|
|
|
lbl_80081198:
|
|
|
|
/* 80081198 0007CFD8 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
|
|
/* 8008119C 0007CFDC 83 E1 00 1C */ lwz r31, 0x1c(r1)
|
|
|
|
/* 800811A0 0007CFE0 83 C1 00 18 */ lwz r30, 0x18(r1)
|
|
|
|
/* 800811A4 0007CFE4 83 A1 00 14 */ lwz r29, 0x14(r1)
|
|
|
|
/* 800811A8 0007CFE8 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 800811AC 0007CFEC 38 21 00 20 */ addi r1, r1, 0x20
|
|
|
|
/* 800811B0 0007CFF0 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_ReadLocalDeviceAddr
|
|
|
|
BTM_ReadLocalDeviceAddr:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800811B4 0007CFF4 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 800811B8 0007CFF8 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 800811BC 0007CFFC 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 800811C0 0007D000 90 01 00 14 */ stw r0, 0x14(r1)
|
|
|
|
/* 800811C4 0007D004 41 82 00 1C */ beq lbl_800811E0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800811C8 0007D008 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800811CC 0007D00C 7C 6C 1B 78 */ mr r12, r3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800811D0 0007D010 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800811D4 0007D014 38 64 06 30 */ addi r3, r4, 0x630
|
|
|
|
/* 800811D8 0007D018 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 800811DC 0007D01C 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_800811E0
|
|
|
|
lbl_800811E0:
|
|
|
|
/* 800811E0 0007D020 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 800811E4 0007D024 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 800811E8 0007D028 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 800811EC 0007D02C 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 800811F0 0007D030 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_read_local_addr_complete
|
|
|
|
btm_read_local_addr_complete:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800811F4 0007D034 88 03 00 00 */ lbz r0, 0x0(r3)
|
|
|
|
/* 800811F8 0007D038 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 800811FC 0007D03C 4C 82 00 20 */ bnelr
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081200 0007D040 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081204 0007D044 88 03 00 01 */ lbz r0, 0x1(r3)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081208 0007D048 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008120C 0007D04C 98 04 06 35 */ stb r0, 0x635(r4)
|
|
|
|
/* 80081210 0007D050 88 03 00 02 */ lbz r0, 0x2(r3)
|
|
|
|
/* 80081214 0007D054 98 04 06 34 */ stb r0, 0x634(r4)
|
|
|
|
/* 80081218 0007D058 88 03 00 03 */ lbz r0, 0x3(r3)
|
|
|
|
/* 8008121C 0007D05C 98 04 06 33 */ stb r0, 0x633(r4)
|
|
|
|
/* 80081220 0007D060 88 03 00 04 */ lbz r0, 0x4(r3)
|
|
|
|
/* 80081224 0007D064 98 04 06 32 */ stb r0, 0x632(r4)
|
|
|
|
/* 80081228 0007D068 88 03 00 05 */ lbz r0, 0x5(r3)
|
|
|
|
/* 8008122C 0007D06C 98 04 06 31 */ stb r0, 0x631(r4)
|
|
|
|
/* 80081230 0007D070 88 03 00 06 */ lbz r0, 0x6(r3)
|
|
|
|
/* 80081234 0007D074 98 04 06 30 */ stb r0, 0x630(r4)
|
|
|
|
/* 80081238 0007D078 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_ReadLocalVersion
|
|
|
|
BTM_ReadLocalVersion:
|
|
|
|
/* 8008123C 0007D07C 3C A0 80 4F */ lis r5, btm_cb@ha
|
|
|
|
/* 80081240 0007D080 38 A5 5F 58 */ addi r5, r5, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081244 0007D084 88 05 06 4E */ lbz r0, 0x64e(r5)
|
|
|
|
/* 80081248 0007D088 28 00 00 04 */ cmplwi r0, 0x4
|
|
|
|
/* 8008124C 0007D08C 40 80 00 0C */ bge lbl_80081258
|
|
|
|
/* 80081250 0007D090 38 60 00 0C */ li r3, 0xc
|
|
|
|
/* 80081254 0007D094 4E 80 00 20 */ blr
|
|
|
|
.global lbl_80081258
|
|
|
|
lbl_80081258:
|
|
|
|
/* 80081258 0007D098 A0 85 06 36 */ lhz r4, 0x636(r5)
|
|
|
|
/* 8008125C 0007D09C A0 05 06 38 */ lhz r0, 0x638(r5)
|
|
|
|
/* 80081260 0007D0A0 B0 83 00 00 */ sth r4, 0x0(r3)
|
|
|
|
/* 80081264 0007D0A4 B0 03 00 02 */ sth r0, 0x2(r3)
|
|
|
|
/* 80081268 0007D0A8 A0 85 06 3A */ lhz r4, 0x63a(r5)
|
|
|
|
/* 8008126C 0007D0AC A0 05 06 3C */ lhz r0, 0x63c(r5)
|
|
|
|
/* 80081270 0007D0B0 B0 83 00 04 */ sth r4, 0x4(r3)
|
|
|
|
/* 80081274 0007D0B4 B0 03 00 06 */ sth r0, 0x6(r3)
|
|
|
|
/* 80081278 0007D0B8 A0 05 06 3E */ lhz r0, 0x63e(r5)
|
|
|
|
/* 8008127C 0007D0BC B0 03 00 08 */ sth r0, 0x8(r3)
|
|
|
|
/* 80081280 0007D0C0 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 80081284 0007D0C4 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_SetDeviceClass
|
|
|
|
BTM_SetDeviceClass:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081288 0007D0C8 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 8008128C 0007D0CC 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 80081290 0007D0D0 38 A0 00 03 */ li r5, 0x3
|
|
|
|
/* 80081294 0007D0D4 90 01 00 14 */ stw r0, 0x14(r1)
|
|
|
|
/* 80081298 0007D0D8 93 E1 00 0C */ stw r31, 0xc(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008129C 0007D0DC 3F E0 80 4F */ lis r31, btm_cb@ha
|
|
|
|
/* 800812A0 0007D0E0 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800812A4 0007D0E4 93 C1 00 08 */ stw r30, 0x8(r1)
|
|
|
|
/* 800812A8 0007D0E8 7C 7E 1B 78 */ mr r30, r3
|
|
|
|
/* 800812AC 0007D0EC 7F C4 F3 78 */ mr r4, r30
|
|
|
|
/* 800812B0 0007D0F0 38 7F 06 48 */ addi r3, r31, 0x648
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800812B4 0007D0F4 4B F8 2D 4D */ bl memcpy
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800812B8 0007D0F8 88 1F 06 4E */ lbz r0, 0x64e(r31)
|
|
|
|
/* 800812BC 0007D0FC 28 00 00 01 */ cmplwi r0, 0x1
|
|
|
|
/* 800812C0 0007D100 41 81 00 0C */ bgt lbl_800812CC
|
|
|
|
/* 800812C4 0007D104 38 60 00 0C */ li r3, 0xc
|
|
|
|
/* 800812C8 0007D108 48 00 00 28 */ b lbl_800812F0
|
|
|
|
.global lbl_800812CC
|
|
|
|
lbl_800812CC:
|
|
|
|
/* 800812CC 0007D10C 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800812D0 0007D110 4B FF 3B 51 */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800812D4 0007D114 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 800812D8 0007D118 41 82 00 14 */ beq lbl_800812EC
|
|
|
|
/* 800812DC 0007D11C 7F C4 F3 78 */ mr r4, r30
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800812E0 0007D120 48 00 B1 B1 */ bl btsnd_hcic_write_dev_class
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800812E4 0007D124 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 800812E8 0007D128 48 00 00 08 */ b lbl_800812F0
|
|
|
|
.global lbl_800812EC
|
|
|
|
lbl_800812EC:
|
|
|
|
/* 800812EC 0007D12C 38 60 00 03 */ li r3, 0x3
|
|
|
|
.global lbl_800812F0
|
|
|
|
lbl_800812F0:
|
|
|
|
/* 800812F0 0007D130 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 800812F4 0007D134 83 E1 00 0C */ lwz r31, 0xc(r1)
|
|
|
|
/* 800812F8 0007D138 83 C1 00 08 */ lwz r30, 0x8(r1)
|
|
|
|
/* 800812FC 0007D13C 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80081300 0007D140 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80081304 0007D144 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_ReadDeviceClass
|
|
|
|
BTM_ReadDeviceClass:
|
|
|
|
/* 80081308 0007D148 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 8008130C 0007D14C 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081310 0007D150 38 63 06 48 */ addi r3, r3, 0x648
|
|
|
|
/* 80081314 0007D154 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_ReadLocalFeatures
|
|
|
|
BTM_ReadLocalFeatures:
|
|
|
|
/* 80081318 0007D158 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 8008131C 0007D15C 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081320 0007D160 38 63 06 40 */ addi r3, r3, 0x640
|
|
|
|
/* 80081324 0007D164 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_RegisterForDeviceStatusNotif
|
|
|
|
BTM_RegisterForDeviceStatusNotif:
|
|
|
|
/* 80081328 0007D168 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008132C 0007D16C 7C 60 1B 78 */ mr r0, r3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081330 0007D170 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081334 0007D174 80 64 05 68 */ lwz r3, 0x568(r4)
|
|
|
|
/* 80081338 0007D178 90 04 05 68 */ stw r0, 0x568(r4)
|
|
|
|
/* 8008133C 0007D17C 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_VendorSpecificCommand
|
|
|
|
BTM_VendorSpecificCommand:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081340 0007D180 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
|
|
/* 80081344 0007D184 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 80081348 0007D188 90 01 00 24 */ stw r0, 0x24(r1)
|
|
|
|
/* 8008134C 0007D18C 39 61 00 20 */ addi r11, r1, 0x20
|
|
|
|
/* 80081350 0007D190 4B F8 5F ED */ bl lbl_8000733C
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081354 0007D194 3C E0 80 4F */ lis r7, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081358 0007D198 7C 7B 1B 78 */ mr r27, r3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008135C 0007D19C 38 E7 5F 58 */ addi r7, r7, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081360 0007D1A0 7C 9C 23 78 */ mr r28, r4
|
|
|
|
/* 80081364 0007D1A4 88 07 27 C0 */ lbz r0, 0x27c0(r7)
|
|
|
|
/* 80081368 0007D1A8 7C BD 2B 78 */ mr r29, r5
|
|
|
|
/* 8008136C 0007D1AC 7C DE 33 78 */ mr r30, r6
|
|
|
|
/* 80081370 0007D1B0 28 00 00 04 */ cmplwi r0, 0x4
|
|
|
|
/* 80081374 0007D1B4 41 80 00 20 */ blt lbl_80081394
|
|
|
|
/* 80081378 0007D1B8 3C 60 00 0D */ lis r3, 0xd
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008137C 0007D1BC 3C 80 80 44 */ lis r4, "@2316"@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081380 0007D1C0 7F 65 DB 78 */ mr r5, r27
|
|
|
|
/* 80081384 0007D1C4 7F 86 E3 78 */ mr r6, r28
|
|
|
|
/* 80081388 0007D1C8 38 63 00 03 */ addi r3, r3, 0x3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008138C 0007D1CC 38 84 BB 6C */ addi r4, r4, "@2316"@l
|
|
|
|
/* 80081390 0007D1D0 4B FF 65 D1 */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80081394
|
|
|
|
lbl_80081394:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081394 0007D1D4 3F E0 80 4F */ lis r31, btm_cb@ha
|
|
|
|
/* 80081398 0007D1D8 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008139C 0007D1DC 88 1F 06 50 */ lbz r0, 0x650(r31)
|
|
|
|
/* 800813A0 0007D1E0 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 800813A4 0007D1E4 41 82 00 2C */ beq lbl_800813D0
|
|
|
|
/* 800813A8 0007D1E8 88 1F 27 C0 */ lbz r0, 0x27c0(r31)
|
|
|
|
/* 800813AC 0007D1EC 28 00 00 04 */ cmplwi r0, 0x4
|
|
|
|
/* 800813B0 0007D1F0 41 80 00 18 */ blt lbl_800813C8
|
|
|
|
/* 800813B4 0007D1F4 3C 60 00 0D */ lis r3, 0xd
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800813B8 0007D1F8 3C 80 80 44 */ lis r4, "@2317"@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800813BC 0007D1FC 38 63 00 03 */ addi r3, r3, 0x3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800813C0 0007D200 38 84 BB AC */ addi r4, r4, "@2317"@l
|
|
|
|
/* 800813C4 0007D204 4B FF 65 9D */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_800813C8
|
|
|
|
lbl_800813C8:
|
|
|
|
/* 800813C8 0007D208 38 60 00 02 */ li r3, 0x2
|
|
|
|
/* 800813CC 0007D20C 48 00 00 58 */ b lbl_80081424
|
|
|
|
.global lbl_800813D0
|
|
|
|
lbl_800813D0:
|
|
|
|
/* 800813D0 0007D210 38 1C 00 0B */ addi r0, r28, 0xb
|
|
|
|
/* 800813D4 0007D214 54 03 04 3E */ clrlwi r3, r0, 16
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800813D8 0007D218 4B FF 38 A9 */ bl GKI_getbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800813DC 0007D21C 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 800813E0 0007D220 41 82 00 40 */ beq lbl_80081420
|
|
|
|
/* 800813E4 0007D224 2C 1E 00 00 */ cmpwi r30, 0x0
|
|
|
|
/* 800813E8 0007D228 93 DF 06 1C */ stw r30, 0x61c(r31)
|
|
|
|
/* 800813EC 0007D22C 41 82 00 0C */ beq lbl_800813F8
|
|
|
|
/* 800813F0 0007D230 38 00 00 01 */ li r0, 0x1
|
|
|
|
/* 800813F4 0007D234 98 1F 06 50 */ stb r0, 0x650(r31)
|
|
|
|
.global lbl_800813F8
|
|
|
|
lbl_800813F8:
|
|
|
|
/* 800813F8 0007D238 7F 64 DB 78 */ mr r4, r27
|
|
|
|
/* 800813FC 0007D23C 7F 85 E3 78 */ mr r5, r28
|
|
|
|
/* 80081400 0007D240 7F A6 EB 78 */ mr r6, r29
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081404 0007D244 48 00 B9 BD */ bl btsnd_hcic_vendor_spec_cmd
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081408 0007D248 2C 1E 00 00 */ cmpwi r30, 0x0
|
|
|
|
/* 8008140C 0007D24C 41 82 00 0C */ beq lbl_80081418
|
|
|
|
/* 80081410 0007D250 38 60 00 01 */ li r3, 0x1
|
|
|
|
/* 80081414 0007D254 48 00 00 10 */ b lbl_80081424
|
|
|
|
.global lbl_80081418
|
|
|
|
lbl_80081418:
|
|
|
|
/* 80081418 0007D258 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 8008141C 0007D25C 48 00 00 08 */ b lbl_80081424
|
|
|
|
.global lbl_80081420
|
|
|
|
lbl_80081420:
|
|
|
|
/* 80081420 0007D260 38 60 00 03 */ li r3, 0x3
|
|
|
|
.global lbl_80081424
|
|
|
|
lbl_80081424:
|
|
|
|
/* 80081424 0007D264 39 61 00 20 */ addi r11, r1, 0x20
|
|
|
|
/* 80081428 0007D268 4B F8 5F 61 */ bl lbl_80007388
|
|
|
|
/* 8008142C 0007D26C 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
|
|
/* 80081430 0007D270 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80081434 0007D274 38 21 00 20 */ addi r1, r1, 0x20
|
|
|
|
/* 80081438 0007D278 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_vsc_complete
|
|
|
|
btm_vsc_complete:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008143C 0007D27C 94 21 FE E0 */ stwu r1, -0x120(r1)
|
|
|
|
/* 80081440 0007D280 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081444 0007D284 3C C0 80 4F */ lis r6, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081448 0007D288 7C 67 1B 78 */ mr r7, r3
|
|
|
|
/* 8008144C 0007D28C 90 01 01 24 */ stw r0, 0x124(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081450 0007D290 38 C6 5F 58 */ addi r6, r6, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081454 0007D294 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 80081458 0007D298 38 61 00 0C */ addi r3, r1, 0xc
|
|
|
|
/* 8008145C 0007D29C 93 E1 01 1C */ stw r31, 0x11c(r1)
|
|
|
|
/* 80081460 0007D2A0 83 E6 06 1C */ lwz r31, 0x61c(r6)
|
|
|
|
/* 80081464 0007D2A4 98 06 06 50 */ stb r0, 0x650(r6)
|
|
|
|
/* 80081468 0007D2A8 2C 1F 00 00 */ cmpwi r31, 0x0
|
|
|
|
/* 8008146C 0007D2AC 90 06 06 1C */ stw r0, 0x61c(r6)
|
|
|
|
/* 80081470 0007D2B0 41 82 00 24 */ beq lbl_80081494
|
|
|
|
/* 80081474 0007D2B4 B0 81 00 08 */ sth r4, 0x8(r1)
|
|
|
|
/* 80081478 0007D2B8 7C E4 3B 78 */ mr r4, r7
|
|
|
|
/* 8008147C 0007D2BC B0 A1 00 0A */ sth r5, 0xa(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081480 0007D2C0 4B F8 2B 81 */ bl memcpy
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081484 0007D2C4 7F EC FB 78 */ mr r12, r31
|
|
|
|
/* 80081488 0007D2C8 38 61 00 08 */ addi r3, r1, 0x8
|
|
|
|
/* 8008148C 0007D2CC 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80081490 0007D2D0 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_80081494
|
|
|
|
lbl_80081494:
|
|
|
|
/* 80081494 0007D2D4 80 01 01 24 */ lwz r0, 0x124(r1)
|
|
|
|
/* 80081498 0007D2D8 83 E1 01 1C */ lwz r31, 0x11c(r1)
|
|
|
|
/* 8008149C 0007D2DC 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 800814A0 0007D2E0 38 21 01 20 */ addi r1, r1, 0x120
|
|
|
|
/* 800814A4 0007D2E4 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_RegisterForVSEvents
|
|
|
|
BTM_RegisterForVSEvents:
|
|
|
|
/* 800814A8 0007D2E8 3C 80 80 4F */ lis r4, btm_cb@ha
|
|
|
|
/* 800814AC 0007D2EC 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800814B0 0007D2F0 80 04 05 6C */ lwz r0, 0x56c(r4)
|
|
|
|
/* 800814B4 0007D2F4 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 800814B8 0007D2F8 41 82 00 14 */ beq lbl_800814CC
|
|
|
|
/* 800814BC 0007D2FC 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 800814C0 0007D300 41 82 00 0C */ beq lbl_800814CC
|
|
|
|
/* 800814C4 0007D304 38 60 00 02 */ li r3, 0x2
|
|
|
|
/* 800814C8 0007D308 4E 80 00 20 */ blr
|
|
|
|
.global lbl_800814CC
|
|
|
|
lbl_800814CC:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800814CC 0007D30C 3C 80 80 4F */ lis r4, btm_cb@ha
|
|
|
|
/* 800814D0 0007D310 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800814D4 0007D314 90 64 05 6C */ stw r3, 0x56c(r4)
|
|
|
|
/* 800814D8 0007D318 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 800814DC 0007D31C 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_vendor_specific_evt
|
|
|
|
btm_vendor_specific_evt:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800814E0 0007D320 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
|
|
/* 800814E4 0007D324 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 800814E8 0007D328 90 01 00 24 */ stw r0, 0x24(r1)
|
|
|
|
/* 800814EC 0007D32C 93 E1 00 1C */ stw r31, 0x1c(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800814F0 0007D330 3F E0 80 4F */ lis r31, btm_cb@ha
|
|
|
|
/* 800814F4 0007D334 3B FF 5F 58 */ addi r31, r31, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800814F8 0007D338 93 C1 00 18 */ stw r30, 0x18(r1)
|
|
|
|
/* 800814FC 0007D33C 7C 9E 23 78 */ mr r30, r4
|
|
|
|
/* 80081500 0007D340 93 A1 00 14 */ stw r29, 0x14(r1)
|
|
|
|
/* 80081504 0007D344 7C 7D 1B 78 */ mr r29, r3
|
|
|
|
/* 80081508 0007D348 A0 1F 06 3C */ lhz r0, 0x63c(r31)
|
|
|
|
/* 8008150C 0007D34C 28 00 00 12 */ cmplwi r0, 0x12
|
|
|
|
/* 80081510 0007D350 41 82 00 24 */ beq lbl_80081534
|
|
|
|
/* 80081514 0007D354 88 1F 27 C0 */ lbz r0, 0x27c0(r31)
|
|
|
|
/* 80081518 0007D358 28 00 00 04 */ cmplwi r0, 0x4
|
|
|
|
/* 8008151C 0007D35C 41 80 00 18 */ blt lbl_80081534
|
|
|
|
/* 80081520 0007D360 3C 60 00 0D */ lis r3, 0xd
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081524 0007D364 3C 80 80 44 */ lis r4, "@2332"@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081528 0007D368 38 63 00 03 */ addi r3, r3, 0x3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008152C 0007D36C 38 84 BB F0 */ addi r4, r4, "@2332"@l
|
|
|
|
/* 80081530 0007D370 4B FF 64 31 */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80081534
|
|
|
|
lbl_80081534:
|
|
|
|
/* 80081534 0007D374 81 9F 05 6C */ lwz r12, 0x56c(r31)
|
|
|
|
/* 80081538 0007D378 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 8008153C 0007D37C 90 1F 06 1C */ stw r0, 0x61c(r31)
|
|
|
|
/* 80081540 0007D380 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 80081544 0007D384 98 1F 06 50 */ stb r0, 0x650(r31)
|
|
|
|
/* 80081548 0007D388 41 82 00 14 */ beq lbl_8008155C
|
|
|
|
/* 8008154C 0007D38C 7F C3 F3 78 */ mr r3, r30
|
|
|
|
/* 80081550 0007D390 7F A4 EB 78 */ mr r4, r29
|
|
|
|
/* 80081554 0007D394 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80081558 0007D398 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_8008155C
|
|
|
|
lbl_8008155C:
|
|
|
|
/* 8008155C 0007D39C 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
|
|
/* 80081560 0007D3A0 83 E1 00 1C */ lwz r31, 0x1c(r1)
|
|
|
|
/* 80081564 0007D3A4 83 C1 00 18 */ lwz r30, 0x18(r1)
|
|
|
|
/* 80081568 0007D3A8 83 A1 00 14 */ lwz r29, 0x14(r1)
|
|
|
|
/* 8008156C 0007D3AC 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80081570 0007D3B0 38 21 00 20 */ addi r1, r1, 0x20
|
|
|
|
/* 80081574 0007D3B4 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_WritePageTimeout
|
|
|
|
BTM_WritePageTimeout:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081578 0007D3B8 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 8008157C 0007D3BC 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081580 0007D3C0 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081584 0007D3C4 90 01 00 14 */ stw r0, 0x14(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081588 0007D3C8 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008158C 0007D3CC 93 E1 00 0C */ stw r31, 0xc(r1)
|
|
|
|
/* 80081590 0007D3D0 7C 7F 1B 78 */ mr r31, r3
|
|
|
|
/* 80081594 0007D3D4 88 04 27 C0 */ lbz r0, 0x27c0(r4)
|
|
|
|
/* 80081598 0007D3D8 28 00 00 04 */ cmplwi r0, 0x4
|
|
|
|
/* 8008159C 0007D3DC 41 80 00 1C */ blt lbl_800815B8
|
|
|
|
/* 800815A0 0007D3E0 3C 60 00 0D */ lis r3, 0xd
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800815A4 0007D3E4 3C 80 80 44 */ lis r4, "@2337"@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800815A8 0007D3E8 7F E5 FB 78 */ mr r5, r31
|
|
|
|
/* 800815AC 0007D3EC 38 63 00 03 */ addi r3, r3, 0x3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800815B0 0007D3F0 38 84 BC 30 */ addi r4, r4, "@2337"@l
|
|
|
|
/* 800815B4 0007D3F4 4B FF 63 AD */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_800815B8
|
|
|
|
lbl_800815B8:
|
|
|
|
/* 800815B8 0007D3F8 1C 1F 02 71 */ mulli r0, r31, 0x271
|
|
|
|
/* 800815BC 0007D3FC 3C 60 10 62 */ lis r3, 0x1062
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800815C0 0007D400 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800815C4 0007D404 38 63 4D D3 */ addi r3, r3, 0x4dd3
|
|
|
|
/* 800815C8 0007D408 7C 03 00 96 */ mulhw r0, r3, r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800815CC 0007D40C 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800815D0 0007D410 38 60 00 02 */ li r3, 0x2
|
|
|
|
/* 800815D4 0007D414 7C 00 36 70 */ srawi r0, r0, 6
|
|
|
|
/* 800815D8 0007D418 54 05 0F FE */ srwi r5, r0, 31
|
|
|
|
/* 800815DC 0007D41C 7C 00 2A 14 */ add r0, r0, r5
|
|
|
|
/* 800815E0 0007D420 B0 04 06 4C */ sth r0, 0x64c(r4)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800815E4 0007D424 4B FF 38 3D */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800815E8 0007D428 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 800815EC 0007D42C 41 82 00 14 */ beq lbl_80081600
|
|
|
|
/* 800815F0 0007D430 7F E4 FB 78 */ mr r4, r31
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800815F4 0007D434 48 00 AC C5 */ bl btsnd_hcic_write_page_tout
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800815F8 0007D438 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 800815FC 0007D43C 48 00 00 08 */ b lbl_80081604
|
|
|
|
.global lbl_80081600
|
|
|
|
lbl_80081600:
|
|
|
|
/* 80081600 0007D440 38 60 00 03 */ li r3, 0x3
|
|
|
|
.global lbl_80081604
|
|
|
|
lbl_80081604:
|
|
|
|
/* 80081604 0007D444 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80081608 0007D448 83 E1 00 0C */ lwz r31, 0xc(r1)
|
|
|
|
/* 8008160C 0007D44C 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80081610 0007D450 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80081614 0007D454 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_ReadStoredLinkKey
|
|
|
|
BTM_ReadStoredLinkKey:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081618 0007D458 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
|
|
/* 8008161C 0007D45C 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081620 0007D460 3C A0 80 4F */ lis r5, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081624 0007D464 90 01 00 24 */ stw r0, 0x24(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081628 0007D468 38 A5 5F 58 */ addi r5, r5, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008162C 0007D46C 93 E1 00 1C */ stw r31, 0x1c(r1)
|
|
|
|
/* 80081630 0007D470 3B E0 00 00 */ li r31, 0x0
|
|
|
|
/* 80081634 0007D474 93 C1 00 18 */ stw r30, 0x18(r1)
|
|
|
|
/* 80081638 0007D478 7C 9E 23 78 */ mr r30, r4
|
|
|
|
/* 8008163C 0007D47C 93 A1 00 14 */ stw r29, 0x14(r1)
|
|
|
|
/* 80081640 0007D480 7C 7D 1B 78 */ mr r29, r3
|
|
|
|
/* 80081644 0007D484 80 05 05 70 */ lwz r0, 0x570(r5)
|
|
|
|
/* 80081648 0007D488 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 8008164C 0007D48C 41 82 00 0C */ beq lbl_80081658
|
|
|
|
/* 80081650 0007D490 38 60 00 02 */ li r3, 0x2
|
|
|
|
/* 80081654 0007D494 48 00 00 80 */ b lbl_800816D4
|
|
|
|
.global lbl_80081658
|
|
|
|
lbl_80081658:
|
|
|
|
/* 80081658 0007D498 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 8008165C 0007D49C 40 82 00 0C */ bne lbl_80081668
|
|
|
|
/* 80081660 0007D4A0 3B E0 00 01 */ li r31, 0x1
|
|
|
|
/* 80081664 0007D4A4 3B A1 00 08 */ addi r29, r1, 0x8
|
|
|
|
.global lbl_80081668
|
|
|
|
lbl_80081668:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081668 0007D4A8 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 8008166C 0007D4AC 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081670 0007D4B0 88 03 27 C0 */ lbz r0, 0x27c0(r3)
|
|
|
|
/* 80081674 0007D4B4 28 00 00 04 */ cmplwi r0, 0x4
|
|
|
|
/* 80081678 0007D4B8 41 80 00 28 */ blt lbl_800816A0
|
|
|
|
/* 8008167C 0007D4BC 2C 1F 00 00 */ cmpwi r31, 0x0
|
|
|
|
/* 80081680 0007D4C0 3C 60 00 0D */ lis r3, 0xd
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081684 0007D4C4 3C 80 80 44 */ lis r4, "@2362"@ha
|
|
|
|
/* 80081688 0007D4C8 38 AD 84 EC */ addi r5, r13, "@2364"@sda21
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008168C 0007D4CC 38 63 00 03 */ addi r3, r3, 0x3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081690 0007D4D0 38 84 BC A0 */ addi r4, r4, "@2362"@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081694 0007D4D4 41 82 00 08 */ beq lbl_8008169C
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081698 0007D4D8 38 AD 84 E4 */ addi r5, r13, "@2363"@sda21
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_8008169C
|
|
|
|
lbl_8008169C:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008169C 0007D4DC 4B FF 62 C5 */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_800816A0
|
|
|
|
lbl_800816A0:
|
|
|
|
/* 800816A0 0007D4E0 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800816A4 0007D4E4 4B FF 37 7D */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800816A8 0007D4E8 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 800816AC 0007D4EC 41 82 00 24 */ beq lbl_800816D0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800816B0 0007D4F0 3C C0 80 4F */ lis r6, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800816B4 0007D4F4 7F A4 EB 78 */ mr r4, r29
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800816B8 0007D4F8 38 C6 5F 58 */ addi r6, r6, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800816BC 0007D4FC 7F E5 FB 78 */ mr r5, r31
|
|
|
|
/* 800816C0 0007D500 93 C6 05 70 */ stw r30, 0x570(r6)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800816C4 0007D504 48 00 A7 E5 */ bl btsnd_hcic_read_stored_key
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800816C8 0007D508 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 800816CC 0007D50C 48 00 00 08 */ b lbl_800816D4
|
|
|
|
.global lbl_800816D0
|
|
|
|
lbl_800816D0:
|
|
|
|
/* 800816D0 0007D510 38 60 00 03 */ li r3, 0x3
|
|
|
|
.global lbl_800816D4
|
|
|
|
lbl_800816D4:
|
|
|
|
/* 800816D4 0007D514 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
|
|
/* 800816D8 0007D518 83 E1 00 1C */ lwz r31, 0x1c(r1)
|
|
|
|
/* 800816DC 0007D51C 83 C1 00 18 */ lwz r30, 0x18(r1)
|
|
|
|
/* 800816E0 0007D520 83 A1 00 14 */ lwz r29, 0x14(r1)
|
|
|
|
/* 800816E4 0007D524 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 800816E8 0007D528 38 21 00 20 */ addi r1, r1, 0x20
|
|
|
|
/* 800816EC 0007D52C 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_WriteStoredLinkKey
|
|
|
|
BTM_WriteStoredLinkKey:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800816F0 0007D530 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
|
|
/* 800816F4 0007D534 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800816F8 0007D538 3C E0 80 4F */ lis r7, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800816FC 0007D53C 90 01 00 24 */ stw r0, 0x24(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081700 0007D540 38 E7 5F 58 */ addi r7, r7, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081704 0007D544 93 E1 00 1C */ stw r31, 0x1c(r1)
|
|
|
|
/* 80081708 0007D548 7C DF 33 78 */ mr r31, r6
|
|
|
|
/* 8008170C 0007D54C 93 C1 00 18 */ stw r30, 0x18(r1)
|
|
|
|
/* 80081710 0007D550 7C BE 2B 78 */ mr r30, r5
|
|
|
|
/* 80081714 0007D554 93 A1 00 14 */ stw r29, 0x14(r1)
|
|
|
|
/* 80081718 0007D558 7C 9D 23 78 */ mr r29, r4
|
|
|
|
/* 8008171C 0007D55C 93 81 00 10 */ stw r28, 0x10(r1)
|
|
|
|
/* 80081720 0007D560 7C 7C 1B 78 */ mr r28, r3
|
|
|
|
/* 80081724 0007D564 80 07 05 70 */ lwz r0, 0x570(r7)
|
|
|
|
/* 80081728 0007D568 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 8008172C 0007D56C 41 82 00 0C */ beq lbl_80081738
|
|
|
|
/* 80081730 0007D570 38 60 00 02 */ li r3, 0x2
|
|
|
|
/* 80081734 0007D574 48 00 00 6C */ b lbl_800817A0
|
|
|
|
.global lbl_80081738
|
|
|
|
lbl_80081738:
|
|
|
|
/* 80081738 0007D578 88 07 27 C0 */ lbz r0, 0x27c0(r7)
|
|
|
|
/* 8008173C 0007D57C 28 00 00 04 */ cmplwi r0, 0x4
|
|
|
|
/* 80081740 0007D580 41 80 00 1C */ blt lbl_8008175C
|
|
|
|
/* 80081744 0007D584 3C 60 00 0D */ lis r3, 0xd
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081748 0007D588 3C 80 80 44 */ lis r4, "@2372"@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008174C 0007D58C 7F 85 E3 78 */ mr r5, r28
|
|
|
|
/* 80081750 0007D590 38 63 00 03 */ addi r3, r3, 0x3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081754 0007D594 38 84 BC CC */ addi r4, r4, "@2372"@l
|
|
|
|
/* 80081758 0007D598 4B FF 62 09 */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_8008175C
|
|
|
|
lbl_8008175C:
|
|
|
|
/* 8008175C 0007D59C 28 1C 00 0B */ cmplwi r28, 0xb
|
|
|
|
/* 80081760 0007D5A0 40 81 00 08 */ ble lbl_80081768
|
|
|
|
/* 80081764 0007D5A4 3B 80 00 0B */ li r28, 0xb
|
|
|
|
.global lbl_80081768
|
|
|
|
lbl_80081768:
|
|
|
|
/* 80081768 0007D5A8 38 60 00 02 */ li r3, 0x2
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008176C 0007D5AC 4B FF 36 B5 */ bl GKI_getpoolbuf
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081770 0007D5B0 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 80081774 0007D5B4 41 82 00 28 */ beq lbl_8008179C
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081778 0007D5B8 3C C0 80 4F */ lis r6, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008177C 0007D5BC 7F 84 E3 78 */ mr r4, r28
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081780 0007D5C0 38 C6 5F 58 */ addi r6, r6, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081784 0007D5C4 7F A5 EB 78 */ mr r5, r29
|
|
|
|
/* 80081788 0007D5C8 93 E6 05 70 */ stw r31, 0x570(r6)
|
|
|
|
/* 8008178C 0007D5CC 7F C6 F3 78 */ mr r6, r30
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081790 0007D5D0 48 00 A7 79 */ bl btsnd_hcic_write_stored_key
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081794 0007D5D4 38 60 00 00 */ li r3, 0x0
|
|
|
|
/* 80081798 0007D5D8 48 00 00 08 */ b lbl_800817A0
|
|
|
|
.global lbl_8008179C
|
|
|
|
lbl_8008179C:
|
|
|
|
/* 8008179C 0007D5DC 38 60 00 03 */ li r3, 0x3
|
|
|
|
.global lbl_800817A0
|
|
|
|
lbl_800817A0:
|
|
|
|
/* 800817A0 0007D5E0 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
|
|
/* 800817A4 0007D5E4 83 E1 00 1C */ lwz r31, 0x1c(r1)
|
|
|
|
/* 800817A8 0007D5E8 83 C1 00 18 */ lwz r30, 0x18(r1)
|
|
|
|
/* 800817AC 0007D5EC 83 A1 00 14 */ lwz r29, 0x14(r1)
|
|
|
|
/* 800817B0 0007D5F0 83 81 00 10 */ lwz r28, 0x10(r1)
|
|
|
|
/* 800817B4 0007D5F4 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 800817B8 0007D5F8 38 21 00 20 */ addi r1, r1, 0x20
|
|
|
|
/* 800817BC 0007D5FC 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global BTM_DeleteStoredLinkKey
|
|
|
|
BTM_DeleteStoredLinkKey:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800817C0 0007D600 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
|
|
/* 800817C4 0007D604 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800817C8 0007D608 3C A0 80 4F */ lis r5, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800817CC 0007D60C 90 01 00 24 */ stw r0, 0x24(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800817D0 0007D610 38 A5 5F 58 */ addi r5, r5, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800817D4 0007D614 93 E1 00 1C */ stw r31, 0x1c(r1)
|
|
|
|
/* 800817D8 0007D618 3B E0 00 00 */ li r31, 0x0
|
|
|
|
/* 800817DC 0007D61C 93 C1 00 18 */ stw r30, 0x18(r1)
|
|
|
|
/* 800817E0 0007D620 7C 9E 23 78 */ mr r30, r4
|
|
|
|
/* 800817E4 0007D624 93 A1 00 14 */ stw r29, 0x14(r1)
|
|
|
|
/* 800817E8 0007D628 7C 7D 1B 78 */ mr r29, r3
|
|
|
|
/* 800817EC 0007D62C 80 05 05 70 */ lwz r0, 0x570(r5)
|
|
|
|
/* 800817F0 0007D630 2C 00 00 00 */ cmpwi r0, 0x0
|
|
|
|
/* 800817F4 0007D634 41 82 00 0C */ beq lbl_80081800
|
|
|
|
/* 800817F8 0007D638 38 60 00 02 */ li r3, 0x2
|
|
|
|
/* 800817FC 0007D63C 48 00 00 78 */ b lbl_80081874
|
|
|
|
.global lbl_80081800
|
|
|
|
lbl_80081800:
|
|
|
|
/* 80081800 0007D640 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 80081804 0007D644 40 82 00 0C */ bne lbl_80081810
|
|
|
|
/* 80081808 0007D648 3B E0 00 01 */ li r31, 0x1
|
|
|
|
/* 8008180C 0007D64C 3B A1 00 08 */ addi r29, r1, 0x8
|
|
|
|
.global lbl_80081810
|
|
|
|
lbl_80081810:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081810 0007D650 3C 60 80 4F */ lis r3, btm_cb@ha
|
|
|
|
/* 80081814 0007D654 38 63 5F 58 */ addi r3, r3, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081818 0007D658 88 03 27 C0 */ lbz r0, 0x27c0(r3)
|
|
|
|
/* 8008181C 0007D65C 28 00 00 04 */ cmplwi r0, 0x4
|
|
|
|
/* 80081820 0007D660 41 80 00 28 */ blt lbl_80081848
|
|
|
|
/* 80081824 0007D664 2C 1F 00 00 */ cmpwi r31, 0x0
|
|
|
|
/* 80081828 0007D668 3C 60 00 0D */ lis r3, 0xd
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008182C 0007D66C 3C 80 80 44 */ lis r4, "@2385"@ha
|
|
|
|
/* 80081830 0007D670 38 AD 84 EC */ addi r5, r13, "@2364"@sda21
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081834 0007D674 38 63 00 03 */ addi r3, r3, 0x3
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081838 0007D678 38 84 BC F8 */ addi r4, r4, "@2385"@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008183C 0007D67C 41 82 00 08 */ beq lbl_80081844
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081840 0007D680 38 AD 84 E4 */ addi r5, r13, "@2363"@sda21
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80081844
|
|
|
|
lbl_80081844:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081844 0007D684 4B FF 61 1D */ bl LogMsg_0
|
2022-10-16 16:05:58 +00:00
|
|
|
.global lbl_80081848
|
|
|
|
lbl_80081848:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081848 0007D688 3C A0 80 4F */ lis r5, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008184C 0007D68C 7F A3 EB 78 */ mr r3, r29
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081850 0007D690 38 A5 5F 58 */ addi r5, r5, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081854 0007D694 7F E4 FB 78 */ mr r4, r31
|
|
|
|
/* 80081858 0007D698 93 C5 05 70 */ stw r30, 0x570(r5)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008185C 0007D69C 48 00 A8 6D */ bl btsnd_hcic_delete_stored_key
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081860 0007D6A0 54 60 06 3F */ clrlwi. r0, r3, 24
|
|
|
|
/* 80081864 0007D6A4 40 82 00 0C */ bne lbl_80081870
|
|
|
|
/* 80081868 0007D6A8 38 60 00 03 */ li r3, 0x3
|
|
|
|
/* 8008186C 0007D6AC 48 00 00 08 */ b lbl_80081874
|
|
|
|
.global lbl_80081870
|
|
|
|
lbl_80081870:
|
|
|
|
/* 80081870 0007D6B0 38 60 00 00 */ li r3, 0x0
|
|
|
|
.global lbl_80081874
|
|
|
|
lbl_80081874:
|
|
|
|
/* 80081874 0007D6B4 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
|
|
/* 80081878 0007D6B8 83 E1 00 1C */ lwz r31, 0x1c(r1)
|
|
|
|
/* 8008187C 0007D6BC 83 C1 00 18 */ lwz r30, 0x18(r1)
|
|
|
|
/* 80081880 0007D6C0 83 A1 00 14 */ lwz r29, 0x14(r1)
|
|
|
|
/* 80081884 0007D6C4 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80081888 0007D6C8 38 21 00 20 */ addi r1, r1, 0x20
|
|
|
|
/* 8008188C 0007D6CC 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_read_stored_link_key_complete
|
|
|
|
btm_read_stored_link_key_complete:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081890 0007D6D0 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 80081894 0007D6D4 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081898 0007D6D8 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008189C 0007D6DC 90 01 00 14 */ stw r0, 0x14(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800818A0 0007D6E0 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800818A4 0007D6E4 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 800818A8 0007D6E8 81 84 05 70 */ lwz r12, 0x570(r4)
|
|
|
|
/* 800818AC 0007D6EC 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 800818B0 0007D6F0 90 04 05 70 */ stw r0, 0x570(r4)
|
|
|
|
/* 800818B4 0007D6F4 41 82 00 48 */ beq lbl_800818FC
|
|
|
|
/* 800818B8 0007D6F8 38 00 00 02 */ li r0, 0x2
|
|
|
|
/* 800818BC 0007D6FC 98 01 00 08 */ stb r0, 0x8(r1)
|
|
|
|
/* 800818C0 0007D700 88 03 00 00 */ lbz r0, 0x0(r3)
|
|
|
|
/* 800818C4 0007D704 98 01 00 09 */ stb r0, 0x9(r1)
|
|
|
|
/* 800818C8 0007D708 88 03 00 02 */ lbz r0, 0x2(r3)
|
|
|
|
/* 800818CC 0007D70C 88 83 00 01 */ lbz r4, 0x1(r3)
|
|
|
|
/* 800818D0 0007D710 54 00 40 2E */ slwi r0, r0, 8
|
|
|
|
/* 800818D4 0007D714 7C 04 02 14 */ add r0, r4, r0
|
|
|
|
/* 800818D8 0007D718 B0 01 00 0A */ sth r0, 0xa(r1)
|
|
|
|
/* 800818DC 0007D71C 88 03 00 04 */ lbz r0, 0x4(r3)
|
|
|
|
/* 800818E0 0007D720 88 83 00 03 */ lbz r4, 0x3(r3)
|
|
|
|
/* 800818E4 0007D724 38 61 00 08 */ addi r3, r1, 0x8
|
|
|
|
/* 800818E8 0007D728 54 00 40 2E */ slwi r0, r0, 8
|
|
|
|
/* 800818EC 0007D72C 7C 04 02 14 */ add r0, r4, r0
|
|
|
|
/* 800818F0 0007D730 B0 01 00 0C */ sth r0, 0xc(r1)
|
|
|
|
/* 800818F4 0007D734 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 800818F8 0007D738 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_800818FC
|
|
|
|
lbl_800818FC:
|
|
|
|
/* 800818FC 0007D73C 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80081900 0007D740 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80081904 0007D744 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80081908 0007D748 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_write_stored_link_key_complete
|
|
|
|
btm_write_stored_link_key_complete:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008190C 0007D74C 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 80081910 0007D750 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081914 0007D754 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081918 0007D758 90 01 00 14 */ stw r0, 0x14(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8008191C 0007D75C 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081920 0007D760 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 80081924 0007D764 81 84 05 70 */ lwz r12, 0x570(r4)
|
|
|
|
/* 80081928 0007D768 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 8008192C 0007D76C 90 04 05 70 */ stw r0, 0x570(r4)
|
|
|
|
/* 80081930 0007D770 41 82 00 28 */ beq lbl_80081958
|
|
|
|
/* 80081934 0007D774 38 00 00 03 */ li r0, 0x3
|
|
|
|
/* 80081938 0007D778 98 01 00 08 */ stb r0, 0x8(r1)
|
|
|
|
/* 8008193C 0007D77C 88 03 00 00 */ lbz r0, 0x0(r3)
|
|
|
|
/* 80081940 0007D780 98 01 00 09 */ stb r0, 0x9(r1)
|
|
|
|
/* 80081944 0007D784 88 03 00 01 */ lbz r0, 0x1(r3)
|
|
|
|
/* 80081948 0007D788 38 61 00 08 */ addi r3, r1, 0x8
|
|
|
|
/* 8008194C 0007D78C 98 01 00 0A */ stb r0, 0xa(r1)
|
|
|
|
/* 80081950 0007D790 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80081954 0007D794 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_80081958
|
|
|
|
lbl_80081958:
|
|
|
|
/* 80081958 0007D798 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 8008195C 0007D79C 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80081960 0007D7A0 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80081964 0007D7A4 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_delete_stored_link_key_complete
|
|
|
|
btm_delete_stored_link_key_complete:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081968 0007D7A8 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 8008196C 0007D7AC 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081970 0007D7B0 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081974 0007D7B4 90 01 00 14 */ stw r0, 0x14(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80081978 0007D7B8 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8008197C 0007D7BC 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 80081980 0007D7C0 81 84 05 70 */ lwz r12, 0x570(r4)
|
|
|
|
/* 80081984 0007D7C4 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 80081988 0007D7C8 90 04 05 70 */ stw r0, 0x570(r4)
|
|
|
|
/* 8008198C 0007D7CC 41 82 00 34 */ beq lbl_800819C0
|
|
|
|
/* 80081990 0007D7D0 38 00 00 04 */ li r0, 0x4
|
|
|
|
/* 80081994 0007D7D4 98 01 00 08 */ stb r0, 0x8(r1)
|
|
|
|
/* 80081998 0007D7D8 88 03 00 00 */ lbz r0, 0x0(r3)
|
|
|
|
/* 8008199C 0007D7DC 98 01 00 09 */ stb r0, 0x9(r1)
|
|
|
|
/* 800819A0 0007D7E0 88 03 00 02 */ lbz r0, 0x2(r3)
|
|
|
|
/* 800819A4 0007D7E4 88 83 00 01 */ lbz r4, 0x1(r3)
|
|
|
|
/* 800819A8 0007D7E8 38 61 00 08 */ addi r3, r1, 0x8
|
|
|
|
/* 800819AC 0007D7EC 54 00 40 2E */ slwi r0, r0, 8
|
|
|
|
/* 800819B0 0007D7F0 7C 04 02 14 */ add r0, r4, r0
|
|
|
|
/* 800819B4 0007D7F4 B0 01 00 0A */ sth r0, 0xa(r1)
|
|
|
|
/* 800819B8 0007D7F8 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 800819BC 0007D7FC 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_800819C0
|
|
|
|
lbl_800819C0:
|
|
|
|
/* 800819C0 0007D800 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 800819C4 0007D804 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 800819C8 0007D808 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 800819CC 0007D80C 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_return_link_keys_evt
|
|
|
|
btm_return_link_keys_evt:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800819D0 0007D810 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
|
|
/* 800819D4 0007D814 7C 08 02 A6 */ mflr r0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800819D8 0007D818 3C 80 80 4F */ lis r4, btm_cb@ha
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800819DC 0007D81C 90 01 00 24 */ stw r0, 0x24(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800819E0 0007D820 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800819E4 0007D824 81 84 05 70 */ lwz r12, 0x570(r4)
|
|
|
|
/* 800819E8 0007D828 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 800819EC 0007D82C 41 82 01 60 */ beq lbl_80081B4C
|
|
|
|
/* 800819F0 0007D830 38 A3 00 02 */ addi r5, r3, 0x2
|
|
|
|
/* 800819F4 0007D834 38 80 00 00 */ li r4, 0x0
|
|
|
|
/* 800819F8 0007D838 48 00 01 3C */ b lbl_80081B34
|
|
|
|
.global lbl_800819FC
|
|
|
|
lbl_800819FC:
|
|
|
|
/* 800819FC 0007D83C 89 65 00 00 */ lbz r11, 0x0(r5)
|
|
|
|
/* 80081A00 0007D840 38 84 00 01 */ addi r4, r4, 0x1
|
|
|
|
/* 80081A04 0007D844 89 45 00 01 */ lbz r10, 0x1(r5)
|
|
|
|
/* 80081A08 0007D848 89 25 00 02 */ lbz r9, 0x2(r5)
|
|
|
|
/* 80081A0C 0007D84C 89 05 00 03 */ lbz r8, 0x3(r5)
|
|
|
|
/* 80081A10 0007D850 88 E5 00 04 */ lbz r7, 0x4(r5)
|
|
|
|
/* 80081A14 0007D854 88 C5 00 05 */ lbz r6, 0x5(r5)
|
|
|
|
/* 80081A18 0007D858 88 05 00 06 */ lbz r0, 0x6(r5)
|
|
|
|
/* 80081A1C 0007D85C 98 01 00 17 */ stb r0, 0x17(r1)
|
|
|
|
/* 80081A20 0007D860 88 05 00 07 */ lbz r0, 0x7(r5)
|
|
|
|
/* 80081A24 0007D864 98 01 00 16 */ stb r0, 0x16(r1)
|
|
|
|
/* 80081A28 0007D868 88 05 00 08 */ lbz r0, 0x8(r5)
|
|
|
|
/* 80081A2C 0007D86C 98 01 00 15 */ stb r0, 0x15(r1)
|
|
|
|
/* 80081A30 0007D870 88 05 00 09 */ lbz r0, 0x9(r5)
|
|
|
|
/* 80081A34 0007D874 98 01 00 14 */ stb r0, 0x14(r1)
|
|
|
|
/* 80081A38 0007D878 88 05 00 0A */ lbz r0, 0xa(r5)
|
|
|
|
/* 80081A3C 0007D87C 98 01 00 13 */ stb r0, 0x13(r1)
|
|
|
|
/* 80081A40 0007D880 88 05 00 0B */ lbz r0, 0xb(r5)
|
|
|
|
/* 80081A44 0007D884 98 01 00 12 */ stb r0, 0x12(r1)
|
|
|
|
/* 80081A48 0007D888 88 05 00 0C */ lbz r0, 0xc(r5)
|
|
|
|
/* 80081A4C 0007D88C 98 01 00 11 */ stb r0, 0x11(r1)
|
|
|
|
/* 80081A50 0007D890 88 05 00 0D */ lbz r0, 0xd(r5)
|
|
|
|
/* 80081A54 0007D894 98 01 00 10 */ stb r0, 0x10(r1)
|
|
|
|
/* 80081A58 0007D898 88 05 00 0E */ lbz r0, 0xe(r5)
|
|
|
|
/* 80081A5C 0007D89C 98 01 00 0F */ stb r0, 0xf(r1)
|
|
|
|
/* 80081A60 0007D8A0 88 05 00 0F */ lbz r0, 0xf(r5)
|
|
|
|
/* 80081A64 0007D8A4 98 01 00 0E */ stb r0, 0xe(r1)
|
|
|
|
/* 80081A68 0007D8A8 88 05 00 10 */ lbz r0, 0x10(r5)
|
|
|
|
/* 80081A6C 0007D8AC 98 01 00 0D */ stb r0, 0xd(r1)
|
|
|
|
/* 80081A70 0007D8B0 88 05 00 11 */ lbz r0, 0x11(r5)
|
|
|
|
/* 80081A74 0007D8B4 98 01 00 0C */ stb r0, 0xc(r1)
|
|
|
|
/* 80081A78 0007D8B8 88 05 00 12 */ lbz r0, 0x12(r5)
|
|
|
|
/* 80081A7C 0007D8BC 98 01 00 0B */ stb r0, 0xb(r1)
|
|
|
|
/* 80081A80 0007D8C0 88 05 00 13 */ lbz r0, 0x13(r5)
|
|
|
|
/* 80081A84 0007D8C4 98 01 00 0A */ stb r0, 0xa(r1)
|
|
|
|
/* 80081A88 0007D8C8 88 05 00 14 */ lbz r0, 0x14(r5)
|
|
|
|
/* 80081A8C 0007D8CC 98 01 00 09 */ stb r0, 0x9(r1)
|
|
|
|
/* 80081A90 0007D8D0 88 05 00 15 */ lbz r0, 0x15(r5)
|
|
|
|
/* 80081A94 0007D8D4 98 01 00 08 */ stb r0, 0x8(r1)
|
|
|
|
/* 80081A98 0007D8D8 98 C5 00 00 */ stb r6, 0x0(r5)
|
|
|
|
/* 80081A9C 0007D8DC 98 E5 00 01 */ stb r7, 0x1(r5)
|
|
|
|
/* 80081AA0 0007D8E0 99 05 00 02 */ stb r8, 0x2(r5)
|
|
|
|
/* 80081AA4 0007D8E4 99 25 00 03 */ stb r9, 0x3(r5)
|
|
|
|
/* 80081AA8 0007D8E8 99 45 00 04 */ stb r10, 0x4(r5)
|
|
|
|
/* 80081AAC 0007D8EC 99 65 00 05 */ stb r11, 0x5(r5)
|
|
|
|
/* 80081AB0 0007D8F0 88 01 00 08 */ lbz r0, 0x8(r1)
|
|
|
|
/* 80081AB4 0007D8F4 98 05 00 06 */ stb r0, 0x6(r5)
|
|
|
|
/* 80081AB8 0007D8F8 88 01 00 09 */ lbz r0, 0x9(r1)
|
|
|
|
/* 80081ABC 0007D8FC 98 05 00 07 */ stb r0, 0x7(r5)
|
|
|
|
/* 80081AC0 0007D900 88 01 00 0A */ lbz r0, 0xa(r1)
|
|
|
|
/* 80081AC4 0007D904 98 05 00 08 */ stb r0, 0x8(r5)
|
|
|
|
/* 80081AC8 0007D908 88 01 00 0B */ lbz r0, 0xb(r1)
|
|
|
|
/* 80081ACC 0007D90C 98 05 00 09 */ stb r0, 0x9(r5)
|
|
|
|
/* 80081AD0 0007D910 88 01 00 0C */ lbz r0, 0xc(r1)
|
|
|
|
/* 80081AD4 0007D914 98 05 00 0A */ stb r0, 0xa(r5)
|
|
|
|
/* 80081AD8 0007D918 88 01 00 0D */ lbz r0, 0xd(r1)
|
|
|
|
/* 80081ADC 0007D91C 98 05 00 0B */ stb r0, 0xb(r5)
|
|
|
|
/* 80081AE0 0007D920 88 01 00 0E */ lbz r0, 0xe(r1)
|
|
|
|
/* 80081AE4 0007D924 98 05 00 0C */ stb r0, 0xc(r5)
|
|
|
|
/* 80081AE8 0007D928 88 01 00 0F */ lbz r0, 0xf(r1)
|
|
|
|
/* 80081AEC 0007D92C 98 05 00 0D */ stb r0, 0xd(r5)
|
|
|
|
/* 80081AF0 0007D930 88 01 00 10 */ lbz r0, 0x10(r1)
|
|
|
|
/* 80081AF4 0007D934 98 05 00 0E */ stb r0, 0xe(r5)
|
|
|
|
/* 80081AF8 0007D938 88 01 00 11 */ lbz r0, 0x11(r1)
|
|
|
|
/* 80081AFC 0007D93C 98 05 00 0F */ stb r0, 0xf(r5)
|
|
|
|
/* 80081B00 0007D940 88 01 00 12 */ lbz r0, 0x12(r1)
|
|
|
|
/* 80081B04 0007D944 98 05 00 10 */ stb r0, 0x10(r5)
|
|
|
|
/* 80081B08 0007D948 88 01 00 13 */ lbz r0, 0x13(r1)
|
|
|
|
/* 80081B0C 0007D94C 98 05 00 11 */ stb r0, 0x11(r5)
|
|
|
|
/* 80081B10 0007D950 88 01 00 14 */ lbz r0, 0x14(r1)
|
|
|
|
/* 80081B14 0007D954 98 05 00 12 */ stb r0, 0x12(r5)
|
|
|
|
/* 80081B18 0007D958 88 01 00 15 */ lbz r0, 0x15(r1)
|
|
|
|
/* 80081B1C 0007D95C 98 05 00 13 */ stb r0, 0x13(r5)
|
|
|
|
/* 80081B20 0007D960 88 01 00 16 */ lbz r0, 0x16(r1)
|
|
|
|
/* 80081B24 0007D964 98 05 00 14 */ stb r0, 0x14(r5)
|
|
|
|
/* 80081B28 0007D968 88 01 00 17 */ lbz r0, 0x17(r1)
|
|
|
|
/* 80081B2C 0007D96C 98 05 00 15 */ stb r0, 0x15(r5)
|
|
|
|
/* 80081B30 0007D970 38 A5 00 16 */ addi r5, r5, 0x16
|
|
|
|
.global lbl_80081B34
|
|
|
|
lbl_80081B34:
|
|
|
|
/* 80081B34 0007D974 88 03 00 01 */ lbz r0, 0x1(r3)
|
|
|
|
/* 80081B38 0007D978 54 86 06 3E */ clrlwi r6, r4, 24
|
|
|
|
/* 80081B3C 0007D97C 7C 06 00 40 */ cmplw r6, r0
|
|
|
|
/* 80081B40 0007D980 41 80 FE BC */ blt lbl_800819FC
|
|
|
|
/* 80081B44 0007D984 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80081B48 0007D988 4E 80 04 21 */ bctrl
|
|
|
|
.global lbl_80081B4C
|
|
|
|
lbl_80081B4C:
|
|
|
|
/* 80081B4C 0007D98C 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
|
|
/* 80081B50 0007D990 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80081B54 0007D994 38 21 00 20 */ addi r1, r1, 0x20
|
|
|
|
/* 80081B58 0007D998 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global btm_report_device_status
|
|
|
|
btm_report_device_status:
|
|
|
|
/* 80081B5C 0007D99C 3C 80 80 4F */ lis r4, btm_cb@ha
|
|
|
|
/* 80081B60 0007D9A0 38 84 5F 58 */ addi r4, r4, btm_cb@l
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80081B64 0007D9A4 81 84 05 68 */ lwz r12, 0x568(r4)
|
|
|
|
/* 80081B68 0007D9A8 2C 0C 00 00 */ cmpwi r12, 0x0
|
|
|
|
/* 80081B6C 0007D9AC 4D 82 00 20 */ beqlr
|
|
|
|
/* 80081B70 0007D9B0 7D 89 03 A6 */ mtctr r12
|
|
|
|
/* 80081B74 0007D9B4 4E 80 04 20 */ bctr
|
|
|
|
/* 80081B78 0007D9B8 4E 80 00 20 */ blr
|
2022-10-17 08:41:13 +00:00
|
|
|
.include "macros.inc"
|
|
|
|
|
|
|
|
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
|
|
|
|
.global "@2107_8043BAD0"
|
|
|
|
"@2107_8043BAD0":
|
|
|
|
|
|
|
|
.4byte 0x42544D5F
|
|
|
|
.4byte 0x53657441
|
|
|
|
.4byte 0x66684368
|
|
|
|
.4byte 0x616E6E65
|
|
|
|
.4byte 0x6C732066
|
|
|
|
.4byte 0x69727374
|
|
|
|
.4byte 0x3A202564
|
|
|
|
.4byte 0x20282564
|
|
|
|
.4byte 0x29206C61
|
|
|
|
.4byte 0x73743A20
|
|
|
|
.4byte 0x25642028
|
|
|
|
.4byte 0x25642900
|
|
|
|
|
|
|
|
.global "@2174"
|
|
|
|
"@2174":
|
|
|
|
|
|
|
|
.4byte 0x62746D5F
|
|
|
|
.4byte 0x72657365
|
|
|
|
.4byte 0x745F636F
|
|
|
|
.4byte 0x6D706C65
|
|
|
|
.4byte 0x74650000
|
|
|
|
.4byte 0x4C6F6361
|
|
|
|
.4byte 0x6C207375
|
|
|
|
.4byte 0x70706F72
|
|
|
|
.4byte 0x74656420
|
|
|
|
.4byte 0x41434C20
|
|
|
|
.4byte 0x7061636B
|
|
|
|
.4byte 0x65742074
|
|
|
|
.4byte 0x79706573
|
|
|
|
.4byte 0x3A203078
|
|
|
|
.4byte 0x25303478
|
|
|
|
.4byte 0
|
|
|
|
.4byte 0x4C6F6361
|
|
|
|
.4byte 0x6C207375
|
|
|
|
.4byte 0x70706F72
|
|
|
|
.4byte 0x74656420
|
|
|
|
.4byte 0x53434F20
|
|
|
|
.4byte 0x7061636B
|
|
|
|
.4byte 0x65742074
|
|
|
|
.4byte 0x79706573
|
|
|
|
.4byte 0x3A203078
|
|
|
|
.4byte 0x25303478
|
|
|
|
.4byte 0
|
|
|
|
|
|
|
|
.global "@2316"
|
|
|
|
"@2316":
|
|
|
|
|
|
|
|
.4byte 0x42544D3A
|
|
|
|
.4byte 0x2042544D
|
|
|
|
.4byte 0x5F56656E
|
|
|
|
.4byte 0x646F7253
|
|
|
|
.4byte 0x70656369
|
|
|
|
.4byte 0x66696343
|
|
|
|
.4byte 0x6F6D6D61
|
|
|
|
.4byte 0x6E643A20
|
|
|
|
.4byte 0x4F70636F
|
|
|
|
.4byte 0x64653A20
|
|
|
|
.4byte 0x30782530
|
|
|
|
.4byte 0x34582C20
|
|
|
|
.4byte 0x50617261
|
|
|
|
.4byte 0x6D4C656E
|
|
|
|
.4byte 0x3A202569
|
|
|
|
.4byte 0x2E000000
|
|
|
|
|
|
|
|
.global "@2317"
|
|
|
|
"@2317":
|
|
|
|
|
|
|
|
.4byte 0x42544D3A
|
|
|
|
.4byte 0x20556E61
|
|
|
|
.4byte 0x626C6520
|
|
|
|
.4byte 0x746F2073
|
|
|
|
.4byte 0x656E6420
|
|
|
|
.4byte 0x76656E64
|
|
|
|
.4byte 0x6F722073
|
|
|
|
.4byte 0x70656369
|
|
|
|
.4byte 0x66696320
|
|
|
|
.4byte 0x636F6D6D
|
|
|
|
.4byte 0x616E6420
|
|
|
|
.4byte 0x28636F6E
|
|
|
|
.4byte 0x74726F6C
|
|
|
|
.4byte 0x6C657220
|
|
|
|
.4byte 0x69732062
|
|
|
|
.4byte 0x75737929
|
|
|
|
.4byte 0x2E000000
|
|
|
|
|
|
|
|
.global "@2332"
|
|
|
|
"@2332":
|
|
|
|
|
|
|
|
.4byte 0x42544D20
|
|
|
|
.4byte 0x4576656E
|
|
|
|
.4byte 0x743A2052
|
|
|
|
.4byte 0x65636569
|
|
|
|
.4byte 0x76656420
|
|
|
|
.4byte 0x61207665
|
|
|
|
.4byte 0x6E646F72
|
|
|
|
.4byte 0x20737065
|
|
|
|
.4byte 0x63696669
|
|
|
|
.4byte 0x63206576
|
|
|
|
.4byte 0x656E7420
|
|
|
|
.4byte 0x66726F6D
|
|
|
|
.4byte 0x20636F6E
|
|
|
|
.4byte 0x74726F6C
|
|
|
|
.4byte 0x6C657200
|
|
|
|
.4byte 0
|
|
|
|
|
|
|
|
.global "@2337"
|
|
|
|
"@2337":
|
|
|
|
|
|
|
|
.4byte 0x42544D3A
|
|
|
|
.4byte 0x2042544D
|
|
|
|
.4byte 0x5F577269
|
|
|
|
.4byte 0x74655061
|
|
|
|
.4byte 0x67655469
|
|
|
|
.4byte 0x6D656F75
|
|
|
|
.4byte 0x743A2054
|
|
|
|
.4byte 0x696D656F
|
|
|
|
.4byte 0x75743A20
|
|
|
|
.4byte 0x25642E00
|
|
|
|
.4byte 0x42544D3A
|
|
|
|
.4byte 0x2042544D
|
|
|
|
.4byte 0x5F577269
|
|
|
|
.4byte 0x7465566F
|
|
|
|
.4byte 0x69636553
|
|
|
|
.4byte 0x65747469
|
|
|
|
.4byte 0x6E67733A
|
|
|
|
.4byte 0x20536574
|
|
|
|
.4byte 0x74696E67
|
|
|
|
.4byte 0x733A2030
|
|
|
|
.4byte 0x78253034
|
|
|
|
.4byte 0x782E0000
|
|
|
|
.4byte 0x42544D3A
|
|
|
|
.4byte 0x2042544D
|
|
|
|
.4byte 0x5F456E61
|
|
|
|
.4byte 0x626C6554
|
|
|
|
.4byte 0x6573744D
|
|
|
|
.4byte 0x6F646500
|
|
|
|
|
|
|
|
.global "@2362"
|
|
|
|
"@2362":
|
|
|
|
|
|
|
|
.4byte 0x42544D3A
|
|
|
|
.4byte 0x2042544D
|
|
|
|
.4byte 0x5F526561
|
|
|
|
.4byte 0x6453746F
|
|
|
|
.4byte 0x7265644C
|
|
|
|
.4byte 0x696E6B4B
|
|
|
|
.4byte 0x65793A20
|
|
|
|
.4byte 0x52656164
|
|
|
|
.4byte 0x5F416C6C
|
|
|
|
.4byte 0x3A202573
|
|
|
|
.4byte 0
|
|
|
|
|
|
|
|
.global "@2372"
|
|
|
|
"@2372":
|
|
|
|
|
|
|
|
.4byte 0x42544D3A
|
|
|
|
.4byte 0x2042544D
|
|
|
|
.4byte 0x5F577269
|
|
|
|
.4byte 0x74655374
|
|
|
|
.4byte 0x6F726564
|
|
|
|
.4byte 0x4C696E6B
|
|
|
|
.4byte 0x4B65793A
|
|
|
|
.4byte 0x206E756D
|
|
|
|
.4byte 0x5F6B6579
|
|
|
|
.4byte 0x733A2025
|
|
|
|
.4byte 0x64000000
|
|
|
|
|
|
|
|
.global "@2385"
|
|
|
|
"@2385":
|
|
|
|
|
|
|
|
.4byte 0x42544D3A
|
|
|
|
.4byte 0x2042544D
|
|
|
|
.4byte 0x5F44656C
|
|
|
|
.4byte 0x65746553
|
|
|
|
.4byte 0x746F7265
|
|
|
|
.4byte 0x644C696E
|
|
|
|
.4byte 0x6B4B6579
|
|
|
|
.4byte 0x3A206465
|
|
|
|
.4byte 0x6C657465
|
|
|
|
.4byte 0x5F616C6C
|
|
|
|
.4byte 0x5F666C61
|
|
|
|
.4byte 0x673A2025
|
|
|
|
.4byte 0x73000000
|
|
|
|
.4byte 0
|
|
|
|
.include "macros.inc"
|
|
|
|
|
|
|
|
.section .sdata, "wa" # 0x80556420 - 0x8055C6E0 ; 0x000062C0
|
|
|
|
.global "@2067_80556900"
|
|
|
|
"@2067_80556900":
|
|
|
|
|
|
|
|
.4byte 0x001F0000
|
|
|
|
|
|
|
|
.global "@2363"
|
|
|
|
"@2363":
|
|
|
|
|
|
|
|
.4byte 0x54525545
|
|
|
|
.4byte 0
|
|
|
|
|
|
|
|
.global "@2364"
|
|
|
|
"@2364":
|
|
|
|
|
|
|
|
.4byte 0x46414C53
|
|
|
|
.4byte 0x45000000
|
|
|
|
.4byte 0
|