donut-decomp/asm/bte/l2c_utils.s

2419 lines
110 KiB
ArmAsm
Raw Permalink Normal View History

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 l2cu_allocate_lcb
l2cu_allocate_lcb:
2022-10-16 16:05:58 +00:00
/* 80094440 00090280 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80094444 00090284 7C 08 02 A6 */ mflr r0
2022-10-16 16:31:36 +00:00
/* 80094448 00090288 3C 80 80 50 */ lis r4, l2cb@ha
2022-10-16 16:05:58 +00:00
/* 8009444C 0009028C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80094450 00090290 38 00 00 04 */ li r0, 0x4
2022-10-16 16:31:36 +00:00
/* 80094454 00090294 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80094458 00090298 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8009445C 0009029C 3B E4 00 08 */ addi r31, r4, 0x8
/* 80094460 000902A0 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80094464 000902A4 7C 7E 1B 78 */ mr r30, r3
/* 80094468 000902A8 7C 09 03 A6 */ mtctr r0
.global lbl_8009446C
lbl_8009446C:
/* 8009446C 000902AC 88 1F 00 00 */ lbz r0, 0x0(r31)
/* 80094470 000902B0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094474 000902B4 40 82 00 7C */ bne lbl_800944F0
/* 80094478 000902B8 7F E3 FB 78 */ mr r3, r31
/* 8009447C 000902BC 38 80 00 00 */ li r4, 0x0
/* 80094480 000902C0 38 A0 00 5C */ li r5, 0x5c
2022-10-16 16:31:36 +00:00
/* 80094484 000902C4 4B F6 FE CD */ bl memset
2022-10-16 16:05:58 +00:00
/* 80094488 000902C8 38 00 00 01 */ li r0, 0x1
/* 8009448C 000902CC 7F C4 F3 78 */ mr r4, r30
/* 80094490 000902D0 98 1F 00 00 */ stb r0, 0x0(r31)
/* 80094494 000902D4 38 7F 00 2A */ addi r3, r31, 0x2a
/* 80094498 000902D8 38 A0 00 06 */ li r5, 0x6
2022-10-16 16:31:36 +00:00
/* 8009449C 000902DC 4B F6 FB 65 */ bl memcpy
2022-10-16 16:05:58 +00:00
/* 800944A0 000902E0 38 A0 00 00 */ li r5, 0x0
/* 800944A4 000902E4 3C 60 00 01 */ lis r3, 0x1
/* 800944A8 000902E8 90 BF 00 04 */ stw r5, 0x4(r31)
/* 800944AC 000902EC 38 03 FF FF */ addi r0, r3, -0x1
2022-10-16 16:31:36 +00:00
/* 800944B0 000902F0 3C 80 80 50 */ lis r4, l2cb@ha
2022-10-16 16:05:58 +00:00
/* 800944B4 000902F4 B0 1F 00 28 */ sth r0, 0x28(r31)
2022-10-16 16:31:36 +00:00
/* 800944B8 000902F8 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 800944BC 000902FC 90 BF 00 50 */ stw r5, 0x50(r31)
/* 800944C0 00090300 B0 1F 00 32 */ sth r0, 0x32(r31)
/* 800944C4 00090304 93 FF 00 20 */ stw r31, 0x20(r31)
/* 800944C8 00090308 B0 BF 00 38 */ sth r5, 0x38(r31)
/* 800944CC 0009030C A0 04 07 BA */ lhz r0, 0x7ba(r4)
/* 800944D0 00090310 B0 1F 00 58 */ sth r0, 0x58(r31)
/* 800944D4 00090314 98 BF 00 31 */ stb r5, 0x31(r31)
/* 800944D8 00090318 A0 64 07 B8 */ lhz r3, 0x7b8(r4)
/* 800944DC 0009031C 38 03 00 01 */ addi r0, r3, 0x1
/* 800944E0 00090320 B0 04 07 B8 */ sth r0, 0x7b8(r4)
2022-10-16 16:31:36 +00:00
/* 800944E4 00090324 4B FF E8 55 */ bl l2c_link_adjust_allocation
2022-10-16 16:05:58 +00:00
/* 800944E8 00090328 7F E3 FB 78 */ mr r3, r31
/* 800944EC 0009032C 48 00 00 10 */ b lbl_800944FC
.global lbl_800944F0
lbl_800944F0:
/* 800944F0 00090330 3B FF 00 5C */ addi r31, r31, 0x5c
/* 800944F4 00090334 42 00 FF 78 */ bdnz lbl_8009446C
/* 800944F8 00090338 38 60 00 00 */ li r3, 0x0
.global lbl_800944FC
lbl_800944FC:
/* 800944FC 0009033C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80094500 00090340 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80094504 00090344 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80094508 00090348 7C 08 03 A6 */ mtlr r0
/* 8009450C 0009034C 38 21 00 10 */ addi r1, r1, 0x10
/* 80094510 00090350 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_release_lcb
l2cu_release_lcb:
2022-10-16 16:05:58 +00:00
/* 80094514 00090354 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80094518 00090358 7C 08 02 A6 */ mflr r0
/* 8009451C 0009035C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80094520 00090360 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80094524 00090364 3B E0 00 00 */ li r31, 0x0
/* 80094528 00090368 93 C1 00 08 */ stw r30, 0x8(r1)
/* 8009452C 0009036C 7C 7E 1B 78 */ mr r30, r3
/* 80094530 00090370 9B E3 00 00 */ stb r31, 0x0(r3)
/* 80094534 00090374 38 63 00 10 */ addi r3, r3, 0x10
2022-10-16 16:31:36 +00:00
/* 80094538 00090378 4B FE 39 E9 */ bl btu_stop_timer
2022-10-16 16:05:58 +00:00
/* 8009453C 0009037C 80 7E 00 50 */ lwz r3, 0x50(r30)
/* 80094540 00090380 2C 03 00 00 */ cmpwi r3, 0x0
/* 80094544 00090384 41 82 00 0C */ beq lbl_80094550
2022-10-16 16:31:36 +00:00
/* 80094548 00090388 4B FE 09 C9 */ bl GKI_freebuf
2022-10-16 16:05:58 +00:00
/* 8009454C 0009038C 93 FE 00 50 */ stw r31, 0x50(r30)
.global lbl_80094550
lbl_80094550:
/* 80094550 00090390 38 7E 00 2A */ addi r3, r30, 0x2a
2022-10-16 16:31:36 +00:00
/* 80094554 00090394 4B FF 06 C1 */ bl btm_remove_sco_links
2022-10-16 16:05:58 +00:00
/* 80094558 00090398 80 7E 00 08 */ lwz r3, 0x8(r30)
/* 8009455C 0009039C 48 00 00 0C */ b lbl_80094568
.global lbl_80094560
lbl_80094560:
2022-10-16 16:31:36 +00:00
/* 80094560 000903A0 48 00 13 ED */ bl l2cu_release_ccb
2022-10-16 16:05:58 +00:00
/* 80094564 000903A4 80 7E 00 08 */ lwz r3, 0x8(r30)
.global lbl_80094568
lbl_80094568:
/* 80094568 000903A8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8009456C 000903AC 40 82 FF F4 */ bne lbl_80094560
/* 80094570 000903B0 80 7E 00 04 */ lwz r3, 0x4(r30)
/* 80094574 000903B4 38 03 FF FC */ addi r0, r3, -0x4
/* 80094578 000903B8 28 00 00 01 */ cmplwi r0, 0x1
/* 8009457C 000903BC 41 81 00 1C */ bgt lbl_80094598
/* 80094580 000903C0 38 7E 00 2A */ addi r3, r30, 0x2a
2022-10-16 16:31:36 +00:00
/* 80094584 000903C4 4B FE 9C 15 */ bl btm_acl_removed
2022-10-16 16:05:58 +00:00
/* 80094588 000903C8 48 00 00 10 */ b lbl_80094598
.global lbl_8009458C
lbl_8009458C:
/* 8009458C 000903CC 38 7E 00 44 */ addi r3, r30, 0x44
2022-10-16 16:31:36 +00:00
/* 80094590 000903D0 4B FE 10 31 */ bl GKI_dequeue
/* 80094594 000903D4 4B FE 09 7D */ bl GKI_freebuf
2022-10-16 16:05:58 +00:00
.global lbl_80094598
lbl_80094598:
/* 80094598 000903D8 80 1E 00 44 */ lwz r0, 0x44(r30)
/* 8009459C 000903DC 2C 00 00 00 */ cmpwi r0, 0x0
/* 800945A0 000903E0 40 82 FF EC */ bne lbl_8009458C
2022-10-16 16:31:36 +00:00
/* 800945A4 000903E4 3C 80 80 50 */ lis r4, l2cb@ha
/* 800945A8 000903E8 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 800945AC 000903EC A0 64 07 B8 */ lhz r3, 0x7b8(r4)
/* 800945B0 000903F0 28 03 00 01 */ cmplwi r3, 0x1
/* 800945B4 000903F4 41 80 00 0C */ blt lbl_800945C0
/* 800945B8 000903F8 38 03 FF FF */ addi r0, r3, -0x1
/* 800945BC 000903FC B0 04 07 B8 */ sth r0, 0x7b8(r4)
.global lbl_800945C0
lbl_800945C0:
2022-10-16 16:31:36 +00:00
/* 800945C0 00090400 3C 80 80 50 */ lis r4, l2cb@ha
2022-10-16 16:05:58 +00:00
/* 800945C4 00090404 A0 1E 00 38 */ lhz r0, 0x38(r30)
2022-10-16 16:31:36 +00:00
/* 800945C8 00090408 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 800945CC 0009040C A0 64 00 04 */ lhz r3, 0x4(r4)
/* 800945D0 00090410 7C 03 02 14 */ add r0, r3, r0
/* 800945D4 00090414 B0 04 00 04 */ sth r0, 0x4(r4)
2022-10-16 16:31:36 +00:00
/* 800945D8 00090418 4B FF E7 61 */ bl l2c_link_adjust_allocation
2022-10-16 16:05:58 +00:00
/* 800945DC 0009041C 81 9E 00 54 */ lwz r12, 0x54(r30)
/* 800945E0 00090420 2C 0C 00 00 */ cmpwi r12, 0x0
/* 800945E4 00090424 41 82 00 18 */ beq lbl_800945FC
/* 800945E8 00090428 38 00 00 00 */ li r0, 0x0
/* 800945EC 0009042C 38 60 00 01 */ li r3, 0x1
/* 800945F0 00090430 90 1E 00 54 */ stw r0, 0x54(r30)
/* 800945F4 00090434 7D 89 03 A6 */ mtctr r12
/* 800945F8 00090438 4E 80 04 21 */ bctrl
.global lbl_800945FC
lbl_800945FC:
/* 800945FC 0009043C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80094600 00090440 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80094604 00090444 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80094608 00090448 7C 08 03 A6 */ mtlr r0
/* 8009460C 0009044C 38 21 00 10 */ addi r1, r1, 0x10
/* 80094610 00090450 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_find_lcb_by_bd_addr
l2cu_find_lcb_by_bd_addr:
2022-10-16 16:05:58 +00:00
/* 80094614 00090454 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80094618 00090458 7C 08 02 A6 */ mflr r0
2022-10-16 16:31:36 +00:00
/* 8009461C 0009045C 3C 80 80 50 */ lis r4, l2cb@ha
2022-10-16 16:05:58 +00:00
/* 80094620 00090460 90 01 00 24 */ stw r0, 0x24(r1)
2022-10-16 16:31:36 +00:00
/* 80094624 00090464 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80094628 00090468 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8009462C 0009046C 3B E0 00 00 */ li r31, 0x0
/* 80094630 00090470 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80094634 00090474 3B C4 00 08 */ addi r30, r4, 0x8
/* 80094638 00090478 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8009463C 0009047C 7C 7D 1B 78 */ mr r29, r3
.global lbl_80094640
lbl_80094640:
/* 80094640 00090480 88 1E 00 00 */ lbz r0, 0x0(r30)
/* 80094644 00090484 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094648 00090488 41 82 00 24 */ beq lbl_8009466C
/* 8009464C 0009048C 7F A4 EB 78 */ mr r4, r29
/* 80094650 00090490 38 7E 00 2A */ addi r3, r30, 0x2a
/* 80094654 00090494 38 A0 00 06 */ li r5, 0x6
2022-10-16 16:31:36 +00:00
/* 80094658 00090498 4B F7 68 19 */ bl memcmp
2022-10-16 16:05:58 +00:00
/* 8009465C 0009049C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80094660 000904A0 40 82 00 0C */ bne lbl_8009466C
/* 80094664 000904A4 7F C3 F3 78 */ mr r3, r30
/* 80094668 000904A8 48 00 00 18 */ b lbl_80094680
.global lbl_8009466C
lbl_8009466C:
/* 8009466C 000904AC 3B FF 00 01 */ addi r31, r31, 0x1
/* 80094670 000904B0 3B DE 00 5C */ addi r30, r30, 0x5c
/* 80094674 000904B4 2C 1F 00 04 */ cmpwi r31, 0x4
/* 80094678 000904B8 41 80 FF C8 */ blt lbl_80094640
/* 8009467C 000904BC 38 60 00 00 */ li r3, 0x0
.global lbl_80094680
lbl_80094680:
/* 80094680 000904C0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80094684 000904C4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80094688 000904C8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8009468C 000904CC 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80094690 000904D0 7C 08 03 A6 */ mtlr r0
/* 80094694 000904D4 38 21 00 20 */ addi r1, r1, 0x20
/* 80094698 000904D8 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_find_lcb_by_handle
l2cu_find_lcb_by_handle:
/* 8009469C 000904DC 3C 80 80 50 */ lis r4, l2cb@ha
/* 800946A0 000904E0 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 800946A4 000904E4 8C 04 00 08 */ lbzu r0, 0x8(r4)
/* 800946A8 000904E8 2C 00 00 00 */ cmpwi r0, 0x0
/* 800946AC 000904EC 41 82 00 18 */ beq lbl_800946C4
/* 800946B0 000904F0 A0 04 00 28 */ lhz r0, 0x28(r4)
/* 800946B4 000904F4 7C 00 18 40 */ cmplw r0, r3
/* 800946B8 000904F8 40 82 00 0C */ bne lbl_800946C4
/* 800946BC 000904FC 7C 83 23 78 */ mr r3, r4
/* 800946C0 00090500 4E 80 00 20 */ blr
.global lbl_800946C4
lbl_800946C4:
/* 800946C4 00090504 8C 04 00 5C */ lbzu r0, 0x5c(r4)
/* 800946C8 00090508 2C 00 00 00 */ cmpwi r0, 0x0
/* 800946CC 0009050C 41 82 00 18 */ beq lbl_800946E4
/* 800946D0 00090510 A0 04 00 28 */ lhz r0, 0x28(r4)
/* 800946D4 00090514 7C 00 18 40 */ cmplw r0, r3
/* 800946D8 00090518 40 82 00 0C */ bne lbl_800946E4
/* 800946DC 0009051C 7C 83 23 78 */ mr r3, r4
/* 800946E0 00090520 4E 80 00 20 */ blr
.global lbl_800946E4
lbl_800946E4:
/* 800946E4 00090524 8C 04 00 5C */ lbzu r0, 0x5c(r4)
/* 800946E8 00090528 2C 00 00 00 */ cmpwi r0, 0x0
/* 800946EC 0009052C 41 82 00 18 */ beq lbl_80094704
/* 800946F0 00090530 A0 04 00 28 */ lhz r0, 0x28(r4)
/* 800946F4 00090534 7C 00 18 40 */ cmplw r0, r3
/* 800946F8 00090538 40 82 00 0C */ bne lbl_80094704
/* 800946FC 0009053C 7C 83 23 78 */ mr r3, r4
/* 80094700 00090540 4E 80 00 20 */ blr
.global lbl_80094704
lbl_80094704:
/* 80094704 00090544 8C 04 00 5C */ lbzu r0, 0x5c(r4)
/* 80094708 00090548 2C 00 00 00 */ cmpwi r0, 0x0
/* 8009470C 0009054C 41 82 00 18 */ beq lbl_80094724
/* 80094710 00090550 A0 04 00 28 */ lhz r0, 0x28(r4)
/* 80094714 00090554 7C 00 18 40 */ cmplw r0, r3
/* 80094718 00090558 40 82 00 0C */ bne lbl_80094724
/* 8009471C 0009055C 7C 83 23 78 */ mr r3, r4
/* 80094720 00090560 4E 80 00 20 */ blr
.global lbl_80094724
lbl_80094724:
/* 80094724 00090564 38 60 00 00 */ li r3, 0x0
/* 80094728 00090568 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_get_conn_role
l2cu_get_conn_role:
/* 8009472C 0009056C 3C 60 80 50 */ lis r3, l2cb@ha
/* 80094730 00090570 38 63 90 20 */ addi r3, r3, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80094734 00090574 88 63 00 01 */ lbz r3, 0x1(r3)
/* 80094738 00090578 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_build_header
l2cu_build_header:
2022-10-16 16:05:58 +00:00
/* 8009473C 0009057C 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80094740 00090580 7C 08 02 A6 */ mflr r0
/* 80094744 00090584 90 01 00 24 */ stw r0, 0x24(r1)
/* 80094748 00090588 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8009474C 0009058C 7C DF 33 78 */ mr r31, r6
/* 80094750 00090590 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80094754 00090594 7C BE 2B 78 */ mr r30, r5
/* 80094758 00090598 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8009475C 0009059C 7C 9D 23 78 */ mr r29, r4
/* 80094760 000905A0 93 81 00 10 */ stw r28, 0x10(r1)
/* 80094764 000905A4 7C 7C 1B 78 */ mr r28, r3
/* 80094768 000905A8 38 60 00 02 */ li r3, 0x2
2022-10-16 16:31:36 +00:00
/* 8009476C 000905AC 4B FE 06 B5 */ bl GKI_getpoolbuf
2022-10-16 16:05:58 +00:00
/* 80094770 000905B0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80094774 000905B4 40 82 00 0C */ bne lbl_80094780
/* 80094778 000905B8 38 60 00 00 */ li r3, 0x0
/* 8009477C 000905BC 48 00 00 64 */ b lbl_800947E0
.global lbl_80094780
lbl_80094780:
/* 80094780 000905C0 39 00 00 00 */ li r8, 0x0
/* 80094784 000905C4 63 85 20 00 */ ori r5, r28, 0x2000
/* 80094788 000905C8 B1 03 00 04 */ sth r8, 0x4(r3)
/* 8009478C 000905CC 38 1D 00 0C */ addi r0, r29, 0xc
/* 80094790 000905D0 7C A7 46 70 */ srawi r7, r5, 8
/* 80094794 000905D4 39 3D 00 08 */ addi r9, r29, 0x8
/* 80094798 000905D8 B0 03 00 02 */ sth r0, 0x2(r3)
/* 8009479C 000905DC 7D 26 46 70 */ srawi r6, r9, 8
/* 800947A0 000905E0 39 5D 00 04 */ addi r10, r29, 0x4
/* 800947A4 000905E4 38 80 00 01 */ li r4, 0x1
/* 800947A8 000905E8 98 A3 00 08 */ stb r5, 0x8(r3)
/* 800947AC 000905EC 7D 45 46 70 */ srawi r5, r10, 8
/* 800947B0 000905F0 57 A0 C6 3E */ extrwi r0, r29, 8, 16
/* 800947B4 000905F4 98 E3 00 09 */ stb r7, 0x9(r3)
/* 800947B8 000905F8 99 23 00 0A */ stb r9, 0xa(r3)
/* 800947BC 000905FC 98 C3 00 0B */ stb r6, 0xb(r3)
/* 800947C0 00090600 99 43 00 0C */ stb r10, 0xc(r3)
/* 800947C4 00090604 98 A3 00 0D */ stb r5, 0xd(r3)
/* 800947C8 00090608 98 83 00 0E */ stb r4, 0xe(r3)
/* 800947CC 0009060C 99 03 00 0F */ stb r8, 0xf(r3)
/* 800947D0 00090610 9B C3 00 10 */ stb r30, 0x10(r3)
/* 800947D4 00090614 9B E3 00 11 */ stb r31, 0x11(r3)
/* 800947D8 00090618 9B A3 00 12 */ stb r29, 0x12(r3)
/* 800947DC 0009061C 98 03 00 13 */ stb r0, 0x13(r3)
.global lbl_800947E0
lbl_800947E0:
/* 800947E0 00090620 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800947E4 00090624 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 800947E8 00090628 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 800947EC 0009062C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 800947F0 00090630 83 81 00 10 */ lwz r28, 0x10(r1)
/* 800947F4 00090634 7C 08 03 A6 */ mtlr r0
/* 800947F8 00090638 38 21 00 20 */ addi r1, r1, 0x20
/* 800947FC 0009063C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_cmd_reject
l2cu_send_peer_cmd_reject:
2022-10-16 16:05:58 +00:00
/* 80094800 00090640 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80094804 00090644 7C 08 02 A6 */ mflr r0
/* 80094808 00090648 90 01 00 24 */ stw r0, 0x24(r1)
/* 8009480C 0009064C 39 61 00 20 */ addi r11, r1, 0x20
/* 80094810 00090650 4B F7 2B 2D */ bl lbl_8000733C
/* 80094814 00090654 28 04 00 01 */ cmplwi r4, 0x1
/* 80094818 00090658 7C 7B 1B 78 */ mr r27, r3
/* 8009481C 0009065C 7C 9C 23 78 */ mr r28, r4
/* 80094820 00090660 7C DD 33 78 */ mr r29, r6
/* 80094824 00090664 7C FE 3B 78 */ mr r30, r7
/* 80094828 00090668 40 82 00 0C */ bne lbl_80094834
/* 8009482C 0009066C 3B E0 00 02 */ li r31, 0x2
/* 80094830 00090670 48 00 00 18 */ b lbl_80094848
.global lbl_80094834
lbl_80094834:
/* 80094834 00090674 38 C4 FF FE */ addi r6, r4, -0x2
/* 80094838 00090678 20 04 00 02 */ subfic r0, r4, 0x2
/* 8009483C 0009067C 7C C0 00 F8 */ nor r0, r6, r0
/* 80094840 00090680 7C 00 FE 70 */ srawi r0, r0, 31
/* 80094844 00090684 54 1F 07 7A */ rlwinm r31, r0, 0, 29, 29
.global lbl_80094848
lbl_80094848:
/* 80094848 00090688 38 1F 00 02 */ addi r0, r31, 0x2
/* 8009484C 0009068C A0 63 00 28 */ lhz r3, 0x28(r3)
/* 80094850 00090690 7C A6 2B 78 */ mr r6, r5
/* 80094854 00090694 38 A0 00 01 */ li r5, 0x1
/* 80094858 00090698 54 04 04 3E */ clrlwi r4, r0, 16
2022-10-16 16:31:36 +00:00
/* 8009485C 0009069C 4B FF FE E1 */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 80094860 000906A0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80094864 000906A4 7C 65 1B 78 */ mr r5, r3
/* 80094868 000906A8 40 82 00 2C */ bne lbl_80094894
2022-10-16 16:31:36 +00:00
/* 8009486C 000906AC 3C 60 80 50 */ lis r3, l2cb@ha
/* 80094870 000906B0 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 80094874 000906B4 28 00 00 02 */ cmplwi r0, 0x2
/* 80094878 000906B8 41 80 00 6C */ blt lbl_800948E4
/* 8009487C 000906BC 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80094880 000906C0 3C 80 80 44 */ lis r4, "@2062"@ha
2022-10-16 16:05:58 +00:00
/* 80094884 000906C4 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 80094888 000906C8 38 84 EB 68 */ addi r4, r4, "@2062"@l
/* 8009488C 000906CC 4B FE 30 D5 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 80094890 000906D0 48 00 00 54 */ b lbl_800948E4
.global lbl_80094894
lbl_80094894:
/* 80094894 000906D4 57 E0 04 3E */ clrlwi r0, r31, 16
/* 80094898 000906D8 9B 83 00 14 */ stb r28, 0x14(r3)
/* 8009489C 000906DC 57 84 C6 3E */ extrwi r4, r28, 8, 16
/* 800948A0 000906E0 38 C3 00 16 */ addi r6, r3, 0x16
/* 800948A4 000906E4 28 00 00 02 */ cmplwi r0, 0x2
/* 800948A8 000906E8 98 83 00 15 */ stb r4, 0x15(r3)
/* 800948AC 000906EC 41 80 00 14 */ blt lbl_800948C0
/* 800948B0 000906F0 9B A6 00 00 */ stb r29, 0x0(r6)
/* 800948B4 000906F4 57 A0 C6 3E */ extrwi r0, r29, 8, 16
/* 800948B8 000906F8 98 06 00 01 */ stb r0, 0x1(r6)
/* 800948BC 000906FC 38 C6 00 02 */ addi r6, r6, 0x2
.global lbl_800948C0
lbl_800948C0:
/* 800948C0 00090700 57 E0 04 3E */ clrlwi r0, r31, 16
/* 800948C4 00090704 28 00 00 04 */ cmplwi r0, 0x4
/* 800948C8 00090708 41 80 00 10 */ blt lbl_800948D8
/* 800948CC 0009070C 9B C6 00 00 */ stb r30, 0x0(r6)
/* 800948D0 00090710 57 C0 C6 3E */ extrwi r0, r30, 8, 16
/* 800948D4 00090714 98 06 00 01 */ stb r0, 0x1(r6)
.global lbl_800948D8
lbl_800948D8:
/* 800948D8 00090718 7F 63 DB 78 */ mr r3, r27
/* 800948DC 0009071C 38 80 00 00 */ li r4, 0x0
2022-10-16 16:31:36 +00:00
/* 800948E0 00090720 4B FF E1 8D */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_800948E4
lbl_800948E4:
/* 800948E4 00090724 39 61 00 20 */ addi r11, r1, 0x20
/* 800948E8 00090728 4B F7 2A A1 */ bl lbl_80007388
/* 800948EC 0009072C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800948F0 00090730 7C 08 03 A6 */ mtlr r0
/* 800948F4 00090734 38 21 00 20 */ addi r1, r1, 0x20
/* 800948F8 00090738 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_connect_req
l2cu_send_peer_connect_req:
2022-10-16 16:05:58 +00:00
/* 800948FC 0009073C 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80094900 00090740 7C 08 02 A6 */ mflr r0
/* 80094904 00090744 38 80 00 04 */ li r4, 0x4
/* 80094908 00090748 38 A0 00 02 */ li r5, 0x2
/* 8009490C 0009074C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80094910 00090750 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80094914 00090754 7C 7F 1B 78 */ mr r31, r3
/* 80094918 00090758 80 E3 00 10 */ lwz r7, 0x10(r3)
/* 8009491C 0009075C 88 C7 00 31 */ lbz r6, 0x31(r7)
/* 80094920 00090760 38 06 00 01 */ addi r0, r6, 0x1
/* 80094924 00090764 98 07 00 31 */ stb r0, 0x31(r7)
/* 80094928 00090768 54 06 06 3E */ clrlwi r6, r0, 24
/* 8009492C 0009076C 98 03 00 35 */ stb r0, 0x35(r3)
/* 80094930 00090770 80 63 00 10 */ lwz r3, 0x10(r3)
/* 80094934 00090774 A0 63 00 28 */ lhz r3, 0x28(r3)
2022-10-16 16:31:36 +00:00
/* 80094938 00090778 4B FF FE 05 */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 8009493C 0009077C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80094940 00090780 40 82 00 2C */ bne lbl_8009496C
2022-10-16 16:31:36 +00:00
/* 80094944 00090784 3C 60 80 50 */ lis r3, l2cb@ha
/* 80094948 00090788 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 8009494C 0009078C 28 00 00 02 */ cmplwi r0, 0x2
/* 80094950 00090790 41 80 00 5C */ blt lbl_800949AC
/* 80094954 00090794 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80094958 00090798 3C 80 80 44 */ lis r4, "@2067_8043EB84"@ha
2022-10-16 16:05:58 +00:00
/* 8009495C 0009079C 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 80094960 000907A0 38 84 EB 84 */ addi r4, r4, "@2067_8043EB84"@l
/* 80094964 000907A4 4B FE 2F FD */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 80094968 000907A8 48 00 00 44 */ b lbl_800949AC
.global lbl_8009496C
lbl_8009496C:
/* 8009496C 000907AC 80 DF 00 30 */ lwz r6, 0x30(r31)
/* 80094970 000907B0 7C 65 1B 78 */ mr r5, r3
/* 80094974 000907B4 38 80 00 00 */ li r4, 0x0
/* 80094978 000907B8 A0 06 00 02 */ lhz r0, 0x2(r6)
/* 8009497C 000907BC 98 03 00 14 */ stb r0, 0x14(r3)
/* 80094980 000907C0 80 DF 00 30 */ lwz r6, 0x30(r31)
/* 80094984 000907C4 A0 06 00 02 */ lhz r0, 0x2(r6)
/* 80094988 000907C8 7C 00 46 70 */ srawi r0, r0, 8
/* 8009498C 000907CC 98 03 00 15 */ stb r0, 0x15(r3)
/* 80094990 000907D0 A0 1F 00 14 */ lhz r0, 0x14(r31)
/* 80094994 000907D4 98 03 00 16 */ stb r0, 0x16(r3)
/* 80094998 000907D8 A0 1F 00 14 */ lhz r0, 0x14(r31)
/* 8009499C 000907DC 7C 00 46 70 */ srawi r0, r0, 8
/* 800949A0 000907E0 98 03 00 17 */ stb r0, 0x17(r3)
/* 800949A4 000907E4 80 7F 00 10 */ lwz r3, 0x10(r31)
2022-10-16 16:31:36 +00:00
/* 800949A8 000907E8 4B FF E0 C5 */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_800949AC
lbl_800949AC:
/* 800949AC 000907EC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800949B0 000907F0 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800949B4 000907F4 7C 08 03 A6 */ mtlr r0
/* 800949B8 000907F8 38 21 00 10 */ addi r1, r1, 0x10
/* 800949BC 000907FC 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_connect_rsp
l2cu_send_peer_connect_rsp:
2022-10-16 16:05:58 +00:00
/* 800949C0 00090800 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800949C4 00090804 7C 08 02 A6 */ mflr r0
/* 800949C8 00090808 90 01 00 24 */ stw r0, 0x24(r1)
/* 800949CC 0009080C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800949D0 00090810 7C BF 2B 78 */ mr r31, r5
/* 800949D4 00090814 38 A0 00 03 */ li r5, 0x3
/* 800949D8 00090818 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800949DC 0009081C 7C 9E 23 78 */ mr r30, r4
/* 800949E0 00090820 38 80 00 08 */ li r4, 0x8
/* 800949E4 00090824 93 A1 00 14 */ stw r29, 0x14(r1)
/* 800949E8 00090828 7C 7D 1B 78 */ mr r29, r3
/* 800949EC 0009082C 80 C3 00 10 */ lwz r6, 0x10(r3)
/* 800949F0 00090830 A0 66 00 28 */ lhz r3, 0x28(r6)
/* 800949F4 00090834 88 DD 00 36 */ lbz r6, 0x36(r29)
2022-10-16 16:31:36 +00:00
/* 800949F8 00090838 4B FF FD 45 */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 800949FC 0009083C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80094A00 00090840 40 82 00 2C */ bne lbl_80094A2C
2022-10-16 16:31:36 +00:00
/* 80094A04 00090844 3C 60 80 50 */ lis r3, l2cb@ha
/* 80094A08 00090848 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 80094A0C 0009084C 28 00 00 02 */ cmplwi r0, 0x2
/* 80094A10 00090850 41 80 00 6C */ blt lbl_80094A7C
/* 80094A14 00090854 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80094A18 00090858 3C 80 80 44 */ lis r4, "@2067_8043EB84"@ha
2022-10-16 16:05:58 +00:00
/* 80094A1C 0009085C 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 80094A20 00090860 38 84 EB 84 */ addi r4, r4, "@2067_8043EB84"@l
/* 80094A24 00090864 4B FE 2F 3D */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 80094A28 00090868 48 00 00 54 */ b lbl_80094A7C
.global lbl_80094A2C
lbl_80094A2C:
/* 80094A2C 0009086C A0 DD 00 14 */ lhz r6, 0x14(r29)
/* 80094A30 00090870 57 E0 C6 3E */ extrwi r0, r31, 8, 16
/* 80094A34 00090874 7C 65 1B 78 */ mr r5, r3
/* 80094A38 00090878 38 80 00 00 */ li r4, 0x0
/* 80094A3C 0009087C 98 C3 00 14 */ stb r6, 0x14(r3)
/* 80094A40 00090880 A0 DD 00 14 */ lhz r6, 0x14(r29)
/* 80094A44 00090884 7C C6 46 70 */ srawi r6, r6, 8
/* 80094A48 00090888 98 C3 00 15 */ stb r6, 0x15(r3)
/* 80094A4C 0009088C A0 DD 00 16 */ lhz r6, 0x16(r29)
/* 80094A50 00090890 98 C3 00 16 */ stb r6, 0x16(r3)
/* 80094A54 00090894 A0 DD 00 16 */ lhz r6, 0x16(r29)
/* 80094A58 00090898 7C C6 46 70 */ srawi r6, r6, 8
/* 80094A5C 0009089C 98 C3 00 17 */ stb r6, 0x17(r3)
/* 80094A60 000908A0 7F C6 46 70 */ srawi r6, r30, 8
/* 80094A64 000908A4 9B C3 00 18 */ stb r30, 0x18(r3)
/* 80094A68 000908A8 98 C3 00 19 */ stb r6, 0x19(r3)
/* 80094A6C 000908AC 9B E3 00 1A */ stb r31, 0x1a(r3)
/* 80094A70 000908B0 98 03 00 1B */ stb r0, 0x1b(r3)
/* 80094A74 000908B4 80 7D 00 10 */ lwz r3, 0x10(r29)
2022-10-16 16:31:36 +00:00
/* 80094A78 000908B8 4B FF DF F5 */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_80094A7C
lbl_80094A7C:
/* 80094A7C 000908BC 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80094A80 000908C0 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80094A84 000908C4 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80094A88 000908C8 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80094A8C 000908CC 7C 08 03 A6 */ mtlr r0
/* 80094A90 000908D0 38 21 00 20 */ addi r1, r1, 0x20
/* 80094A94 000908D4 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_reject_connection
l2cu_reject_connection:
2022-10-16 16:05:58 +00:00
/* 80094A98 000908D8 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80094A9C 000908DC 7C 08 02 A6 */ mflr r0
/* 80094AA0 000908E0 90 01 00 24 */ stw r0, 0x24(r1)
/* 80094AA4 000908E4 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80094AA8 000908E8 7C DF 33 78 */ mr r31, r6
/* 80094AAC 000908EC 7C A6 2B 78 */ mr r6, r5
/* 80094AB0 000908F0 38 A0 00 03 */ li r5, 0x3
/* 80094AB4 000908F4 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80094AB8 000908F8 7C 9E 23 78 */ mr r30, r4
/* 80094ABC 000908FC 38 80 00 08 */ li r4, 0x8
/* 80094AC0 00090900 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80094AC4 00090904 7C 7D 1B 78 */ mr r29, r3
/* 80094AC8 00090908 A0 63 00 28 */ lhz r3, 0x28(r3)
2022-10-16 16:31:36 +00:00
/* 80094ACC 0009090C 4B FF FC 71 */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 80094AD0 00090910 2C 03 00 00 */ cmpwi r3, 0x0
/* 80094AD4 00090914 40 82 00 2C */ bne lbl_80094B00
2022-10-16 16:31:36 +00:00
/* 80094AD8 00090918 3C 60 80 50 */ lis r3, l2cb@ha
/* 80094ADC 0009091C 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 80094AE0 00090920 28 00 00 02 */ cmplwi r0, 0x2
/* 80094AE4 00090924 41 80 00 58 */ blt lbl_80094B3C
/* 80094AE8 00090928 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80094AEC 0009092C 3C 80 80 44 */ lis r4, "@2067_8043EB84"@ha
2022-10-16 16:05:58 +00:00
/* 80094AF0 00090930 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 80094AF4 00090934 38 84 EB 84 */ addi r4, r4, "@2067_8043EB84"@l
/* 80094AF8 00090938 4B FE 2E 69 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 80094AFC 0009093C 48 00 00 40 */ b lbl_80094B3C
.global lbl_80094B00
lbl_80094B00:
/* 80094B00 00090940 38 E0 00 00 */ li r7, 0x0
/* 80094B04 00090944 7F C6 46 70 */ srawi r6, r30, 8
/* 80094B08 00090948 98 E3 00 14 */ stb r7, 0x14(r3)
/* 80094B0C 0009094C 57 E0 C6 3E */ extrwi r0, r31, 8, 16
/* 80094B10 00090950 7C 65 1B 78 */ mr r5, r3
/* 80094B14 00090954 38 80 00 00 */ li r4, 0x0
/* 80094B18 00090958 98 E3 00 15 */ stb r7, 0x15(r3)
/* 80094B1C 0009095C 9B C3 00 16 */ stb r30, 0x16(r3)
/* 80094B20 00090960 98 C3 00 17 */ stb r6, 0x17(r3)
/* 80094B24 00090964 9B E3 00 18 */ stb r31, 0x18(r3)
/* 80094B28 00090968 98 03 00 19 */ stb r0, 0x19(r3)
/* 80094B2C 0009096C 98 E3 00 1A */ stb r7, 0x1a(r3)
/* 80094B30 00090970 98 E3 00 1B */ stb r7, 0x1b(r3)
/* 80094B34 00090974 7F A3 EB 78 */ mr r3, r29
2022-10-16 16:31:36 +00:00
/* 80094B38 00090978 4B FF DF 35 */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_80094B3C
lbl_80094B3C:
/* 80094B3C 0009097C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80094B40 00090980 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80094B44 00090984 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80094B48 00090988 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80094B4C 0009098C 7C 08 03 A6 */ mtlr r0
/* 80094B50 00090990 38 21 00 20 */ addi r1, r1, 0x20
/* 80094B54 00090994 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_config_req
l2cu_send_peer_config_req:
2022-10-16 16:05:58 +00:00
/* 80094B58 00090998 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80094B5C 0009099C 7C 08 02 A6 */ mflr r0
/* 80094B60 000909A0 38 E0 00 00 */ li r7, 0x0
/* 80094B64 000909A4 90 01 00 14 */ stw r0, 0x14(r1)
/* 80094B68 000909A8 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80094B6C 000909AC 7C 9F 23 78 */ mr r31, r4
/* 80094B70 000909B0 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80094B74 000909B4 7C 7E 1B 78 */ mr r30, r3
/* 80094B78 000909B8 80 C3 00 10 */ lwz r6, 0x10(r3)
/* 80094B7C 000909BC 88 A6 00 31 */ lbz r5, 0x31(r6)
/* 80094B80 000909C0 38 05 00 01 */ addi r0, r5, 0x1
/* 80094B84 000909C4 98 06 00 31 */ stb r0, 0x31(r6)
/* 80094B88 000909C8 98 03 00 35 */ stb r0, 0x35(r3)
/* 80094B8C 000909CC 88 04 00 02 */ lbz r0, 0x2(r4)
/* 80094B90 000909D0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094B94 000909D4 41 82 00 08 */ beq lbl_80094B9C
/* 80094B98 000909D8 38 E0 00 04 */ li r7, 0x4
.global lbl_80094B9C
lbl_80094B9C:
/* 80094B9C 000909DC 88 04 00 20 */ lbz r0, 0x20(r4)
/* 80094BA0 000909E0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094BA4 000909E4 41 82 00 0C */ beq lbl_80094BB0
/* 80094BA8 000909E8 38 07 00 04 */ addi r0, r7, 0x4
/* 80094BAC 000909EC 54 07 04 3E */ clrlwi r7, r0, 16
.global lbl_80094BB0
lbl_80094BB0:
/* 80094BB0 000909F0 88 04 00 06 */ lbz r0, 0x6(r4)
/* 80094BB4 000909F4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094BB8 000909F8 41 82 00 0C */ beq lbl_80094BC4
/* 80094BBC 000909FC 38 07 00 18 */ addi r0, r7, 0x18
/* 80094BC0 00090A00 54 07 04 3E */ clrlwi r7, r0, 16
.global lbl_80094BC4
lbl_80094BC4:
/* 80094BC4 00090A04 88 04 00 24 */ lbz r0, 0x24(r4)
/* 80094BC8 00090A08 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094BCC 00090A0C 41 82 00 0C */ beq lbl_80094BD8
/* 80094BD0 00090A10 38 07 00 0B */ addi r0, r7, 0xb
/* 80094BD4 00090A14 54 07 04 3E */ clrlwi r7, r0, 16
.global lbl_80094BD8
lbl_80094BD8:
/* 80094BD8 00090A18 80 63 00 10 */ lwz r3, 0x10(r3)
/* 80094BDC 00090A1C 38 07 00 04 */ addi r0, r7, 0x4
/* 80094BE0 00090A20 88 DE 00 35 */ lbz r6, 0x35(r30)
/* 80094BE4 00090A24 54 04 04 3E */ clrlwi r4, r0, 16
/* 80094BE8 00090A28 A0 63 00 28 */ lhz r3, 0x28(r3)
/* 80094BEC 00090A2C 38 A0 00 04 */ li r5, 0x4
2022-10-16 16:31:36 +00:00
/* 80094BF0 00090A30 4B FF FB 4D */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 80094BF4 00090A34 2C 03 00 00 */ cmpwi r3, 0x0
/* 80094BF8 00090A38 7C 65 1B 78 */ mr r5, r3
/* 80094BFC 00090A3C 40 82 00 2C */ bne lbl_80094C28
2022-10-16 16:31:36 +00:00
/* 80094C00 00090A40 3C 60 80 50 */ lis r3, l2cb@ha
/* 80094C04 00090A44 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 80094C08 00090A48 28 00 00 02 */ cmplwi r0, 0x2
/* 80094C0C 00090A4C 41 80 02 2C */ blt lbl_80094E38
/* 80094C10 00090A50 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80094C14 00090A54 3C 80 80 44 */ lis r4, "@2067_8043EB84"@ha
2022-10-16 16:05:58 +00:00
/* 80094C18 00090A58 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 80094C1C 00090A5C 38 84 EB 84 */ addi r4, r4, "@2067_8043EB84"@l
/* 80094C20 00090A60 4B FE 2D 41 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 80094C24 00090A64 48 00 02 14 */ b lbl_80094E38
.global lbl_80094C28
lbl_80094C28:
/* 80094C28 00090A68 A0 DE 00 16 */ lhz r6, 0x16(r30)
/* 80094C2C 00090A6C 38 00 00 00 */ li r0, 0x0
/* 80094C30 00090A70 38 83 00 18 */ addi r4, r3, 0x18
/* 80094C34 00090A74 98 C3 00 14 */ stb r6, 0x14(r3)
/* 80094C38 00090A78 A0 DE 00 16 */ lhz r6, 0x16(r30)
/* 80094C3C 00090A7C 7C C6 46 70 */ srawi r6, r6, 8
/* 80094C40 00090A80 98 C3 00 15 */ stb r6, 0x15(r3)
/* 80094C44 00090A84 98 03 00 16 */ stb r0, 0x16(r3)
/* 80094C48 00090A88 98 03 00 17 */ stb r0, 0x17(r3)
/* 80094C4C 00090A8C 88 1F 00 02 */ lbz r0, 0x2(r31)
/* 80094C50 00090A90 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094C54 00090A94 41 82 00 2C */ beq lbl_80094C80
/* 80094C58 00090A98 38 60 00 01 */ li r3, 0x1
/* 80094C5C 00090A9C 38 00 00 02 */ li r0, 0x2
/* 80094C60 00090AA0 98 64 00 00 */ stb r3, 0x0(r4)
/* 80094C64 00090AA4 98 04 00 01 */ stb r0, 0x1(r4)
/* 80094C68 00090AA8 A0 1F 00 04 */ lhz r0, 0x4(r31)
/* 80094C6C 00090AAC 98 04 00 02 */ stb r0, 0x2(r4)
/* 80094C70 00090AB0 A0 1F 00 04 */ lhz r0, 0x4(r31)
/* 80094C74 00090AB4 7C 00 46 70 */ srawi r0, r0, 8
/* 80094C78 00090AB8 98 04 00 03 */ stb r0, 0x3(r4)
/* 80094C7C 00090ABC 38 84 00 04 */ addi r4, r4, 0x4
.global lbl_80094C80
lbl_80094C80:
/* 80094C80 00090AC0 88 1F 00 20 */ lbz r0, 0x20(r31)
/* 80094C84 00090AC4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094C88 00090AC8 41 82 00 28 */ beq lbl_80094CB0
/* 80094C8C 00090ACC 38 00 00 02 */ li r0, 0x2
/* 80094C90 00090AD0 98 04 00 00 */ stb r0, 0x0(r4)
/* 80094C94 00090AD4 98 04 00 01 */ stb r0, 0x1(r4)
/* 80094C98 00090AD8 A0 1F 00 22 */ lhz r0, 0x22(r31)
/* 80094C9C 00090ADC 98 04 00 02 */ stb r0, 0x2(r4)
/* 80094CA0 00090AE0 A0 1F 00 22 */ lhz r0, 0x22(r31)
/* 80094CA4 00090AE4 7C 00 46 70 */ srawi r0, r0, 8
/* 80094CA8 00090AE8 98 04 00 03 */ stb r0, 0x3(r4)
/* 80094CAC 00090AEC 38 84 00 04 */ addi r4, r4, 0x4
.global lbl_80094CB0
lbl_80094CB0:
/* 80094CB0 00090AF0 88 1F 00 06 */ lbz r0, 0x6(r31)
/* 80094CB4 00090AF4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094CB8 00090AF8 41 82 01 04 */ beq lbl_80094DBC
/* 80094CBC 00090AFC 38 60 00 03 */ li r3, 0x3
/* 80094CC0 00090B00 38 00 00 16 */ li r0, 0x16
/* 80094CC4 00090B04 98 64 00 00 */ stb r3, 0x0(r4)
/* 80094CC8 00090B08 98 04 00 01 */ stb r0, 0x1(r4)
/* 80094CCC 00090B0C 88 1F 00 08 */ lbz r0, 0x8(r31)
/* 80094CD0 00090B10 98 04 00 02 */ stb r0, 0x2(r4)
/* 80094CD4 00090B14 88 1F 00 09 */ lbz r0, 0x9(r31)
/* 80094CD8 00090B18 98 04 00 03 */ stb r0, 0x3(r4)
/* 80094CDC 00090B1C 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80094CE0 00090B20 98 04 00 04 */ stb r0, 0x4(r4)
/* 80094CE4 00090B24 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80094CE8 00090B28 54 00 C6 3E */ extrwi r0, r0, 8, 16
/* 80094CEC 00090B2C 98 04 00 05 */ stb r0, 0x5(r4)
/* 80094CF0 00090B30 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80094CF4 00090B34 54 00 86 3E */ extrwi r0, r0, 8, 8
/* 80094CF8 00090B38 98 04 00 06 */ stb r0, 0x6(r4)
/* 80094CFC 00090B3C 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80094D00 00090B40 54 00 46 3E */ srwi r0, r0, 24
/* 80094D04 00090B44 98 04 00 07 */ stb r0, 0x7(r4)
/* 80094D08 00090B48 80 1F 00 10 */ lwz r0, 0x10(r31)
/* 80094D0C 00090B4C 98 04 00 08 */ stb r0, 0x8(r4)
/* 80094D10 00090B50 80 1F 00 10 */ lwz r0, 0x10(r31)
/* 80094D14 00090B54 54 00 C6 3E */ extrwi r0, r0, 8, 16
/* 80094D18 00090B58 98 04 00 09 */ stb r0, 0x9(r4)
/* 80094D1C 00090B5C 80 1F 00 10 */ lwz r0, 0x10(r31)
/* 80094D20 00090B60 54 00 86 3E */ extrwi r0, r0, 8, 8
/* 80094D24 00090B64 98 04 00 0A */ stb r0, 0xa(r4)
/* 80094D28 00090B68 80 1F 00 10 */ lwz r0, 0x10(r31)
/* 80094D2C 00090B6C 54 00 46 3E */ srwi r0, r0, 24
/* 80094D30 00090B70 98 04 00 0B */ stb r0, 0xb(r4)
/* 80094D34 00090B74 80 1F 00 14 */ lwz r0, 0x14(r31)
/* 80094D38 00090B78 98 04 00 0C */ stb r0, 0xc(r4)
/* 80094D3C 00090B7C 80 1F 00 14 */ lwz r0, 0x14(r31)
/* 80094D40 00090B80 54 00 C6 3E */ extrwi r0, r0, 8, 16
/* 80094D44 00090B84 98 04 00 0D */ stb r0, 0xd(r4)
/* 80094D48 00090B88 80 1F 00 14 */ lwz r0, 0x14(r31)
/* 80094D4C 00090B8C 54 00 86 3E */ extrwi r0, r0, 8, 8
/* 80094D50 00090B90 98 04 00 0E */ stb r0, 0xe(r4)
/* 80094D54 00090B94 80 1F 00 14 */ lwz r0, 0x14(r31)
/* 80094D58 00090B98 54 00 46 3E */ srwi r0, r0, 24
/* 80094D5C 00090B9C 98 04 00 0F */ stb r0, 0xf(r4)
/* 80094D60 00090BA0 80 1F 00 18 */ lwz r0, 0x18(r31)
/* 80094D64 00090BA4 98 04 00 10 */ stb r0, 0x10(r4)
/* 80094D68 00090BA8 80 1F 00 18 */ lwz r0, 0x18(r31)
/* 80094D6C 00090BAC 54 00 C6 3E */ extrwi r0, r0, 8, 16
/* 80094D70 00090BB0 98 04 00 11 */ stb r0, 0x11(r4)
/* 80094D74 00090BB4 80 1F 00 18 */ lwz r0, 0x18(r31)
/* 80094D78 00090BB8 54 00 86 3E */ extrwi r0, r0, 8, 8
/* 80094D7C 00090BBC 98 04 00 12 */ stb r0, 0x12(r4)
/* 80094D80 00090BC0 80 1F 00 18 */ lwz r0, 0x18(r31)
/* 80094D84 00090BC4 54 00 46 3E */ srwi r0, r0, 24
/* 80094D88 00090BC8 98 04 00 13 */ stb r0, 0x13(r4)
/* 80094D8C 00090BCC 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 80094D90 00090BD0 98 04 00 14 */ stb r0, 0x14(r4)
/* 80094D94 00090BD4 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 80094D98 00090BD8 54 00 C6 3E */ extrwi r0, r0, 8, 16
/* 80094D9C 00090BDC 98 04 00 15 */ stb r0, 0x15(r4)
/* 80094DA0 00090BE0 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 80094DA4 00090BE4 54 00 86 3E */ extrwi r0, r0, 8, 8
/* 80094DA8 00090BE8 98 04 00 16 */ stb r0, 0x16(r4)
/* 80094DAC 00090BEC 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 80094DB0 00090BF0 54 00 46 3E */ srwi r0, r0, 24
/* 80094DB4 00090BF4 98 04 00 17 */ stb r0, 0x17(r4)
/* 80094DB8 00090BF8 38 84 00 18 */ addi r4, r4, 0x18
.global lbl_80094DBC
lbl_80094DBC:
/* 80094DBC 00090BFC 88 1F 00 24 */ lbz r0, 0x24(r31)
/* 80094DC0 00090C00 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094DC4 00090C04 41 82 00 68 */ beq lbl_80094E2C
/* 80094DC8 00090C08 38 60 00 04 */ li r3, 0x4
/* 80094DCC 00090C0C 38 00 00 09 */ li r0, 0x9
/* 80094DD0 00090C10 98 64 00 00 */ stb r3, 0x0(r4)
/* 80094DD4 00090C14 98 04 00 01 */ stb r0, 0x1(r4)
/* 80094DD8 00090C18 88 1F 00 26 */ lbz r0, 0x26(r31)
/* 80094DDC 00090C1C 98 04 00 02 */ stb r0, 0x2(r4)
/* 80094DE0 00090C20 88 1F 00 27 */ lbz r0, 0x27(r31)
/* 80094DE4 00090C24 98 04 00 03 */ stb r0, 0x3(r4)
/* 80094DE8 00090C28 88 1F 00 28 */ lbz r0, 0x28(r31)
/* 80094DEC 00090C2C 98 04 00 04 */ stb r0, 0x4(r4)
/* 80094DF0 00090C30 A0 1F 00 2A */ lhz r0, 0x2a(r31)
/* 80094DF4 00090C34 98 04 00 05 */ stb r0, 0x5(r4)
/* 80094DF8 00090C38 A0 1F 00 2A */ lhz r0, 0x2a(r31)
/* 80094DFC 00090C3C 7C 00 46 70 */ srawi r0, r0, 8
/* 80094E00 00090C40 98 04 00 06 */ stb r0, 0x6(r4)
/* 80094E04 00090C44 A0 1F 00 2C */ lhz r0, 0x2c(r31)
/* 80094E08 00090C48 98 04 00 07 */ stb r0, 0x7(r4)
/* 80094E0C 00090C4C A0 1F 00 2C */ lhz r0, 0x2c(r31)
/* 80094E10 00090C50 7C 00 46 70 */ srawi r0, r0, 8
/* 80094E14 00090C54 98 04 00 08 */ stb r0, 0x8(r4)
/* 80094E18 00090C58 A0 1F 00 2E */ lhz r0, 0x2e(r31)
/* 80094E1C 00090C5C 98 04 00 09 */ stb r0, 0x9(r4)
/* 80094E20 00090C60 A0 1F 00 2E */ lhz r0, 0x2e(r31)
/* 80094E24 00090C64 7C 00 46 70 */ srawi r0, r0, 8
/* 80094E28 00090C68 98 04 00 0A */ stb r0, 0xa(r4)
.global lbl_80094E2C
lbl_80094E2C:
/* 80094E2C 00090C6C 80 7E 00 10 */ lwz r3, 0x10(r30)
/* 80094E30 00090C70 38 80 00 00 */ li r4, 0x0
2022-10-16 16:31:36 +00:00
/* 80094E34 00090C74 4B FF DC 39 */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_80094E38
lbl_80094E38:
/* 80094E38 00090C78 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80094E3C 00090C7C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80094E40 00090C80 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80094E44 00090C84 7C 08 03 A6 */ mtlr r0
/* 80094E48 00090C88 38 21 00 10 */ addi r1, r1, 0x10
/* 80094E4C 00090C8C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_config_rsp
l2cu_send_peer_config_rsp:
2022-10-16 16:05:58 +00:00
/* 80094E50 00090C90 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80094E54 00090C94 7C 08 02 A6 */ mflr r0
/* 80094E58 00090C98 38 A0 00 00 */ li r5, 0x0
/* 80094E5C 00090C9C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80094E60 00090CA0 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80094E64 00090CA4 7C 9F 23 78 */ mr r31, r4
/* 80094E68 00090CA8 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80094E6C 00090CAC 7C 7E 1B 78 */ mr r30, r3
/* 80094E70 00090CB0 88 04 00 02 */ lbz r0, 0x2(r4)
/* 80094E74 00090CB4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094E78 00090CB8 41 82 00 08 */ beq lbl_80094E80
/* 80094E7C 00090CBC 38 A0 00 04 */ li r5, 0x4
.global lbl_80094E80
lbl_80094E80:
/* 80094E80 00090CC0 88 04 00 20 */ lbz r0, 0x20(r4)
/* 80094E84 00090CC4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094E88 00090CC8 41 82 00 0C */ beq lbl_80094E94
/* 80094E8C 00090CCC 38 05 00 04 */ addi r0, r5, 0x4
/* 80094E90 00090CD0 54 05 04 3E */ clrlwi r5, r0, 16
.global lbl_80094E94
lbl_80094E94:
/* 80094E94 00090CD4 88 04 00 06 */ lbz r0, 0x6(r4)
/* 80094E98 00090CD8 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094E9C 00090CDC 41 82 00 0C */ beq lbl_80094EA8
/* 80094EA0 00090CE0 38 05 00 18 */ addi r0, r5, 0x18
/* 80094EA4 00090CE4 54 05 04 3E */ clrlwi r5, r0, 16
.global lbl_80094EA8
lbl_80094EA8:
/* 80094EA8 00090CE8 88 04 00 24 */ lbz r0, 0x24(r4)
/* 80094EAC 00090CEC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094EB0 00090CF0 41 82 00 0C */ beq lbl_80094EBC
/* 80094EB4 00090CF4 38 05 00 0B */ addi r0, r5, 0xb
/* 80094EB8 00090CF8 54 05 04 3E */ clrlwi r5, r0, 16
.global lbl_80094EBC
lbl_80094EBC:
/* 80094EBC 00090CFC 80 63 00 10 */ lwz r3, 0x10(r3)
/* 80094EC0 00090D00 38 05 00 06 */ addi r0, r5, 0x6
/* 80094EC4 00090D04 88 DE 00 36 */ lbz r6, 0x36(r30)
/* 80094EC8 00090D08 54 04 04 3E */ clrlwi r4, r0, 16
/* 80094ECC 00090D0C A0 63 00 28 */ lhz r3, 0x28(r3)
/* 80094ED0 00090D10 38 A0 00 05 */ li r5, 0x5
2022-10-16 16:31:36 +00:00
/* 80094ED4 00090D14 4B FF F8 69 */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 80094ED8 00090D18 2C 03 00 00 */ cmpwi r3, 0x0
/* 80094EDC 00090D1C 7C 65 1B 78 */ mr r5, r3
/* 80094EE0 00090D20 40 82 00 2C */ bne lbl_80094F0C
2022-10-16 16:31:36 +00:00
/* 80094EE4 00090D24 3C 60 80 50 */ lis r3, l2cb@ha
/* 80094EE8 00090D28 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 80094EEC 00090D2C 28 00 00 02 */ cmplwi r0, 0x2
/* 80094EF0 00090D30 41 80 02 40 */ blt lbl_80095130
/* 80094EF4 00090D34 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80094EF8 00090D38 3C 80 80 44 */ lis r4, "@2067_8043EB84"@ha
2022-10-16 16:05:58 +00:00
/* 80094EFC 00090D3C 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 80094F00 00090D40 38 84 EB 84 */ addi r4, r4, "@2067_8043EB84"@l
/* 80094F04 00090D44 4B FE 2A 5D */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 80094F08 00090D48 48 00 02 28 */ b lbl_80095130
.global lbl_80094F0C
lbl_80094F0C:
/* 80094F0C 00090D4C A0 DE 00 16 */ lhz r6, 0x16(r30)
/* 80094F10 00090D50 38 00 00 00 */ li r0, 0x0
/* 80094F14 00090D54 38 83 00 1A */ addi r4, r3, 0x1a
/* 80094F18 00090D58 98 C3 00 14 */ stb r6, 0x14(r3)
/* 80094F1C 00090D5C A0 DE 00 16 */ lhz r6, 0x16(r30)
/* 80094F20 00090D60 7C C6 46 70 */ srawi r6, r6, 8
/* 80094F24 00090D64 98 C3 00 15 */ stb r6, 0x15(r3)
/* 80094F28 00090D68 98 03 00 16 */ stb r0, 0x16(r3)
/* 80094F2C 00090D6C 98 03 00 17 */ stb r0, 0x17(r3)
/* 80094F30 00090D70 A0 1F 00 00 */ lhz r0, 0x0(r31)
/* 80094F34 00090D74 98 03 00 18 */ stb r0, 0x18(r3)
/* 80094F38 00090D78 A0 1F 00 00 */ lhz r0, 0x0(r31)
/* 80094F3C 00090D7C 7C 00 46 70 */ srawi r0, r0, 8
/* 80094F40 00090D80 98 03 00 19 */ stb r0, 0x19(r3)
/* 80094F44 00090D84 88 1F 00 02 */ lbz r0, 0x2(r31)
/* 80094F48 00090D88 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094F4C 00090D8C 41 82 00 2C */ beq lbl_80094F78
/* 80094F50 00090D90 38 60 00 01 */ li r3, 0x1
/* 80094F54 00090D94 38 00 00 02 */ li r0, 0x2
/* 80094F58 00090D98 98 64 00 00 */ stb r3, 0x0(r4)
/* 80094F5C 00090D9C 98 04 00 01 */ stb r0, 0x1(r4)
/* 80094F60 00090DA0 A0 1F 00 04 */ lhz r0, 0x4(r31)
/* 80094F64 00090DA4 98 04 00 02 */ stb r0, 0x2(r4)
/* 80094F68 00090DA8 A0 1F 00 04 */ lhz r0, 0x4(r31)
/* 80094F6C 00090DAC 7C 00 46 70 */ srawi r0, r0, 8
/* 80094F70 00090DB0 98 04 00 03 */ stb r0, 0x3(r4)
/* 80094F74 00090DB4 38 84 00 04 */ addi r4, r4, 0x4
.global lbl_80094F78
lbl_80094F78:
/* 80094F78 00090DB8 88 1F 00 20 */ lbz r0, 0x20(r31)
/* 80094F7C 00090DBC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094F80 00090DC0 41 82 00 28 */ beq lbl_80094FA8
/* 80094F84 00090DC4 38 00 00 02 */ li r0, 0x2
/* 80094F88 00090DC8 98 04 00 00 */ stb r0, 0x0(r4)
/* 80094F8C 00090DCC 98 04 00 01 */ stb r0, 0x1(r4)
/* 80094F90 00090DD0 A0 1F 00 22 */ lhz r0, 0x22(r31)
/* 80094F94 00090DD4 98 04 00 02 */ stb r0, 0x2(r4)
/* 80094F98 00090DD8 A0 1F 00 22 */ lhz r0, 0x22(r31)
/* 80094F9C 00090DDC 7C 00 46 70 */ srawi r0, r0, 8
/* 80094FA0 00090DE0 98 04 00 03 */ stb r0, 0x3(r4)
/* 80094FA4 00090DE4 38 84 00 04 */ addi r4, r4, 0x4
.global lbl_80094FA8
lbl_80094FA8:
/* 80094FA8 00090DE8 88 1F 00 06 */ lbz r0, 0x6(r31)
/* 80094FAC 00090DEC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80094FB0 00090DF0 41 82 01 04 */ beq lbl_800950B4
/* 80094FB4 00090DF4 38 60 00 03 */ li r3, 0x3
/* 80094FB8 00090DF8 38 00 00 16 */ li r0, 0x16
/* 80094FBC 00090DFC 98 64 00 00 */ stb r3, 0x0(r4)
/* 80094FC0 00090E00 98 04 00 01 */ stb r0, 0x1(r4)
/* 80094FC4 00090E04 88 1F 00 08 */ lbz r0, 0x8(r31)
/* 80094FC8 00090E08 98 04 00 02 */ stb r0, 0x2(r4)
/* 80094FCC 00090E0C 88 1F 00 09 */ lbz r0, 0x9(r31)
/* 80094FD0 00090E10 98 04 00 03 */ stb r0, 0x3(r4)
/* 80094FD4 00090E14 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80094FD8 00090E18 98 04 00 04 */ stb r0, 0x4(r4)
/* 80094FDC 00090E1C 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80094FE0 00090E20 54 00 C6 3E */ extrwi r0, r0, 8, 16
/* 80094FE4 00090E24 98 04 00 05 */ stb r0, 0x5(r4)
/* 80094FE8 00090E28 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80094FEC 00090E2C 54 00 86 3E */ extrwi r0, r0, 8, 8
/* 80094FF0 00090E30 98 04 00 06 */ stb r0, 0x6(r4)
/* 80094FF4 00090E34 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80094FF8 00090E38 54 00 46 3E */ srwi r0, r0, 24
/* 80094FFC 00090E3C 98 04 00 07 */ stb r0, 0x7(r4)
/* 80095000 00090E40 80 1F 00 10 */ lwz r0, 0x10(r31)
/* 80095004 00090E44 98 04 00 08 */ stb r0, 0x8(r4)
/* 80095008 00090E48 80 1F 00 10 */ lwz r0, 0x10(r31)
/* 8009500C 00090E4C 54 00 C6 3E */ extrwi r0, r0, 8, 16
/* 80095010 00090E50 98 04 00 09 */ stb r0, 0x9(r4)
/* 80095014 00090E54 80 1F 00 10 */ lwz r0, 0x10(r31)
/* 80095018 00090E58 54 00 86 3E */ extrwi r0, r0, 8, 8
/* 8009501C 00090E5C 98 04 00 0A */ stb r0, 0xa(r4)
/* 80095020 00090E60 80 1F 00 10 */ lwz r0, 0x10(r31)
/* 80095024 00090E64 54 00 46 3E */ srwi r0, r0, 24
/* 80095028 00090E68 98 04 00 0B */ stb r0, 0xb(r4)
/* 8009502C 00090E6C 80 1F 00 14 */ lwz r0, 0x14(r31)
/* 80095030 00090E70 98 04 00 0C */ stb r0, 0xc(r4)
/* 80095034 00090E74 80 1F 00 14 */ lwz r0, 0x14(r31)
/* 80095038 00090E78 54 00 C6 3E */ extrwi r0, r0, 8, 16
/* 8009503C 00090E7C 98 04 00 0D */ stb r0, 0xd(r4)
/* 80095040 00090E80 80 1F 00 14 */ lwz r0, 0x14(r31)
/* 80095044 00090E84 54 00 86 3E */ extrwi r0, r0, 8, 8
/* 80095048 00090E88 98 04 00 0E */ stb r0, 0xe(r4)
/* 8009504C 00090E8C 80 1F 00 14 */ lwz r0, 0x14(r31)
/* 80095050 00090E90 54 00 46 3E */ srwi r0, r0, 24
/* 80095054 00090E94 98 04 00 0F */ stb r0, 0xf(r4)
/* 80095058 00090E98 80 1F 00 18 */ lwz r0, 0x18(r31)
/* 8009505C 00090E9C 98 04 00 10 */ stb r0, 0x10(r4)
/* 80095060 00090EA0 80 1F 00 18 */ lwz r0, 0x18(r31)
/* 80095064 00090EA4 54 00 C6 3E */ extrwi r0, r0, 8, 16
/* 80095068 00090EA8 98 04 00 11 */ stb r0, 0x11(r4)
/* 8009506C 00090EAC 80 1F 00 18 */ lwz r0, 0x18(r31)
/* 80095070 00090EB0 54 00 86 3E */ extrwi r0, r0, 8, 8
/* 80095074 00090EB4 98 04 00 12 */ stb r0, 0x12(r4)
/* 80095078 00090EB8 80 1F 00 18 */ lwz r0, 0x18(r31)
/* 8009507C 00090EBC 54 00 46 3E */ srwi r0, r0, 24
/* 80095080 00090EC0 98 04 00 13 */ stb r0, 0x13(r4)
/* 80095084 00090EC4 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 80095088 00090EC8 98 04 00 14 */ stb r0, 0x14(r4)
/* 8009508C 00090ECC 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 80095090 00090ED0 54 00 C6 3E */ extrwi r0, r0, 8, 16
/* 80095094 00090ED4 98 04 00 15 */ stb r0, 0x15(r4)
/* 80095098 00090ED8 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 8009509C 00090EDC 54 00 86 3E */ extrwi r0, r0, 8, 8
/* 800950A0 00090EE0 98 04 00 16 */ stb r0, 0x16(r4)
/* 800950A4 00090EE4 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 800950A8 00090EE8 54 00 46 3E */ srwi r0, r0, 24
/* 800950AC 00090EEC 98 04 00 17 */ stb r0, 0x17(r4)
/* 800950B0 00090EF0 38 84 00 18 */ addi r4, r4, 0x18
.global lbl_800950B4
lbl_800950B4:
/* 800950B4 00090EF4 88 1F 00 24 */ lbz r0, 0x24(r31)
/* 800950B8 00090EF8 2C 00 00 00 */ cmpwi r0, 0x0
/* 800950BC 00090EFC 41 82 00 68 */ beq lbl_80095124
/* 800950C0 00090F00 38 60 00 04 */ li r3, 0x4
/* 800950C4 00090F04 38 00 00 09 */ li r0, 0x9
/* 800950C8 00090F08 98 64 00 00 */ stb r3, 0x0(r4)
/* 800950CC 00090F0C 98 04 00 01 */ stb r0, 0x1(r4)
/* 800950D0 00090F10 88 1F 00 26 */ lbz r0, 0x26(r31)
/* 800950D4 00090F14 98 04 00 02 */ stb r0, 0x2(r4)
/* 800950D8 00090F18 88 1F 00 27 */ lbz r0, 0x27(r31)
/* 800950DC 00090F1C 98 04 00 03 */ stb r0, 0x3(r4)
/* 800950E0 00090F20 88 1F 00 28 */ lbz r0, 0x28(r31)
/* 800950E4 00090F24 98 04 00 04 */ stb r0, 0x4(r4)
/* 800950E8 00090F28 A0 1F 00 2A */ lhz r0, 0x2a(r31)
/* 800950EC 00090F2C 98 04 00 05 */ stb r0, 0x5(r4)
/* 800950F0 00090F30 A0 1F 00 2A */ lhz r0, 0x2a(r31)
/* 800950F4 00090F34 7C 00 46 70 */ srawi r0, r0, 8
/* 800950F8 00090F38 98 04 00 06 */ stb r0, 0x6(r4)
/* 800950FC 00090F3C A0 1F 00 2C */ lhz r0, 0x2c(r31)
/* 80095100 00090F40 98 04 00 07 */ stb r0, 0x7(r4)
/* 80095104 00090F44 A0 1F 00 2C */ lhz r0, 0x2c(r31)
/* 80095108 00090F48 7C 00 46 70 */ srawi r0, r0, 8
/* 8009510C 00090F4C 98 04 00 08 */ stb r0, 0x8(r4)
/* 80095110 00090F50 A0 1F 00 2E */ lhz r0, 0x2e(r31)
/* 80095114 00090F54 98 04 00 09 */ stb r0, 0x9(r4)
/* 80095118 00090F58 A0 1F 00 2E */ lhz r0, 0x2e(r31)
/* 8009511C 00090F5C 7C 00 46 70 */ srawi r0, r0, 8
/* 80095120 00090F60 98 04 00 0A */ stb r0, 0xa(r4)
.global lbl_80095124
lbl_80095124:
/* 80095124 00090F64 80 7E 00 10 */ lwz r3, 0x10(r30)
/* 80095128 00090F68 38 80 00 00 */ li r4, 0x0
2022-10-16 16:31:36 +00:00
/* 8009512C 00090F6C 4B FF D9 41 */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_80095130
lbl_80095130:
/* 80095130 00090F70 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80095134 00090F74 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80095138 00090F78 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 8009513C 00090F7C 7C 08 03 A6 */ mtlr r0
/* 80095140 00090F80 38 21 00 10 */ addi r1, r1, 0x10
/* 80095144 00090F84 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_config_rej
l2cu_send_peer_config_rej:
2022-10-16 16:05:58 +00:00
/* 80095148 00090F88 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8009514C 00090F8C 7C 08 02 A6 */ mflr r0
/* 80095150 00090F90 90 01 00 34 */ stw r0, 0x34(r1)
/* 80095154 00090F94 39 61 00 30 */ addi r11, r1, 0x30
/* 80095158 00090F98 4B F7 21 D9 */ bl lbl_80007330
/* 8009515C 00090F9C 7C 79 1B 78 */ mr r25, r3
/* 80095160 00090FA0 7C 9A 23 78 */ mr r26, r4
/* 80095164 00090FA4 7C BB 2B 78 */ mr r27, r5
/* 80095168 00090FA8 7C D8 33 78 */ mr r24, r6
/* 8009516C 00090FAC 38 60 00 02 */ li r3, 0x2
2022-10-16 16:31:36 +00:00
/* 80095170 00090FB0 4B FD FC B1 */ bl GKI_getpoolbuf
2022-10-16 16:05:58 +00:00
/* 80095174 00090FB4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80095178 00090FB8 7C 7F 1B 78 */ mr r31, r3
/* 8009517C 00090FBC 40 82 00 2C */ bne lbl_800951A8
2022-10-16 16:31:36 +00:00
/* 80095180 00090FC0 3C 60 80 50 */ lis r3, l2cb@ha
/* 80095184 00090FC4 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 80095188 00090FC8 28 00 00 02 */ cmplwi r0, 0x2
/* 8009518C 00090FCC 41 80 01 58 */ blt lbl_800952E4
/* 80095190 00090FD0 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80095194 00090FD4 3C 80 80 44 */ lis r4, "@2125"@ha
2022-10-16 16:05:58 +00:00
/* 80095198 00090FD8 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 8009519C 00090FDC 38 84 EB A4 */ addi r4, r4, "@2125"@l
/* 800951A0 00090FE0 4B FE 27 C1 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 800951A4 00090FE4 48 00 01 40 */ b lbl_800952E4
.global lbl_800951A8
lbl_800951A8:
/* 800951A8 00090FE8 38 E0 00 00 */ li r7, 0x0
/* 800951AC 00090FEC 3B C3 00 0A */ addi r30, r3, 0xa
/* 800951B0 00090FF0 B0 E3 00 04 */ sth r7, 0x4(r3)
/* 800951B4 00090FF4 39 18 00 0A */ addi r8, r24, 0xa
/* 800951B8 00090FF8 38 A0 00 01 */ li r5, 0x1
/* 800951BC 00090FFC 38 80 00 05 */ li r4, 0x5
/* 800951C0 00091000 80 D9 00 10 */ lwz r6, 0x10(r25)
/* 800951C4 00091004 39 38 00 06 */ addi r9, r24, 0x6
/* 800951C8 00091008 38 00 00 03 */ li r0, 0x3
/* 800951CC 0009100C 7F DD F3 78 */ mr r29, r30
/* 800951D0 00091010 A0 C6 00 28 */ lhz r6, 0x28(r6)
/* 800951D4 00091014 7F 9A DA 14 */ add r28, r26, r27
/* 800951D8 00091018 60 C6 20 00 */ ori r6, r6, 0x2000
/* 800951DC 0009101C 98 C3 00 08 */ stb r6, 0x8(r3)
/* 800951E0 00091020 80 D9 00 10 */ lwz r6, 0x10(r25)
/* 800951E4 00091024 A0 C6 00 28 */ lhz r6, 0x28(r6)
/* 800951E8 00091028 60 C6 20 00 */ ori r6, r6, 0x2000
/* 800951EC 0009102C 7C C6 46 70 */ srawi r6, r6, 8
/* 800951F0 00091030 98 C3 00 09 */ stb r6, 0x9(r3)
/* 800951F4 00091034 7D 06 46 70 */ srawi r6, r8, 8
/* 800951F8 00091038 7D 23 46 70 */ srawi r3, r9, 8
/* 800951FC 0009103C 99 1E 00 02 */ stb r8, 0x2(r30)
/* 80095200 00091040 98 DE 00 03 */ stb r6, 0x3(r30)
/* 80095204 00091044 98 BE 00 04 */ stb r5, 0x4(r30)
/* 80095208 00091048 98 FE 00 05 */ stb r7, 0x5(r30)
/* 8009520C 0009104C 98 9E 00 06 */ stb r4, 0x6(r30)
/* 80095210 00091050 88 99 00 36 */ lbz r4, 0x36(r25)
/* 80095214 00091054 98 9E 00 07 */ stb r4, 0x7(r30)
/* 80095218 00091058 99 3E 00 08 */ stb r9, 0x8(r30)
/* 8009521C 0009105C 98 7E 00 09 */ stb r3, 0x9(r30)
/* 80095220 00091060 A0 79 00 16 */ lhz r3, 0x16(r25)
/* 80095224 00091064 98 7E 00 0A */ stb r3, 0xa(r30)
/* 80095228 00091068 A0 79 00 16 */ lhz r3, 0x16(r25)
/* 8009522C 0009106C 7C 63 46 70 */ srawi r3, r3, 8
/* 80095230 00091070 98 7E 00 0B */ stb r3, 0xb(r30)
/* 80095234 00091074 98 FE 00 0C */ stb r7, 0xc(r30)
/* 80095238 00091078 98 FE 00 0D */ stb r7, 0xd(r30)
/* 8009523C 0009107C 98 1E 00 0E */ stb r0, 0xe(r30)
/* 80095240 00091080 98 FE 00 0F */ stb r7, 0xf(r30)
/* 80095244 00091084 3B DE 00 10 */ addi r30, r30, 0x10
/* 80095248 00091088 48 00 00 64 */ b lbl_800952AC
.global lbl_8009524C
lbl_8009524C:
/* 8009524C 0009108C 88 9A 00 00 */ lbz r4, 0x0(r26)
/* 80095250 00091090 88 7A 00 01 */ lbz r3, 0x1(r26)
/* 80095254 00091094 54 80 06 7E */ clrlwi r0, r4, 25
/* 80095258 00091098 2C 00 00 04 */ cmpwi r0, 0x4
/* 8009525C 0009109C 40 80 00 1C */ bge lbl_80095278
/* 80095260 000910A0 2C 00 00 01 */ cmpwi r0, 0x1
/* 80095264 000910A4 40 80 00 08 */ bge lbl_8009526C
/* 80095268 000910A8 48 00 00 10 */ b lbl_80095278
.global lbl_8009526C
lbl_8009526C:
/* 8009526C 000910AC 7C 63 D2 14 */ add r3, r3, r26
/* 80095270 000910B0 3B 43 00 02 */ addi r26, r3, 0x2
/* 80095274 000910B4 48 00 00 38 */ b lbl_800952AC
.global lbl_80095278
lbl_80095278:
/* 80095278 000910B8 3B 03 00 02 */ addi r24, r3, 0x2
/* 8009527C 000910BC 7C 18 D8 00 */ cmpw r24, r27
/* 80095280 000910C0 41 81 00 28 */ bgt lbl_800952A8
/* 80095284 000910C4 54 80 06 31 */ rlwinm. r0, r4, 0, 24, 24
/* 80095288 000910C8 40 82 00 18 */ bne lbl_800952A0
/* 8009528C 000910CC 7F C3 F3 78 */ mr r3, r30
/* 80095290 000910D0 7F 44 D3 78 */ mr r4, r26
/* 80095294 000910D4 7F 05 C3 78 */ mr r5, r24
2022-10-16 16:31:36 +00:00
/* 80095298 000910D8 4B F6 ED 69 */ bl memcpy
2022-10-16 16:05:58 +00:00
/* 8009529C 000910DC 7F DE C2 14 */ add r30, r30, r24
.global lbl_800952A0
lbl_800952A0:
/* 800952A0 000910E0 7F 5A C2 14 */ add r26, r26, r24
/* 800952A4 000910E4 48 00 00 08 */ b lbl_800952AC
.global lbl_800952A8
lbl_800952A8:
/* 800952A8 000910E8 7F 9A E3 78 */ mr r26, r28
.global lbl_800952AC
lbl_800952AC:
/* 800952AC 000910EC 7C 1A E0 40 */ cmplw r26, r28
/* 800952B0 000910F0 41 80 FF 9C */ blt lbl_8009524C
/* 800952B4 000910F4 7C 7D F0 50 */ subf r3, r29, r30
/* 800952B8 000910F8 7F 24 CB 78 */ mr r4, r25
/* 800952BC 000910FC 38 63 FF FE */ addi r3, r3, -0x2
/* 800952C0 00091100 7F E5 FB 78 */ mr r5, r31
/* 800952C4 00091104 98 7D 00 00 */ stb r3, 0x0(r29)
/* 800952C8 00091108 54 60 C6 3E */ extrwi r0, r3, 8, 16
/* 800952CC 0009110C 54 63 04 3E */ clrlwi r3, r3, 16
/* 800952D0 00091110 98 1D 00 01 */ stb r0, 0x1(r29)
/* 800952D4 00091114 38 03 00 04 */ addi r0, r3, 0x4
/* 800952D8 00091118 B0 1F 00 02 */ sth r0, 0x2(r31)
/* 800952DC 0009111C 80 79 00 10 */ lwz r3, 0x10(r25)
2022-10-16 16:31:36 +00:00
/* 800952E0 00091120 4B FF D7 8D */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_800952E4
lbl_800952E4:
/* 800952E4 00091124 39 61 00 30 */ addi r11, r1, 0x30
/* 800952E8 00091128 4B F7 20 95 */ bl lbl_8000737C
/* 800952EC 0009112C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 800952F0 00091130 7C 08 03 A6 */ mtlr r0
/* 800952F4 00091134 38 21 00 30 */ addi r1, r1, 0x30
/* 800952F8 00091138 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_disc_req
l2cu_send_peer_disc_req:
2022-10-16 16:05:58 +00:00
/* 800952FC 0009113C 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80095300 00091140 7C 08 02 A6 */ mflr r0
/* 80095304 00091144 38 80 00 04 */ li r4, 0x4
/* 80095308 00091148 38 A0 00 06 */ li r5, 0x6
/* 8009530C 0009114C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80095310 00091150 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80095314 00091154 7C 7F 1B 78 */ mr r31, r3
/* 80095318 00091158 80 E3 00 10 */ lwz r7, 0x10(r3)
/* 8009531C 0009115C 88 C7 00 31 */ lbz r6, 0x31(r7)
/* 80095320 00091160 38 06 00 01 */ addi r0, r6, 0x1
/* 80095324 00091164 98 07 00 31 */ stb r0, 0x31(r7)
/* 80095328 00091168 54 06 06 3E */ clrlwi r6, r0, 24
/* 8009532C 0009116C 98 03 00 35 */ stb r0, 0x35(r3)
/* 80095330 00091170 80 63 00 10 */ lwz r3, 0x10(r3)
/* 80095334 00091174 A0 63 00 28 */ lhz r3, 0x28(r3)
2022-10-16 16:31:36 +00:00
/* 80095338 00091178 4B FF F4 05 */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 8009533C 0009117C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80095340 00091180 40 82 00 2C */ bne lbl_8009536C
2022-10-16 16:31:36 +00:00
/* 80095344 00091184 3C 60 80 50 */ lis r3, l2cb@ha
/* 80095348 00091188 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 8009534C 0009118C 28 00 00 02 */ cmplwi r0, 0x2
/* 80095350 00091190 41 80 00 6C */ blt lbl_800953BC
/* 80095354 00091194 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80095358 00091198 3C 80 80 44 */ lis r4, "@2067_8043EB84"@ha
2022-10-16 16:05:58 +00:00
/* 8009535C 0009119C 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 80095360 000911A0 38 84 EB 84 */ addi r4, r4, "@2067_8043EB84"@l
/* 80095364 000911A4 4B FE 25 FD */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 80095368 000911A8 48 00 00 54 */ b lbl_800953BC
.global lbl_8009536C
lbl_8009536C:
/* 8009536C 000911AC A0 BF 00 16 */ lhz r5, 0x16(r31)
/* 80095370 000911B0 38 00 00 00 */ li r0, 0x0
/* 80095374 000911B4 7C 64 1B 78 */ mr r4, r3
/* 80095378 000911B8 98 A3 00 14 */ stb r5, 0x14(r3)
/* 8009537C 000911BC A0 BF 00 16 */ lhz r5, 0x16(r31)
/* 80095380 000911C0 7C A5 46 70 */ srawi r5, r5, 8
/* 80095384 000911C4 98 A3 00 15 */ stb r5, 0x15(r3)
/* 80095388 000911C8 A0 BF 00 14 */ lhz r5, 0x14(r31)
/* 8009538C 000911CC 98 A3 00 16 */ stb r5, 0x16(r3)
/* 80095390 000911D0 A0 BF 00 14 */ lhz r5, 0x14(r31)
/* 80095394 000911D4 7C A5 46 70 */ srawi r5, r5, 8
/* 80095398 000911D8 98 A3 00 17 */ stb r5, 0x17(r3)
/* 8009539C 000911DC B0 03 00 06 */ sth r0, 0x6(r3)
/* 800953A0 000911E0 80 7F 00 10 */ lwz r3, 0x10(r31)
/* 800953A4 000911E4 38 63 00 44 */ addi r3, r3, 0x44
2022-10-16 16:31:36 +00:00
/* 800953A8 000911E8 4B FD FF 99 */ bl GKI_enqueue
2022-10-16 16:05:58 +00:00
/* 800953AC 000911EC 80 7F 00 10 */ lwz r3, 0x10(r31)
/* 800953B0 000911F0 38 80 00 00 */ li r4, 0x0
/* 800953B4 000911F4 38 A0 00 00 */ li r5, 0x0
2022-10-16 16:31:36 +00:00
/* 800953B8 000911F8 4B FF D6 B5 */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_800953BC
lbl_800953BC:
/* 800953BC 000911FC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800953C0 00091200 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800953C4 00091204 7C 08 03 A6 */ mtlr r0
/* 800953C8 00091208 38 21 00 10 */ addi r1, r1, 0x10
/* 800953CC 0009120C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_disc_rsp
l2cu_send_peer_disc_rsp:
2022-10-16 16:05:58 +00:00
/* 800953D0 00091210 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800953D4 00091214 7C 08 02 A6 */ mflr r0
/* 800953D8 00091218 90 01 00 24 */ stw r0, 0x24(r1)
/* 800953DC 0009121C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800953E0 00091220 7C DF 33 78 */ mr r31, r6
/* 800953E4 00091224 7C 86 23 78 */ mr r6, r4
/* 800953E8 00091228 38 80 00 04 */ li r4, 0x4
/* 800953EC 0009122C 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800953F0 00091230 7C BE 2B 78 */ mr r30, r5
/* 800953F4 00091234 38 A0 00 07 */ li r5, 0x7
/* 800953F8 00091238 93 A1 00 14 */ stw r29, 0x14(r1)
/* 800953FC 0009123C 7C 7D 1B 78 */ mr r29, r3
/* 80095400 00091240 A0 63 00 28 */ lhz r3, 0x28(r3)
2022-10-16 16:31:36 +00:00
/* 80095404 00091244 4B FF F3 39 */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 80095408 00091248 2C 03 00 00 */ cmpwi r3, 0x0
/* 8009540C 0009124C 40 82 00 2C */ bne lbl_80095438
2022-10-16 16:31:36 +00:00
/* 80095410 00091250 3C 60 80 50 */ lis r3, l2cb@ha
/* 80095414 00091254 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 80095418 00091258 28 00 00 02 */ cmplwi r0, 0x2
/* 8009541C 0009125C 41 80 00 58 */ blt lbl_80095474
/* 80095420 00091260 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80095424 00091264 3C 80 80 44 */ lis r4, "@2067_8043EB84"@ha
2022-10-16 16:05:58 +00:00
/* 80095428 00091268 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 8009542C 0009126C 38 84 EB 84 */ addi r4, r4, "@2067_8043EB84"@l
/* 80095430 00091270 4B FE 25 31 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 80095434 00091274 48 00 00 40 */ b lbl_80095474
.global lbl_80095438
lbl_80095438:
/* 80095438 00091278 9B C3 00 14 */ stb r30, 0x14(r3)
/* 8009543C 0009127C 7F C4 46 70 */ srawi r4, r30, 8
/* 80095440 00091280 57 E5 C6 3E */ extrwi r5, r31, 8, 16
/* 80095444 00091284 38 00 00 00 */ li r0, 0x0
/* 80095448 00091288 98 83 00 15 */ stb r4, 0x15(r3)
/* 8009544C 0009128C 7C 64 1B 78 */ mr r4, r3
/* 80095450 00091290 9B E3 00 16 */ stb r31, 0x16(r3)
/* 80095454 00091294 98 A3 00 17 */ stb r5, 0x17(r3)
/* 80095458 00091298 B0 03 00 06 */ sth r0, 0x6(r3)
/* 8009545C 0009129C 38 7D 00 44 */ addi r3, r29, 0x44
2022-10-16 16:31:36 +00:00
/* 80095460 000912A0 4B FD FE E1 */ bl GKI_enqueue
2022-10-16 16:05:58 +00:00
/* 80095464 000912A4 7F A3 EB 78 */ mr r3, r29
/* 80095468 000912A8 38 80 00 00 */ li r4, 0x0
/* 8009546C 000912AC 38 A0 00 00 */ li r5, 0x0
2022-10-16 16:31:36 +00:00
/* 80095470 000912B0 4B FF D5 FD */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_80095474
lbl_80095474:
/* 80095474 000912B4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80095478 000912B8 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8009547C 000912BC 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80095480 000912C0 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80095484 000912C4 7C 08 03 A6 */ mtlr r0
/* 80095488 000912C8 38 21 00 20 */ addi r1, r1, 0x20
/* 8009548C 000912CC 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_echo_req
l2cu_send_peer_echo_req:
2022-10-16 16:05:58 +00:00
/* 80095490 000912D0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80095494 000912D4 7C 08 02 A6 */ mflr r0
/* 80095498 000912D8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8009549C 000912DC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800954A0 000912E0 7C BF 2B 78 */ mr r31, r5
/* 800954A4 000912E4 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800954A8 000912E8 7C 9E 23 78 */ mr r30, r4
/* 800954AC 000912EC 7F E4 FB 78 */ mr r4, r31
/* 800954B0 000912F0 93 A1 00 14 */ stw r29, 0x14(r1)
/* 800954B4 000912F4 7C 7D 1B 78 */ mr r29, r3
/* 800954B8 000912F8 88 A3 00 31 */ lbz r5, 0x31(r3)
/* 800954BC 000912FC A0 63 00 28 */ lhz r3, 0x28(r3)
/* 800954C0 00091300 38 05 00 01 */ addi r0, r5, 0x1
/* 800954C4 00091304 38 A0 00 08 */ li r5, 0x8
/* 800954C8 00091308 98 1D 00 31 */ stb r0, 0x31(r29)
/* 800954CC 0009130C 54 06 06 3E */ clrlwi r6, r0, 24
2022-10-16 16:31:36 +00:00
/* 800954D0 00091310 4B FF F2 6D */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 800954D4 00091314 2C 03 00 00 */ cmpwi r3, 0x0
/* 800954D8 00091318 7C 65 1B 78 */ mr r5, r3
/* 800954DC 0009131C 40 82 00 2C */ bne lbl_80095508
2022-10-16 16:31:36 +00:00
/* 800954E0 00091320 3C 60 80 50 */ lis r3, l2cb@ha
/* 800954E4 00091324 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 800954E8 00091328 28 00 00 02 */ cmplwi r0, 0x2
/* 800954EC 0009132C 41 80 00 F8 */ blt lbl_800955E4
/* 800954F0 00091330 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 800954F4 00091334 3C 80 80 44 */ lis r4, "@2159"@ha
2022-10-16 16:05:58 +00:00
/* 800954F8 00091338 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 800954FC 0009133C 38 84 EB C4 */ addi r4, r4, "@2159"@l
/* 80095500 00091340 4B FE 24 61 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 80095504 00091344 48 00 00 E0 */ b lbl_800955E4
.global lbl_80095508
lbl_80095508:
/* 80095508 00091348 2C 9F 00 00 */ cmpwi cr1, r31, 0x0
/* 8009550C 0009134C 38 E3 00 14 */ addi r7, r3, 0x14
/* 80095510 00091350 41 86 00 C8 */ beq cr1, lbl_800955D8
/* 80095514 00091354 39 00 00 00 */ li r8, 0x0
/* 80095518 00091358 40 85 00 C0 */ ble cr1, lbl_800955D8
/* 8009551C 0009135C 2C 1F 00 08 */ cmpwi r31, 0x8
/* 80095520 00091360 38 9F FF F8 */ addi r4, r31, -0x8
/* 80095524 00091364 40 81 00 8C */ ble lbl_800955B0
/* 80095528 00091368 38 C0 00 00 */ li r6, 0x0
/* 8009552C 0009136C 41 84 00 18 */ blt cr1, lbl_80095544
/* 80095530 00091370 3C 60 80 00 */ lis r3, 0x8000
/* 80095534 00091374 38 03 FF FE */ addi r0, r3, -0x2
/* 80095538 00091378 7C 1F 00 00 */ cmpw r31, r0
/* 8009553C 0009137C 41 81 00 08 */ bgt lbl_80095544
/* 80095540 00091380 38 C0 00 01 */ li r6, 0x1
.global lbl_80095544
lbl_80095544:
/* 80095544 00091384 2C 06 00 00 */ cmpwi r6, 0x0
/* 80095548 00091388 41 82 00 68 */ beq lbl_800955B0
/* 8009554C 0009138C 38 04 00 07 */ addi r0, r4, 0x7
/* 80095550 00091390 54 00 E8 FE */ srwi r0, r0, 3
/* 80095554 00091394 7C 09 03 A6 */ mtctr r0
/* 80095558 00091398 2C 04 00 00 */ cmpwi r4, 0x0
/* 8009555C 0009139C 40 81 00 54 */ ble lbl_800955B0
.global lbl_80095560
lbl_80095560:
/* 80095560 000913A0 7C 1E 40 AE */ lbzx r0, r30, r8
/* 80095564 000913A4 7C 7E 42 14 */ add r3, r30, r8
/* 80095568 000913A8 39 08 00 08 */ addi r8, r8, 0x8
/* 8009556C 000913AC 98 07 00 00 */ stb r0, 0x0(r7)
/* 80095570 000913B0 88 03 00 01 */ lbz r0, 0x1(r3)
/* 80095574 000913B4 98 07 00 01 */ stb r0, 0x1(r7)
/* 80095578 000913B8 88 03 00 02 */ lbz r0, 0x2(r3)
/* 8009557C 000913BC 98 07 00 02 */ stb r0, 0x2(r7)
/* 80095580 000913C0 88 03 00 03 */ lbz r0, 0x3(r3)
/* 80095584 000913C4 98 07 00 03 */ stb r0, 0x3(r7)
/* 80095588 000913C8 88 03 00 04 */ lbz r0, 0x4(r3)
/* 8009558C 000913CC 98 07 00 04 */ stb r0, 0x4(r7)
/* 80095590 000913D0 88 03 00 05 */ lbz r0, 0x5(r3)
/* 80095594 000913D4 98 07 00 05 */ stb r0, 0x5(r7)
/* 80095598 000913D8 88 03 00 06 */ lbz r0, 0x6(r3)
/* 8009559C 000913DC 98 07 00 06 */ stb r0, 0x6(r7)
/* 800955A0 000913E0 88 03 00 07 */ lbz r0, 0x7(r3)
/* 800955A4 000913E4 98 07 00 07 */ stb r0, 0x7(r7)
/* 800955A8 000913E8 38 E7 00 08 */ addi r7, r7, 0x8
/* 800955AC 000913EC 42 00 FF B4 */ bdnz lbl_80095560
.global lbl_800955B0
lbl_800955B0:
/* 800955B0 000913F0 7C 08 F8 50 */ subf r0, r8, r31
/* 800955B4 000913F4 7C 7E 42 14 */ add r3, r30, r8
/* 800955B8 000913F8 7C 09 03 A6 */ mtctr r0
/* 800955BC 000913FC 7C 08 F8 00 */ cmpw r8, r31
/* 800955C0 00091400 40 80 00 18 */ bge lbl_800955D8
.global lbl_800955C4
lbl_800955C4:
/* 800955C4 00091404 88 03 00 00 */ lbz r0, 0x0(r3)
/* 800955C8 00091408 38 63 00 01 */ addi r3, r3, 0x1
/* 800955CC 0009140C 98 07 00 00 */ stb r0, 0x0(r7)
/* 800955D0 00091410 38 E7 00 01 */ addi r7, r7, 0x1
/* 800955D4 00091414 42 00 FF F0 */ bdnz lbl_800955C4
.global lbl_800955D8
lbl_800955D8:
/* 800955D8 00091418 7F A3 EB 78 */ mr r3, r29
/* 800955DC 0009141C 38 80 00 00 */ li r4, 0x0
2022-10-16 16:31:36 +00:00
/* 800955E0 00091420 4B FF D4 8D */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_800955E4
lbl_800955E4:
/* 800955E4 00091424 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800955E8 00091428 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 800955EC 0009142C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 800955F0 00091430 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 800955F4 00091434 7C 08 03 A6 */ mtlr r0
/* 800955F8 00091438 38 21 00 20 */ addi r1, r1, 0x20
/* 800955FC 0009143C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_echo_rsp
l2cu_send_peer_echo_rsp:
2022-10-16 16:05:58 +00:00
/* 80095600 00091440 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80095604 00091444 7C 08 02 A6 */ mflr r0
2022-10-16 16:31:36 +00:00
/* 80095608 00091448 3C E0 80 4F */ lis r7, btu_cb@ha
2022-10-16 16:05:58 +00:00
/* 8009560C 0009144C 7C 88 23 78 */ mr r8, r4
/* 80095610 00091450 90 01 00 24 */ stw r0, 0x24(r1)
2022-10-16 16:31:36 +00:00
/* 80095614 00091454 38 E7 5A 30 */ addi r7, r7, btu_cb@l
2022-10-16 16:05:58 +00:00
/* 80095618 00091458 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8009561C 0009145C 7C DF 33 78 */ mr r31, r6
/* 80095620 00091460 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80095624 00091464 7C BE 2B 78 */ mr r30, r5
/* 80095628 00091468 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8009562C 0009146C 7C 7D 1B 78 */ mr r29, r3
/* 80095630 00091470 A0 07 00 7E */ lhz r0, 0x7e(r7)
/* 80095634 00091474 28 00 02 94 */ cmplwi r0, 0x294
/* 80095638 00091478 40 80 00 0C */ bge lbl_80095644
/* 8009563C 0009147C A0 87 00 7C */ lhz r4, 0x7c(r7)
/* 80095640 00091480 48 00 00 08 */ b lbl_80095648
.global lbl_80095644
lbl_80095644:
/* 80095644 00091484 38 80 02 94 */ li r4, 0x294
.global lbl_80095648
lbl_80095648:
/* 80095648 00091488 38 04 FF F4 */ addi r0, r4, -0xc
/* 8009564C 0009148C 54 00 04 3E */ clrlwi r0, r0, 16
/* 80095650 00091490 7C 06 00 40 */ cmplw r6, r0
/* 80095654 00091494 40 81 00 08 */ ble lbl_8009565C
/* 80095658 00091498 3B E0 00 00 */ li r31, 0x0
.global lbl_8009565C
lbl_8009565C:
/* 8009565C 0009149C A0 63 00 28 */ lhz r3, 0x28(r3)
/* 80095660 000914A0 7F E4 FB 78 */ mr r4, r31
/* 80095664 000914A4 7D 06 43 78 */ mr r6, r8
/* 80095668 000914A8 38 A0 00 09 */ li r5, 0x9
2022-10-16 16:31:36 +00:00
/* 8009566C 000914AC 4B FF F0 D1 */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 80095670 000914B0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80095674 000914B4 7C 65 1B 78 */ mr r5, r3
/* 80095678 000914B8 40 82 00 2C */ bne lbl_800956A4
2022-10-16 16:31:36 +00:00
/* 8009567C 000914BC 3C 60 80 50 */ lis r3, l2cb@ha
/* 80095680 000914C0 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 80095684 000914C4 28 00 00 02 */ cmplwi r0, 0x2
/* 80095688 000914C8 41 80 00 F8 */ blt lbl_80095780
/* 8009568C 000914CC 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80095690 000914D0 3C 80 80 44 */ lis r4, "@2067_8043EB84"@ha
2022-10-16 16:05:58 +00:00
/* 80095694 000914D4 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 80095698 000914D8 38 84 EB 84 */ addi r4, r4, "@2067_8043EB84"@l
/* 8009569C 000914DC 4B FE 22 C5 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 800956A0 000914E0 48 00 00 E0 */ b lbl_80095780
.global lbl_800956A4
lbl_800956A4:
/* 800956A4 000914E4 2C 9F 00 00 */ cmpwi cr1, r31, 0x0
/* 800956A8 000914E8 38 E3 00 14 */ addi r7, r3, 0x14
/* 800956AC 000914EC 41 86 00 C8 */ beq cr1, lbl_80095774
/* 800956B0 000914F0 39 00 00 00 */ li r8, 0x0
/* 800956B4 000914F4 40 85 00 C0 */ ble cr1, lbl_80095774
/* 800956B8 000914F8 2C 1F 00 08 */ cmpwi r31, 0x8
/* 800956BC 000914FC 38 9F FF F8 */ addi r4, r31, -0x8
/* 800956C0 00091500 40 81 00 8C */ ble lbl_8009574C
/* 800956C4 00091504 38 C0 00 00 */ li r6, 0x0
/* 800956C8 00091508 41 84 00 18 */ blt cr1, lbl_800956E0
/* 800956CC 0009150C 3C 60 80 00 */ lis r3, 0x8000
/* 800956D0 00091510 38 03 FF FE */ addi r0, r3, -0x2
/* 800956D4 00091514 7C 1F 00 00 */ cmpw r31, r0
/* 800956D8 00091518 41 81 00 08 */ bgt lbl_800956E0
/* 800956DC 0009151C 38 C0 00 01 */ li r6, 0x1
.global lbl_800956E0
lbl_800956E0:
/* 800956E0 00091520 2C 06 00 00 */ cmpwi r6, 0x0
/* 800956E4 00091524 41 82 00 68 */ beq lbl_8009574C
/* 800956E8 00091528 38 04 00 07 */ addi r0, r4, 0x7
/* 800956EC 0009152C 54 00 E8 FE */ srwi r0, r0, 3
/* 800956F0 00091530 7C 09 03 A6 */ mtctr r0
/* 800956F4 00091534 2C 04 00 00 */ cmpwi r4, 0x0
/* 800956F8 00091538 40 81 00 54 */ ble lbl_8009574C
.global lbl_800956FC
lbl_800956FC:
/* 800956FC 0009153C 7C 1E 40 AE */ lbzx r0, r30, r8
/* 80095700 00091540 7C 7E 42 14 */ add r3, r30, r8
/* 80095704 00091544 39 08 00 08 */ addi r8, r8, 0x8
/* 80095708 00091548 98 07 00 00 */ stb r0, 0x0(r7)
/* 8009570C 0009154C 88 03 00 01 */ lbz r0, 0x1(r3)
/* 80095710 00091550 98 07 00 01 */ stb r0, 0x1(r7)
/* 80095714 00091554 88 03 00 02 */ lbz r0, 0x2(r3)
/* 80095718 00091558 98 07 00 02 */ stb r0, 0x2(r7)
/* 8009571C 0009155C 88 03 00 03 */ lbz r0, 0x3(r3)
/* 80095720 00091560 98 07 00 03 */ stb r0, 0x3(r7)
/* 80095724 00091564 88 03 00 04 */ lbz r0, 0x4(r3)
/* 80095728 00091568 98 07 00 04 */ stb r0, 0x4(r7)
/* 8009572C 0009156C 88 03 00 05 */ lbz r0, 0x5(r3)
/* 80095730 00091570 98 07 00 05 */ stb r0, 0x5(r7)
/* 80095734 00091574 88 03 00 06 */ lbz r0, 0x6(r3)
/* 80095738 00091578 98 07 00 06 */ stb r0, 0x6(r7)
/* 8009573C 0009157C 88 03 00 07 */ lbz r0, 0x7(r3)
/* 80095740 00091580 98 07 00 07 */ stb r0, 0x7(r7)
/* 80095744 00091584 38 E7 00 08 */ addi r7, r7, 0x8
/* 80095748 00091588 42 00 FF B4 */ bdnz lbl_800956FC
.global lbl_8009574C
lbl_8009574C:
/* 8009574C 0009158C 7C 08 F8 50 */ subf r0, r8, r31
/* 80095750 00091590 7C 7E 42 14 */ add r3, r30, r8
/* 80095754 00091594 7C 09 03 A6 */ mtctr r0
/* 80095758 00091598 7C 08 F8 00 */ cmpw r8, r31
/* 8009575C 0009159C 40 80 00 18 */ bge lbl_80095774
.global lbl_80095760
lbl_80095760:
/* 80095760 000915A0 88 03 00 00 */ lbz r0, 0x0(r3)
/* 80095764 000915A4 38 63 00 01 */ addi r3, r3, 0x1
/* 80095768 000915A8 98 07 00 00 */ stb r0, 0x0(r7)
/* 8009576C 000915AC 38 E7 00 01 */ addi r7, r7, 0x1
/* 80095770 000915B0 42 00 FF F0 */ bdnz lbl_80095760
.global lbl_80095774
lbl_80095774:
/* 80095774 000915B4 7F A3 EB 78 */ mr r3, r29
/* 80095778 000915B8 38 80 00 00 */ li r4, 0x0
2022-10-16 16:31:36 +00:00
/* 8009577C 000915BC 4B FF D2 F1 */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_80095780
lbl_80095780:
/* 80095780 000915C0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80095784 000915C4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80095788 000915C8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8009578C 000915CC 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80095790 000915D0 7C 08 03 A6 */ mtlr r0
/* 80095794 000915D4 38 21 00 20 */ addi r1, r1, 0x20
/* 80095798 000915D8 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_send_peer_info_rsp
l2cu_send_peer_info_rsp:
2022-10-16 16:05:58 +00:00
/* 8009579C 000915DC 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800957A0 000915E0 7C 08 02 A6 */ mflr r0
/* 800957A4 000915E4 7C 86 23 78 */ mr r6, r4
/* 800957A8 000915E8 38 80 00 04 */ li r4, 0x4
/* 800957AC 000915EC 90 01 00 14 */ stw r0, 0x14(r1)
/* 800957B0 000915F0 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800957B4 000915F4 7C BF 2B 78 */ mr r31, r5
/* 800957B8 000915F8 38 A0 00 0B */ li r5, 0xb
/* 800957BC 000915FC 93 C1 00 08 */ stw r30, 0x8(r1)
/* 800957C0 00091600 7C 7E 1B 78 */ mr r30, r3
/* 800957C4 00091604 A0 63 00 28 */ lhz r3, 0x28(r3)
2022-10-16 16:31:36 +00:00
/* 800957C8 00091608 4B FF EF 75 */ bl l2cu_build_header
2022-10-16 16:05:58 +00:00
/* 800957CC 0009160C 2C 03 00 00 */ cmpwi r3, 0x0
/* 800957D0 00091610 40 82 00 2C */ bne lbl_800957FC
2022-10-16 16:31:36 +00:00
/* 800957D4 00091614 3C 60 80 50 */ lis r3, l2cb@ha
/* 800957D8 00091618 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 800957DC 0009161C 28 00 00 02 */ cmplwi r0, 0x2
/* 800957E0 00091620 41 80 00 48 */ blt lbl_80095828
/* 800957E4 00091624 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 800957E8 00091628 3C 80 80 44 */ lis r4, "@2067_8043EB84"@ha
2022-10-16 16:05:58 +00:00
/* 800957EC 0009162C 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 800957F0 00091630 38 84 EB 84 */ addi r4, r4, "@2067_8043EB84"@l
/* 800957F4 00091634 4B FE 21 6D */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 800957F8 00091638 48 00 00 30 */ b lbl_80095828
.global lbl_800957FC
lbl_800957FC:
/* 800957FC 0009163C 9B E3 00 14 */ stb r31, 0x14(r3)
/* 80095800 00091640 57 E4 C6 3E */ extrwi r4, r31, 8, 16
/* 80095804 00091644 38 C0 00 01 */ li r6, 0x1
/* 80095808 00091648 38 00 00 00 */ li r0, 0x0
/* 8009580C 0009164C 98 83 00 15 */ stb r4, 0x15(r3)
/* 80095810 00091650 7C 65 1B 78 */ mr r5, r3
/* 80095814 00091654 38 80 00 00 */ li r4, 0x0
/* 80095818 00091658 98 C3 00 16 */ stb r6, 0x16(r3)
/* 8009581C 0009165C 98 03 00 17 */ stb r0, 0x17(r3)
/* 80095820 00091660 7F C3 F3 78 */ mr r3, r30
2022-10-16 16:31:36 +00:00
/* 80095824 00091664 4B FF D2 49 */ bl l2c_link_check_send_pkts
2022-10-16 16:05:58 +00:00
.global lbl_80095828
lbl_80095828:
/* 80095828 00091668 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8009582C 0009166C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80095830 00091670 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80095834 00091674 7C 08 03 A6 */ mtlr r0
/* 80095838 00091678 38 21 00 10 */ addi r1, r1, 0x10
/* 8009583C 0009167C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_allocate_ccb
l2cu_allocate_ccb:
/* 80095840 00091680 3C E0 80 50 */ lis r7, l2cb@ha
/* 80095844 00091684 38 E7 90 20 */ addi r7, r7, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80095848 00091688 81 07 07 B0 */ lwz r8, 0x7b0(r7)
/* 8009584C 0009168C 2C 08 00 00 */ cmpwi r8, 0x0
/* 80095850 00091690 40 82 00 0C */ bne lbl_8009585C
/* 80095854 00091694 38 60 00 00 */ li r3, 0x0
/* 80095858 00091698 4E 80 00 20 */ blr
.global lbl_8009585C
lbl_8009585C:
/* 8009585C 0009169C 38 07 01 78 */ addi r0, r7, 0x178
/* 80095860 000916A0 3C 80 84 21 */ lis r4, 0x84210843@ha
/* 80095864 000916A4 7C 00 40 50 */ subf r0, r0, r8
/* 80095868 000916A8 80 C8 00 08 */ lwz r6, 0x8(r8)
/* 8009586C 000916AC 38 84 08 43 */ addi r4, r4, 0x84210843@l
/* 80095870 000916B0 38 A0 00 01 */ li r5, 0x1
/* 80095874 000916B4 7C 84 00 96 */ mulhw r4, r4, r0
/* 80095878 000916B8 90 C7 07 B0 */ stw r6, 0x7b0(r7)
/* 8009587C 000916BC 98 A8 00 00 */ stb r5, 0x0(r8)
/* 80095880 000916C0 7C 04 02 14 */ add r0, r4, r0
/* 80095884 000916C4 7C 00 36 70 */ srawi r0, r0, 6
/* 80095888 000916C8 54 04 0F FE */ srwi r4, r0, 31
/* 8009588C 000916CC 7C 00 22 14 */ add r0, r0, r4
/* 80095890 000916D0 54 04 04 3E */ clrlwi r4, r0, 16
/* 80095894 000916D4 38 04 00 40 */ addi r0, r4, 0x40
/* 80095898 000916D8 B0 08 00 14 */ sth r0, 0x14(r8)
/* 8009589C 000916DC 90 68 00 10 */ stw r3, 0x10(r8)
/* 800958A0 000916E0 80 03 00 08 */ lwz r0, 0x8(r3)
/* 800958A4 000916E4 2C 00 00 00 */ cmpwi r0, 0x0
/* 800958A8 000916E8 40 82 00 1C */ bne lbl_800958C4
/* 800958AC 000916EC 91 03 00 0C */ stw r8, 0xc(r3)
/* 800958B0 000916F0 38 00 00 00 */ li r0, 0x0
/* 800958B4 000916F4 91 03 00 08 */ stw r8, 0x8(r3)
/* 800958B8 000916F8 90 08 00 08 */ stw r0, 0x8(r8)
/* 800958BC 000916FC 90 08 00 0C */ stw r0, 0xc(r8)
/* 800958C0 00091700 48 00 00 20 */ b lbl_800958E0
.global lbl_800958C4
lbl_800958C4:
/* 800958C4 00091704 38 00 00 00 */ li r0, 0x0
/* 800958C8 00091708 90 08 00 08 */ stw r0, 0x8(r8)
/* 800958CC 0009170C 80 03 00 0C */ lwz r0, 0xc(r3)
/* 800958D0 00091710 90 08 00 0C */ stw r0, 0xc(r8)
/* 800958D4 00091714 80 83 00 0C */ lwz r4, 0xc(r3)
/* 800958D8 00091718 91 04 00 08 */ stw r8, 0x8(r4)
/* 800958DC 0009171C 91 03 00 0C */ stw r8, 0xc(r3)
.global lbl_800958E0
lbl_800958E0:
/* 800958E0 00091720 3C 60 00 01 */ lis r3, 0x1
/* 800958E4 00091724 38 C0 02 A0 */ li r6, 0x2a0
/* 800958E8 00091728 38 03 FF FF */ addi r0, r3, -0x1
/* 800958EC 0009172C 38 A0 00 01 */ li r5, 0x1
/* 800958F0 00091730 B0 08 00 3C */ sth r0, 0x3c(r8)
/* 800958F4 00091734 38 80 00 00 */ li r4, 0x0
/* 800958F8 00091738 38 00 FF FF */ li r0, -0x1
/* 800958FC 0009173C 7D 03 43 78 */ mr r3, r8
/* 80095900 00091740 B0 C8 00 3A */ sth r6, 0x3a(r8)
/* 80095904 00091744 B0 C8 00 38 */ sth r6, 0x38(r8)
/* 80095908 00091748 98 A8 00 59 */ stb r5, 0x59(r8)
/* 8009590C 0009174C 98 A8 00 41 */ stb r5, 0x41(r8)
/* 80095910 00091750 90 88 00 5C */ stw r4, 0x5c(r8)
/* 80095914 00091754 90 88 00 44 */ stw r4, 0x44(r8)
/* 80095918 00091758 90 88 00 60 */ stw r4, 0x60(r8)
/* 8009591C 0009175C 90 88 00 48 */ stw r4, 0x48(r8)
/* 80095920 00091760 90 88 00 64 */ stw r4, 0x64(r8)
/* 80095924 00091764 90 88 00 4C */ stw r4, 0x4c(r8)
/* 80095928 00091768 90 08 00 68 */ stw r0, 0x68(r8)
/* 8009592C 0009176C 90 08 00 50 */ stw r0, 0x50(r8)
/* 80095930 00091770 90 08 00 6C */ stw r0, 0x6c(r8)
/* 80095934 00091774 90 08 00 54 */ stw r0, 0x54(r8)
/* 80095938 00091778 98 88 00 34 */ stb r4, 0x34(r8)
/* 8009593C 0009177C 90 88 00 04 */ stw r4, 0x4(r8)
/* 80095940 00091780 98 A8 00 37 */ stb r5, 0x37(r8)
/* 80095944 00091784 91 08 00 28 */ stw r8, 0x28(r8)
/* 80095948 00091788 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_release_ccb
l2cu_release_ccb:
2022-10-16 16:05:58 +00:00
/* 8009594C 0009178C 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80095950 00091790 7C 08 02 A6 */ mflr r0
/* 80095954 00091794 90 01 00 14 */ stw r0, 0x14(r1)
/* 80095958 00091798 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8009595C 0009179C 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80095960 000917A0 7C 7E 1B 78 */ mr r30, r3
/* 80095964 000917A4 88 03 00 00 */ lbz r0, 0x0(r3)
/* 80095968 000917A8 83 E3 00 10 */ lwz r31, 0x10(r3)
/* 8009596C 000917AC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095970 000917B0 41 82 01 68 */ beq lbl_80095AD8
/* 80095974 000917B4 38 00 00 00 */ li r0, 0x0
/* 80095978 000917B8 98 03 00 00 */ stb r0, 0x0(r3)
/* 8009597C 000917BC 38 63 00 18 */ addi r3, r3, 0x18
2022-10-16 16:31:36 +00:00
/* 80095980 000917C0 4B FE 25 A1 */ bl btu_stop_timer
2022-10-16 16:05:58 +00:00
/* 80095984 000917C4 48 00 00 10 */ b lbl_80095994
.global lbl_80095988
lbl_80095988:
/* 80095988 000917C8 38 7E 00 70 */ addi r3, r30, 0x70
2022-10-16 16:31:36 +00:00
/* 8009598C 000917CC 4B FD FC 35 */ bl GKI_dequeue
/* 80095990 000917D0 4B FD F5 81 */ bl GKI_freebuf
2022-10-16 16:05:58 +00:00
.global lbl_80095994
lbl_80095994:
/* 80095994 000917D4 80 1E 00 70 */ lwz r0, 0x70(r30)
/* 80095998 000917D8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8009599C 000917DC 40 82 FF EC */ bne lbl_80095988
/* 800959A0 000917E0 38 80 00 00 */ li r4, 0x0
/* 800959A4 000917E4 90 9E 00 10 */ stw r4, 0x10(r30)
/* 800959A8 000917E8 80 1F 00 08 */ lwz r0, 0x8(r31)
/* 800959AC 000917EC 7C 00 F0 40 */ cmplw r0, r30
/* 800959B0 000917F0 40 82 00 1C */ bne lbl_800959CC
/* 800959B4 000917F4 80 7E 00 08 */ lwz r3, 0x8(r30)
/* 800959B8 000917F8 2C 03 00 00 */ cmpwi r3, 0x0
/* 800959BC 000917FC 90 7F 00 08 */ stw r3, 0x8(r31)
/* 800959C0 00091800 41 82 00 40 */ beq lbl_80095A00
/* 800959C4 00091804 90 83 00 0C */ stw r4, 0xc(r3)
/* 800959C8 00091808 48 00 00 38 */ b lbl_80095A00
.global lbl_800959CC
lbl_800959CC:
/* 800959CC 0009180C 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 800959D0 00091810 7C 00 F0 40 */ cmplw r0, r30
/* 800959D4 00091814 40 82 00 14 */ bne lbl_800959E8
/* 800959D8 00091818 80 7E 00 0C */ lwz r3, 0xc(r30)
/* 800959DC 0009181C 90 7F 00 0C */ stw r3, 0xc(r31)
/* 800959E0 00091820 90 83 00 08 */ stw r4, 0x8(r3)
/* 800959E4 00091824 48 00 00 1C */ b lbl_80095A00
.global lbl_800959E8
lbl_800959E8:
/* 800959E8 00091828 80 1E 00 08 */ lwz r0, 0x8(r30)
/* 800959EC 0009182C 80 7E 00 0C */ lwz r3, 0xc(r30)
/* 800959F0 00091830 90 03 00 08 */ stw r0, 0x8(r3)
/* 800959F4 00091834 80 1E 00 0C */ lwz r0, 0xc(r30)
/* 800959F8 00091838 80 7E 00 08 */ lwz r3, 0x8(r30)
/* 800959FC 0009183C 90 03 00 0C */ stw r0, 0xc(r3)
.global lbl_80095A00
lbl_80095A00:
2022-10-16 16:31:36 +00:00
/* 80095A00 00091840 3C 80 80 50 */ lis r4, l2cb@ha
/* 80095A04 00091844 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80095A08 00091848 80 04 07 B0 */ lwz r0, 0x7b0(r4)
/* 80095A0C 0009184C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095A10 00091850 40 82 00 1C */ bne lbl_80095A2C
/* 80095A14 00091854 93 C4 07 B0 */ stw r30, 0x7b0(r4)
/* 80095A18 00091858 38 00 00 00 */ li r0, 0x0
/* 80095A1C 0009185C 93 C4 07 B4 */ stw r30, 0x7b4(r4)
/* 80095A20 00091860 90 1E 00 08 */ stw r0, 0x8(r30)
/* 80095A24 00091864 90 1E 00 0C */ stw r0, 0xc(r30)
/* 80095A28 00091868 48 00 00 20 */ b lbl_80095A48
.global lbl_80095A2C
lbl_80095A2C:
/* 80095A2C 0009186C 38 00 00 00 */ li r0, 0x0
/* 80095A30 00091870 90 1E 00 08 */ stw r0, 0x8(r30)
/* 80095A34 00091874 80 04 07 B4 */ lwz r0, 0x7b4(r4)
/* 80095A38 00091878 90 1E 00 0C */ stw r0, 0xc(r30)
/* 80095A3C 0009187C 80 64 07 B4 */ lwz r3, 0x7b4(r4)
/* 80095A40 00091880 93 C3 00 08 */ stw r30, 0x8(r3)
/* 80095A44 00091884 93 C4 07 B4 */ stw r30, 0x7b4(r4)
.global lbl_80095A48
lbl_80095A48:
/* 80095A48 00091888 88 1F 00 00 */ lbz r0, 0x0(r31)
/* 80095A4C 0009188C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095A50 00091890 41 82 00 88 */ beq lbl_80095AD8
/* 80095A54 00091894 80 1F 00 04 */ lwz r0, 0x4(r31)
/* 80095A58 00091898 2C 00 00 04 */ cmpwi r0, 0x4
/* 80095A5C 0009189C 40 82 00 7C */ bne lbl_80095AD8
/* 80095A60 000918A0 80 1F 00 08 */ lwz r0, 0x8(r31)
/* 80095A64 000918A4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095A68 000918A8 40 82 00 70 */ bne lbl_80095AD8
/* 80095A6C 000918AC A0 7F 00 58 */ lhz r3, 0x58(r31)
/* 80095A70 000918B0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80095A74 000918B4 40 82 00 4C */ bne lbl_80095AC0
/* 80095A78 000918B8 A0 7F 00 28 */ lhz r3, 0x28(r31)
/* 80095A7C 000918BC 38 80 00 13 */ li r4, 0x13
2022-10-16 16:31:36 +00:00
/* 80095A80 000918C0 4B FF 18 A9 */ bl btm_sec_disconnect
2022-10-16 16:05:58 +00:00
/* 80095A84 000918C4 54 60 06 3E */ clrlwi r0, r3, 24
/* 80095A88 000918C8 28 00 00 01 */ cmplwi r0, 0x1
/* 80095A8C 000918CC 40 82 00 14 */ bne lbl_80095AA0
/* 80095A90 000918D0 38 00 00 05 */ li r0, 0x5
/* 80095A94 000918D4 38 60 00 1E */ li r3, 0x1e
/* 80095A98 000918D8 90 1F 00 04 */ stw r0, 0x4(r31)
/* 80095A9C 000918DC 48 00 00 24 */ b lbl_80095AC0
.global lbl_80095AA0
lbl_80095AA0:
/* 80095AA0 000918E0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095AA4 000918E4 40 82 00 18 */ bne lbl_80095ABC
/* 80095AA8 000918E8 38 00 00 05 */ li r0, 0x5
/* 80095AAC 000918EC 3C 60 00 01 */ lis r3, 0x1
/* 80095AB0 000918F0 90 1F 00 04 */ stw r0, 0x4(r31)
/* 80095AB4 000918F4 38 63 FF FF */ addi r3, r3, -0x1
/* 80095AB8 000918F8 48 00 00 08 */ b lbl_80095AC0
.global lbl_80095ABC
lbl_80095ABC:
/* 80095ABC 000918FC 38 60 00 01 */ li r3, 0x1
.global lbl_80095AC0
lbl_80095AC0:
/* 80095AC0 00091900 54 65 04 3E */ clrlwi r5, r3, 16
/* 80095AC4 00091904 28 05 FF FF */ cmplwi r5, 0xffff
/* 80095AC8 00091908 41 82 00 10 */ beq lbl_80095AD8
/* 80095ACC 0009190C 38 7F 00 10 */ addi r3, r31, 0x10
/* 80095AD0 00091910 38 80 00 02 */ li r4, 0x2
2022-10-16 16:31:36 +00:00
/* 80095AD4 00091914 4B FE 23 DD */ bl btu_start_timer
2022-10-16 16:05:58 +00:00
.global lbl_80095AD8
lbl_80095AD8:
/* 80095AD8 00091918 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80095ADC 0009191C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80095AE0 00091920 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80095AE4 00091924 7C 08 03 A6 */ mtlr r0
/* 80095AE8 00091928 38 21 00 10 */ addi r1, r1, 0x10
/* 80095AEC 0009192C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_find_ccb_by_cid
l2cu_find_ccb_by_cid:
2022-10-16 16:05:58 +00:00
/* 80095AF0 00091930 28 04 00 40 */ cmplwi r4, 0x40
/* 80095AF4 00091934 38 A0 00 00 */ li r5, 0x0
/* 80095AF8 00091938 41 80 00 4C */ blt lbl_80095B44
/* 80095AFC 0009193C 38 04 FF C0 */ addi r0, r4, -0x40
2022-10-16 16:31:36 +00:00
/* 80095B00 00091940 3C 80 80 50 */ lis r4, l2cb@ha
2022-10-16 16:05:58 +00:00
/* 80095B04 00091944 54 00 04 3E */ clrlwi r0, r0, 16
/* 80095B08 00091948 1C 00 00 7C */ mulli r0, r0, 0x7c
2022-10-16 16:31:36 +00:00
/* 80095B0C 0009194C 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80095B10 00091950 7C 84 02 14 */ add r4, r4, r0
/* 80095B14 00091954 88 04 01 78 */ lbz r0, 0x178(r4)
/* 80095B18 00091958 38 A4 01 78 */ addi r5, r4, 0x178
/* 80095B1C 0009195C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095B20 00091960 40 82 00 0C */ bne lbl_80095B2C
/* 80095B24 00091964 38 A0 00 00 */ li r5, 0x0
/* 80095B28 00091968 48 00 00 1C */ b lbl_80095B44
.global lbl_80095B2C
lbl_80095B2C:
/* 80095B2C 0009196C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80095B30 00091970 41 82 00 14 */ beq lbl_80095B44
/* 80095B34 00091974 80 05 00 10 */ lwz r0, 0x10(r5)
/* 80095B38 00091978 7C 03 00 40 */ cmplw r3, r0
/* 80095B3C 0009197C 41 82 00 08 */ beq lbl_80095B44
/* 80095B40 00091980 38 A0 00 00 */ li r5, 0x0
.global lbl_80095B44
lbl_80095B44:
/* 80095B44 00091984 7C A3 2B 78 */ mr r3, r5
/* 80095B48 00091988 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_allocate_rcb
l2cu_allocate_rcb:
/* 80095B4C 0009198C 3C 80 80 50 */ lis r4, l2cb@ha
2022-10-16 16:05:58 +00:00
/* 80095B50 00091990 38 00 00 08 */ li r0, 0x8
2022-10-16 16:31:36 +00:00
/* 80095B54 00091994 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80095B58 00091998 38 A0 00 00 */ li r5, 0x0
/* 80095B5C 0009199C 38 84 06 50 */ addi r4, r4, 0x650
/* 80095B60 000919A0 7C 09 03 A6 */ mtctr r0
.global lbl_80095B64
lbl_80095B64:
/* 80095B64 000919A4 88 04 00 00 */ lbz r0, 0x0(r4)
/* 80095B68 000919A8 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095B6C 000919AC 40 82 00 18 */ bne lbl_80095B84
/* 80095B70 000919B0 38 00 00 01 */ li r0, 0x1
/* 80095B74 000919B4 98 04 00 00 */ stb r0, 0x0(r4)
/* 80095B78 000919B8 B0 64 00 02 */ sth r3, 0x2(r4)
/* 80095B7C 000919BC 7C 83 23 78 */ mr r3, r4
/* 80095B80 000919C0 4E 80 00 20 */ blr
.global lbl_80095B84
lbl_80095B84:
/* 80095B84 000919C4 38 A5 00 01 */ addi r5, r5, 0x1
/* 80095B88 000919C8 38 84 00 2C */ addi r4, r4, 0x2c
/* 80095B8C 000919CC 42 00 FF D8 */ bdnz lbl_80095B64
/* 80095B90 000919D0 38 60 00 00 */ li r3, 0x0
/* 80095B94 000919D4 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_release_rcb
l2cu_release_rcb:
2022-10-16 16:05:58 +00:00
/* 80095B98 000919D8 38 00 00 00 */ li r0, 0x0
/* 80095B9C 000919DC 98 03 00 00 */ stb r0, 0x0(r3)
/* 80095BA0 000919E0 B0 03 00 02 */ sth r0, 0x2(r3)
/* 80095BA4 000919E4 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_find_rcb_by_psm
l2cu_find_rcb_by_psm:
/* 80095BA8 000919E8 3C 80 80 50 */ lis r4, l2cb@ha
2022-10-16 16:05:58 +00:00
/* 80095BAC 000919EC 38 00 00 02 */ li r0, 0x2
2022-10-16 16:31:36 +00:00
/* 80095BB0 000919F0 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80095BB4 000919F4 38 A0 00 00 */ li r5, 0x0
/* 80095BB8 000919F8 38 84 06 50 */ addi r4, r4, 0x650
/* 80095BBC 000919FC 7C 09 03 A6 */ mtctr r0
.global lbl_80095BC0
lbl_80095BC0:
/* 80095BC0 00091A00 88 04 00 00 */ lbz r0, 0x0(r4)
/* 80095BC4 00091A04 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095BC8 00091A08 41 82 00 18 */ beq lbl_80095BE0
/* 80095BCC 00091A0C A0 04 00 02 */ lhz r0, 0x2(r4)
/* 80095BD0 00091A10 7C 00 18 40 */ cmplw r0, r3
/* 80095BD4 00091A14 40 82 00 0C */ bne lbl_80095BE0
/* 80095BD8 00091A18 7C 83 23 78 */ mr r3, r4
/* 80095BDC 00091A1C 4E 80 00 20 */ blr
.global lbl_80095BE0
lbl_80095BE0:
/* 80095BE0 00091A20 8C 04 00 2C */ lbzu r0, 0x2c(r4)
/* 80095BE4 00091A24 38 A5 00 01 */ addi r5, r5, 0x1
/* 80095BE8 00091A28 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095BEC 00091A2C 41 82 00 18 */ beq lbl_80095C04
/* 80095BF0 00091A30 A0 04 00 02 */ lhz r0, 0x2(r4)
/* 80095BF4 00091A34 7C 00 18 40 */ cmplw r0, r3
/* 80095BF8 00091A38 40 82 00 0C */ bne lbl_80095C04
/* 80095BFC 00091A3C 7C 83 23 78 */ mr r3, r4
/* 80095C00 00091A40 4E 80 00 20 */ blr
.global lbl_80095C04
lbl_80095C04:
/* 80095C04 00091A44 8C 04 00 2C */ lbzu r0, 0x2c(r4)
/* 80095C08 00091A48 38 A5 00 01 */ addi r5, r5, 0x1
/* 80095C0C 00091A4C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095C10 00091A50 41 82 00 18 */ beq lbl_80095C28
/* 80095C14 00091A54 A0 04 00 02 */ lhz r0, 0x2(r4)
/* 80095C18 00091A58 7C 00 18 40 */ cmplw r0, r3
/* 80095C1C 00091A5C 40 82 00 0C */ bne lbl_80095C28
/* 80095C20 00091A60 7C 83 23 78 */ mr r3, r4
/* 80095C24 00091A64 4E 80 00 20 */ blr
.global lbl_80095C28
lbl_80095C28:
/* 80095C28 00091A68 8C 04 00 2C */ lbzu r0, 0x2c(r4)
/* 80095C2C 00091A6C 38 A5 00 01 */ addi r5, r5, 0x1
/* 80095C30 00091A70 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095C34 00091A74 41 82 00 18 */ beq lbl_80095C4C
/* 80095C38 00091A78 A0 04 00 02 */ lhz r0, 0x2(r4)
/* 80095C3C 00091A7C 7C 00 18 40 */ cmplw r0, r3
/* 80095C40 00091A80 40 82 00 0C */ bne lbl_80095C4C
/* 80095C44 00091A84 7C 83 23 78 */ mr r3, r4
/* 80095C48 00091A88 4E 80 00 20 */ blr
.global lbl_80095C4C
lbl_80095C4C:
/* 80095C4C 00091A8C 38 A5 00 01 */ addi r5, r5, 0x1
/* 80095C50 00091A90 38 84 00 2C */ addi r4, r4, 0x2c
/* 80095C54 00091A94 42 00 FF 6C */ bdnz lbl_80095BC0
/* 80095C58 00091A98 38 60 00 00 */ li r3, 0x0
/* 80095C5C 00091A9C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_process_peer_cfg_req
l2cu_process_peer_cfg_req:
2022-10-16 16:05:58 +00:00
/* 80095C60 00091AA0 88 04 00 02 */ lbz r0, 0x2(r4)
/* 80095C64 00091AA4 38 C0 00 01 */ li r6, 0x1
/* 80095C68 00091AA8 38 E0 00 01 */ li r7, 0x1
/* 80095C6C 00091AAC 39 00 00 01 */ li r8, 0x1
/* 80095C70 00091AB0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095C74 00091AB4 41 82 00 38 */ beq lbl_80095CAC
/* 80095C78 00091AB8 A0 04 00 04 */ lhz r0, 0x4(r4)
/* 80095C7C 00091ABC 28 00 00 30 */ cmplwi r0, 0x30
/* 80095C80 00091AC0 41 80 00 20 */ blt lbl_80095CA0
/* 80095C84 00091AC4 28 00 06 9B */ cmplwi r0, 0x69b
/* 80095C88 00091AC8 B0 03 00 3A */ sth r0, 0x3a(r3)
/* 80095C8C 00091ACC 40 81 00 20 */ ble lbl_80095CAC
/* 80095C90 00091AD0 38 00 06 9B */ li r0, 0x69b
/* 80095C94 00091AD4 B0 04 00 04 */ sth r0, 0x4(r4)
/* 80095C98 00091AD8 B0 03 00 3A */ sth r0, 0x3a(r3)
/* 80095C9C 00091ADC 48 00 00 10 */ b lbl_80095CAC
.global lbl_80095CA0
lbl_80095CA0:
/* 80095CA0 00091AE0 38 00 00 30 */ li r0, 0x30
/* 80095CA4 00091AE4 38 C0 00 00 */ li r6, 0x0
/* 80095CA8 00091AE8 B0 04 00 04 */ sth r0, 0x4(r4)
.global lbl_80095CAC
lbl_80095CAC:
/* 80095CAC 00091AEC 88 04 00 20 */ lbz r0, 0x20(r4)
/* 80095CB0 00091AF0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095CB4 00091AF4 41 82 00 20 */ beq lbl_80095CD4
/* 80095CB8 00091AF8 A0 04 00 22 */ lhz r0, 0x22(r4)
/* 80095CBC 00091AFC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095CC0 00091B00 40 82 00 14 */ bne lbl_80095CD4
/* 80095CC4 00091B04 3C A0 00 01 */ lis r5, 0x1
/* 80095CC8 00091B08 39 00 00 00 */ li r8, 0x0
/* 80095CCC 00091B0C 38 05 FF FF */ addi r0, r5, -0x1
/* 80095CD0 00091B10 B0 04 00 22 */ sth r0, 0x22(r4)
.global lbl_80095CD4
lbl_80095CD4:
/* 80095CD4 00091B14 88 04 00 06 */ lbz r0, 0x6(r4)
/* 80095CD8 00091B18 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095CDC 00091B1C 41 82 00 50 */ beq lbl_80095D2C
/* 80095CE0 00091B20 88 04 00 09 */ lbz r0, 0x9(r4)
/* 80095CE4 00091B24 28 00 00 02 */ cmplwi r0, 0x2
/* 80095CE8 00091B28 41 81 00 38 */ bgt lbl_80095D20
/* 80095CEC 00091B2C 80 A4 00 08 */ lwz r5, 0x8(r4)
/* 80095CF0 00091B30 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80095CF4 00091B34 90 A3 00 40 */ stw r5, 0x40(r3)
/* 80095CF8 00091B38 90 03 00 44 */ stw r0, 0x44(r3)
/* 80095CFC 00091B3C 80 A4 00 10 */ lwz r5, 0x10(r4)
/* 80095D00 00091B40 80 04 00 14 */ lwz r0, 0x14(r4)
/* 80095D04 00091B44 90 A3 00 48 */ stw r5, 0x48(r3)
/* 80095D08 00091B48 90 03 00 4C */ stw r0, 0x4c(r3)
/* 80095D0C 00091B4C 80 A4 00 18 */ lwz r5, 0x18(r4)
/* 80095D10 00091B50 80 04 00 1C */ lwz r0, 0x1c(r4)
/* 80095D14 00091B54 90 A3 00 50 */ stw r5, 0x50(r3)
/* 80095D18 00091B58 90 03 00 54 */ stw r0, 0x54(r3)
/* 80095D1C 00091B5C 48 00 00 10 */ b lbl_80095D2C
.global lbl_80095D20
lbl_80095D20:
/* 80095D20 00091B60 38 00 00 01 */ li r0, 0x1
/* 80095D24 00091B64 38 E0 00 00 */ li r7, 0x0
/* 80095D28 00091B68 98 04 00 09 */ stb r0, 0x9(r4)
.global lbl_80095D2C
lbl_80095D2C:
/* 80095D2C 00091B6C 2C 06 00 00 */ cmpwi r6, 0x0
/* 80095D30 00091B70 38 60 00 00 */ li r3, 0x0
/* 80095D34 00091B74 38 00 00 00 */ li r0, 0x0
/* 80095D38 00091B78 41 82 00 18 */ beq lbl_80095D50
/* 80095D3C 00091B7C 2C 08 00 00 */ cmpwi r8, 0x0
/* 80095D40 00091B80 41 82 00 10 */ beq lbl_80095D50
/* 80095D44 00091B84 2C 07 00 00 */ cmpwi r7, 0x0
/* 80095D48 00091B88 41 82 00 08 */ beq lbl_80095D50
/* 80095D4C 00091B8C 38 00 00 01 */ li r0, 0x1
.global lbl_80095D50
lbl_80095D50:
/* 80095D50 00091B90 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095D54 00091B94 41 82 00 08 */ beq lbl_80095D5C
/* 80095D58 00091B98 38 60 00 01 */ li r3, 0x1
.global lbl_80095D5C
lbl_80095D5C:
/* 80095D5C 00091B9C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80095D60 00091BA0 4C 82 00 20 */ bnelr
/* 80095D64 00091BA4 38 00 00 01 */ li r0, 0x1
/* 80095D68 00091BA8 2C 06 00 00 */ cmpwi r6, 0x0
/* 80095D6C 00091BAC B0 04 00 00 */ sth r0, 0x0(r4)
/* 80095D70 00091BB0 41 82 00 0C */ beq lbl_80095D7C
/* 80095D74 00091BB4 38 00 00 00 */ li r0, 0x0
/* 80095D78 00091BB8 98 04 00 02 */ stb r0, 0x2(r4)
.global lbl_80095D7C
lbl_80095D7C:
/* 80095D7C 00091BBC 2C 08 00 00 */ cmpwi r8, 0x0
/* 80095D80 00091BC0 41 82 00 0C */ beq lbl_80095D8C
/* 80095D84 00091BC4 38 00 00 00 */ li r0, 0x0
/* 80095D88 00091BC8 98 04 00 20 */ stb r0, 0x20(r4)
.global lbl_80095D8C
lbl_80095D8C:
/* 80095D8C 00091BCC 2C 07 00 00 */ cmpwi r7, 0x0
/* 80095D90 00091BD0 41 82 00 0C */ beq lbl_80095D9C
/* 80095D94 00091BD4 38 00 00 00 */ li r0, 0x0
/* 80095D98 00091BD8 98 04 00 06 */ stb r0, 0x6(r4)
.global lbl_80095D9C
lbl_80095D9C:
/* 80095D9C 00091BDC 38 00 00 00 */ li r0, 0x0
/* 80095DA0 00091BE0 98 04 00 24 */ stb r0, 0x24(r4)
/* 80095DA4 00091BE4 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_process_peer_cfg_rsp
l2cu_process_peer_cfg_rsp:
2022-10-16 16:05:58 +00:00
/* 80095DA8 00091BE8 88 04 00 06 */ lbz r0, 0x6(r4)
/* 80095DAC 00091BEC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095DB0 00091BF0 4D 82 00 20 */ beqlr
/* 80095DB4 00091BF4 80 A4 00 08 */ lwz r5, 0x8(r4)
/* 80095DB8 00091BF8 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80095DBC 00091BFC 90 A3 00 58 */ stw r5, 0x58(r3)
/* 80095DC0 00091C00 90 03 00 5C */ stw r0, 0x5c(r3)
/* 80095DC4 00091C04 80 A4 00 10 */ lwz r5, 0x10(r4)
/* 80095DC8 00091C08 80 04 00 14 */ lwz r0, 0x14(r4)
/* 80095DCC 00091C0C 90 A3 00 60 */ stw r5, 0x60(r3)
/* 80095DD0 00091C10 90 03 00 64 */ stw r0, 0x64(r3)
/* 80095DD4 00091C14 80 A4 00 18 */ lwz r5, 0x18(r4)
/* 80095DD8 00091C18 80 04 00 1C */ lwz r0, 0x1c(r4)
/* 80095DDC 00091C1C 90 A3 00 68 */ stw r5, 0x68(r3)
/* 80095DE0 00091C20 90 03 00 6C */ stw r0, 0x6c(r3)
/* 80095DE4 00091C24 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_process_our_cfg_req
l2cu_process_our_cfg_req:
2022-10-16 16:05:58 +00:00
/* 80095DE8 00091C28 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80095DEC 00091C2C 7C 08 02 A6 */ mflr r0
/* 80095DF0 00091C30 90 01 00 14 */ stw r0, 0x14(r1)
/* 80095DF4 00091C34 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80095DF8 00091C38 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80095DFC 00091C3C 88 04 00 02 */ lbz r0, 0x2(r4)
/* 80095E00 00091C40 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095E04 00091C44 41 82 00 20 */ beq lbl_80095E24
/* 80095E08 00091C48 A0 04 00 04 */ lhz r0, 0x4(r4)
/* 80095E0C 00091C4C 28 00 06 9B */ cmplwi r0, 0x69b
/* 80095E10 00091C50 B0 03 00 38 */ sth r0, 0x38(r3)
/* 80095E14 00091C54 40 81 00 10 */ ble lbl_80095E24
/* 80095E18 00091C58 38 00 06 9B */ li r0, 0x69b
/* 80095E1C 00091C5C B0 04 00 04 */ sth r0, 0x4(r4)
/* 80095E20 00091C60 B0 03 00 38 */ sth r0, 0x38(r3)
.global lbl_80095E24
lbl_80095E24:
/* 80095E24 00091C64 88 04 00 06 */ lbz r0, 0x6(r4)
/* 80095E28 00091C68 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095E2C 00091C6C 41 82 00 34 */ beq lbl_80095E60
/* 80095E30 00091C70 80 A4 00 08 */ lwz r5, 0x8(r4)
/* 80095E34 00091C74 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80095E38 00091C78 90 A3 00 58 */ stw r5, 0x58(r3)
/* 80095E3C 00091C7C 90 03 00 5C */ stw r0, 0x5c(r3)
/* 80095E40 00091C80 80 A4 00 10 */ lwz r5, 0x10(r4)
/* 80095E44 00091C84 80 04 00 14 */ lwz r0, 0x14(r4)
/* 80095E48 00091C88 90 A3 00 60 */ stw r5, 0x60(r3)
/* 80095E4C 00091C8C 90 03 00 64 */ stw r0, 0x64(r3)
/* 80095E50 00091C90 80 A4 00 18 */ lwz r5, 0x18(r4)
/* 80095E54 00091C94 80 04 00 1C */ lwz r0, 0x1c(r4)
/* 80095E58 00091C98 90 A3 00 68 */ stw r5, 0x68(r3)
/* 80095E5C 00091C9C 90 03 00 6C */ stw r0, 0x6c(r3)
.global lbl_80095E60
lbl_80095E60:
/* 80095E60 00091CA0 88 04 00 20 */ lbz r0, 0x20(r4)
/* 80095E64 00091CA4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095E68 00091CA8 41 82 00 78 */ beq lbl_80095EE0
/* 80095E6C 00091CAC A0 04 00 22 */ lhz r0, 0x22(r4)
/* 80095E70 00091CB0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095E74 00091CB4 41 82 00 6C */ beq lbl_80095EE0
/* 80095E78 00091CB8 B0 03 00 3C */ sth r0, 0x3c(r3)
/* 80095E7C 00091CBC 83 E3 00 10 */ lwz r31, 0x10(r3)
/* 80095E80 00091CC0 A0 64 00 22 */ lhz r3, 0x22(r4)
/* 80095E84 00091CC4 A0 1F 00 32 */ lhz r0, 0x32(r31)
/* 80095E88 00091CC8 7C 03 00 40 */ cmplw r3, r0
/* 80095E8C 00091CCC 40 80 00 54 */ bge lbl_80095EE0
/* 80095E90 00091CD0 B0 7F 00 32 */ sth r3, 0x32(r31)
/* 80095E94 00091CD4 A0 04 00 22 */ lhz r0, 0x22(r4)
/* 80095E98 00091CD8 28 00 04 FF */ cmplwi r0, 0x4ff
/* 80095E9C 00091CDC 41 81 00 44 */ bgt lbl_80095EE0
/* 80095EA0 00091CE0 54 03 1B 78 */ rlwinm r3, r0, 3, 13, 28
/* 80095EA4 00091CE4 3C 80 66 66 */ lis r4, 0x6666
/* 80095EA8 00091CE8 38 03 00 03 */ addi r0, r3, 0x3
/* 80095EAC 00091CEC 38 84 66 67 */ addi r4, r4, 0x6667
/* 80095EB0 00091CF0 38 60 00 02 */ li r3, 0x2
/* 80095EB4 00091CF4 7C 04 00 96 */ mulhw r0, r4, r0
/* 80095EB8 00091CF8 7C 00 0E 70 */ srawi r0, r0, 1
/* 80095EBC 00091CFC 54 04 0F FE */ srwi r4, r0, 31
/* 80095EC0 00091D00 7C 00 22 14 */ add r0, r0, r4
/* 80095EC4 00091D04 54 1E 04 3E */ clrlwi r30, r0, 16
2022-10-16 16:31:36 +00:00
/* 80095EC8 00091D08 4B FD EF 59 */ bl GKI_getpoolbuf
2022-10-16 16:05:58 +00:00
/* 80095ECC 00091D0C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80095ED0 00091D10 41 82 00 10 */ beq lbl_80095EE0
/* 80095ED4 00091D14 A0 9F 00 28 */ lhz r4, 0x28(r31)
/* 80095ED8 00091D18 7F C5 F3 78 */ mr r5, r30
2022-10-16 16:31:36 +00:00
/* 80095EDC 00091D1C 4B FF 65 F9 */ bl btsnd_hcic_write_auto_flush_tout
2022-10-16 16:05:58 +00:00
.global lbl_80095EE0
lbl_80095EE0:
/* 80095EE0 00091D20 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80095EE4 00091D24 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80095EE8 00091D28 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80095EEC 00091D2C 7C 08 03 A6 */ mtlr r0
/* 80095EF0 00091D30 38 21 00 10 */ addi r1, r1, 0x10
/* 80095EF4 00091D34 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_process_our_cfg_rsp
l2cu_process_our_cfg_rsp:
2022-10-16 16:05:58 +00:00
/* 80095EF8 00091D38 88 04 00 06 */ lbz r0, 0x6(r4)
/* 80095EFC 00091D3C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095F00 00091D40 4D 82 00 20 */ beqlr
/* 80095F04 00091D44 80 A4 00 08 */ lwz r5, 0x8(r4)
/* 80095F08 00091D48 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80095F0C 00091D4C 90 A3 00 40 */ stw r5, 0x40(r3)
/* 80095F10 00091D50 90 03 00 44 */ stw r0, 0x44(r3)
/* 80095F14 00091D54 80 A4 00 10 */ lwz r5, 0x10(r4)
/* 80095F18 00091D58 80 04 00 14 */ lwz r0, 0x14(r4)
/* 80095F1C 00091D5C 90 A3 00 48 */ stw r5, 0x48(r3)
/* 80095F20 00091D60 90 03 00 4C */ stw r0, 0x4c(r3)
/* 80095F24 00091D64 80 A4 00 18 */ lwz r5, 0x18(r4)
/* 80095F28 00091D68 80 04 00 1C */ lwz r0, 0x1c(r4)
/* 80095F2C 00091D6C 90 A3 00 50 */ stw r5, 0x50(r3)
/* 80095F30 00091D70 90 03 00 54 */ stw r0, 0x54(r3)
/* 80095F34 00091D74 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_device_reset
l2cu_device_reset:
2022-10-16 16:05:58 +00:00
/* 80095F38 00091D78 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80095F3C 00091D7C 7C 08 02 A6 */ mflr r0
2022-10-16 16:31:36 +00:00
/* 80095F40 00091D80 3C 60 80 50 */ lis r3, l2cb@ha
2022-10-16 16:05:58 +00:00
/* 80095F44 00091D84 90 01 00 14 */ stw r0, 0x14(r1)
2022-10-16 16:31:36 +00:00
/* 80095F48 00091D88 38 63 90 20 */ addi r3, r3, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80095F4C 00091D8C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80095F50 00091D90 3B E0 00 00 */ li r31, 0x0
/* 80095F54 00091D94 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80095F58 00091D98 3B C3 00 08 */ addi r30, r3, 0x8
.global lbl_80095F5C
lbl_80095F5C:
/* 80095F5C 00091D9C 88 1E 00 00 */ lbz r0, 0x0(r30)
/* 80095F60 00091DA0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095F64 00091DA4 41 82 00 18 */ beq lbl_80095F7C
/* 80095F68 00091DA8 A0 7E 00 28 */ lhz r3, 0x28(r30)
/* 80095F6C 00091DAC 28 03 FF FF */ cmplwi r3, 0xffff
/* 80095F70 00091DB0 41 82 00 0C */ beq lbl_80095F7C
/* 80095F74 00091DB4 38 80 00 FF */ li r4, 0xff
2022-10-16 16:31:36 +00:00
/* 80095F78 00091DB8 4B FF C7 4D */ bl l2c_link_hci_disc_comp
2022-10-16 16:05:58 +00:00
.global lbl_80095F7C
lbl_80095F7C:
/* 80095F7C 00091DBC 3B FF 00 01 */ addi r31, r31, 0x1
/* 80095F80 00091DC0 3B DE 00 5C */ addi r30, r30, 0x5c
/* 80095F84 00091DC4 2C 1F 00 04 */ cmpwi r31, 0x4
/* 80095F88 00091DC8 41 80 FF D4 */ blt lbl_80095F5C
/* 80095F8C 00091DCC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80095F90 00091DD0 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80095F94 00091DD4 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80095F98 00091DD8 7C 08 03 A6 */ mtlr r0
/* 80095F9C 00091DDC 38 21 00 10 */ addi r1, r1, 0x10
/* 80095FA0 00091DE0 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_create_conn
l2cu_create_conn:
2022-10-16 16:05:58 +00:00
/* 80095FA4 00091DE4 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80095FA8 00091DE8 7C 08 02 A6 */ mflr r0
/* 80095FAC 00091DEC 90 01 00 34 */ stw r0, 0x34(r1)
/* 80095FB0 00091DF0 39 61 00 30 */ addi r11, r1, 0x30
/* 80095FB4 00091DF4 4B F7 13 7D */ bl lbl_80007330
/* 80095FB8 00091DF8 38 00 00 03 */ li r0, 0x3
2022-10-16 16:31:36 +00:00
/* 80095FBC 00091DFC 3F 40 80 50 */ lis r26, l2cb@ha
/* 80095FC0 00091E00 38 9A 90 20 */ addi r4, r26, l2cb@l
/* 80095FC4 00091E04 3F C0 80 4F */ lis r30, btm_cb@ha
2022-10-16 16:05:58 +00:00
/* 80095FC8 00091E08 90 03 00 04 */ stw r0, 0x4(r3)
/* 80095FCC 00091E0C 7C 7F 1B 78 */ mr r31, r3
/* 80095FD0 00091E10 3B 04 00 08 */ addi r24, r4, 0x8
2022-10-16 16:31:36 +00:00
/* 80095FD4 00091E14 3B DE 5F 58 */ addi r30, r30, btm_cb@l
2022-10-16 16:05:58 +00:00
/* 80095FD8 00091E18 3B 20 00 00 */ li r25, 0x0
/* 80095FDC 00091E1C 3F 80 00 08 */ lis r28, 0x8
2022-10-16 16:31:36 +00:00
/* 80095FE0 00091E20 3F A0 80 44 */ lis r29, "@2327"@ha
2022-10-16 16:05:58 +00:00
.global lbl_80095FE4
lbl_80095FE4:
/* 80095FE4 00091E24 7C 18 F8 40 */ cmplw r24, r31
/* 80095FE8 00091E28 41 82 00 A4 */ beq lbl_8009608C
/* 80095FEC 00091E2C 88 18 00 00 */ lbz r0, 0x0(r24)
/* 80095FF0 00091E30 2C 00 00 00 */ cmpwi r0, 0x0
/* 80095FF4 00091E34 41 82 00 98 */ beq lbl_8009608C
/* 80095FF8 00091E38 88 18 00 30 */ lbz r0, 0x30(r24)
/* 80095FFC 00091E3C 28 00 00 01 */ cmplwi r0, 0x1
/* 80096000 00091E40 40 82 00 8C */ bne lbl_8009608C
/* 80096004 00091E44 38 78 00 2A */ addi r3, r24, 0x2a
2022-10-16 16:31:36 +00:00
/* 80096008 00091E48 4B FE F1 D9 */ bl btm_is_sco_active_by_bdaddr
2022-10-16 16:05:58 +00:00
/* 8009600C 00091E4C 88 1A 90 20 */ lbz r0, -0x6fe0(r26)
/* 80096010 00091E50 7C 7B 1B 78 */ mr r27, r3
/* 80096014 00091E54 28 00 00 03 */ cmplwi r0, 0x3
/* 80096018 00091E58 41 80 00 24 */ blt lbl_8009603C
/* 8009601C 00091E5C 57 60 06 3E */ clrlwi r0, r27, 24
/* 80096020 00091E60 38 7C 00 02 */ addi r3, r28, 0x2
/* 80096024 00091E64 28 00 00 01 */ cmplwi r0, 0x1
2022-10-16 16:31:36 +00:00
/* 80096028 00091E68 38 9D EB E4 */ addi r4, r29, "@2327"@l
/* 8009602C 00091E6C 38 AD 85 08 */ addi r5, r13, "@2329"@sda21
2022-10-16 16:05:58 +00:00
/* 80096030 00091E70 40 82 00 08 */ bne lbl_80096038
2022-10-16 16:31:36 +00:00
/* 80096034 00091E74 38 AD 85 00 */ addi r5, r13, "@2328"@sda21
2022-10-16 16:05:58 +00:00
.global lbl_80096038
lbl_80096038:
2022-10-16 16:31:36 +00:00
/* 80096038 00091E78 4B FE 19 29 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
.global lbl_8009603C
lbl_8009603C:
/* 8009603C 00091E7C 57 60 06 3E */ clrlwi r0, r27, 24
/* 80096040 00091E80 28 00 00 01 */ cmplwi r0, 0x1
/* 80096044 00091E84 41 82 00 48 */ beq lbl_8009608C
/* 80096048 00091E88 88 1E 06 40 */ lbz r0, 0x640(r30)
/* 8009604C 00091E8C 54 00 06 B5 */ rlwinm. r0, r0, 0, 26, 26
/* 80096050 00091E90 41 82 00 3C */ beq lbl_8009608C
/* 80096054 00091E94 38 60 00 02 */ li r3, 0x2
/* 80096058 00091E98 38 00 00 00 */ li r0, 0x0
/* 8009605C 00091E9C 90 7F 00 04 */ stw r3, 0x4(r31)
/* 80096060 00091EA0 38 78 00 2A */ addi r3, r24, 0x2a
/* 80096064 00091EA4 38 80 00 00 */ li r4, 0x0
/* 80096068 00091EA8 38 A0 00 00 */ li r5, 0x0
/* 8009606C 00091EAC 98 1F 00 30 */ stb r0, 0x30(r31)
2022-10-16 16:31:36 +00:00
/* 80096070 00091EB0 4B FE 82 51 */ bl BTM_SwitchRole
2022-10-16 16:05:58 +00:00
/* 80096074 00091EB4 38 7F 00 10 */ addi r3, r31, 0x10
/* 80096078 00091EB8 38 80 00 02 */ li r4, 0x2
/* 8009607C 00091EBC 38 A0 00 0A */ li r5, 0xa
2022-10-16 16:31:36 +00:00
/* 80096080 00091EC0 4B FE 1E 31 */ bl btu_start_timer
2022-10-16 16:05:58 +00:00
/* 80096084 00091EC4 38 60 00 01 */ li r3, 0x1
/* 80096088 00091EC8 48 00 00 1C */ b lbl_800960A4
.global lbl_8009608C
lbl_8009608C:
/* 8009608C 00091ECC 3B 39 00 01 */ addi r25, r25, 0x1
/* 80096090 00091ED0 3B 18 00 5C */ addi r24, r24, 0x5c
/* 80096094 00091ED4 2C 19 00 04 */ cmpwi r25, 0x4
/* 80096098 00091ED8 41 80 FF 4C */ blt lbl_80095FE4
/* 8009609C 00091EDC 7F E3 FB 78 */ mr r3, r31
2022-10-16 16:31:36 +00:00
/* 800960A0 00091EE0 48 00 00 1D */ bl l2cu_create_conn_after_switch
2022-10-16 16:05:58 +00:00
.global lbl_800960A4
lbl_800960A4:
/* 800960A4 00091EE4 39 61 00 30 */ addi r11, r1, 0x30
/* 800960A8 00091EE8 4B F7 12 D5 */ bl lbl_8000737C
/* 800960AC 00091EEC 80 01 00 34 */ lwz r0, 0x34(r1)
/* 800960B0 00091EF0 7C 08 03 A6 */ mtlr r0
/* 800960B4 00091EF4 38 21 00 30 */ addi r1, r1, 0x30
/* 800960B8 00091EF8 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_create_conn_after_switch
l2cu_create_conn_after_switch:
2022-10-16 16:05:58 +00:00
/* 800960BC 00091EFC 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800960C0 00091F00 7C 08 02 A6 */ mflr r0
/* 800960C4 00091F04 90 01 00 14 */ stw r0, 0x14(r1)
/* 800960C8 00091F08 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800960CC 00091F0C 93 C1 00 08 */ stw r30, 0x8(r1)
/* 800960D0 00091F10 7C 7E 1B 78 */ mr r30, r3
2022-10-16 16:31:36 +00:00
/* 800960D4 00091F14 4B FE B2 45 */ bl BTM_ReadLocalFeatures
2022-10-16 16:05:58 +00:00
/* 800960D8 00091F18 88 83 00 00 */ lbz r4, 0x0(r3)
/* 800960DC 00091F1C 38 00 00 03 */ li r0, 0x3
/* 800960E0 00091F20 38 7E 00 2A */ addi r3, r30, 0x2a
/* 800960E4 00091F24 90 1E 00 04 */ stw r0, 0x4(r30)
/* 800960E8 00091F28 54 9F DF FE */ extrwi r31, r4, 1, 26
2022-10-16 16:31:36 +00:00
/* 800960EC 00091F2C 4B FE C5 F1 */ bl BTM_InqDbRead
2022-10-16 16:05:58 +00:00
/* 800960F0 00091F30 2C 03 00 00 */ cmpwi r3, 0x0
/* 800960F4 00091F34 41 82 00 18 */ beq lbl_8009610C
/* 800960F8 00091F38 A0 03 00 00 */ lhz r0, 0x0(r3)
/* 800960FC 00091F3C 88 A3 00 0B */ lbz r5, 0xb(r3)
/* 80096100 00091F40 88 C3 00 0D */ lbz r6, 0xd(r3)
/* 80096104 00091F44 60 07 80 00 */ ori r7, r0, 0x8000
/* 80096108 00091F48 48 00 00 10 */ b lbl_80096118
.global lbl_8009610C
lbl_8009610C:
/* 8009610C 00091F4C 38 A0 00 01 */ li r5, 0x1
/* 80096110 00091F50 38 C0 00 00 */ li r6, 0x0
/* 80096114 00091F54 38 E0 00 00 */ li r7, 0x0
.global lbl_80096118
lbl_80096118:
/* 80096118 00091F58 7F E8 FB 78 */ mr r8, r31
/* 8009611C 00091F5C 38 7E 00 2A */ addi r3, r30, 0x2a
/* 80096120 00091F60 38 80 00 18 */ li r4, 0x18
2022-10-16 16:31:36 +00:00
/* 80096124 00091F64 4B FF 48 3D */ bl btsnd_hcic_create_conn
2022-10-16 16:05:58 +00:00
/* 80096128 00091F68 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8009612C 00091F6C 40 82 00 34 */ bne lbl_80096160
2022-10-16 16:31:36 +00:00
/* 80096130 00091F70 3C 60 80 50 */ lis r3, l2cb@ha
/* 80096134 00091F74 88 03 90 20 */ lbz r0, l2cb@l(r3)
2022-10-16 16:05:58 +00:00
/* 80096138 00091F78 28 00 00 01 */ cmplwi r0, 0x1
/* 8009613C 00091F7C 41 80 00 14 */ blt lbl_80096150
2022-10-16 16:31:36 +00:00
/* 80096140 00091F80 3C 80 80 44 */ lis r4, "@2338"@ha
2022-10-16 16:05:58 +00:00
/* 80096144 00091F84 3C 60 00 08 */ lis r3, 0x8
2022-10-16 16:31:36 +00:00
/* 80096148 00091F88 38 84 EC 28 */ addi r4, r4, "@2338"@l
/* 8009614C 00091F8C 4B FE 18 15 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
.global lbl_80096150
lbl_80096150:
/* 80096150 00091F90 7F C3 F3 78 */ mr r3, r30
2022-10-16 16:31:36 +00:00
/* 80096154 00091F94 4B FF E3 C1 */ bl l2cu_release_lcb
2022-10-16 16:05:58 +00:00
/* 80096158 00091F98 38 60 00 00 */ li r3, 0x0
/* 8009615C 00091F9C 48 00 00 18 */ b lbl_80096174
.global lbl_80096160
lbl_80096160:
/* 80096160 00091FA0 38 7E 00 10 */ addi r3, r30, 0x10
/* 80096164 00091FA4 38 80 00 02 */ li r4, 0x2
/* 80096168 00091FA8 38 A0 00 3C */ li r5, 0x3c
2022-10-16 16:31:36 +00:00
/* 8009616C 00091FAC 4B FE 1D 45 */ bl btu_start_timer
2022-10-16 16:05:58 +00:00
/* 80096170 00091FB0 38 60 00 01 */ li r3, 0x1
.global lbl_80096174
lbl_80096174:
/* 80096174 00091FB4 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80096178 00091FB8 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8009617C 00091FBC 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80096180 00091FC0 7C 08 03 A6 */ mtlr r0
/* 80096184 00091FC4 38 21 00 10 */ addi r1, r1, 0x10
/* 80096188 00091FC8 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_find_lcb_by_state
l2cu_find_lcb_by_state:
/* 8009618C 00091FCC 3C 80 80 50 */ lis r4, l2cb@ha
/* 80096190 00091FD0 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80096194 00091FD4 8C 04 00 08 */ lbzu r0, 0x8(r4)
/* 80096198 00091FD8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8009619C 00091FDC 41 82 00 18 */ beq lbl_800961B4
/* 800961A0 00091FE0 80 04 00 04 */ lwz r0, 0x4(r4)
/* 800961A4 00091FE4 7C 00 18 00 */ cmpw r0, r3
/* 800961A8 00091FE8 40 82 00 0C */ bne lbl_800961B4
/* 800961AC 00091FEC 7C 83 23 78 */ mr r3, r4
/* 800961B0 00091FF0 4E 80 00 20 */ blr
.global lbl_800961B4
lbl_800961B4:
/* 800961B4 00091FF4 8C 04 00 5C */ lbzu r0, 0x5c(r4)
/* 800961B8 00091FF8 2C 00 00 00 */ cmpwi r0, 0x0
/* 800961BC 00091FFC 41 82 00 18 */ beq lbl_800961D4
/* 800961C0 00092000 80 04 00 04 */ lwz r0, 0x4(r4)
/* 800961C4 00092004 7C 00 18 00 */ cmpw r0, r3
/* 800961C8 00092008 40 82 00 0C */ bne lbl_800961D4
/* 800961CC 0009200C 7C 83 23 78 */ mr r3, r4
/* 800961D0 00092010 4E 80 00 20 */ blr
.global lbl_800961D4
lbl_800961D4:
/* 800961D4 00092014 8C 04 00 5C */ lbzu r0, 0x5c(r4)
/* 800961D8 00092018 2C 00 00 00 */ cmpwi r0, 0x0
/* 800961DC 0009201C 41 82 00 18 */ beq lbl_800961F4
/* 800961E0 00092020 80 04 00 04 */ lwz r0, 0x4(r4)
/* 800961E4 00092024 7C 00 18 00 */ cmpw r0, r3
/* 800961E8 00092028 40 82 00 0C */ bne lbl_800961F4
/* 800961EC 0009202C 7C 83 23 78 */ mr r3, r4
/* 800961F0 00092030 4E 80 00 20 */ blr
.global lbl_800961F4
lbl_800961F4:
/* 800961F4 00092034 8C 04 00 5C */ lbzu r0, 0x5c(r4)
/* 800961F8 00092038 2C 00 00 00 */ cmpwi r0, 0x0
/* 800961FC 0009203C 41 82 00 18 */ beq lbl_80096214
/* 80096200 00092040 80 04 00 04 */ lwz r0, 0x4(r4)
/* 80096204 00092044 7C 00 18 00 */ cmpw r0, r3
/* 80096208 00092048 40 82 00 0C */ bne lbl_80096214
/* 8009620C 0009204C 7C 83 23 78 */ mr r3, r4
/* 80096210 00092050 4E 80 00 20 */ blr
.global lbl_80096214
lbl_80096214:
/* 80096214 00092054 38 60 00 00 */ li r3, 0x0
/* 80096218 00092058 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global l2cu_lcb_disconnecting
l2cu_lcb_disconnecting:
/* 8009621C 0009205C 3C 80 80 50 */ lis r4, l2cb@ha
2022-10-16 16:05:58 +00:00
/* 80096220 00092060 38 00 00 02 */ li r0, 0x2
2022-10-16 16:31:36 +00:00
/* 80096224 00092064 38 84 90 20 */ addi r4, r4, l2cb@l
2022-10-16 16:05:58 +00:00
/* 80096228 00092068 38 60 00 00 */ li r3, 0x0
/* 8009622C 0009206C 38 A4 00 08 */ addi r5, r4, 0x8
/* 80096230 00092070 38 C0 00 00 */ li r6, 0x0
/* 80096234 00092074 7C 09 03 A6 */ mtctr r0
.global lbl_80096238
lbl_80096238:
/* 80096238 00092078 88 05 00 00 */ lbz r0, 0x0(r5)
/* 8009623C 0009207C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80096240 00092080 41 82 00 54 */ beq lbl_80096294
/* 80096244 00092084 80 85 00 08 */ lwz r4, 0x8(r5)
/* 80096248 00092088 2C 04 00 00 */ cmpwi r4, 0x0
/* 8009624C 0009208C 41 82 00 10 */ beq lbl_8009625C
/* 80096250 00092090 80 05 00 04 */ lwz r0, 0x4(r5)
/* 80096254 00092094 2C 00 00 05 */ cmpwi r0, 0x5
/* 80096258 00092098 40 82 00 0C */ bne lbl_80096264
.global lbl_8009625C
lbl_8009625C:
/* 8009625C 0009209C 38 60 00 01 */ li r3, 0x1
/* 80096260 000920A0 4E 80 00 20 */ blr
.global lbl_80096264
lbl_80096264:
/* 80096264 000920A4 80 05 00 0C */ lwz r0, 0xc(r5)
/* 80096268 000920A8 7C 04 00 40 */ cmplw r4, r0
/* 8009626C 000920AC 40 82 00 28 */ bne lbl_80096294
/* 80096270 000920B0 88 04 00 00 */ lbz r0, 0x0(r4)
/* 80096274 000920B4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80096278 000920B8 41 82 00 1C */ beq lbl_80096294
/* 8009627C 000920BC 80 84 00 04 */ lwz r4, 0x4(r4)
/* 80096280 000920C0 38 04 FF F9 */ addi r0, r4, -0x7
/* 80096284 000920C4 28 00 00 01 */ cmplwi r0, 0x1
/* 80096288 000920C8 41 81 00 0C */ bgt lbl_80096294
/* 8009628C 000920CC 38 60 00 01 */ li r3, 0x1
/* 80096290 000920D0 4E 80 00 20 */ blr
.global lbl_80096294
lbl_80096294:
/* 80096294 000920D4 88 05 00 5C */ lbz r0, 0x5c(r5)
/* 80096298 000920D8 38 C6 00 01 */ addi r6, r6, 0x1
/* 8009629C 000920DC 2C 00 00 00 */ cmpwi r0, 0x0
/* 800962A0 000920E0 41 82 00 54 */ beq lbl_800962F4
/* 800962A4 000920E4 80 85 00 64 */ lwz r4, 0x64(r5)
/* 800962A8 000920E8 2C 04 00 00 */ cmpwi r4, 0x0
/* 800962AC 000920EC 41 82 00 10 */ beq lbl_800962BC
/* 800962B0 000920F0 80 05 00 60 */ lwz r0, 0x60(r5)
/* 800962B4 000920F4 2C 00 00 05 */ cmpwi r0, 0x5
/* 800962B8 000920F8 40 82 00 0C */ bne lbl_800962C4
.global lbl_800962BC
lbl_800962BC:
/* 800962BC 000920FC 38 60 00 01 */ li r3, 0x1
/* 800962C0 00092100 4E 80 00 20 */ blr
.global lbl_800962C4
lbl_800962C4:
/* 800962C4 00092104 80 05 00 68 */ lwz r0, 0x68(r5)
/* 800962C8 00092108 7C 04 00 40 */ cmplw r4, r0
/* 800962CC 0009210C 40 82 00 28 */ bne lbl_800962F4
/* 800962D0 00092110 88 04 00 00 */ lbz r0, 0x0(r4)
/* 800962D4 00092114 2C 00 00 00 */ cmpwi r0, 0x0
/* 800962D8 00092118 41 82 00 1C */ beq lbl_800962F4
/* 800962DC 0009211C 80 84 00 04 */ lwz r4, 0x4(r4)
/* 800962E0 00092120 38 04 FF F9 */ addi r0, r4, -0x7
/* 800962E4 00092124 28 00 00 01 */ cmplwi r0, 0x1
/* 800962E8 00092128 41 81 00 0C */ bgt lbl_800962F4
/* 800962EC 0009212C 38 60 00 01 */ li r3, 0x1
/* 800962F0 00092130 4E 80 00 20 */ blr
.global lbl_800962F4
lbl_800962F4:
/* 800962F4 00092134 38 C6 00 01 */ addi r6, r6, 0x1
/* 800962F8 00092138 38 A5 00 B8 */ addi r5, r5, 0xb8
/* 800962FC 0009213C 42 00 FF 3C */ bdnz lbl_80096238
/* 80096300 00092140 4E 80 00 20 */ blr
2022-10-17 08:41:13 +00:00
.include "macros.inc"
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
.global "@2062"
"@2062":
.4byte 0x4C324341
.4byte 0x50202D20
.4byte 0x6E6F2062
.4byte 0x75666665
.4byte 0x7220636D
.4byte 0x645F7265
.4byte 0x6A000000
.global "@2067_8043EB84"
"@2067_8043EB84":
.4byte 0x4C324341
.4byte 0x50202D20
.4byte 0x6E6F2062
.4byte 0x75666665
.4byte 0x7220666F
.4byte 0x7220636F
.4byte 0x6E6E5F72
.4byte 0x65710000
.global "@2125"
"@2125":
.4byte 0x4C324341
.4byte 0x50202D20
.4byte 0x6E6F2062
.4byte 0x75666665
.4byte 0x7220666F
.4byte 0x72206366
.4byte 0x675F7265
.4byte 0x6A000000
.global "@2159"
"@2159":
.4byte 0x4C324341
.4byte 0x50202D20
.4byte 0x6E6F2062
.4byte 0x75666665
.4byte 0x7220666F
.4byte 0x72206563
.4byte 0x686F5F72
.4byte 0x65710000
.global "@2327"
"@2327":
.4byte 0x6C326375
.4byte 0x5F637265
.4byte 0x6174655F
.4byte 0x636F6E6E
.4byte 0x202D2062
.4byte 0x746D5F69
.4byte 0x735F7363
.4byte 0x6F5F6163
.4byte 0x74697665
.4byte 0x5F62795F
.4byte 0x62646164
.4byte 0x64722829
.4byte 0x2069735F
.4byte 0x73636F5F
.4byte 0x61637469
.4byte 0x7665203D
.4byte 0x20257300
.global "@2338"
"@2338":
.4byte 0x4C324341
.4byte 0x50202D20
.4byte 0x6E6F2062
.4byte 0x75666665
.4byte 0x7220666F
.4byte 0x72206C32
.4byte 0x63755F63
.4byte 0x72656174
.4byte 0x655F636F
.4byte 0x6E6E0000
.include "macros.inc"
.section .sdata, "wa" # 0x80556420 - 0x8055C6E0 ; 0x000062C0
.global "@2328"
"@2328":
.4byte 0x54525545
.4byte 0
.global "@2329"
"@2329":
.4byte 0x46414C53
.4byte 0x45000000