{"type": "func", "start": 5371521936, "end": 5371522168, "name": "PurchaseItemPopup::create", "pseudocode": "// \n// PurchaseItemPopup::create from 0x1402aeb90 to 0x1402aec78 (232 bytes)\n// \n// 3 xrefs:\n// > GJPathPage::onUnlock @ 0x14028761c\n// > GJShopLayer::onSelectItem @ 0x1402abe7f\n// > <???> @ 0x1406d2294\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\nPurchaseItemPopup *PurchaseItemPopup::create(GJStoreItem *a1)\n{\n  PurchaseItemPopup *v2; // rdi\n\n  v2 = (PurchaseItemPopup *)operator new(0x288u);\n  FLAlertLayer::FLAlertLayer(v2);\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (PurchaseItemPopup_vtbl *)&PurchaseItemPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&PurchaseItemPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&PurchaseItemPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&PurchaseItemPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&PurchaseItemPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&PurchaseItemPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&PurchaseItemPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&PurchaseItemPopup::`vftable';\n  v2->m_storeItem = nullptr;\n  v2->m_delegate = nullptr;\n  if ( PurchaseItemPopup::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    ((void (__fastcall *)(PurchaseItemPopup *, __int64))v2->~PurchaseItemPopup)(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; PurchaseItemPopup::create from 0x1402aeb90 to 0x1402aec78 (232 bytes)\n; \n; 3 xrefs:\n; > GJPathPage::onUnlock @ 0x14028761c\n; > GJShopLayer::onSelectItem @ 0x1402abe7f\n; > <???> @ 0x1406d2294\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, 0x1402aeb90\npush    rdi                                                            ; +0x5, 0x1402aeb95\nsub     rsp, 20h                                                       ; +0x6, 0x1402aeb96\nmov     rbx, rcx                                                       ; +0xa, 0x1402aeb9a\nmov     ecx, 288h; Size                                                ; +0xd, 0x1402aeb9d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x1402aeba2\nmov     rdi, rax                                                       ; +0x17, 0x1402aeba7\nmov     [rsp+28h+arg_8], rax                                           ; +0x1a, 0x1402aebaa\nmov     rcx, rax                                                       ; +0x1f, 0x1402aebaf\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x22, 0x1402aebb2\nlea     rax, ??_7PurchaseItemPopup@@6B@; const PurchaseItemPopup::`vftable' ; +0x27, 0x1402aebb7\nmov     [rdi], rax                                                     ; +0x2e, 0x1402aebbe\nlea     rax, ??_7PurchaseItemPopup@@6B@_0; const PurchaseItemPopup::`vftable' ; +0x31, 0x1402aebc1\nmov     [rdi+140h], rax                                                ; +0x38, 0x1402aebc8\nlea     rax, ??_7PurchaseItemPopup@@6B@_1; const PurchaseItemPopup::`vftable' ; +0x3f, 0x1402aebcf\nmov     [rdi+148h], rax                                                ; +0x46, 0x1402aebd6\nlea     rax, ??_7PurchaseItemPopup@@6B@_2; const PurchaseItemPopup::`vftable' ; +0x4d, 0x1402aebdd\nmov     [rdi+150h], rax                                                ; +0x54, 0x1402aebe4\nlea     rax, ??_7PurchaseItemPopup@@6B@_3; const PurchaseItemPopup::`vftable' ; +0x5b, 0x1402aebeb\nmov     [rdi+158h], rax                                                ; +0x62, 0x1402aebf2\nlea     rax, ??_7PurchaseItemPopup@@6B@_4; const PurchaseItemPopup::`vftable' ; +0x69, 0x1402aebf9\nmov     [rdi+160h], rax                                                ; +0x70, 0x1402aec00\nlea     rax, ??_7PurchaseItemPopup@@6B@_5; const PurchaseItemPopup::`vftable' ; +0x77, 0x1402aec07\nmov     [rdi+198h], rax                                                ; +0x7e, 0x1402aec0e\nlea     rax, ??_7PurchaseItemPopup@@6B@_6; const PurchaseItemPopup::`vftable' ; +0x85, 0x1402aec15\nmov     [rdi+1B0h], rax                                                ; +0x8c, 0x1402aec1c\nmov     qword ptr [rdi+278h], 0                                        ; +0x93, 0x1402aec23\nmov     qword ptr [rdi+280h], 0                                        ; +0x9e, 0x1402aec2e\nmov     rdx, rbx                                                       ; +0xa9, 0x1402aec39\nmov     rcx, rdi                                                       ; +0xac, 0x1402aec3c\ncall    PurchaseItemPopup__init                                        ; +0xaf, 0x1402aec3f\nmov     rcx, rdi                                                       ; +0xb4, 0x1402aec44\ntest    al, al                                                         ; +0xb7, 0x1402aec47\njz      short loc_1402AEC5F                                            ; +0xb9, 0x1402aec49\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xbb, 0x1402aec4b\nmov     rax, rdi                                                       ; +0xc1, 0x1402aec51\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc4, 0x1402aec54\nadd     rsp, 20h                                                       ; +0xc9, 0x1402aec59\npop     rdi                                                            ; +0xcd, 0x1402aec5d\nretn                                                                   ; +0xce, 0x1402aec5e\nmov     r8, [rdi]                                                      ; +0xcf, 0x1402aec5f\nmov     edx, 1                                                         ; +0xd2, 0x1402aec62\ncall    qword ptr [r8+8]                                               ; +0xd7, 0x1402aec67\nxor     eax, eax                                                       ; +0xdb, 0x1402aec6b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xdd, 0x1402aec6d\nadd     rsp, 20h                                                       ; +0xe2, 0x1402aec72\npop     rdi                                                            ; +0xe6, 0x1402aec76\nretn                                                                   ; +0xe7, 0x1402aec77", "xrefs": ["GJPathPage::onUnlock @ 0x14028761c", "GJShopLayer::onSelectItem @ 0x1402abe7f", "<???> @ 0x1406d2294"], "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"}