; ; BrowseSmartTemplateLayer::createPrefab from 0x53f14c to 0x53f1ac (96 bytes) ; ; 2 xrefs: ; > BrowseSmartTemplateLayer::onTemplateObject @ 0x53f960 ; > BrowseSmartKeyLayer::createTemplateObjects @ 0x53fa94 ; ; 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 {R0-R2,R4-R9,LR} ; +0x0, 0x53f14c MOV R5, R0 ; +0x4, 0x53f150 LDR R4, =(__stack_chk_guard_ptr - 0x53F15C) ; +0x6, 0x53f152 MOV R6, R2 ; +0x8, 0x53f154 MOV R9, R1 ; +0xa, 0x53f156 ADD R4, PC; __stack_chk_guard_ptr ; +0xc, 0x53f158 LDR R4, [R4]; __stack_chk_guard ; +0xe, 0x53f15a LDR R3, [R4] ; +0x10, 0x53f15c STR R3, [SP,#0xC+var_8] ; +0x12, 0x53f15e BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x53f160 MOVW R3, #0x2E94 ; +0x18, 0x53f164 LDR.W R7, [R5,#0x1F0] ; +0x1c, 0x53f168 MOV R1, R9 ; +0x20, 0x53f16c MOV R5, SP ; +0x22, 0x53f16e LDR.W R2, [R0,#0x170] ; +0x24, 0x53f170 MOV R0, SP ; +0x28, 0x53f174 LDR.W R8, [R2,R3] ; +0x2a, 0x53f176 BL sub_775C20 ; +0x2e, 0x53f17a MOV R1, R7 ; +0x32, 0x53f17e MOV R2, SP ; +0x34, 0x53f180 MOV R3, R6 ; +0x36, 0x53f182 MOV R0, R8 ; +0x38, 0x53f184 BL _ZN8EditorUI12createPrefabEP15GJSmartTemplateSsi; EditorUI::createPrefab(GJSmartTemplate *,std::string,int) ; +0x3a, 0x53f186 MOV R0, SP ; +0x3e, 0x53f18a BL sub_774008 ; +0x40, 0x53f18c LDR R2, [SP,#0xC+var_8] ; +0x44, 0x53f190 LDR R3, [R4] ; +0x46, 0x53f192 CMP R2, R3 ; +0x48, 0x53f194 BEQ loc_53F1A6 ; +0x4a, 0x53f196 BLX __stack_chk_fail ; +0x4c, 0x53f198 MOV R0, R5 ; +0x50, 0x53f19c BL sub_774008 ; +0x52, 0x53f19e BL __cxa_end_cleanup ; +0x56, 0x53f1a2 ADD SP, SP, #0xC ; +0x5a, 0x53f1a6 POP.W {R4-R9,PC} ; +0x5c, 0x53f1a8