{"type": "func", "start": 5505160, "end": 5505322, "name": "BrowseSmartTemplateLayer::create", "pseudocode": "// \n// BrowseSmartTemplateLayer::create from 0x540088 to 0x54012a (162 bytes)\n// \n// 2 xrefs:\n// > SetupSmartTemplateLayer::onClick @ 0x540164\n// > BrowseSmartKeyLayer::onBack @ 0x540210\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\nBrowseSmartTemplateLayer *BrowseSmartTemplateLayer::create(GJSmartTemplate *a1, SmartBrowseFilter a2)\n{\n  BrowseSmartTemplateLayer *v3; // r4\n  BrowseSmartTemplateLayer_vtbl *v4; // r3\n  BrowseSmartTemplateLayer *v5; // r0\n\n  v3 = (BrowseSmartTemplateLayer *)operator new(0x208u);\n  FLAlertLayer::FLAlertLayer(v3);\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (BrowseSmartTemplateLayer_vtbl *)&off_A86C38;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A86ECC;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A86F04;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A86F10;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A86F20;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A86F30;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A86F44;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A86F84;\n  v3->m_template = nullptr;\n  v3->m_pages = nullptr;\n  v3->m_page = 0;\n  v3->m_nextPageBtn = nullptr;\n  v3->m_prevPageBtn = nullptr;\n  v3->m_dotsArray = nullptr;\n  if ( BrowseSmartTemplateLayer::init(v3, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    v4 = v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v5 = v3;\n    v3 = nullptr;\n    v4->~BrowseSmartTemplateLayer_0(v5);\n  }\n  return v3;\n}", "assembly": "; \n; BrowseSmartTemplateLayer::create from 0x540088 to 0x54012a (162 bytes)\n; \n; 2 xrefs:\n; > SetupSmartTemplateLayer::onClick @ 0x540164\n; > BrowseSmartKeyLayer::onBack @ 0x540210\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            {R0-R2,R4,R5,LR}                                       ; +0x0, 0x540088\nMOV             R5, R0                                                 ; +0x2, 0x54008a\nMOV.W           R0, #0x208; unsigned int                               ; +0x4, 0x54008c\nSTR             R1, [SP,#0xC+var_8]                                    ; +0x8, 0x540090\nBL              _Znwj; operator new(uint)                              ; +0xa, 0x540092\nMOV             R4, R0                                                 ; +0xe, 0x540096\nBL              _ZN12FLAlertLayerC2Ev; FLAlertLayer::FLAlertLayer(void) ; +0x10, 0x540098\nLDR             R3, =(_ZTV24BrowseSmartTemplateLayer_ptr - 0x5400A6)   ; +0x14, 0x54009c\nMOV             R1, R5                                                 ; +0x16, 0x54009e\nMOV             R0, R4                                                 ; +0x18, 0x5400a0\nADD             R3, PC; _ZTV24BrowseSmartTemplateLayer_ptr             ; +0x1a, 0x5400a2\nLDR             R3, [R3]; `vtable for'BrowseSmartTemplateLayer ...     ; +0x1c, 0x5400a4\nADD.W           R2, R3, #8                                             ; +0x1e, 0x5400a6\nSTR             R2, [R4]                                               ; +0x22, 0x5400aa\nADD.W           R2, R3, #0x29C                                         ; +0x24, 0x5400ac\nSTR.W           R2, [R4,#0x108]                                        ; +0x28, 0x5400b0\nADD.W           R2, R3, #0x2D4                                         ; +0x2c, 0x5400b4\nSTR.W           R2, [R4,#0x10C]                                        ; +0x30, 0x5400b8\nADD.W           R2, R3, #0x2E0                                         ; +0x34, 0x5400bc\nSTR.W           R2, [R4,#0x110]                                        ; +0x38, 0x5400c0\nADD.W           R2, R3, #0x2F0                                         ; +0x3c, 0x5400c4\nSTR.W           R2, [R4,#0x114]                                        ; +0x40, 0x5400c8\nADD.W           R2, R3, #0x300                                         ; +0x44, 0x5400cc\nSTR.W           R2, [R4,#0x118]                                        ; +0x48, 0x5400d0\nADD.W           R2, R3, #0x314                                         ; +0x4c, 0x5400d4\nADD.W           R3, R3, #0x354                                         ; +0x50, 0x5400d8\nSTR.W           R2, [R4,#0x13C]                                        ; +0x54, 0x5400dc\nSTR.W           R3, [R4,#0x14C]                                        ; +0x58, 0x5400e0\nMOVS            R3, #0                                                 ; +0x5c, 0x5400e4\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x5e, 0x5400e6\nSTR.W           R3, [R4,#0x1F0]                                        ; +0x60, 0x5400e8\nSTR.W           R3, [R4,#0x1F4]                                        ; +0x64, 0x5400ec\nSTR.W           R3, [R4,#0x1F8]                                        ; +0x68, 0x5400f0\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x6c, 0x5400f4\nSTR.W           R3, [R4,#0x200]                                        ; +0x70, 0x5400f8\nSTR.W           R3, [R4,#0x204]                                        ; +0x74, 0x5400fc\nBL              _ZN24BrowseSmartTemplateLayer4initEP15GJSmartTemplate17SmartBrowseFilter; BrowseSmartTemplateLayer::init(GJSmartTemplate *,SmartBrowseFilter) ; +0x78, 0x540100\nMOV             R5, R0                                                 ; +0x7c, 0x540104\nCBZ             R0, loc_54011A                                         ; +0x7e, 0x540106\nMOV             R0, R4; this                                           ; +0x80, 0x540108\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x82, 0x54010a\nB               loc_540124                                             ; +0x86, 0x54010e\nMOV             R0, R4; p                                              ; +0x88, 0x540110\nBL              _ZdlPv; operator delete(void *)                        ; +0x8a, 0x540112\nBL              __cxa_end_cleanup                                      ; +0x8e, 0x540116\nLDR             R3, [R4]                                               ; +0x92, 0x54011a\nMOV             R0, R4                                                 ; +0x94, 0x54011c\nMOV             R4, R5                                                 ; +0x96, 0x54011e\nLDR             R3, [R3,#8]                                            ; +0x98, 0x540120\nBLX             R3                                                     ; +0x9a, 0x540122\nMOV             R0, R4                                                 ; +0x9c, 0x540124\nADD             SP, SP, #0xC                                           ; +0x9e, 0x540126\nPOP             {R4,R5,PC}                                             ; +0xa0, 0x540128", "xrefs": ["SetupSmartTemplateLayer::onClick @ 0x540164", "BrowseSmartKeyLayer::onBack @ 0x540210"], "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"}