; ; BrowseSmartTemplateLayer::onTemplateObject from 0x53f8c0 to 0x53f9d0 (272 bytes) ; ; 0 xrefs: ; ; 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-R8,LR} ; +0x0, 0x53f8c0 SUB SP, SP, #0x20 ; +0x4, 0x53f8c4 LDR R7, =(__stack_chk_guard_ptr - 0x53F8D2) ; +0x6, 0x53f8c6 MOV R5, R0 ; +0x8, 0x53f8c8 MOV R0, R1 ; +0xa, 0x53f8ca ADD R4, SP, #0x20+var_8 ; +0xc, 0x53f8cc ADD R7, PC; __stack_chk_guard_ptr ; +0xe, 0x53f8ce LDR R7, [R7]; __stack_chk_guard ; +0x10, 0x53f8d0 LDR R3, [R7] ; +0x12, 0x53f8d2 STR R3, [SP,#0x20+var_4] ; +0x14, 0x53f8d4 LDR R3, [R1] ; +0x16, 0x53f8d6 LDR.W R3, [R3,#0x210] ; +0x18, 0x53f8d8 BLX R3 ; +0x1c, 0x53f8dc LDR.W R8, [R5,#0x1F0] ; +0x1e, 0x53f8de ADD.W R6, R0, #0x108 ; +0x22, 0x53f8e2 MOV R0, R4 ; +0x26, 0x53f8e6 MOV R1, R6 ; +0x28, 0x53f8e8 BL sub_775C20 ; +0x2a, 0x53f8ea MOV R0, R8 ; +0x2e, 0x53f8ee MOV R1, R4 ; +0x30, 0x53f8f0 BL _ZN15GJSmartTemplate10getPrefabsESs; GJSmartTemplate::getPrefabs(std::string) ; +0x32, 0x53f8f2 MOV R8, R0 ; +0x36, 0x53f8f6 MOV R0, R4 ; +0x38, 0x53f8f8 BL sub_774008 ; +0x3a, 0x53f8fa CMP.W R8, #0 ; +0x3e, 0x53f8fe BEQ loc_53F952 ; +0x42, 0x53f902 MOV R0, R8; this ; +0x44, 0x53f904 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x46, 0x53f906 CBNZ R0, loc_53F91A ; +0x4a, 0x53f90a B loc_53F952 ; +0x4c, 0x53f90c B loc_53F910 ; +0x4e, 0x53f90e MOV R0, R4 ; +0x50, 0x53f910 BL sub_774008 ; +0x52, 0x53f912 BL __cxa_end_cleanup ; +0x56, 0x53f916 MOV R0, R5; this ; +0x5a, 0x53f91a MOVS R1, #0; cocos2d::CCObject * ; +0x5c, 0x53f91c BL _ZN24BrowseSmartTemplateLayer7onCloseEPN7cocos2d8CCObjectE; BrowseSmartTemplateLayer::onClose(cocos2d::CCObject *) ; +0x5e, 0x53f91e LDR.W R8, [R5,#0x1F0] ; +0x62, 0x53f922 MOV R1, R6 ; +0x66, 0x53f926 MOV R0, R4 ; +0x68, 0x53f928 BL sub_775C20 ; +0x6a, 0x53f92a MOV R1, R4 ; +0x6e, 0x53f92e MOV R0, R8 ; +0x70, 0x53f930 BL _ZN19BrowseSmartKeyLayer6createEP15GJSmartTemplateSs; BrowseSmartKeyLayer::create(GJSmartTemplate *,std::string) ; +0x72, 0x53f932 MOV R6, R0 ; +0x76, 0x53f936 MOV R0, R4 ; +0x78, 0x53f938 BL sub_774008 ; +0x7a, 0x53f93a LDR.W R3, [R5,#0x1F8] ; +0x7e, 0x53f93e MOV R0, R6 ; +0x82, 0x53f942 STR.W R3, [R6,#0x20C] ; +0x84, 0x53f944 LDR R3, [R6] ; +0x88, 0x53f948 LDR.W R3, [R3,#0x284] ; +0x8a, 0x53f94a BLX R3 ; +0x8e, 0x53f94e B loc_53F9BE ; +0x90, 0x53f950 MOV R1, R6 ; +0x92, 0x53f952 MOV R0, R4 ; +0x94, 0x53f954 BL sub_775C20 ; +0x96, 0x53f956 MOV R0, R5 ; +0x9a, 0x53f95a MOV R1, R4 ; +0x9c, 0x53f95c MOVS R2, #0 ; +0x9e, 0x53f95e BL _ZN24BrowseSmartTemplateLayer12createPrefabESsi; BrowseSmartTemplateLayer::createPrefab(std::string,int) ; +0xa0, 0x53f960 MOV R0, R4 ; +0xa4, 0x53f964 ADD R6, SP, #0x20+var_C ; +0xa6, 0x53f966 BL sub_774008 ; +0xa8, 0x53f968 LDR R3, [R5] ; +0xac, 0x53f96c LDR R1, =(aAddedToEditor - 0x53F978); "Added to editor" ; +0xae, 0x53f96e ADD R2, SP, #0x20+var_14 ; +0xb0, 0x53f970 MOV R0, R6; int ; +0xb2, 0x53f972 ADD R1, PC; "Added to editor" ; +0xb4, 0x53f974 LDR.W R8, [R3,#0xE0] ; +0xb6, 0x53f976 BL sub_776584 ; +0xba, 0x53f97a LDR R1, =(unk_939830 - 0x53F988) ; +0xbe, 0x53f97e MOV R0, R4; int ; +0xc0, 0x53f980 ADD R2, SP, #0x20+var_10 ; +0xc2, 0x53f982 ADD R1, PC; unk_939830 ; char * ; +0xc4, 0x53f984 BL sub_776584 ; +0xc6, 0x53f986 STR R4, [SP,#0x20+var_20] ; +0xca, 0x53f98a MOV R0, R6 ; +0xcc, 0x53f98c MOV.W R1, #0x3F000000 ; +0xce, 0x53f98e LDR R2, =0x3F19999A ; +0xd2, 0x53f992 MOVS R3, #0x96 ; +0xd4, 0x53f994 BL _ZN14TextAlertPopup6createESsffiSs; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0xd6, 0x53f996 MOV R1, R0 ; +0xda, 0x53f99a MOVS R2, #0x64 ; 'd' ; +0xdc, 0x53f99c MOV R0, R5 ; +0xde, 0x53f99e BLX R8 ; +0xe0, 0x53f9a0 MOV R0, R4 ; +0xe2, 0x53f9a2 BL sub_774008 ; +0xe4, 0x53f9a4 MOV R0, R6 ; +0xe8, 0x53f9a8 BL sub_774008 ; +0xea, 0x53f9aa B loc_53F9BE ; +0xee, 0x53f9ae B loc_53F910 ; +0xf0, 0x53f9b0 MOV R0, R4 ; +0xf2, 0x53f9b2 BL sub_774008 ; +0xf4, 0x53f9b4 B loc_53F9BA ; +0xf8, 0x53f9b8 MOV R0, R6 ; +0xfa, 0x53f9ba B loc_53F912 ; +0xfc, 0x53f9bc LDR R2, [SP,#0x20+var_4] ; +0xfe, 0x53f9be LDR R3, [R7] ; +0x100, 0x53f9c0 CMP R2, R3 ; +0x102, 0x53f9c2 BEQ loc_53F9CA ; +0x104, 0x53f9c4 BLX __stack_chk_fail ; +0x106, 0x53f9c6 ADD SP, SP, #0x20 ; ' ' ; +0x10a, 0x53f9ca POP.W {R4-R8,PC} ; +0x10c, 0x53f9cc