; ; BrowseSmartTemplateLayer::goToPage from 0x53f05c to 0x53f11c (192 bytes) ; ; 3 xrefs: ; > BrowseSmartTemplateLayer::onClick @ 0x53f148 ; > BrowseSmartKeyLayer::init @ 0x53f564 ; > BrowseSmartTemplateLayer::init @ 0x540008 ; ; 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 ; CMP R1, #0 ; +0x0, 0x53f05c PUSH.W {R4-R10,LR} ; +0x2, 0x53f05e MOV R4, R0 ; +0x6, 0x53f062 MOV R5, R1 ; +0x8, 0x53f064 STR.W R1, [R4,#0x1F8] ; +0xa, 0x53f066 LDR.W R0, [R0,#0x1F4]; this ; +0xe, 0x53f06a BGE loc_53F07E ; +0x12, 0x53f06e BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x14, 0x53f070 SUBS R0, #1 ; +0x18, 0x53f074 STR.W R0, [R4,#0x1F8] ; +0x1a, 0x53f076 MOVS R5, #0 ; +0x1e, 0x53f07a B loc_53F092 ; +0x20, 0x53f07c BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x22, 0x53f07e SUBS R0, #1 ; +0x26, 0x53f082 CMP R5, R0 ; +0x28, 0x53f084 BLS loc_53F07A ; +0x2a, 0x53f086 MOVS R3, #0 ; +0x2c, 0x53f088 STR.W R3, [R4,#0x1F8] ; +0x2e, 0x53f08a B loc_53F07A ; +0x32, 0x53f08e ADDS R5, #1 ; +0x34, 0x53f090 LDR.W R0, [R4,#0x1F4]; this ; +0x36, 0x53f092 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3a, 0x53f096 CMP R5, R0 ; +0x3e, 0x53f09a BCS loc_53F0E6 ; +0x40, 0x53f09c LDR.W R7, [R4,#0x1F8] ; +0x42, 0x53f09e MOV R1, R5; unsigned int ; +0x46, 0x53f0a2 LDR.W R0, [R4,#0x1F4]; this ; +0x48, 0x53f0a4 MOVS R6, #0 ; +0x4c, 0x53f0a8 SUBS R3, R7, R5 ; +0x4e, 0x53f0aa NEGS R7, R3 ; +0x50, 0x53f0ac ADCS R7, R3 ; +0x52, 0x53f0ae BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x54, 0x53f0b0 MOV R9, R0 ; +0x58, 0x53f0b4 MOV R0, R9; this ; +0x5a, 0x53f0b6 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5c, 0x53f0b8 CMP R6, R0 ; +0x60, 0x53f0bc BCS loc_53F090 ; +0x62, 0x53f0be MOV R1, R6; unsigned int ; +0x64, 0x53f0c0 MOV R0, R9; this ; +0x66, 0x53f0c2 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x68, 0x53f0c4 MOV R1, R7 ; +0x6c, 0x53f0c8 ADDS R6, #1 ; +0x6e, 0x53f0ca LDR R3, [R0] ; +0x70, 0x53f0cc MOV R8, R0 ; +0x72, 0x53f0ce LDR.W R3, [R3,#0xA4] ; +0x74, 0x53f0d0 BLX R3 ; +0x78, 0x53f0d4 LDR.W R3, [R8] ; +0x7a, 0x53f0d6 MOV R0, R8 ; +0x7e, 0x53f0da MOV R1, R7 ; +0x80, 0x53f0dc LDR.W R3, [R3,#0x208] ; +0x82, 0x53f0de BLX R3 ; +0x86, 0x53f0e2 B loc_53F0B6 ; +0x88, 0x53f0e4 LDR.W R0, [R4,#0x1F4]; this ; +0x8a, 0x53f0e6 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x8e, 0x53f0ea CMP R0, #1 ; +0x92, 0x53f0ee BHI loc_53F112 ; +0x94, 0x53f0f0 LDR.W R0, [R4,#0x200] ; +0x96, 0x53f0f2 MOVS R1, #0 ; +0x9a, 0x53f0f6 LDR R3, [R0] ; +0x9c, 0x53f0f8 LDR.W R3, [R3,#0xA4] ; +0x9e, 0x53f0fa BLX R3 ; +0xa2, 0x53f0fe LDR.W R0, [R4,#0x1FC] ; +0xa4, 0x53f100 MOVS R1, #0 ; +0xa8, 0x53f104 POP.W {R4-R10,LR} ; +0xaa, 0x53f106 LDR R3, [R0] ; +0xae, 0x53f10a LDR.W R3, [R3,#0xA4] ; +0xb0, 0x53f10c BX R3 ; +0xb4, 0x53f110 MOV R0, R4; this ; +0xb6, 0x53f112 POP.W {R4-R10,LR} ; +0xb8, 0x53f114 B.W _ZN24BrowseSmartTemplateLayer10updateDotsEv; BrowseSmartTemplateLayer::updateDots(void) ; +0xbc, 0x53f118