; ; DS_Dictionary::getArrayForKey from 0xb46ec8 to 0xb47024 (348 bytes) ; ; 8 xrefs: ; > GameLevelManager::dataLoaded @ 0x739f38 ; > GameLevelManager::dataLoaded @ 0x73a51c ; > GJRewardItem::dataLoaded @ 0x7ad6f4 ; > LocalLevelManager::dataLoaded @ 0x7e9730 ; > LocalLevelManager::dataLoaded @ 0x7e9c40 ; > DS_Dictionary::getDictForKey @ 0xb4698c ; > DS_Dictionary::getObjectForKey @ 0xb46d5c ; > @ 0x7cec0 ; ; 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_80]! ; +0x0, 0xb46ec8 UXTB W2, W2 ; +0x4, 0xb46ecc MOV X29, SP ; +0x8, 0xb46ed0 STP X25, X26, [SP,#0x80+var_40] ; +0xc, 0xb46ed4 ADRP X25, #__stack_chk_guard_ptr@PAGE ; +0x10, 0xb46ed8 STR X27, [SP,#0x80+var_30] ; +0x14, 0xb46edc STP X21, X22, [SP,#0x80+var_60] ; +0x18, 0xb46ee0 STP X19, X20, [SP,#0x80+var_70] ; +0x1c, 0xb46ee4 LDR X3, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xb46ee8 MOV X21, X0 ; +0x24, 0xb46eec STP X23, X24, [SP,#0x80+var_50] ; +0x28, 0xb46ef0 LDR X3, [X3] ; +0x2c, 0xb46ef4 STR X3, [X29,#0x80+var_8] ; +0x30, 0xb46ef8 CBZ W2, loc_B46FFC ; +0x34, 0xb46efc BL _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x38, 0xb46f00 MOV X22, X0 ; +0x3c, 0xb46f04 ADRP X1, #aIsarr@PAGE; "_isArr" ; +0x40, 0xb46f08 MOV X0, X21; this ; +0x44, 0xb46f0c ADD X1, X1, #aIsarr@PAGEOFF; "_isArr" ; +0x48, 0xb46f10 BL _ZN13DS_Dictionary9removeKeyEPKc; DS_Dictionary::removeKey(char const*) ; +0x4c, 0xb46f14 MOV X0, X21; this ; +0x50, 0xb46f18 BL _ZN13DS_Dictionary10getNumKeysEv; DS_Dictionary::getNumKeys(void) ; +0x54, 0xb46f1c CMP W0, WZR ; +0x58, 0xb46f20 MOV W23, W0 ; +0x5c, 0xb46f24 B.LE loc_B46FC0 ; +0x60, 0xb46f28 MOV W19, #0 ; +0x64, 0xb46f2c ADD X20, X29, #0x80+var_10 ; +0x68, 0xb46f30 ADRP X24, #off_122EFE8@PAGE ; +0x6c, 0xb46f34 ADRP X26, #pthread_create_ptr_0@PAGE ; +0x70, 0xb46f38 ADD X27, X29, #0x80+var_18 ; +0x74, 0xb46f3c B loc_B46F50 ; +0x78, 0xb46f40 ADD W19, W19, #1 ; +0x7c, 0xb46f44 CMP W23, W19 ; +0x80, 0xb46f48 B.EQ loc_B46FC0 ; +0x84, 0xb46f4c MOV X8, X20 ; +0x88, 0xb46f50 MOV W1, W19; unsigned int ; +0x8c, 0xb46f54 MOV X0, X21; this ; +0x90, 0xb46f58 BL _ZN13DS_Dictionary6getKeyEj; DS_Dictionary::getKey(uint) ; +0x94, 0xb46f5c LDR X1, [X20]; char * ; +0x98, 0xb46f60 MOV X0, X21; this ; +0x9c, 0xb46f64 BL _ZN13DS_Dictionary15getObjectForKeyEPKc; DS_Dictionary::getObjectForKey(char const*) ; +0xa0, 0xb46f68 MOV X1, X0; cocos2d::CCObject * ; +0xa4, 0xb46f6c CBZ X0, loc_B46F7C ; +0xa8, 0xb46f70 MOV X0, X22; this ; +0xac, 0xb46f74 BL _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xb0, 0xb46f78 LDR X1, [X20] ; +0xb4, 0xb46f7c LDR X2, [X24,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0xb8, 0xb46f80 SUB X0, X1, #0x18; p ; +0xbc, 0xb46f84 CMP X0, X2 ; +0xc0, 0xb46f88 B.EQ loc_B46F44 ; +0xc4, 0xb46f8c LDR X2, [X26,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xc8, 0xb46f90 CBZ X2, loc_B47010 ; +0xcc, 0xb46f94 SUB X1, X1, #8 ; +0xd0, 0xb46f98 LDAXR W2, [X1] ; +0xd4, 0xb46f9c SUB W3, W2, #1 ; +0xd8, 0xb46fa0 STLXR W4, W3, [X1] ; +0xdc, 0xb46fa4 CBNZ W4, loc_B46F9C ; +0xe0, 0xb46fa8 CMP W2, WZR ; +0xe4, 0xb46fac B.GT loc_B46F44 ; +0xe8, 0xb46fb0 MOV X1, X27 ; +0xec, 0xb46fb4 BL j__ZdlPv; operator delete(void *) ; +0xf0, 0xb46fb8 B loc_B46F44 ; +0xf4, 0xb46fbc MOV X0, X21; this ; +0xf8, 0xb46fc0 BL _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0xfc, 0xb46fc4 MOV X0, X22; this ; +0x100, 0xb46fc8 LDR X25, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x104, 0xb46fcc LDR X19, [X29,#0x80+var_8] ; +0x108, 0xb46fd0 LDR X1, [X25]; char * ; +0x10c, 0xb46fd4 CMP X19, X1 ; +0x110, 0xb46fd8 B.NE loc_B47020 ; +0x114, 0xb46fdc LDP X19, X20, [SP,#0x80+var_70] ; +0x118, 0xb46fe0 LDP X21, X22, [SP,#0x80+var_60] ; +0x11c, 0xb46fe4 LDP X23, X24, [SP,#0x80+var_50] ; +0x120, 0xb46fe8 LDP X25, X26, [SP,#0x80+var_40] ; +0x124, 0xb46fec LDR X27, [SP,#0x80+var_30] ; +0x128, 0xb46ff0 LDP X29, X30, [SP+0x80+var_80],#0x80 ; +0x12c, 0xb46ff4 RET ; +0x130, 0xb46ff8 BL _ZN13DS_Dictionary22stepIntoSubDictWithKeyEPKc; DS_Dictionary::stepIntoSubDictWithKey(char const*) ; +0x134, 0xb46ffc UXTB W0, W0; this ; +0x138, 0xb47000 CBNZ W0, loc_B46F00 ; +0x13c, 0xb47004 BL _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x140, 0xb47008 B loc_B46FCC ; +0x144, 0xb4700c LDUR W2, [X1,#-8] ; +0x148, 0xb47010 SUB W3, W2, #1 ; +0x14c, 0xb47014 STUR W3, [X1,#-8] ; +0x150, 0xb47018 B loc_B46FAC ; +0x154, 0xb4701c BL .__stack_chk_fail ; +0x158, 0xb47020