{"type": "func", "start": 5504464, "end": 5505126, "name": "BrowseSmartTemplateLayer::init", "pseudocode": "// \n// BrowseSmartTemplateLayer::init from 0x53fdd0 to 0x540066 (662 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartTemplateLayer::create @ 0x540100\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool BrowseSmartTemplateLayer::init(BrowseSmartTemplateLayer *a1, GJSmartTemplate *a2, SmartBrowseFilter a3)\n{\n  cocos2d::CCDirector *v5; // r0\n  CCMenuItemSpriteExtra *v6; // r7\n  cocos2d::CCMenu *m_buttonMenu; // r10\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8\n  unsigned int v9; // r8\n  stl::StringData<char>::Internal *v10; // r6\n  cocos2d::CCArray *v11; // r11\n  cocos2d::CCString *v12; // r0\n  char *CString; // r0\n  SmartPrefabResult v14; // kr00_28\n  GJSmartTemplate *m_template; // r0\n  unsigned int i; // r7\n  const SmartPrefabResult *v17; // r1\n  SmartPrefabResult v18; // kr24_28\n  stl::StringData<char>::Internal *v20; // r3\n  stl::StringData<char>::Internal *v21; // r3\n  int v22; // [sp+0h] [bp-74h]\n  int v23; // [sp+4h] [bp-70h]\n  cocos2d::CCDictionary *m_prefabArrays; // [sp+8h] [bp-6Ch]\n  cocos2d::CCArray *v25; // [sp+Ch] [bp-68h]\n  void *v26; // [sp+10h] [bp-64h]\n  std::string v27; // [sp+24h] [bp-50h] BYREF\n  _BYTE v28[4]; // [sp+28h] [bp-4Ch] BYREF\n  cocos2d::CCSize v29; // [sp+2Ch] [bp-48h] BYREF\n  SmartPrefabResult v30; // [sp+34h] [bp-40h] BYREF\n  SmartPrefabResult v31; // [sp+50h] [bp-24h] BYREF\n\n  v26 = &_stack_chk_guard;\n  v23 = FLAlertLayer::init(a1, (cocos2d::_ccColor4B)150);\n  if ( v23 )\n  {\n    BrowseSmartTemplateLayer::baseSetup(a1);\n    v5 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(&v29, v5);\n    if ( a2 )\n    {\n      a1->m_template = a2;\n      cocos2d::CCObject::retain(a2);\n    }\n    sub_776584((int)&v30, \"Help\");\n    sub_776584(\n      (int)&v31,\n      \"Shows the <cg>auto-build designs</c> in the current template.\\n\"\n      \"These will be used when the template is pasted.\\n\"\n      \"Click on an <cy>empty design</c> to paste it into editor.\\n\"\n      \"Click an <cl>added design</c> to change the chance of different variations.\");\n    v6 = InfoAlertButton::create((int)&v30, (int)&v31, 1065353216);\n    sub_774008(&v31);\n    sub_774008(&v30);\n    a1->m_buttonMenu->addChild(a1->m_buttonMenu, v6);\n    m_buttonMenu = a1->m_buttonMenu;\n    setPosition = v6->setPosition;\n    cocos2d::CCPoint::CCPoint(\n      (cocos2d::CCPoint *)&v30,\n      (float)((float)(v29.width * 0.5) + 225.0) - 18.0,\n      (float)((float)(v29.height * 0.5) + 140.0) - 18.0);\n    cocos2d::CCNode::convertToNodeSpace((cocos2d::CCPoint *)&v31, m_buttonMenu, (const cocos2d::CCPoint *)&v30);\n    setPosition(v6, (const cocos2d::CCPoint *)&v31);\n    if ( a1->m_template )\n    {\n      v9 = 0;\n      v10 = nullptr;\n      m_prefabArrays = a2->m_prefabArrays;\n      v11 = cocos2d::CCDictionary::allKeys(m_prefabArrays);\n      while ( v9 < cocos2d::CCArray::count(v11) )\n      {\n        v12 = cocos2d::CCArray::stringAtIndex(v11, v9);\n        CString = (char *)cocos2d::CCString::getCString(v12);\n        sub_776584((int)&v27, CString);\n        v25 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(m_prefabArrays, &v27);\n        if ( cocos2d::CCArray::count(v25) )\n        {\n          v30.m_smartPrefab = nullptr;\n          sub_776584((int)&v30.m_binaryKey, (char *)&unk_939830);\n          sub_776584((int)&v30.m_prefabKey, (char *)&unk_939830);\n          v30.m_prefabCount = 0;\n          v30.m_unrequired = 0;\n          v30.m_rotation = 0;\n          v30.m_flipX = 0;\n          v30.m_flipY = 0;\n          v30.m_ignoreCorners = 0;\n          sub_775D40(&v30.m_binaryKey, &v27);\n          sub_775D40(&v30.m_prefabKey, &v27);\n          v30.m_prefabCount = cocos2d::CCArray::count(v25);\n          sub_775C20(v28);\n          v30.m_unrequired = GJSmartTemplate::isUnrequired((int)a2, (int)v28);\n          sub_774008(v28);\n          SmartPrefabResult::SmartPrefabResult(&v31, &v30);\n          v14.m_smartPrefab = (GJSmartPrefab *)&v31;\n          v14.m_binaryKey.m_data.m_data = v10;\n          v14.m_prefabKey.m_data.m_data = v20;\n          v14.m_prefabCount = v22;\n          v14.m_unrequired = v23;\n          v14.m_rotation = (int)m_prefabArrays;\n          v14.m_flipX = (char)v25;\n          v14.m_flipY = BYTE1(v25);\n          v14.m_ignoreCorners = BYTE2(v25);\n          BrowseSmartTemplateLayer::addPrefabMenuItem(a1, v14, (int)v26);\n          v10 = (stl::StringData<char>::Internal *)((char *)v10 + 1);\n          SmartPrefabResult::~SmartPrefabResult(&v31);\n          SmartPrefabResult::~SmartPrefabResult(&v30);\n        }\n        ++v9;\n        sub_774008(&v27);\n      }\n      m_template = a1->m_template;\n      memset(&v30, 0, 12);\n      GJSmartTemplate::getTemplateState(m_template, (std::vector<SmartPrefabResult> *)&v30);\n      for ( i = 0;\n            i < -1227133513\n              * ((v30.m_binaryKey.m_data.m_data - (stl::StringData<char>::Internal *)v30.m_smartPrefab) >> 2);\n            ++i )\n      {\n        v17 = (const SmartPrefabResult *)((char *)v30.m_smartPrefab + 28 * i);\n        if ( !v17->m_prefabCount && !v17->m_unrequired )\n        {\n          SmartPrefabResult::SmartPrefabResult(&v31, v17);\n          v18.m_smartPrefab = (GJSmartPrefab *)&v31;\n          v18.m_binaryKey.m_data.m_data = v10;\n          v18.m_prefabKey.m_data.m_data = v21;\n          v18.m_prefabCount = v22;\n          v18.m_unrequired = v23;\n          v18.m_rotation = (int)m_prefabArrays;\n          v18.m_flipX = (char)v25;\n          v18.m_flipY = BYTE1(v25);\n          v18.m_ignoreCorners = BYTE2(v25);\n          BrowseSmartTemplateLayer::addPrefabMenuItem(a1, v18, (int)v26);\n          v10 = (stl::StringData<char>::Internal *)((char *)v10 + 1);\n          SmartPrefabResult::~SmartPrefabResult(&v31);\n        }\n      }\n      BrowseSmartTemplateLayer::goToPage(a1, 0);\n      std::vector<SmartPrefabResult>::~vector((SmartPrefabResult **)&v30);\n    }\n  }\n  return v23;\n}", "assembly": "; \n; BrowseSmartTemplateLayer::init from 0x53fdd0 to 0x540066 (662 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartTemplateLayer::create @ 0x540100\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x53fdd0\nSUB             SP, SP, #0x74                                          ; +0x4, 0x53fdd4\nLDR             R4, =(__stack_chk_guard_ptr - 0x53FDE2)                ; +0x6, 0x53fdd6\nMOV             R9, R1                                                 ; +0x8, 0x53fdd8\nMOVS            R1, #0x96; int                                         ; +0xa, 0x53fdda\nMOV             R5, R0                                                 ; +0xc, 0x53fddc\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x53fdde\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x53fde0\nSTR             R2, [SP,#0x74+var_58]                                  ; +0x12, 0x53fde2\nLDR             R3, [R4]                                               ; +0x14, 0x53fde4\nSTR             R3, [SP,#0x74+var_8]                                   ; +0x16, 0x53fde6\nBL              _ZN12FLAlertLayer4initEi; FLAlertLayer::init(int)      ; +0x18, 0x53fde8\nSTR             R4, [SP,#0x74+var_64]                                  ; +0x1c, 0x53fdec\nSTR             R0, [SP,#0x74+var_70]                                  ; +0x1e, 0x53fdee\nCMP             R0, #0                                                 ; +0x20, 0x53fdf0\nBEQ.W           loc_540012                                             ; +0x22, 0x53fdf2\nMOV             R0, R5; this                                           ; +0x26, 0x53fdf6\nBL              _ZN24BrowseSmartTemplateLayer9baseSetupEv; BrowseSmartTemplateLayer::baseSetup(void) ; +0x28, 0x53fdf8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x53fdfc\nMOV             R1, R0                                                 ; +0x30, 0x53fe00\nADD             R0, SP, #0x74+var_48; this                             ; +0x32, 0x53fe02\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x34, 0x53fe04\nCMP.W           R9, #0                                                 ; +0x38, 0x53fe08\nBEQ             loc_53FE18                                             ; +0x3c, 0x53fe0c\nSTR.W           R9, [R5,#0x1F0]                                        ; +0x3e, 0x53fe0e\nMOV             R0, R9; this                                           ; +0x42, 0x53fe12\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x44, 0x53fe14\nADD             R4, SP, #0x74+var_40                                   ; +0x48, 0x53fe18\nLDR             R1, =(aHelp - 0x53FE24); \"Help\"                        ; +0x4a, 0x53fe1a\nADD             R2, SP, #0x74+var_50                                   ; +0x4c, 0x53fe1c\nADD             R6, SP, #0x74+var_24                                   ; +0x4e, 0x53fe1e\nADD             R1, PC; \"Help\"                                         ; +0x50, 0x53fe20\nMOV             R0, R4; int                                            ; +0x52, 0x53fe22\nBL              sub_776584                                             ; +0x54, 0x53fe24\nLDR             R1, =(aShowsTheCgAuto - 0x53FE32); \"Shows the <cg>auto-build designs</c> in\"... ; +0x58, 0x53fe28\nMOV             R0, R6; int                                            ; +0x5a, 0x53fe2a\nADD             R2, SP, #0x74+var_4C                                   ; +0x5c, 0x53fe2c\nADD             R1, PC; \"Shows the <cg>auto-build designs</c> in\"...   ; +0x5e, 0x53fe2e\nBL              sub_776584                                             ; +0x60, 0x53fe30\nMOV             R0, R4                                                 ; +0x64, 0x53fe34\nMOV             R1, R6                                                 ; +0x66, 0x53fe36\nMOV.W           R2, #0x3F800000                                        ; +0x68, 0x53fe38\nBL              _ZN15InfoAlertButton6createESsSsf; InfoAlertButton::create(std::string,std::string,float) ; +0x6c, 0x53fe3c\nMOV             R7, R0                                                 ; +0x70, 0x53fe40\nMOV             R0, R6                                                 ; +0x72, 0x53fe42\nBL              sub_774008                                             ; +0x74, 0x53fe44\nMOV             R0, R4                                                 ; +0x78, 0x53fe48\nBL              sub_774008                                             ; +0x7a, 0x53fe4a\nLDR.W           R0, [R5,#0x1B8]                                        ; +0x7e, 0x53fe4e\nMOV             R1, R7                                                 ; +0x82, 0x53fe52\nLDR             R3, [R0]                                               ; +0x84, 0x53fe54\nLDR.W           R3, [R3,#0xDC]                                         ; +0x86, 0x53fe56\nBLX             R3                                                     ; +0x8a, 0x53fe5a\nVMOV.F32        S12, #0.5                                              ; +0x8c, 0x53fe5c\nVLDR            S15, [SP,#0x74+var_48]                                 ; +0x90, 0x53fe60\nMOV             R0, R4; this                                           ; +0x94, 0x53fe64\nLDR             R3, [R7]                                               ; +0x96, 0x53fe66\nLDR.W           R10, [R5,#0x1B8]                                       ; +0x98, 0x53fe68\nVLDR            S14, =225.0                                            ; +0x9c, 0x53fe6c\nLDR.W           R8, [R3,#0x5C]                                         ; +0xa0, 0x53fe70\nVLDR            S11, [SP,#0x74+var_44]                                 ; +0xa4, 0x53fe74\nVMLA.F32        S14, S15, S12                                          ; +0xa8, 0x53fe78\nVLDR            S15, =140.0                                            ; +0xac, 0x53fe7c\nVMLA.F32        S15, S11, S12                                          ; +0xb0, 0x53fe80\nVMOV.F32        S13, #18.0                                             ; +0xb4, 0x53fe84\nVSUB.F32        S14, S14, S13                                          ; +0xb8, 0x53fe88\nVSUB.F32        S15, S15, S13                                          ; +0xbc, 0x53fe8c\nVMOV            R1, S14; float                                         ; +0xc0, 0x53fe90\nVMOV            R2, S15; float                                         ; +0xc4, 0x53fe94\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc8, 0x53fe98\nMOV             R0, R6; this                                           ; +0xcc, 0x53fe9c\nMOV             R1, R10; cocos2d::CCPoint *                            ; +0xce, 0x53fe9e\nMOV             R2, R4                                                 ; +0xd0, 0x53fea0\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xd2, 0x53fea2\nMOV             R0, R7                                                 ; +0xd6, 0x53fea6\nMOV             R1, R6                                                 ; +0xd8, 0x53fea8\nBLX             R8                                                     ; +0xda, 0x53feaa\nLDR.W           R3, [R5,#0x1F0]                                        ; +0xdc, 0x53feac\nCMP             R3, #0                                                 ; +0xe0, 0x53feb0\nBEQ.W           loc_540012                                             ; +0xe2, 0x53feb2\nLDR.W           R3, [R9,#0x34]                                         ; +0xe6, 0x53feb6\nMOV.W           R8, #0                                                 ; +0xea, 0x53feba\nADD             R7, SP, #0x74+var_50                                   ; +0xee, 0x53febe\nMOV             R6, R8                                                 ; +0xf0, 0x53fec0\nMOV             R0, R3; this                                           ; +0xf2, 0x53fec2\nSTR             R3, [SP,#0x74+var_6C]                                  ; +0xf4, 0x53fec4\nBL              _ZN7cocos2d12CCDictionary7allKeysEv; cocos2d::CCDictionary::allKeys(void) ; +0xf6, 0x53fec6\nLDR             R3, =(unk_939830 - 0x53FED0)                           ; +0xfa, 0x53feca\nADD             R3, PC; unk_939830                                     ; +0xfc, 0x53fecc\nSTR             R3, [SP,#0x74+var_60]                                  ; +0xfe, 0x53fece\nLDR             R3, =(unk_939830 - 0x53FED6)                           ; +0x100, 0x53fed0\nADD             R3, PC; unk_939830                                     ; +0x102, 0x53fed2\nSTR             R3, [SP,#0x74+var_5C]                                  ; +0x104, 0x53fed4\nMOV             R11, R0                                                ; +0x106, 0x53fed6\nMOV             R0, R11; this                                          ; +0x108, 0x53fed8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x10a, 0x53feda\nCMP             R8, R0                                                 ; +0x10e, 0x53fede\nBCS             loc_53FFAC                                             ; +0x110, 0x53fee0\nMOV             R1, R8; unsigned int                                   ; +0x112, 0x53fee2\nMOV             R0, R11; this                                          ; +0x114, 0x53fee4\nBL              _ZN7cocos2d7CCArray13stringAtIndexEj; cocos2d::CCArray::stringAtIndex(uint) ; +0x116, 0x53fee6\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x11a, 0x53feea\nADD             R2, SP, #0x74+var_24                                   ; +0x11e, 0x53feee\nMOV             R1, R0; char *                                         ; +0x120, 0x53fef0\nMOV             R0, R7; int                                            ; +0x122, 0x53fef2\nBL              sub_776584                                             ; +0x124, 0x53fef4\nLDR             R0, [SP,#0x74+var_6C]                                  ; +0x128, 0x53fef8\nMOV             R1, R7                                                 ; +0x12a, 0x53fefa\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x12c, 0x53fefc\nSTR             R0, [SP,#0x74+var_68]                                  ; +0x130, 0x53ff00\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x132, 0x53ff02\nCMP             R0, #0                                                 ; +0x136, 0x53ff06\nBEQ             loc_53FFA0                                             ; +0x138, 0x53ff08\nADD.W           R10, SP, #0x74+var_3C                                  ; +0x13a, 0x53ff0a\nLDR             R1, [SP,#0x74+var_60]; char *                          ; +0x13e, 0x53ff0e\nADD             R2, SP, #0x74+var_54                                   ; +0x140, 0x53ff10\nMOVS            R3, #0                                                 ; +0x142, 0x53ff12\nMOV             R0, R10; int                                           ; +0x144, 0x53ff14\nSTR             R3, [SP,#0x74+var_40]                                  ; +0x146, 0x53ff16\nBL              sub_776584                                             ; +0x148, 0x53ff18\nADD             R0, SP, #0x74+var_38; int                              ; +0x14c, 0x53ff1c\nLDR             R1, [SP,#0x74+var_5C]; char *                          ; +0x14e, 0x53ff1e\nADD             R2, SP, #0x74+var_24                                   ; +0x150, 0x53ff20\nBL              sub_776584                                             ; +0x152, 0x53ff22\nMOV             R0, R10                                                ; +0x156, 0x53ff26\nMOV             R1, R7                                                 ; +0x158, 0x53ff28\nMOVS            R3, #0                                                 ; +0x15a, 0x53ff2a\nSTR             R3, [SP,#0x74+var_34]                                  ; +0x15c, 0x53ff2c\nSTRB.W          R3, [SP,#0x74+var_30]                                  ; +0x15e, 0x53ff2e\nSTR             R3, [SP,#0x74+var_2C]                                  ; +0x162, 0x53ff32\nSTRB.W          R3, [SP,#0x74+var_28]                                  ; +0x164, 0x53ff34\nSTRB.W          R3, [SP,#0x74+var_27]                                  ; +0x168, 0x53ff38\nSTRB.W          R3, [SP,#0x74+var_26]                                  ; +0x16c, 0x53ff3c\nBL              sub_775D40                                             ; +0x170, 0x53ff40\nB               loc_53FF4E                                             ; +0x174, 0x53ff44\nADD             R0, SP, #0x74+var_3C                                   ; +0x176, 0x53ff46\nBL              sub_774008                                             ; +0x178, 0x53ff48\nB               loc_540046                                             ; +0x17c, 0x53ff4c\nADD             R0, SP, #0x74+var_38                                   ; +0x17e, 0x53ff4e\nMOV             R1, R7                                                 ; +0x180, 0x53ff50\nBL              sub_775D40                                             ; +0x182, 0x53ff52\nLDR             R0, [SP,#0x74+var_68]; this                            ; +0x186, 0x53ff56\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x188, 0x53ff58\nADD.W           R10, SP, #0x74+var_4C                                  ; +0x18c, 0x53ff5c\nSTR             R0, [SP,#0x74+var_34]                                  ; +0x190, 0x53ff60\nMOV             R1, R7                                                 ; +0x192, 0x53ff62\nMOV             R0, R10                                                ; +0x194, 0x53ff64\nBL              sub_775C20                                             ; +0x196, 0x53ff66\nMOV             R0, R9                                                 ; +0x19a, 0x53ff6a\nMOV             R1, R10                                                ; +0x19c, 0x53ff6c\nBL              _ZN15GJSmartTemplate12isUnrequiredESs; GJSmartTemplate::isUnrequired(std::string) ; +0x19e, 0x53ff6e\nSTRB.W          R0, [SP,#0x74+var_30]                                  ; +0x1a2, 0x53ff72\nMOV             R0, R10                                                ; +0x1a6, 0x53ff76\nADD.W           R10, SP, #0x74+var_24                                  ; +0x1a8, 0x53ff78\nBL              sub_774008                                             ; +0x1ac, 0x53ff7c\nMOV             R1, R4; SmartPrefabResult *                            ; +0x1b0, 0x53ff80\nMOV             R0, R10; this                                          ; +0x1b2, 0x53ff82\nBL              _ZN17SmartPrefabResultC2ERKS_; SmartPrefabResult::SmartPrefabResult(SmartPrefabResult const&) ; +0x1b4, 0x53ff84\nMOV             R0, R5                                                 ; +0x1b8, 0x53ff88\nMOV             R1, R10                                                ; +0x1ba, 0x53ff8a\nMOV             R2, R6                                                 ; +0x1bc, 0x53ff8c\nBL              _ZN24BrowseSmartTemplateLayer17addPrefabMenuItemE17SmartPrefabResulti; BrowseSmartTemplateLayer::addPrefabMenuItem(SmartPrefabResult,int) ; +0x1be, 0x53ff8e\nMOV             R0, R10; this                                          ; +0x1c2, 0x53ff92\nADDS            R6, #1                                                 ; +0x1c4, 0x53ff94\nBL              _ZN17SmartPrefabResultD2Ev; SmartPrefabResult::~SmartPrefabResult() ; +0x1c6, 0x53ff96\nMOV             R0, R4; this                                           ; +0x1ca, 0x53ff9a\nBL              _ZN17SmartPrefabResultD2Ev; SmartPrefabResult::~SmartPrefabResult() ; +0x1cc, 0x53ff9c\nMOV             R0, R7                                                 ; +0x1d0, 0x53ffa0\nADD.W           R8, R8, #1                                             ; +0x1d2, 0x53ffa2\nBL              sub_774008                                             ; +0x1d6, 0x53ffa6\nB               loc_53FED8                                             ; +0x1da, 0x53ffaa\nLDR.W           R0, [R5,#0x1F0]                                        ; +0x1dc, 0x53ffac\nMOV             R1, R4                                                 ; +0x1e0, 0x53ffb0\nMOVS            R3, #0                                                 ; +0x1e2, 0x53ffb2\nSTR             R3, [SP,#0x74+var_40]                                  ; +0x1e4, 0x53ffb4\nSTR             R3, [SP,#0x74+var_3C]                                  ; +0x1e6, 0x53ffb6\nSTR             R3, [SP,#0x74+var_38]                                  ; +0x1e8, 0x53ffb8\nBL              _ZN15GJSmartTemplate16getTemplateStateERSt6vectorI17SmartPrefabResultSaIS1_EE; GJSmartTemplate::getTemplateState(std::vector<SmartPrefabResult> &) ; +0x1ea, 0x53ffba\nLDR.W           R9, =0xB6DB6DB7                                        ; +0x1ee, 0x53ffbe\nADD.W           R8, SP, #0x74+var_24                                   ; +0x1f2, 0x53ffc2\nMOVS            R7, #0                                                 ; +0x1f6, 0x53ffc6\nMOV.W           R10, #0x1C                                             ; +0x1f8, 0x53ffc8\nLDR             R1, [SP,#0x74+var_40]                                  ; +0x1fc, 0x53ffcc\nLDR             R3, [SP,#0x74+var_3C]                                  ; +0x1fe, 0x53ffce\nSUBS            R3, R3, R1                                             ; +0x200, 0x53ffd0\nASRS            R3, R3, #2                                             ; +0x202, 0x53ffd2\nMUL             R3, R9, R3                                             ; +0x204, 0x53ffd4\nCMP             R7, R3                                                 ; +0x208, 0x53ffd8\nBCS             loc_540004                                             ; +0x20a, 0x53ffda\nMLA             R1, R10, R7, R1; SmartPrefabResult *                   ; +0x20c, 0x53ffdc\nLDR             R3, [R1,#0xC]                                          ; +0x210, 0x53ffe0\nCBNZ            R3, loc_540000                                         ; +0x212, 0x53ffe2\nLDRB            R3, [R1,#0x10]                                         ; +0x214, 0x53ffe4\nCBNZ            R3, loc_540000                                         ; +0x216, 0x53ffe6\nMOV             R0, R8; this                                           ; +0x218, 0x53ffe8\nBL              _ZN17SmartPrefabResultC2ERKS_; SmartPrefabResult::SmartPrefabResult(SmartPrefabResult const&) ; +0x21a, 0x53ffea\nMOV             R0, R5                                                 ; +0x21e, 0x53ffee\nMOV             R1, R8                                                 ; +0x220, 0x53fff0\nMOV             R2, R6                                                 ; +0x222, 0x53fff2\nBL              _ZN24BrowseSmartTemplateLayer17addPrefabMenuItemE17SmartPrefabResulti; BrowseSmartTemplateLayer::addPrefabMenuItem(SmartPrefabResult,int) ; +0x224, 0x53fff4\nMOV             R0, R8; this                                           ; +0x228, 0x53fff8\nADDS            R6, #1                                                 ; +0x22a, 0x53fffa\nBL              _ZN17SmartPrefabResultD2Ev; SmartPrefabResult::~SmartPrefabResult() ; +0x22c, 0x53fffc\nADDS            R7, #1                                                 ; +0x230, 0x540000\nB               loc_53FFCC                                             ; +0x232, 0x540002\nMOV             R0, R5; this                                           ; +0x234, 0x540004\nMOVS            R1, #0; int                                            ; +0x236, 0x540006\nBL              _ZN24BrowseSmartTemplateLayer8goToPageEi; BrowseSmartTemplateLayer::goToPage(int) ; +0x238, 0x540008\nMOV             R0, R4                                                 ; +0x23c, 0x54000c\nBL              _ZNSt6vectorI17SmartPrefabResultSaIS0_EED2Ev; std::vector<SmartPrefabResult>::~vector() ; +0x23e, 0x54000e\nLDR             R3, [SP,#0x74+var_64]                                  ; +0x242, 0x540012\nLDR             R2, [SP,#0x74+var_8]                                   ; +0x244, 0x540014\nLDR             R0, [SP,#0x74+var_70]                                  ; +0x246, 0x540016\nLDR             R3, [R3]                                               ; +0x248, 0x540018\nCMP             R2, R3                                                 ; +0x24a, 0x54001a\nBEQ             loc_540060                                             ; +0x24c, 0x54001c\nBLX             __stack_chk_fail                                       ; +0x24e, 0x54001e\nMOV             R0, R6                                                 ; +0x252, 0x540022\nBL              sub_774008                                             ; +0x254, 0x540024\nB               loc_54002A                                             ; +0x258, 0x540028\nMOV             R0, R4                                                 ; +0x25a, 0x54002a\nB               loc_540048                                             ; +0x25c, 0x54002c\nMOV             R0, R10                                                ; +0x25e, 0x54002e\nBL              sub_774008                                             ; +0x260, 0x540030\nB               loc_54003E                                             ; +0x264, 0x540034\nMOV             R0, R10; this                                          ; +0x266, 0x540036\nBL              _ZN17SmartPrefabResultD2Ev; SmartPrefabResult::~SmartPrefabResult() ; +0x268, 0x540038\nB               loc_54003E                                             ; +0x26c, 0x54003c\nMOV             R0, R4; this                                           ; +0x26e, 0x54003e\nBL              _ZN17SmartPrefabResultD2Ev; SmartPrefabResult::~SmartPrefabResult() ; +0x270, 0x540040\nB               loc_540046                                             ; +0x274, 0x540044\nADD             R0, SP, #0x74+var_50                                   ; +0x276, 0x540046\nBL              sub_774008                                             ; +0x278, 0x540048\nBL              __cxa_end_cleanup                                      ; +0x27c, 0x54004c\nMOV             R0, R4                                                 ; +0x280, 0x540050\nBL              _ZNSt6vectorI17SmartPrefabResultSaIS0_EED2Ev; std::vector<SmartPrefabResult>::~vector() ; +0x282, 0x540052\nB               loc_54004C                                             ; +0x286, 0x540056\nMOV             R0, R8; this                                           ; +0x288, 0x540058\nBL              _ZN17SmartPrefabResultD2Ev; SmartPrefabResult::~SmartPrefabResult() ; +0x28a, 0x54005a\nB               loc_540050                                             ; +0x28e, 0x54005e\nADD             SP, SP, #0x74 ; 't'                                    ; +0x290, 0x540060\nPOP.W           {R4-R11,PC}                                            ; +0x292, 0x540062", "xrefs": ["BrowseSmartTemplateLayer::create @ 0x540100"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}