{"type": "func", "start": 5502928, "end": 5503156, "name": "BrowseSmartKeyLayer::create", "pseudocode": "// \n// BrowseSmartKeyLayer::create from 0x53f7d0 to 0x53f8b4 (228 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartTemplateLayer::onTemplateObject @ 0x53f932\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 *__fastcall BrowseSmartKeyLayer::create(cocos2d::CCObject *a1, int a2)\n{\n  BrowseSmartTemplateLayer *v3; // r4\n  int v4; // r6\n  BrowseSmartTemplateLayer_vtbl *v5; // r3\n  BrowseSmartTemplateLayer *v6; // r0\n  _DWORD v8[2]; // [sp+0h] [bp-8h] BYREF\n\n  v8[0] = a1;\n  v8[1] = a2;\n  v3 = (BrowseSmartTemplateLayer *)operator new(0x210u);\n  FLAlertLayer::FLAlertLayer(v3);\n  v3->m_template = nullptr;\n  v3->m_pages = nullptr;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (BrowseSmartTemplateLayer_vtbl *)&off_A86F98;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A8722C;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A87264;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A87270;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A87280;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A87290;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A872E4;\n  v3->m_page = 0;\n  v3->m_nextPageBtn = nullptr;\n  v3->m_prevPageBtn = nullptr;\n  v3->m_dotsArray = nullptr;\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A872A4;\n  v3[1].m_uID = 0;\n  v3[1].FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (BrowseSmartTemplateLayer_vtbl *)&unk_ACDDA8;\n  sub_775C20(v8);\n  v4 = BrowseSmartKeyLayer::init(v3, a1, (int)v8);\n  sub_774008(v8);\n  if ( v4 )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    v5 = v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v6 = v3;\n    v3 = nullptr;\n    v5->~BrowseSmartTemplateLayer_0(v6);\n  }\n  return v3;\n}", "assembly": "; \n; BrowseSmartKeyLayer::create from 0x53f7d0 to 0x53f8b4 (228 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartTemplateLayer::onTemplateObject @ 0x53f932\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          {R0,R1,R4-R8,LR}                                       ; +0x0, 0x53f7d0\nMOV             R6, R0                                                 ; +0x4, 0x53f7d4\nLDR             R5, =(__stack_chk_guard_ptr - 0x53F7E2)                ; +0x6, 0x53f7d6\nMOV.W           R0, #0x210; unsigned int                               ; +0x8, 0x53f7d8\nMOV             R7, R1                                                 ; +0xc, 0x53f7dc\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x53f7de\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x53f7e0\nLDR             R3, [R5]                                               ; +0x12, 0x53f7e2\nSTR             R3, [SP,#8+var_4]                                      ; +0x14, 0x53f7e4\nBL              _Znwj; operator new(uint)                              ; +0x16, 0x53f7e6\nMOV             R4, R0                                                 ; +0x1a, 0x53f7ea\nBL              _ZN12FLAlertLayerC2Ev; FLAlertLayer::FLAlertLayer(void) ; +0x1c, 0x53f7ec\nLDR             R3, =(_ZTV19BrowseSmartKeyLayer_ptr - 0x53F7FE)        ; +0x20, 0x53f7f0\nMOVS            R2, #0                                                 ; +0x22, 0x53f7f2\nMOV             R0, SP                                                 ; +0x24, 0x53f7f4\nSTR.W           R2, [R4,#0x1F0]                                        ; +0x26, 0x53f7f6\nADD             R3, PC; _ZTV19BrowseSmartKeyLayer_ptr                  ; +0x2a, 0x53f7fa\nLDR             R3, [R3]; `vtable for'BrowseSmartKeyLayer ...          ; +0x2c, 0x53f7fc\nSTR.W           R2, [R4,#0x1F4]                                        ; +0x2e, 0x53f7fe\nADD.W           R1, R3, #8                                             ; +0x32, 0x53f802\nSTR             R1, [R4]                                               ; +0x36, 0x53f806\nADD.W           R1, R3, #0x29C                                         ; +0x38, 0x53f808\nSTR.W           R1, [R4,#0x108]                                        ; +0x3c, 0x53f80c\nADD.W           R1, R3, #0x2D4                                         ; +0x40, 0x53f810\nSTR.W           R1, [R4,#0x10C]                                        ; +0x44, 0x53f814\nADD.W           R1, R3, #0x2E0                                         ; +0x48, 0x53f818\nSTR.W           R1, [R4,#0x110]                                        ; +0x4c, 0x53f81c\nADD.W           R1, R3, #0x2F0                                         ; +0x50, 0x53f820\nSTR.W           R1, [R4,#0x114]                                        ; +0x54, 0x53f824\nADD.W           R1, R3, #0x300                                         ; +0x58, 0x53f828\nSTR.W           R1, [R4,#0x118]                                        ; +0x5c, 0x53f82c\nADD.W           R1, R3, #0x314                                         ; +0x60, 0x53f830\nADD.W           R3, R3, #0x354                                         ; +0x64, 0x53f834\nSTR.W           R3, [R4,#0x14C]                                        ; +0x68, 0x53f838\nMOV             R8, SP                                                 ; +0x6c, 0x53f83c\nLDR             R3, =(off_AB5BA0 - 0x53F848)                           ; +0x6e, 0x53f83e\nSTR.W           R2, [R4,#0x1F8]                                        ; +0x70, 0x53f840\nADD             R3, PC; off_AB5BA0                                     ; +0x74, 0x53f844\nLDR             R3, [R3]; dword_ACDD9C                                 ; +0x76, 0x53f846\nSTR.W           R2, [R4,#0x1FC]                                        ; +0x78, 0x53f848\nSTR.W           R2, [R4,#0x200]                                        ; +0x7c, 0x53f84c\nADDS            R3, #0xC                                               ; +0x80, 0x53f850\nSTR.W           R2, [R4,#0x204]                                        ; +0x82, 0x53f852\nSTR.W           R1, [R4,#0x13C]                                        ; +0x86, 0x53f856\nMOV             R1, R7                                                 ; +0x8a, 0x53f85a\nSTR.W           R2, [R4,#0x20C]                                        ; +0x8c, 0x53f85c\nSTR.W           R3, [R4,#0x208]                                        ; +0x90, 0x53f860\nBL              sub_775C20                                             ; +0x94, 0x53f864\nMOV             R0, R4                                                 ; +0x98, 0x53f868\nMOV             R1, R6                                                 ; +0x9a, 0x53f86a\nMOV             R2, SP                                                 ; +0x9c, 0x53f86c\nBL              _ZN19BrowseSmartKeyLayer4initEP15GJSmartTemplateSs; BrowseSmartKeyLayer::init(GJSmartTemplate *,std::string) ; +0x9e, 0x53f86e\nMOV             R6, R0                                                 ; +0xa2, 0x53f872\nMOV             R0, SP                                                 ; +0xa4, 0x53f874\nBL              sub_774008                                             ; +0xa6, 0x53f876\nCBZ             R6, loc_53F88C                                         ; +0xaa, 0x53f87a\nMOV             R0, R4; this                                           ; +0xac, 0x53f87c\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xae, 0x53f87e\nB               loc_53F896                                             ; +0xb2, 0x53f882\nMOV             R0, R8                                                 ; +0xb4, 0x53f884\nBL              sub_774008                                             ; +0xb6, 0x53f886\nB               loc_53F8AA                                             ; +0xba, 0x53f88a\nLDR             R3, [R4]                                               ; +0xbc, 0x53f88c\nMOV             R0, R4                                                 ; +0xbe, 0x53f88e\nMOV             R4, R6                                                 ; +0xc0, 0x53f890\nLDR             R3, [R3,#8]                                            ; +0xc2, 0x53f892\nBLX             R3                                                     ; +0xc4, 0x53f894\nLDR             R2, [SP,#8+var_4]                                      ; +0xc6, 0x53f896\nMOV             R0, R4                                                 ; +0xc8, 0x53f898\nLDR             R3, [R5]                                               ; +0xca, 0x53f89a\nCMP             R2, R3                                                 ; +0xcc, 0x53f89c\nBEQ             loc_53F8AE                                             ; +0xce, 0x53f89e\nBLX             __stack_chk_fail                                       ; +0xd0, 0x53f8a0\nMOV             R0, R4; p                                              ; +0xd4, 0x53f8a4\nBL              _ZdlPv; operator delete(void *)                        ; +0xd6, 0x53f8a6\nBL              __cxa_end_cleanup                                      ; +0xda, 0x53f8aa\nADD             SP, SP, #8                                             ; +0xde, 0x53f8ae\nPOP.W           {R4-R8,PC}                                             ; +0xe0, 0x53f8b0", "xrefs": ["BrowseSmartTemplateLayer::onTemplateObject @ 0x53f932"], "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"}