{"type": "func", "start": 5372478784, "end": 5372479056, "name": "GJPFollowCommandLayer::create", "pseudocode": "// \n// GJPFollowCommandLayer::create from 0x140398540 to 0x140398650 (272 bytes)\n// \n// 2 xrefs:\n// > EditorUI::editObject @ 0x1401bc6be\n// > <???> @ 0x140923174\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:14 +0000\n// \n\ncocos2d::CCObject *__fastcall GJPFollowCommandLayer::create(__int64 a1, __int64 a2)\n{\n  cocos2d::CCObject *v4; // rsi\n\n  v4 = (cocos2d::CCObject *)operator new(0x3E8u);\n  SetupTriggerPopup::SetupTriggerPopup((__int64)v4);\n  *(_QWORD *)v4 = &GJPFollowCommandLayer::`vftable';\n  *((_QWORD *)v4 + 40) = &GJPFollowCommandLayer::`vftable';\n  *((_QWORD *)v4 + 41) = &GJPFollowCommandLayer::`vftable';\n  *((_QWORD *)v4 + 42) = &GJPFollowCommandLayer::`vftable';\n  *((_QWORD *)v4 + 43) = &GJPFollowCommandLayer::`vftable';\n  *((_QWORD *)v4 + 44) = &GJPFollowCommandLayer::`vftable';\n  *((_QWORD *)v4 + 51) = &GJPFollowCommandLayer::`vftable';\n  *((_QWORD *)v4 + 54) = &GJPFollowCommandLayer::`vftable';\n  *((_QWORD *)v4 + 68) = &GJPFollowCommandLayer::`vftable';\n  *((_QWORD *)v4 + 83) = &GJPFollowCommandLayer::`vftable';\n  *((_QWORD *)v4 + 84) = &GJPFollowCommandLayer::`vftable';\n  if ( (unsigned __int8)GJPFollowCommandLayer::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n    return v4;\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJPFollowCommandLayer::create from 0x140398540 to 0x140398650 (272 bytes)\n; \n; 2 xrefs:\n; > EditorUI::editObject @ 0x1401bc6be\n; > <???> @ 0x140923174\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:14 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140398540\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140398545\npush    rdi                                                            ; +0xa, 0x14039854a\nsub     rsp, 20h                                                       ; +0xb, 0x14039854b\nmov     rbx, rdx                                                       ; +0xf, 0x14039854f\nmov     rdi, rcx                                                       ; +0x12, 0x140398552\nmov     ecx, 3E8h; Size                                                ; +0x15, 0x140398555\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14039855a\nmov     rsi, rax                                                       ; +0x1f, 0x14039855f\nmov     [rsp+28h+arg_10], rax                                          ; +0x22, 0x140398562\nmov     rcx, rax                                                       ; +0x27, 0x140398567\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x2a, 0x14039856a\nlea     rax, ??_7GJPFollowCommandLayer@@6B@; const GJPFollowCommandLayer::`vftable' ; +0x2f, 0x14039856f\nmov     [rsi], rax                                                     ; +0x36, 0x140398576\nlea     rax, ??_7GJPFollowCommandLayer@@6B@_0; const GJPFollowCommandLayer::`vftable' ; +0x39, 0x140398579\nmov     [rsi+140h], rax                                                ; +0x40, 0x140398580\nlea     rax, ??_7GJPFollowCommandLayer@@6B@_1; const GJPFollowCommandLayer::`vftable' ; +0x47, 0x140398587\nmov     [rsi+148h], rax                                                ; +0x4e, 0x14039858e\nlea     rax, ??_7GJPFollowCommandLayer@@6B@_2; const GJPFollowCommandLayer::`vftable' ; +0x55, 0x140398595\nmov     [rsi+150h], rax                                                ; +0x5c, 0x14039859c\nlea     rax, ??_7GJPFollowCommandLayer@@6B@_3; const GJPFollowCommandLayer::`vftable' ; +0x63, 0x1403985a3\nmov     [rsi+158h], rax                                                ; +0x6a, 0x1403985aa\nlea     rax, ??_7GJPFollowCommandLayer@@6B@_4; const GJPFollowCommandLayer::`vftable' ; +0x71, 0x1403985b1\nmov     [rsi+160h], rax                                                ; +0x78, 0x1403985b8\nlea     rax, ??_7GJPFollowCommandLayer@@6B@_5; const GJPFollowCommandLayer::`vftable' ; +0x7f, 0x1403985bf\nmov     [rsi+198h], rax                                                ; +0x86, 0x1403985c6\nlea     rax, ??_7GJPFollowCommandLayer@@6B@_6; const GJPFollowCommandLayer::`vftable' ; +0x8d, 0x1403985cd\nmov     [rsi+1B0h], rax                                                ; +0x94, 0x1403985d4\nlea     rax, ??_7GJPFollowCommandLayer@@6B@_7; const GJPFollowCommandLayer::`vftable' ; +0x9b, 0x1403985db\nmov     [rsi+220h], rax                                                ; +0xa2, 0x1403985e2\nlea     rax, ??_7GJPFollowCommandLayer@@6B@_8; const GJPFollowCommandLayer::`vftable' ; +0xa9, 0x1403985e9\nmov     [rsi+298h], rax                                                ; +0xb0, 0x1403985f0\nlea     rax, ??_7GJPFollowCommandLayer@@6B@_9; const GJPFollowCommandLayer::`vftable' ; +0xb7, 0x1403985f7\nmov     [rsi+2A0h], rax                                                ; +0xbe, 0x1403985fe\nmov     r8, rbx                                                        ; +0xc5, 0x140398605\nmov     rdx, rdi                                                       ; +0xc8, 0x140398608\nmov     rcx, rsi                                                       ; +0xcb, 0x14039860b\ncall    GJPFollowCommandLayer__init                                    ; +0xce, 0x14039860e\nmov     rcx, rsi                                                       ; +0xd3, 0x140398613\ntest    al, al                                                         ; +0xd6, 0x140398616\njz      short loc_140398633                                            ; +0xd8, 0x140398618\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xda, 0x14039861a\nmov     rax, rsi                                                       ; +0xe0, 0x140398620\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xe3, 0x140398623\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xe8, 0x140398628\nadd     rsp, 20h                                                       ; +0xed, 0x14039862d\npop     rdi                                                            ; +0xf1, 0x140398631\nretn                                                                   ; +0xf2, 0x140398632\nmov     rax, [rsi]                                                     ; +0xf3, 0x140398633\nmov     edx, 1                                                         ; +0xf6, 0x140398636\ncall    qword ptr [rax+8]                                              ; +0xfb, 0x14039863b\nxor     eax, eax                                                       ; +0xfe, 0x14039863e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x100, 0x140398640\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x105, 0x140398645\nadd     rsp, 20h                                                       ; +0x10a, 0x14039864a\npop     rdi                                                            ; +0x10e, 0x14039864e\nretn                                                                   ; +0x10f, 0x14039864f", "xrefs": ["EditorUI::editObject @ 0x1401bc6be", "<???> @ 0x140923174"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}