; ; DS_Dictionary::setObjectForKey from 0x5ff368 to 0x5ff44c (228 bytes) ; ; 2 xrefs: ; > DS_Dictionary::setArrayForKey @ 0x5ff34c ; > DS_Dictionary::setDictForKey @ 0x5ff4dc ; ; 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 ; PUSH.W {R4-R9,LR} ; +0x0, 0x5ff368 SUB SP, SP, #0x1C ; +0x4, 0x5ff36c LDR R5, =(_GLOBAL_OFFSET_TABLE_ - 0x5FF37A) ; +0x6, 0x5ff36e MOV R6, R0 ; +0x8, 0x5ff370 LDR R3, =(__stack_chk_guard_ptr - 0xAB8990) ; +0xa, 0x5ff372 MOV R8, R1 ; +0xc, 0x5ff374 ADD R5, PC; _GLOBAL_OFFSET_TABLE_ ; +0xe, 0x5ff376 MOV R4, R2 ; +0x10, 0x5ff378 LDR R7, [R5,R3]; __stack_chk_guard ; +0x12, 0x5ff37a LDR R3, [R7] ; +0x14, 0x5ff37c STR R3, [SP,#0x1C+var_8] ; +0x16, 0x5ff37e CMP R2, #0 ; +0x18, 0x5ff380 BEQ loc_5FF414 ; +0x1a, 0x5ff382 LDR R3, =(_ZTIN7cocos2d8CCObjectE_ptr - 0xAB8990) ; +0x1c, 0x5ff384 MOV R0, R2; lpsrc ; +0x1e, 0x5ff386 LDR R3, [R5,R3]; _ZTIN7cocos2d8CCObjectE_ptr ; +0x20, 0x5ff388 STR R3, [SP,#0x1C+lpstype] ; +0x22, 0x5ff38a LDR R3, =(_ZTIN7cocos2d8CCStringE_ptr - 0xAB8990) ; +0x24, 0x5ff38c LDR R1, [SP,#0x1C+lpstype]; lpstype ; +0x26, 0x5ff38e LDR R3, [R5,R3]; _ZTIN7cocos2d8CCStringE_ptr ; +0x28, 0x5ff390 STR R3, [SP,#0x1C+var_18] ; +0x2a, 0x5ff392 MOV R2, R3; lpdtype ; +0x2c, 0x5ff394 MOVS R3, #0; s2d ; +0x2e, 0x5ff396 BL __dynamic_cast ; +0x30, 0x5ff398 MOV R3, R0; s2d ; +0x34, 0x5ff39c CBNZ R0, loc_5FF3CE ; +0x36, 0x5ff39e LDR R2, =(_ZTIN7cocos2d12CCDictionaryE_ptr - 0xAB8990) ; +0x38, 0x5ff3a0 MOV R0, R4; lpsrc ; +0x3a, 0x5ff3a2 LDR R1, [SP,#0x1C+lpstype]; lpstype ; +0x3c, 0x5ff3a4 LDR R2, [R5,R2]; _ZTIN7cocos2d12CCDictionaryE_ptr ; lpdtype ; +0x3e, 0x5ff3a6 STR R2, [SP,#0x1C+var_18] ; +0x40, 0x5ff3a8 BL __dynamic_cast ; +0x42, 0x5ff3aa MOV R3, R0; s2d ; +0x46, 0x5ff3ae CBNZ R0, loc_5FF408 ; +0x48, 0x5ff3b0 LDR R2, =(_ZTIN7cocos2d7CCArrayE_ptr - 0xAB8990) ; +0x4a, 0x5ff3b2 MOV R0, R4; lpsrc ; +0x4c, 0x5ff3b4 LDR R1, [SP,#0x1C+lpstype]; lpstype ; +0x4e, 0x5ff3b6 LDR R2, [R5,R2]; _ZTIN7cocos2d7CCArrayE_ptr ; lpdtype ; +0x50, 0x5ff3b8 STR R2, [SP,#0x1C+var_18] ; +0x52, 0x5ff3ba BL __dynamic_cast ; +0x54, 0x5ff3bc CBZ R0, loc_5FF414 ; +0x58, 0x5ff3c0 MOV R0, R6; this ; +0x5a, 0x5ff3c2 MOV R1, R8; char * ; +0x5c, 0x5ff3c4 MOV R2, R4; cocos2d::CCArray * ; +0x5e, 0x5ff3c6 BL _ZN13DS_Dictionary14setArrayForKeyEPKcPN7cocos2d7CCArrayE; DS_Dictionary::setArrayForKey(char const*,cocos2d::CCArray *) ; +0x60, 0x5ff3c8 B loc_5FF43A ; +0x64, 0x5ff3cc MOV R0, R4; this ; +0x66, 0x5ff3ce ADD.W R9, SP, #0x1C+var_10 ; +0x68, 0x5ff3d0 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x6c, 0x5ff3d4 ADD R2, SP, #0x1C+var_14 ; +0x70, 0x5ff3d8 ADD R4, SP, #0x1C+var_C ; +0x72, 0x5ff3da MOV R1, R0; char * ; +0x74, 0x5ff3dc MOV R0, R9; int ; +0x76, 0x5ff3de BL sub_776584 ; +0x78, 0x5ff3e0 LDR R3, [SP,#0x1C+var_10] ; +0x7c, 0x5ff3e4 MOV R0, R6 ; +0x7e, 0x5ff3e6 MOV R1, R8 ; +0x80, 0x5ff3e8 MOV R2, R4 ; +0x82, 0x5ff3ea STR R3, [SP,#0x1C+var_C] ; +0x84, 0x5ff3ec LDR R3, =(off_AB5BA0 - 0xAB8990) ; +0x86, 0x5ff3ee LDR R3, [R5,R3]; dword_ACDD9C ; +0x88, 0x5ff3f0 ADDS R3, #0xC ; +0x8a, 0x5ff3f2 STR R3, [SP,#0x1C+var_10] ; +0x8c, 0x5ff3f4 BL _ZN13DS_Dictionary15setStringForKeyEPKcRKSs; DS_Dictionary::setStringForKey(char const*,std::string const&) ; +0x8e, 0x5ff3f6 MOV R0, R4 ; +0x92, 0x5ff3fa BL sub_774008 ; +0x94, 0x5ff3fc MOV R0, R9 ; +0x98, 0x5ff400 BL sub_774008 ; +0x9a, 0x5ff402 B loc_5FF43A ; +0x9e, 0x5ff406 MOV R0, R6; this ; +0xa0, 0x5ff408 MOV R1, R8; char * ; +0xa2, 0x5ff40a MOV R2, R4; cocos2d::CCDictionary * ; +0xa4, 0x5ff40c BL _ZN13DS_Dictionary13setDictForKeyEPKcPN7cocos2d12CCDictionaryE; DS_Dictionary::setDictForKey(char const*,cocos2d::CCDictionary *) ; +0xa6, 0x5ff40e B loc_5FF43A ; +0xaa, 0x5ff412 LDR R3, [R4] ; +0xac, 0x5ff414 MOV R0, R4 ; +0xae, 0x5ff416 LDR R3, [R3,#0x1C] ; +0xb0, 0x5ff418 BLX R3 ; +0xb2, 0x5ff41a CBZ R0, loc_5FF43A ; +0xb4, 0x5ff41c MOV R0, R6; this ; +0xb6, 0x5ff41e MOV R1, R8; char * ; +0xb8, 0x5ff420 MOVS R2, #0; bool ; +0xba, 0x5ff422 MOVS R3, #1; bool ; +0xbc, 0x5ff424 BL _ZN13DS_Dictionary16setSubDictForKeyEPKcbb; DS_Dictionary::setSubDictForKey(char const*,bool,bool) ; +0xbe, 0x5ff426 LDR R3, [R4] ; +0xc2, 0x5ff42a MOV R0, R4 ; +0xc4, 0x5ff42c MOV R1, R6 ; +0xc6, 0x5ff42e LDR R3, [R3,#0x18] ; +0xc8, 0x5ff430 BLX R3 ; +0xca, 0x5ff432 MOV R0, R6; this ; +0xcc, 0x5ff434 BL _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0xce, 0x5ff436 LDR R2, [SP,#0x1C+var_8] ; +0xd2, 0x5ff43a LDR R3, [R7] ; +0xd4, 0x5ff43c CMP R2, R3 ; +0xd6, 0x5ff43e BEQ loc_5FF446 ; +0xd8, 0x5ff440 BLX __stack_chk_fail ; +0xda, 0x5ff442 ADD SP, SP, #0x1C ; +0xde, 0x5ff446 POP.W {R4-R9,PC} ; +0xe0, 0x5ff448