{"type": "func", "start": 5371352240, "end": 5371352535, "name": "GJPathPage::create", "pseudocode": "// \n// GJPathPage::create from 0x1402854b0 to 0x1402855d7 (295 bytes)\n// \n// 3 xrefs:\n// > GJPathsLayer::onPath @ 0x1402851e7\n// > GJPathPage::unlockAnimationFinished @ 0x140288f66\n// > <???> @ 0x1406d1574\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\n// Hidden C++ exception states: #wind=1\nGJPathPage *GJPathPage::create(int a1, GJPathsLayer *a2)\n{\n  GJPathPage *v4; // rsi\n\n  v4 = (GJPathPage *)operator new(0x2A0u);\n  FLAlertLayer::FLAlertLayer(v4);\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJPathPage_vtbl *)&GJPathPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJPathPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJPathPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJPathPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJPathPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJPathPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJPathPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&GJPathPage::`vftable';\n  v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&GJPathPage::`vftable';\n  v4->GJPurchaseDelegate::__vftable = (GJPurchaseDelegate_vtbl *)&GJPathPage::`vftable';\n  v4->m_pathsLayer = nullptr;\n  v4->m_pathNumber = 0;\n  v4->m_animationPlaying = 0;\n  v4->m_dialogIndex = 0;\n  if ( GJPathPage::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n    return v4;\n  }\n  else\n  {\n    ((void (__fastcall *)(GJPathPage *, __int64))v4->~GJPathPage)(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJPathPage::create from 0x1402854b0 to 0x1402855d7 (295 bytes)\n; \n; 3 xrefs:\n; > GJPathsLayer::onPath @ 0x1402851e7\n; > GJPathPage::unlockAnimationFinished @ 0x140288f66\n; > <???> @ 0x1406d1574\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402854b0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1402854b5\npush    rdi                                                            ; +0xa, 0x1402854ba\nsub     rsp, 20h                                                       ; +0xb, 0x1402854bb\nmov     rbx, rdx                                                       ; +0xf, 0x1402854bf\nmov     edi, ecx                                                       ; +0x12, 0x1402854c2\nmov     ecx, 2A0h; Size                                                ; +0x14, 0x1402854c4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19, 0x1402854c9\nmov     rsi, rax                                                       ; +0x1e, 0x1402854ce\nmov     [rsp+28h+arg_10], rax                                          ; +0x21, 0x1402854d1\nmov     rcx, rax                                                       ; +0x26, 0x1402854d6\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x29, 0x1402854d9\nlea     rax, ??_7GJPathPage@@6B@; const GJPathPage::`vftable'          ; +0x2e, 0x1402854de\nmov     [rsi], rax                                                     ; +0x35, 0x1402854e5\nlea     rax, ??_7GJPathPage@@6B@_0; const GJPathPage::`vftable'        ; +0x38, 0x1402854e8\nmov     [rsi+140h], rax                                                ; +0x3f, 0x1402854ef\nlea     rax, ??_7GJPathPage@@6B@_1; const GJPathPage::`vftable'        ; +0x46, 0x1402854f6\nmov     [rsi+148h], rax                                                ; +0x4d, 0x1402854fd\nlea     rax, ??_7GJPathPage@@6B@_2; const GJPathPage::`vftable'        ; +0x54, 0x140285504\nmov     [rsi+150h], rax                                                ; +0x5b, 0x14028550b\nlea     rax, ??_7GJPathPage@@6B@_3; const GJPathPage::`vftable'        ; +0x62, 0x140285512\nmov     [rsi+158h], rax                                                ; +0x69, 0x140285519\nlea     rax, ??_7GJPathPage@@6B@_4; const GJPathPage::`vftable'        ; +0x70, 0x140285520\nmov     [rsi+160h], rax                                                ; +0x77, 0x140285527\nlea     rax, ??_7GJPathPage@@6B@_5; const GJPathPage::`vftable'        ; +0x7e, 0x14028552e\nmov     [rsi+198h], rax                                                ; +0x85, 0x140285535\nlea     rax, ??_7GJPathPage@@6B@_6; const GJPathPage::`vftable'        ; +0x8c, 0x14028553c\nmov     [rsi+1B0h], rax                                                ; +0x93, 0x140285543\nlea     rax, ??_7GJPathPage@@6B@_7; const GJPathPage::`vftable'        ; +0x9a, 0x14028554a\nmov     [rsi+278h], rax                                                ; +0xa1, 0x140285551\nlea     rax, ??_7GJPathPage@@6B@_8; const GJPathPage::`vftable'        ; +0xa8, 0x140285558\nmov     [rsi+280h], rax                                                ; +0xaf, 0x14028555f\nmov     qword ptr [rsi+288h], 0                                        ; +0xb6, 0x140285566\nmov     dword ptr [rsi+290h], 0                                        ; +0xc1, 0x140285571\nmov     byte ptr [rsi+294h], 0                                         ; +0xcb, 0x14028557b\nmov     dword ptr [rsi+298h], 0                                        ; +0xd2, 0x140285582\nmov     r8, rbx                                                        ; +0xdc, 0x14028558c\nmov     edx, edi                                                       ; +0xdf, 0x14028558f\nmov     rcx, rsi                                                       ; +0xe1, 0x140285591\ncall    GJPathPage__init                                               ; +0xe4, 0x140285594\nmov     rcx, rsi                                                       ; +0xe9, 0x140285599\ntest    al, al                                                         ; +0xec, 0x14028559c\njz      short loc_1402855B9                                            ; +0xee, 0x14028559e\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xf0, 0x1402855a0\nmov     rax, rsi                                                       ; +0xf6, 0x1402855a6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf9, 0x1402855a9\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xfe, 0x1402855ae\nadd     rsp, 20h                                                       ; +0x103, 0x1402855b3\npop     rdi                                                            ; +0x107, 0x1402855b7\nretn                                                                   ; +0x108, 0x1402855b8\nmov     r8, [rsi]                                                      ; +0x109, 0x1402855b9\nmov     edx, 1                                                         ; +0x10c, 0x1402855bc\ncall    qword ptr [r8+8]                                               ; +0x111, 0x1402855c1\nxor     eax, eax                                                       ; +0x115, 0x1402855c5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x117, 0x1402855c7\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x11c, 0x1402855cc\nadd     rsp, 20h                                                       ; +0x121, 0x1402855d1\npop     rdi                                                            ; +0x125, 0x1402855d5\nretn                                                                   ; +0x126, 0x1402855d6", "xrefs": ["GJPathsLayer::onPath @ 0x1402851e7", "GJPathPage::unlockAnimationFinished @ 0x140288f66", "<???> @ 0x1406d1574"], "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"}