; ; BrowseSmartTemplateLayer::baseSetup from 0x6728d8 to 0x672b52 (634 bytes) ; ; 2 xrefs: ; > BrowseSmartKeyLayer::init @ 0x674c14 ; > BrowseSmartTemplateLayer::init @ 0x675404 ; ; 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:53 +0000 ; PUSH.W {R4-R11,LR} ; +0x0, 0x6728d8 MOV R4, R0 ; +0x4, 0x6728dc VPUSH {D8} ; +0x6, 0x6728de MOV.W R10, #1 ; +0xa, 0x6728e2 LDR.W R8, =(__stack_chk_guard_ptr - 0x6728EE) ; +0xe, 0x6728e6 ADD R8, PC; __stack_chk_guard_ptr ; +0x12, 0x6728ea LDR.W R8, [R8]; __stack_chk_guard ; +0x14, 0x6728ec VMOV.F32 S16, #0.5 ; +0x18, 0x6728f0 SUB SP, SP, #0x5C ; +0x1c, 0x6728f4 LDR.W R3, [R8] ; +0x1e, 0x6728f6 ADD R5, SP, #0x5C+var_18 ; +0x22, 0x6728fa STR R3, [SP,#0x5C+var_8] ; +0x24, 0x6728fc BL _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x26, 0x6728fe STR.W R0, [R4,#0x20C] ; +0x2a, 0x672902 BL _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x2e, 0x672906 STRB.W R10, [R4,#0x1D4] ; +0x32, 0x67290a BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x36, 0x67290e MOV R1, R0 ; +0x3a, 0x672912 ADD R0, SP, #0x5C+var_40; this ; +0x3c, 0x672914 BL _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x3e, 0x672916 LDR R3, flt_672B54; float ; +0x42, 0x67291a MOVS R1, #0; float ; +0x44, 0x67291c MOV R0, R5; this ; +0x46, 0x67291e MOV R2, R1; float ; +0x48, 0x672920 STR R3, [SP,#0x5C+var_5C]; float ; +0x4a, 0x672922 BL _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x4c, 0x672924 LDR R0, =(aGjSquare02Png - 0x672930); "GJ_square02.png" ; +0x50, 0x672928 MOV R1, R5 ; +0x52, 0x67292a ADD R0, PC; "GJ_square02.png" ; +0x54, 0x67292c BL _ZN7cocos2d9extension14CCScale9Sprite6createEPKcNS_6CCRectE; cocos2d::extension::CCScale9Sprite::create(char const*,cocos2d::CCRect) ; +0x56, 0x67292e LDR R2, flt_672B58; float ; +0x5a, 0x672932 LDR R1, flt_672B5C; float ; +0x5c, 0x672934 LDR R3, [R0] ; +0x5e, 0x672936 MOV R6, R0 ; +0x60, 0x672938 MOV R0, R5; this ; +0x62, 0x67293a LDR.W R7, [R3,#0xA0] ; +0x64, 0x67293c BL _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x68, 0x672940 MOV R0, R6 ; +0x6c, 0x672944 MOV R1, R5 ; +0x6e, 0x672946 BLX R7 ; +0x70, 0x672948 LDR.W R0, [R4,#0x1CC] ; +0x72, 0x67294a MOV R1, R6 ; +0x76, 0x67294e MOV R2, #0xFFFFFFFE ; +0x78, 0x672950 LDR R3, [R0] ; +0x7c, 0x672954 LDR.W R3, [R3,#0xE8] ; +0x7e, 0x672956 BLX R3 ; +0x82, 0x67295a VLDR S15, [SP,#0x5C+var_40] ; +0x84, 0x67295c LDR R3, [R6] ; +0x88, 0x672960 MOV R0, R5; this ; +0x8a, 0x672962 VMUL.F32 S15, S15, S16 ; +0x8c, 0x672964 LDR R7, [R3,#0x5C] ; +0x90, 0x672968 VMOV R1, S15; float ; +0x92, 0x67296a VLDR S15, [SP,#0x5C+var_3C] ; +0x96, 0x67296e VMUL.F32 S15, S15, S16 ; +0x9a, 0x672972 VMOV R2, S15; float ; +0x9e, 0x672976 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa2, 0x67297a MOV R1, R5 ; +0xa6, 0x67297e MOV R0, R6 ; +0xa8, 0x672980 BLX R7 ; +0xaa, 0x672982 BL _ZN7cocos2d6CCMenu6createEv; cocos2d::CCMenu::create(void) ; +0xac, 0x672984 MOVS R2, #0xA ; +0xb0, 0x672988 MOV R1, R0 ; +0xb2, 0x67298a STR.W R0, [R4,#0x1BC] ; +0xb4, 0x67298c LDR.W R0, [R4,#0x1CC] ; +0xb8, 0x672990 LDR R3, [R0] ; +0xbc, 0x672994 LDR.W R3, [R3,#0xE8] ; +0xbe, 0x672996 BLX R3 ; +0xc2, 0x67299a LDR R0, =(aGjClosebtn001P - 0x6729A2); "GJ_closeBtn_001.png" ; +0xc4, 0x67299c ADD R0, PC; "GJ_closeBtn_001.png" ; +0xc6, 0x67299e BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0xc8, 0x6729a0 LDR R1, =0x3F333333 ; +0xcc, 0x6729a4 LDR R3, [R0] ; +0xce, 0x6729a6 MOV R6, R0 ; +0xd0, 0x6729a8 LDR R3, [R3,#0x50] ; +0xd2, 0x6729aa BLX R3 ; +0xd4, 0x6729ac LDR R3, =(unk_BEF4A4 - 0x6729B6) ; +0xd6, 0x6729ae MOV R2, R4 ; +0xd8, 0x6729b0 ADD R3, PC; unk_BEF4A4 ; +0xda, 0x6729b2 LDM.W R3, {R0,R1} ; +0xdc, 0x6729b4 ADD R3, SP, #0x5C+var_28 ; +0xe0, 0x6729b8 STM.W R3, {R0,R1} ; +0xe2, 0x6729ba MOVS R1, #0 ; +0xe6, 0x6729be LDR R3, [SP,#0x5C+var_24] ; +0xe8, 0x6729c0 STR R3, [SP,#0x5C+var_5C] ; +0xea, 0x6729c2 MOV R3, R0 ; +0xec, 0x6729c4 MOV R0, R6 ; +0xee, 0x6729c6 ADD R6, SP, #0x5C+var_20 ; +0xf0, 0x6729c8 BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0xf2, 0x6729ca LDR R1, flt_672B64; float ; +0xf6, 0x6729ce MOV R7, R0 ; +0xf8, 0x6729d0 BL _ZN21CCMenuItemSpriteExtra11setSizeMultEf; CCMenuItemSpriteExtra::setSizeMult(float) ; +0xfa, 0x6729d2 LDR.W R0, [R4,#0x1BC] ; +0xfe, 0x6729d6 MOV R1, R7 ; +0x102, 0x6729da LDR R3, [R0] ; +0x104, 0x6729dc LDR.W R3, [R3,#0xE4] ; +0x106, 0x6729de BLX R3 ; +0x10a, 0x6729e2 VLDR S15, [SP,#0x5C+var_40] ; +0x10c, 0x6729e4 LDR R3, [R7] ; +0x110, 0x6729e8 MOV R0, R6; this ; +0x112, 0x6729ea LDR.W R11, [R4,#0x1BC] ; +0x114, 0x6729ec VLDR S14, =225.0 ; +0x118, 0x6729f0 LDR.W R9, [R3,#0x5C] ; +0x11c, 0x6729f4 VLDR S12, [SP,#0x5C+var_3C] ; +0x120, 0x6729f8 VNMLS.F32 S14, S15, S16 ; +0x124, 0x6729fc VLDR S15, =140.0 ; +0x128, 0x672a00 VMLA.F32 S15, S12, S16 ; +0x12c, 0x672a04 VMOV.F32 S13, #6.0 ; +0x130, 0x672a08 VADD.F32 S14, S14, S13 ; +0x134, 0x672a0c VSUB.F32 S15, S15, S13 ; +0x138, 0x672a10 VMOV R1, S14; float ; +0x13c, 0x672a14 VMOV R2, S15; float ; +0x140, 0x672a18 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x144, 0x672a1c MOV R2, R6 ; +0x148, 0x672a20 MOV R0, R5; this ; +0x14a, 0x672a22 MOV R1, R11; cocos2d::CCPoint * ; +0x14c, 0x672a24 BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x14e, 0x672a26 LDR.W R11, =(aGjArrow03001Pn - 0x672A3C); "GJ_arrow_03_001.png" ; +0x152, 0x672a2a MOV R1, R5 ; +0x156, 0x672a2e MOV R0, R7 ; +0x158, 0x672a30 BLX R9 ; +0x15a, 0x672a32 VLDR S15, [SP,#0x5C+var_3C] ; +0x15c, 0x672a34 ADD R11, PC; "GJ_arrow_03_001.png" ; +0x160, 0x672a38 LDR R7, =(_ZN24BrowseSmartTemplateLayer7onClickEPN7cocos2d8CCObjectE_ptr - 0x672A50) ; +0x162, 0x672a3a MOVS R6, #0 ; +0x164, 0x672a3c ADD.W R9, SP, #0x5C+var_30 ; +0x166, 0x672a3e MOV R0, R11; this ; +0x16a, 0x672a42 VMUL.F32 S16, S15, S16 ; +0x16c, 0x672a44 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x170, 0x672a48 ADD R7, PC; _ZN24BrowseSmartTemplateLayer7onClickEPN7cocos2d8CCObjectE_ptr ; +0x174, 0x672a4c LDR R7, [R7]; BrowseSmartTemplateLayer::onClick(cocos2d::CCObject *) ; +0x176, 0x672a4e MOV R2, R4 ; +0x178, 0x672a50 MOV R1, R6 ; +0x17a, 0x672a52 STR R6, [SP,#0x5C+var_5C] ; +0x17c, 0x672a54 MOV R3, R7 ; +0x17e, 0x672a56 STR R7, [SP,#0x5C+var_20] ; +0x180, 0x672a58 STR R6, [SP,#0x5C+var_1C] ; +0x182, 0x672a5a BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x184, 0x672a5c MOV.W R1, #0x40000000; float ; +0x188, 0x672a60 STR.W R0, [R4,#0x218] ; +0x18c, 0x672a64 BL _ZN21CCMenuItemSpriteExtra11setSizeMultEf; CCMenuItemSpriteExtra::setSizeMult(float) ; +0x190, 0x672a68 LDR.W R0, [R4,#0x1BC] ; +0x194, 0x672a6c LDR.W R1, [R4,#0x218] ; +0x198, 0x672a70 LDR R3, [R0] ; +0x19c, 0x672a74 LDR.W R3, [R3,#0xE4] ; +0x19e, 0x672a76 BLX R3 ; +0x1a2, 0x672a7a LDR.W R3, [R4,#0x218] ; +0x1a4, 0x672a7c LDR R1, flt_672B70; float ; +0x1a8, 0x672a80 MOV R0, R9; this ; +0x1aa, 0x672a82 LDR R2, [R3] ; +0x1ac, 0x672a84 STR R3, [SP,#0x5C+var_48] ; +0x1ae, 0x672a86 LDR R3, [R2,#0x5C] ; +0x1b0, 0x672a88 VMOV R2, S16; float ; +0x1b2, 0x672a8a STR R3, [SP,#0x5C+var_50] ; +0x1b6, 0x672a8e LDR.W R3, [R4,#0x1BC] ; +0x1b8, 0x672a90 STR R3, [SP,#0x5C+var_4C] ; +0x1bc, 0x672a94 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1be, 0x672a96 MOV R2, R9 ; +0x1c2, 0x672a9a MOV R0, R5; this ; +0x1c4, 0x672a9c LDR R1, [SP,#0x5C+var_4C]; cocos2d::CCPoint * ; +0x1c6, 0x672a9e BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x1c8, 0x672aa0 LDR R3, [SP,#0x5C+var_48] ; +0x1cc, 0x672aa4 MOV R1, R5 ; +0x1ce, 0x672aa6 MOV R0, R3 ; +0x1d0, 0x672aa8 LDR R3, [SP,#0x5C+var_50] ; +0x1d2, 0x672aaa BLX R3 ; +0x1d4, 0x672aac LDR.W R0, [R4,#0x218] ; +0x1d6, 0x672aae MOV R1, R10 ; +0x1da, 0x672ab2 LDR R3, [R0] ; +0x1dc, 0x672ab4 LDR R3, [R3,#0x24] ; +0x1de, 0x672ab6 BLX R3 ; +0x1e0, 0x672ab8 MOV R0, R11; this ; +0x1e2, 0x672aba BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x1e4, 0x672abc MOV R1, R10; bool ; +0x1e8, 0x672ac0 MOV R5, R0 ; +0x1ea, 0x672ac2 BL _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x1ec, 0x672ac4 MOV R3, R7 ; +0x1f0, 0x672ac8 MOV R2, R4 ; +0x1f2, 0x672aca MOV R1, R6 ; +0x1f4, 0x672acc STR R6, [SP,#0x5C+var_5C] ; +0x1f6, 0x672ace MOV R0, R5 ; +0x1f8, 0x672ad0 STR R7, [SP,#0x5C+var_18] ; +0x1fa, 0x672ad2 STR R6, [SP,#0x5C+var_14] ; +0x1fc, 0x672ad4 BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x1fe, 0x672ad6 MOV.W R1, #0x40000000; float ; +0x202, 0x672ada ADD R6, SP, #0x5C+var_38 ; +0x206, 0x672ade STR.W R0, [R4,#0x214] ; +0x208, 0x672ae0 BL _ZN21CCMenuItemSpriteExtra11setSizeMultEf; CCMenuItemSpriteExtra::setSizeMult(float) ; +0x20c, 0x672ae4 LDR.W R0, [R4,#0x1BC] ; +0x210, 0x672ae8 LDR.W R1, [R4,#0x214] ; +0x214, 0x672aec LDR R3, [R0] ; +0x218, 0x672af0 LDR.W R3, [R3,#0xE4] ; +0x21a, 0x672af2 BLX R3 ; +0x21e, 0x672af6 VMOV.F32 S15, #25.0 ; +0x220, 0x672af8 VLDR S14, [SP,#0x5C+var_40] ; +0x224, 0x672afc MOV R0, R6; this ; +0x228, 0x672b00 LDR.W R5, [R4,#0x214] ; +0x22a, 0x672b02 LDR.W R10, [R4,#0x1BC] ; +0x22e, 0x672b06 VMOV R2, S16; float ; +0x232, 0x672b0a LDR R3, [R5] ; +0x236, 0x672b0e LDR R7, [R3,#0x5C] ; +0x238, 0x672b10 VSUB.F32 S15, S14, S15 ; +0x23a, 0x672b12 VMOV R1, S15; float ; +0x23e, 0x672b16 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x242, 0x672b1a MOV R2, R6 ; +0x246, 0x672b1e MOV R0, R9; this ; +0x248, 0x672b20 MOV R1, R10; cocos2d::CCPoint * ; +0x24a, 0x672b22 BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x24c, 0x672b24 MOV R0, R5 ; +0x250, 0x672b28 MOV R1, R9 ; +0x252, 0x672b2a BLX R7 ; +0x254, 0x672b2c LDR.W R0, [R4,#0x214] ; +0x256, 0x672b2e MOVS R1, #2 ; +0x25a, 0x672b32 LDR R3, [R0] ; +0x25c, 0x672b34 LDR R3, [R3,#0x24] ; +0x25e, 0x672b36 BLX R3 ; +0x260, 0x672b38 LDR R2, [SP,#0x5C+var_8] ; +0x262, 0x672b3a LDR.W R3, [R8] ; +0x264, 0x672b3c CMP R2, R3 ; +0x268, 0x672b40 BEQ loc_672B48 ; +0x26a, 0x672b42 BLX __stack_chk_fail ; +0x26c, 0x672b44 ADD SP, SP, #0x5C ; '\' ; +0x270, 0x672b48 VPOP {D8} ; +0x272, 0x672b4a POP.W {R4-R11,PC} ; +0x276, 0x672b4e