; ; DS_Dictionary::setObjectForKey from 0xb464d8 to 0xb466fc (548 bytes) ; ; 3 xrefs: ; > DS_Dictionary::setArrayForKey @ 0xb46498 ; > DS_Dictionary::setDictForKey @ 0xb467b8 ; > @ 0x57c18 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; STP X29, X30, [SP,#var_70]! ; +0x0, 0xb464d8 MOV X29, SP ; +0x4, 0xb464dc STP X19, X20, [SP,#0x70+var_60] ; +0x8, 0xb464e0 ADRP X20, #__stack_chk_guard_ptr@PAGE ; +0xc, 0xb464e4 MOV X19, X2 ; +0x10, 0xb464e8 STP X21, X22, [SP,#0x70+var_50] ; +0x14, 0xb464ec MOV X22, X0 ; +0x18, 0xb464f0 LDR X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xb464f4 STP X23, X24, [SP,#0x70+var_40] ; +0x20, 0xb464f8 MOV X23, X1 ; +0x24, 0xb464fc LDR X0, [X0] ; +0x28, 0xb46500 STR X0, [X29,#0x70+var_8] ; +0x2c, 0xb46504 CBZ X2, loc_B46620 ; +0x30, 0xb46508 ADRP X21, #_ZTIN7cocos2d8CCObjectE_ptr@PAGE ; +0x34, 0xb4650c MOV X0, X2; lpsrc ; +0x38, 0xb46510 ADRP X2, #_ZTIN7cocos2d8CCStringE_ptr@PAGE ; +0x3c, 0xb46514 MOV X3, #0; s2d ; +0x40, 0xb46518 LDR X21, [X21,#_ZTIN7cocos2d8CCObjectE_ptr@PAGEOFF]; `typeinfo for'cocos2d::CCObject ... ; +0x44, 0xb4651c LDR X2, [X2,#_ZTIN7cocos2d8CCStringE_ptr@PAGEOFF]; lpdtype ; +0x48, 0xb46520 MOV X1, X21; lpstype ; +0x4c, 0xb46524 BL __dynamic_cast ; +0x50, 0xb46528 CBZ X0, loc_B465C0 ; +0x54, 0xb4652c MOV X0, X19; this ; +0x58, 0xb46530 ADRP X19, #off_122EFE8@PAGE ; +0x5c, 0xb46534 ADD X24, X29, #0x70+var_10 ; +0x60, 0xb46538 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x64, 0xb4653c MOV X1, X0; char * ; +0x68, 0xb46540 ADD X2, X29, #0x70+var_28 ; +0x6c, 0xb46544 ADD X0, X29, #0x70+var_18; int ; +0x70, 0xb46548 BL sub_D153B8 ; +0x74, 0xb4654c LDR X21, [X19,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0x78, 0xb46550 LDR X3, [X29,#0x70+var_18] ; +0x7c, 0xb46554 MOV X0, X22 ; +0x80, 0xb46558 MOV X1, X23 ; +0x84, 0xb4655c STR X3, [X29,#0x70+var_10] ; +0x88, 0xb46560 MOV X2, X24 ; +0x8c, 0xb46564 ADD X3, X21, #0x18 ; +0x90, 0xb46568 STR X3, [X29,#0x70+var_18] ; +0x94, 0xb4656c BL _ZN13DS_Dictionary15setStringForKeyEPKcRKSs; DS_Dictionary::setStringForKey(char const*,std::string const&) ; +0x98, 0xb46570 LDR X1, [X29,#0x70+var_10] ; +0x9c, 0xb46574 SUB X0, X1, #0x18; p ; +0xa0, 0xb46578 CMP X0, X21 ; +0xa4, 0xb4657c B.NE loc_B466A4 ; +0xa8, 0xb46580 LDR X22, [X29,#0x70+var_18] ; +0xac, 0xb46584 LDR X19, [X19,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0xb0, 0xb46588 SUB X23, X22, #0x18 ; +0xb4, 0xb4658c CMP X23, X19 ; +0xb8, 0xb46590 B.NE loc_B4666C ; +0xbc, 0xb46594 LDR X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xc0, 0xb46598 LDR X1, [X29,#0x70+var_8] ; +0xc4, 0xb4659c LDR X0, [X20] ; +0xc8, 0xb465a0 CMP X1, X0 ; +0xcc, 0xb465a4 B.NE loc_B466F8 ; +0xd0, 0xb465a8 LDP X19, X20, [SP,#0x70+var_60] ; +0xd4, 0xb465ac LDP X21, X22, [SP,#0x70+var_50] ; +0xd8, 0xb465b0 LDP X23, X24, [SP,#0x70+var_40] ; +0xdc, 0xb465b4 LDP X29, X30, [SP+0x70+var_70],#0x70 ; +0xe0, 0xb465b8 RET ; +0xe4, 0xb465bc ADRP X2, #_ZTIN7cocos2d12CCDictionaryE_ptr@PAGE ; +0xe8, 0xb465c0 MOV X0, X19; lpsrc ; +0xec, 0xb465c4 MOV X1, X21; lpstype ; +0xf0, 0xb465c8 MOV X3, #0; s2d ; +0xf4, 0xb465cc LDR X2, [X2,#_ZTIN7cocos2d12CCDictionaryE_ptr@PAGEOFF]; lpdtype ; +0xf8, 0xb465d0 BL __dynamic_cast ; +0xfc, 0xb465d4 CBZ X0, loc_B465F0 ; +0x100, 0xb465d8 MOV X0, X22; this ; +0x104, 0xb465dc MOV X1, X23; char * ; +0x108, 0xb465e0 MOV X2, X19; cocos2d::CCDictionary * ; +0x10c, 0xb465e4 BL _ZN13DS_Dictionary13setDictForKeyEPKcPN7cocos2d12CCDictionaryE; DS_Dictionary::setDictForKey(char const*,cocos2d::CCDictionary *) ; +0x110, 0xb465e8 B loc_B46598 ; +0x114, 0xb465ec ADRP X2, #_ZTIN7cocos2d7CCArrayE_ptr@PAGE ; +0x118, 0xb465f0 MOV X0, X19; lpsrc ; +0x11c, 0xb465f4 MOV X1, X21; lpstype ; +0x120, 0xb465f8 MOV X3, #0; s2d ; +0x124, 0xb465fc LDR X2, [X2,#_ZTIN7cocos2d7CCArrayE_ptr@PAGEOFF]; lpdtype ; +0x128, 0xb46600 BL __dynamic_cast ; +0x12c, 0xb46604 CBZ X0, loc_B46620 ; +0x130, 0xb46608 MOV X0, X22; this ; +0x134, 0xb4660c MOV X1, X23; char * ; +0x138, 0xb46610 MOV X2, X19; cocos2d::CCArray * ; +0x13c, 0xb46614 BL _ZN13DS_Dictionary14setArrayForKeyEPKcPN7cocos2d7CCArrayE; DS_Dictionary::setArrayForKey(char const*,cocos2d::CCArray *) ; +0x140, 0xb46618 B loc_B46598 ; +0x144, 0xb4661c LDR X1, [X19] ; +0x148, 0xb46620 MOV X0, X19 ; +0x14c, 0xb46624 LDR X1, [X1,#0x38] ; +0x150, 0xb46628 BLR X1 ; +0x154, 0xb4662c UXTB W0, W0 ; +0x158, 0xb46630 CBZ W0, loc_B46598 ; +0x15c, 0xb46634 MOV X0, X22; this ; +0x160, 0xb46638 MOV X1, X23; char * ; +0x164, 0xb4663c MOV W3, #1; bool ; +0x168, 0xb46640 MOV W2, #0; bool ; +0x16c, 0xb46644 BL _ZN13DS_Dictionary16setSubDictForKeyEPKcbb; DS_Dictionary::setSubDictForKey(char const*,bool,bool) ; +0x170, 0xb46648 LDR X2, [X19] ; +0x174, 0xb4664c MOV X0, X19 ; +0x178, 0xb46650 MOV X1, X22 ; +0x17c, 0xb46654 LDR X2, [X2,#0x30] ; +0x180, 0xb46658 BLR X2 ; +0x184, 0xb4665c MOV X0, X22; this ; +0x188, 0xb46660 BL _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0x18c, 0xb46664 B loc_B46598 ; +0x190, 0xb46668 ADRP X0, #pthread_create_ptr_0@PAGE ; +0x194, 0xb4666c LDR X0, [X0,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x198, 0xb46670 CBZ X0, loc_B466D8 ; +0x19c, 0xb46674 SUB X22, X22, #8 ; +0x1a0, 0xb46678 LDAXR W0, [X22] ; +0x1a4, 0xb4667c SUB W1, W0, #1 ; +0x1a8, 0xb46680 STLXR W2, W1, [X22] ; +0x1ac, 0xb46684 CBNZ W2, loc_B4667C ; +0x1b0, 0xb46688 CMP W0, WZR ; +0x1b4, 0xb4668c B.GT loc_B46598 ; +0x1b8, 0xb46690 MOV X0, X23; p ; +0x1bc, 0xb46694 MOV X1, X24 ; +0x1c0, 0xb46698 BL j__ZdlPv; operator delete(void *) ; +0x1c4, 0xb4669c B loc_B46598 ; +0x1c8, 0xb466a0 ADRP X2, #pthread_create_ptr_0@PAGE ; +0x1cc, 0xb466a4 LDR X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x1d0, 0xb466a8 CBZ X2, loc_B466E8 ; +0x1d4, 0xb466ac SUB X1, X1, #8 ; +0x1d8, 0xb466b0 LDAXR W2, [X1] ; +0x1dc, 0xb466b4 SUB W3, W2, #1 ; +0x1e0, 0xb466b8 STLXR W4, W3, [X1] ; +0x1e4, 0xb466bc CBNZ W4, loc_B466B4 ; +0x1e8, 0xb466c0 CMP W2, WZR ; +0x1ec, 0xb466c4 B.GT loc_B46584 ; +0x1f0, 0xb466c8 ADD X1, X29, #0x70+var_20 ; +0x1f4, 0xb466cc BL j__ZdlPv; operator delete(void *) ; +0x1f8, 0xb466d0 B loc_B46584 ; +0x1fc, 0xb466d4 LDUR W0, [X22,#(dword_124B6C0 - 0x124B6C8)] ; +0x200, 0xb466d8 SUB W1, W0, #1 ; +0x204, 0xb466dc STUR W1, [X22,#(dword_124B6C0 - 0x124B6C8)] ; +0x208, 0xb466e0 B loc_B4668C ; +0x20c, 0xb466e4 LDUR W2, [X1,#-8] ; +0x210, 0xb466e8 SUB W3, W2, #1 ; +0x214, 0xb466ec STUR W3, [X1,#-8] ; +0x218, 0xb466f0 B loc_B466C4 ; +0x21c, 0xb466f4 BL .__stack_chk_fail ; +0x220, 0xb466f8