; ; BrowseSmartKeyLayer::updateChanceValues from 0x53fb20 to 0x53fbf0 (208 bytes) ; ; 2 xrefs: ; > BrowseSmartKeyLayer::deletedSelectedItems @ 0x53fc98 ; > BrowseSmartKeyLayer::addChanceToSelected @ 0x53fd42 ; ; 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-R11,LR} ; +0x0, 0x53fb20 SUB SP, SP, #0x14 ; +0x4, 0x53fb24 LDR R6, =(__stack_chk_guard_ptr - 0x53FB36) ; +0x6, 0x53fb26 ADD.W R9, R0, #0x208 ; +0x8, 0x53fb28 LDR.W R7, [R0,#0x1F0] ; +0xc, 0x53fb2c ADD R4, SP, #0x14+var_C ; +0x10, 0x53fb30 ADD R6, PC; __stack_chk_guard_ptr ; +0x12, 0x53fb32 LDR R6, [R6]; __stack_chk_guard ; +0x14, 0x53fb34 MOV R1, R9 ; +0x16, 0x53fb36 MOV R5, R0 ; +0x18, 0x53fb38 MOV R0, R4 ; +0x1a, 0x53fb3a LDR R3, [R6] ; +0x1c, 0x53fb3c STR R3, [SP,#0x14+var_8] ; +0x1e, 0x53fb3e BL sub_775C20 ; +0x20, 0x53fb40 MOV R0, R7 ; +0x24, 0x53fb44 MOV R1, R4 ; +0x26, 0x53fb46 STR R6, [SP,#0x14+var_10] ; +0x28, 0x53fb48 BL _ZN15GJSmartTemplate23getTotalChanceForPrefabESs; GJSmartTemplate::getTotalChanceForPrefab(std::string) ; +0x2a, 0x53fb4a STR R0, [SP,#0x14+var_14] ; +0x2e, 0x53fb4e MOV R0, R4 ; +0x30, 0x53fb50 BL sub_774008 ; +0x32, 0x53fb52 MOVS R6, #0 ; +0x36, 0x53fb56 LDR.W R0, [R5,#0x1F4]; this ; +0x38, 0x53fb58 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3c, 0x53fb5c CMP R6, R0 ; +0x40, 0x53fb60 BCS loc_53FBDC ; +0x42, 0x53fb62 LDR.W R0, [R5,#0x1F4]; this ; +0x44, 0x53fb64 MOV R1, R6; unsigned int ; +0x48, 0x53fb68 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4a, 0x53fb6a MOVS R7, #0 ; +0x4e, 0x53fb6e MOV R10, R0 ; +0x50, 0x53fb70 MOV R0, R10; this ; +0x52, 0x53fb72 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x54, 0x53fb74 CMP R7, R0 ; +0x58, 0x53fb78 BCS loc_53FBCC ; +0x5a, 0x53fb7a MOV R1, R7; unsigned int ; +0x5c, 0x53fb7c MOV R0, R10; this ; +0x5e, 0x53fb7e BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x60, 0x53fb80 LDR R3, [R0] ; +0x64, 0x53fb84 LDR.W R3, [R3,#0x210] ; +0x66, 0x53fb86 BLX R3 ; +0x6a, 0x53fb8a MOV R1, R9 ; +0x6c, 0x53fb8c LDR.W R11, [R5,#0x1F0] ; +0x6e, 0x53fb8e MOV R8, R0 ; +0x72, 0x53fb92 MOV R0, R4 ; +0x74, 0x53fb94 BL sub_775C20 ; +0x76, 0x53fb96 LDR.W R3, [R8] ; +0x7a, 0x53fb9a MOV R0, R8 ; +0x7e, 0x53fb9e LDR R3, [R3,#0x20] ; +0x80, 0x53fba0 BLX R3 ; +0x82, 0x53fba2 MOV R2, R0 ; +0x84, 0x53fba4 MOV R1, R4 ; +0x86, 0x53fba6 MOV R0, R11 ; +0x88, 0x53fba8 BL _ZN15GJSmartTemplate15getPrefabWithIDESsi; GJSmartTemplate::getPrefabWithID(std::string,int) ; +0x8a, 0x53fbaa MOV R11, R0 ; +0x8e, 0x53fbae MOV R0, R4 ; +0x90, 0x53fbb0 BL sub_774008 ; +0x92, 0x53fbb2 CMP.W R11, #0 ; +0x96, 0x53fbb6 BEQ loc_53FBC8 ; +0x9a, 0x53fbba MOV R0, R8; this ; +0x9c, 0x53fbbc LDR.W R1, [R11,#0x40]; int ; +0x9e, 0x53fbbe LDR R2, [SP,#0x14+var_14]; int ; +0xa2, 0x53fbc2 BL _ZN19GJSmartBlockPreview9addChanceEii; GJSmartBlockPreview::addChance(int,int) ; +0xa4, 0x53fbc4 ADDS R7, #1 ; +0xa8, 0x53fbc8 B loc_53FB72 ; +0xaa, 0x53fbca ADDS R6, #1 ; +0xac, 0x53fbcc B loc_53FB58 ; +0xae, 0x53fbce B loc_53FBD2 ; +0xb0, 0x53fbd0 MOV R0, R4 ; +0xb2, 0x53fbd2 BL sub_774008 ; +0xb4, 0x53fbd4 BL __cxa_end_cleanup ; +0xb8, 0x53fbd8 LDR R3, [SP,#0x14+var_10] ; +0xbc, 0x53fbdc LDR R2, [SP,#0x14+var_8] ; +0xbe, 0x53fbde LDR R3, [R3] ; +0xc0, 0x53fbe0 CMP R2, R3 ; +0xc2, 0x53fbe2 BEQ loc_53FBEA ; +0xc4, 0x53fbe4 BLX __stack_chk_fail ; +0xc6, 0x53fbe6 ADD SP, SP, #0x14 ; +0xca, 0x53fbea POP.W {R4-R11,PC} ; +0xcc, 0x53fbec