{"type": "func", "start": 4295429892, "end": 4295430076, "name": "BrowseSmartTemplateLayer::create", "pseudocode": "// \n// BrowseSmartTemplateLayer::create from 0x100070f04 to 0x100070fbc (184 bytes)\n// \n// 2 xrefs:\n// > SetupSmartTemplateLayer::onClick @ 0x100070e40\n// > BrowseSmartKeyLayer::onBack @ 0x100073b08\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 BrowseSmartTemplateLayer::create(GJSmartTemplate *a1, SmartBrowseFilter a2)\n{\n  char *v3; // x19\n  SmartBrowseFilter v4; // w2\n\n  v3 = (char *)operator new(0x2A8u);\n  FLAlertLayer::FLAlertLayer((FLAlertLayer *)v3);\n  *(_QWORD *)v3 = off_100778E78;\n  *((_QWORD *)v3 + 40) = off_1007793A0;\n  *((_QWORD *)v3 + 41) = &off_100779410;\n  *((_QWORD *)v3 + 42) = off_100779428;\n  *((_QWORD *)v3 + 43) = off_100779448;\n  *((_QWORD *)v3 + 44) = off_100779468;\n  *((_QWORD *)v3 + 51) = off_100779490;\n  *((_QWORD *)v3 + 54) = off_100779510;\n  *((_DWORD *)v3 + 162) = 0;\n  *(_OWORD *)(v3 + 632) = 0u;\n  *((_QWORD *)v3 + 82) = 0;\n  *((_QWORD *)v3 + 84) = 0;\n  *((_QWORD *)v3 + 83) = 0;\n  if ( BrowseSmartTemplateLayer::init((BrowseSmartTemplateLayer *)v3, a1, v4) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 16LL))(v3);\n    return nullptr;\n  }\n  return (BrowseSmartTemplateLayer *)v3;\n}", "assembly": "; \n; BrowseSmartTemplateLayer::create from 0x100070f04 to 0x100070fbc (184 bytes)\n; \n; 2 xrefs:\n; > SetupSmartTemplateLayer::onClick @ 0x100070e40\n; > BrowseSmartKeyLayer::onBack @ 0x100073b08\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100070f04\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100070f08\nADD             X29, SP, #0x10                                         ; +0x8, 0x100070f0c\nMOV             X20, X0                                                ; +0xc, 0x100070f10\nMOV             W0, #0x2A8; __sz                                       ; +0x10, 0x100070f14\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x100070f18\nMOV             X19, X0                                                ; +0x18, 0x100070f1c\nBL              FLAlertLayer__FLAlertLayer                             ; +0x1c, 0x100070f20\nADRL            X8, off_100778E78                                      ; +0x20, 0x100070f24\nSTR             X8, [X19]                                              ; +0x28, 0x100070f2c\nADD             X9, X8, #(off_1007793A0 - 0x100778E78)                 ; +0x2c, 0x100070f30\nADD             X10, X8, #(off_100779410 - 0x100778E78)                ; +0x30, 0x100070f34\nSTP             X9, X10, [X19,#0x140]                                  ; +0x34, 0x100070f38\nADD             X9, X8, #(off_100779428 - 0x100778E78)                 ; +0x38, 0x100070f3c\nADD             X10, X8, #(off_100779448 - 0x100778E78)                ; +0x3c, 0x100070f40\nSTP             X9, X10, [X19,#0x150]                                  ; +0x40, 0x100070f44\nADD             X9, X8, #(off_100779468 - 0x100778E78)                 ; +0x44, 0x100070f48\nSTR             X9, [X19,#0x160]                                       ; +0x48, 0x100070f4c\nADD             X9, X8, #(off_100779490 - 0x100778E78)                 ; +0x4c, 0x100070f50\nSTR             X9, [X19,#0x198]                                       ; +0x50, 0x100070f54\nADD             X8, X8, #(off_100779510 - 0x100778E78)                 ; +0x54, 0x100070f58\nSTR             X8, [X19,#0x1B0]                                       ; +0x58, 0x100070f5c\nADD             X8, X19, #0x278                                        ; +0x5c, 0x100070f60\nSTR             WZR, [X19,#0x288]                                      ; +0x60, 0x100070f64\nMOVI            V0.16B, #0                                             ; +0x64, 0x100070f68\nSTR             Q0, [X8]                                               ; +0x68, 0x100070f6c\nSTR             XZR, [X19,#0x290]                                      ; +0x6c, 0x100070f70\nSTR             XZR, [X19,#0x2A0]                                      ; +0x70, 0x100070f74\nSTR             XZR, [X19,#0x298]                                      ; +0x74, 0x100070f78\nMOV             X0, X19                                                ; +0x78, 0x100070f7c\nMOV             X1, X20                                                ; +0x7c, 0x100070f80\nBL              BrowseSmartTemplateLayer__init                         ; +0x80, 0x100070f84\nCBZ             W0, loc_100070F98                                      ; +0x84, 0x100070f88\nMOV             X0, X19                                                ; +0x88, 0x100070f8c\nBL              cocos2d__CCObject__autorelease                         ; +0x8c, 0x100070f90\nB               loc_100070FAC                                          ; +0x90, 0x100070f94\nLDR             X8, [X19]                                              ; +0x94, 0x100070f98\nLDR             X8, [X8,#0x10]                                         ; +0x98, 0x100070f9c\nMOV             X0, X19                                                ; +0x9c, 0x100070fa0\nBLR             X8                                                     ; +0xa0, 0x100070fa4\nMOV             X19, #0                                                ; +0xa4, 0x100070fa8\nMOV             X0, X19                                                ; +0xa8, 0x100070fac\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xac, 0x100070fb0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb0, 0x100070fb4\nRET                                                                    ; +0xb4, 0x100070fb8", "xrefs": ["SetupSmartTemplateLayer::onClick @ 0x100070e40", "BrowseSmartKeyLayer::onBack @ 0x100073b08"], "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"}