; ; BrowseSmartKeyLayer::addChanceToSelected from 0x673f7c to 0x674020 (164 bytes) ; ; 1 xrefs: ; > BrowseSmartKeyLayer::onButton @ 0x67424c ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:55:54 +0000 ; PUSH.W {R4-R11,LR} ; +0x0, 0x673f7c SUB SP, SP, #0x1C ; +0x4, 0x673f80 LDR R5, =(__stack_chk_guard_ptr - 0x673F8E) ; +0x6, 0x673f82 MOV R6, R0 ; +0x8, 0x673f84 MOV R8, R1 ; +0xa, 0x673f86 STR R2, [SP,#0x1C+var_18] ; +0xc, 0x673f88 ADD R5, PC; __stack_chk_guard_ptr ; +0xe, 0x673f8a LDR R5, [R5]; __stack_chk_guard ; +0x10, 0x673f8c ADD.W R10, R6, #0x220 ; +0x12, 0x673f8e MOVS R4, #0 ; +0x16, 0x673f92 LDR R3, [R5] ; +0x18, 0x673f94 MOV R9, R5 ; +0x1a, 0x673f96 ADD R5, SP, #0x1C+var_14 ; +0x1c, 0x673f98 STR R3, [SP,#0x1C+var_8] ; +0x1e, 0x673f9a BL _ZN19BrowseSmartKeyLayer20getAllSelectedBlocksEv; BrowseSmartKeyLayer::getAllSelectedBlocks(void) ; +0x20, 0x673f9c MOV R7, R0 ; +0x24, 0x673fa0 MOV R0, R7; this ; +0x26, 0x673fa2 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x673fa4 CMP R4, R0 ; +0x2c, 0x673fa8 BCS loc_673FFC ; +0x2e, 0x673faa MOV R1, R4; unsigned int ; +0x30, 0x673fac MOV R0, R7; this ; +0x32, 0x673fae BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x34, 0x673fb0 LDR.W R3, [R6,#0x208] ; +0x38, 0x673fb4 MOV R1, R10 ; +0x3c, 0x673fb8 STR R3, [SP,#0x1C+var_1C] ; +0x3e, 0x673fba MOV R11, R0 ; +0x40, 0x673fbc MOV R0, R5 ; +0x42, 0x673fbe BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x44, 0x673fc0 LDR.W R2, [R11] ; +0x48, 0x673fc4 MOV R0, R11 ; +0x4c, 0x673fc8 LDR R2, [R2,#0x20] ; +0x4e, 0x673fca BLX R2 ; +0x50, 0x673fcc MOV R2, R0 ; +0x52, 0x673fce MOV R1, R5 ; +0x54, 0x673fd0 LDR R0, [SP,#0x1C+var_1C] ; +0x56, 0x673fd2 BL _ZN15GJSmartTemplate15getPrefabWithIDENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi; GJSmartTemplate::getPrefabWithID(std::string,int) ; +0x58, 0x673fd4 MOV R11, R0 ; +0x5c, 0x673fd8 MOV R0, R5 ; +0x5e, 0x673fda BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x60, 0x673fdc CMP.W R11, #0 ; +0x64, 0x673fe0 BEQ loc_673FF8 ; +0x68, 0x673fe4 LDR R3, [SP,#0x1C+var_18] ; +0x6a, 0x673fe6 CBZ R3, loc_673FEE ; +0x6c, 0x673fe8 MOVS R3, #0 ; +0x6e, 0x673fea B loc_673FF4 ; +0x70, 0x673fec LDR.W R3, [R11,#0x50] ; +0x72, 0x673fee ADD R3, R8 ; +0x76, 0x673ff2 STR.W R3, [R11,#0x50] ; +0x78, 0x673ff4 ADDS R4, #1 ; +0x7c, 0x673ff8 B loc_673FA2 ; +0x7e, 0x673ffa MOV R0, R6; this ; +0x80, 0x673ffc BL _ZN19BrowseSmartKeyLayer18updateChanceValuesEv; BrowseSmartKeyLayer::updateChanceValues(void) ; +0x82, 0x673ffe LDR R2, [SP,#0x1C+var_8] ; +0x86, 0x674002 LDR.W R3, [R9] ; +0x88, 0x674004 CMP R2, R3 ; +0x8c, 0x674008 BEQ loc_67401A ; +0x8e, 0x67400a BLX __stack_chk_fail ; +0x90, 0x67400c MOV R0, R5 ; +0x94, 0x674010 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x96, 0x674012 BL __cxa_end_cleanup ; +0x9a, 0x674016 ADD SP, SP, #0x1C ; +0x9e, 0x67401a POP.W {R4-R11,PC} ; +0xa0, 0x67401c