{"type": "func", "start": 10355236, "end": 10355536, "name": "BrowseSmartTemplateLayer::create", "pseudocode": "// \n// BrowseSmartTemplateLayer::create from 0x9e0224 to 0x9e0350 (300 bytes)\n// \n// 3 xrefs:\n// > SetupSmartTemplateLayer::onClick @ 0x9e0448\n// > BrowseSmartKeyLayer::onBack @ 0x9e06b8\n// > <???> @ 0xb41c8\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; // x19\n\n  v3 = (BrowseSmartTemplateLayer *)operator new(0x2A8u);\n  cocos2d::CCLayerColor::CCLayerColor(v3);\n  v3->m_reverseKeyBack = 0;\n  v3->m_noElasticity = 0;\n  v3->m_containsBorder = 0;\n  v3->m_noAction = 0;\n  v3->m_forcePrioRegistered = 0;\n  v3->m_controlConnected = -1;\n  v3->m_joystickConnected = -1;\n  v3->m_buttonMenu = nullptr;\n  v3->m_alertProtocol = nullptr;\n  v3->m_scene = nullptr;\n  v3->m_mainLayer = nullptr;\n  v3->m_ZOrder = 0;\n  v3->m_button1 = nullptr;\n  v3->m_button2 = nullptr;\n  v3->m_scrollingLayer = nullptr;\n  v3->m_template = nullptr;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (BrowseSmartTemplateLayer_vtbl *)&off_11CB2B0;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_11CB7D8;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_11CB848;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_11CB860;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_11CB880;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_11CB8A0;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_11CB8C8;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_11CB948;\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    return v3;\n  }\n  else\n  {\n    v3->~BrowseSmartTemplateLayer_0(v3);\n    return nullptr;\n  }\n}", "assembly": "; \n; BrowseSmartTemplateLayer::create from 0x9e0224 to 0x9e0350 (300 bytes)\n; \n; 3 xrefs:\n; > SetupSmartTemplateLayer::onClick @ 0x9e0448\n; > BrowseSmartKeyLayer::onBack @ 0x9e06b8\n; > <???> @ 0xb41c8\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x9e0224\nMOV             X29, SP                                                ; +0x4, 0x9e0228\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x9e022c\nMOV             X20, X0                                                ; +0xc, 0x9e0230\nMOV             X0, #0x2A8; unsigned __int64                           ; +0x10, 0x9e0234\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x14, 0x9e0238\nBL              _Znwm; operator new(ulong)                             ; +0x18, 0x9e023c\nMOV             X19, X0                                                ; +0x1c, 0x9e0240\nBL              _ZN7cocos2d12CCLayerColorC1Ev; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x20, 0x9e0244\nADRP            X3, #_ZTV24BrowseSmartTemplateLayer_ptr@PAGE           ; +0x24, 0x9e0248\nSTRB            WZR, [X19,#0x238]                                      ; +0x28, 0x9e024c\nSTRB            WZR, [X19,#0x24C]                                      ; +0x2c, 0x9e0250\nMOV             W2, #0xFFFFFFFF                                        ; +0x30, 0x9e0254\nSTRB            WZR, [X19,#0x26C]                                      ; +0x34, 0x9e0258\nMOV             X0, X19                                                ; +0x38, 0x9e025c\nSTRB            WZR, [X19,#0x26D]                                      ; +0x3c, 0x9e0260\nMOV             X1, X20                                                ; +0x40, 0x9e0264\nSTRB            WZR, [X19,#0x274]                                      ; +0x44, 0x9e0268\nSTR             W2, [X19,#0x268]                                       ; +0x48, 0x9e026c\nSTR             W2, [X19,#0x270]                                       ; +0x4c, 0x9e0270\nSTR             XZR, [X19,#0x220]                                      ; +0x50, 0x9e0274\nSTR             XZR, [X19,#0x228]                                      ; +0x54, 0x9e0278\nSTR             XZR, [X19,#0x230]                                      ; +0x58, 0x9e027c\nSTR             XZR, [X19,#0x240]                                      ; +0x5c, 0x9e0280\nSTR             WZR, [X19,#0x248]                                      ; +0x60, 0x9e0284\nSTR             XZR, [X19,#0x250]                                      ; +0x64, 0x9e0288\nSTR             XZR, [X19,#0x258]                                      ; +0x68, 0x9e028c\nSTR             XZR, [X19,#0x260]                                      ; +0x6c, 0x9e0290\nLDR             X2, [X29,#0x30+var_8]                                  ; +0x70, 0x9e0294\nLDR             X3, [X3,#_ZTV24BrowseSmartTemplateLayer_ptr@PAGEOFF]; `vtable for'BrowseSmartTemplateLayer ... ; +0x74, 0x9e0298\nSTR             XZR, [X19,#0x278]                                      ; +0x78, 0x9e029c\nADD             X10, X3, #0x10                                         ; +0x7c, 0x9e02a0\nADD             X9, X3, #0x538                                         ; +0x80, 0x9e02a4\nADD             X8, X3, #0x5A8                                         ; +0x84, 0x9e02a8\nADD             X7, X3, #0x5C0                                         ; +0x88, 0x9e02ac\nADD             X6, X3, #0x5E0                                         ; +0x8c, 0x9e02b0\nADD             X5, X3, #0x600                                         ; +0x90, 0x9e02b4\nADD             X4, X3, #0x628                                         ; +0x94, 0x9e02b8\nSTR             X10, [X19]                                             ; +0x98, 0x9e02bc\nADD             X3, X3, #0x6A8                                         ; +0x9c, 0x9e02c0\nSTR             X9, [X19,#0x140]                                       ; +0xa0, 0x9e02c4\nSTR             X8, [X19,#0x148]                                       ; +0xa4, 0x9e02c8\nSTR             X7, [X19,#0x150]                                       ; +0xa8, 0x9e02cc\nSTR             X6, [X19,#0x158]                                       ; +0xac, 0x9e02d0\nSTR             X5, [X19,#0x160]                                       ; +0xb0, 0x9e02d4\nSTR             X4, [X19,#0x198]                                       ; +0xb4, 0x9e02d8\nSTR             X3, [X19,#0x1B0]                                       ; +0xb8, 0x9e02dc\nSTR             XZR, [X19,#0x280]                                      ; +0xbc, 0x9e02e0\nSTR             WZR, [X19,#0x288]                                      ; +0xc0, 0x9e02e4\nSTR             XZR, [X19,#0x290]                                      ; +0xc4, 0x9e02e8\nSTR             XZR, [X19,#0x298]                                      ; +0xc8, 0x9e02ec\nSTR             XZR, [X19,#0x2A0]                                      ; +0xcc, 0x9e02f0\nBL              _ZN24BrowseSmartTemplateLayer4initEP15GJSmartTemplate17SmartBrowseFilter; BrowseSmartTemplateLayer::init(GJSmartTemplate *,SmartBrowseFilter) ; +0xd0, 0x9e02f4\nUXTB            W0, W0                                                 ; +0xd4, 0x9e02f8\nCBZ             W0, loc_9E0318                                         ; +0xd8, 0x9e02fc\nMOV             X0, X19; this                                          ; +0xdc, 0x9e0300\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xe0, 0x9e0304\nMOV             X0, X19                                                ; +0xe4, 0x9e0308\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xe8, 0x9e030c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xec, 0x9e0310\nRET                                                                    ; +0xf0, 0x9e0314\nLDR             X1, [X19]                                              ; +0xf4, 0x9e0318\nMOV             X0, X19                                                ; +0xf8, 0x9e031c\nMOV             X19, #0                                                ; +0xfc, 0x9e0320\nLDR             X1, [X1,#0x10]                                         ; +0x100, 0x9e0324\nBLR             X1                                                     ; +0x104, 0x9e0328\nMOV             X0, X19                                                ; +0x108, 0x9e032c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x10c, 0x9e0330\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x110, 0x9e0334\nRET                                                                    ; +0x114, 0x9e0338\nMOV             X20, X0                                                ; +0x118, 0x9e033c\nMOV             X0, X19; p                                             ; +0x11c, 0x9e0340\nBL              _ZdlPv; operator delete(void *)                        ; +0x120, 0x9e0344\nMOV             X0, X20                                                ; +0x124, 0x9e0348\nBL              _Unwind_Resume                                         ; +0x128, 0x9e034c", "xrefs": ["SetupSmartTemplateLayer::onClick @ 0x9e0448", "BrowseSmartKeyLayer::onBack @ 0x9e06b8", "<???> @ 0xb41c8"], "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"}