{"type": "func", "start": 5370432944, "end": 5370433449, "name": "GJTransformControl::create", "pseudocode": "// \n// GJTransformControl::create from 0x1401a4db0 to 0x1401a4fa9 (505 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x1401a9e5e\n// > <???> @ 0x140919af0\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:27:49 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nchar *GJTransformControl::create()\n{\n  char *v0; // rbx\n  __int64 (__fastcall *v1)(char *); // rdx\n  char v2; // al\n\n  v0 = (char *)operator new(0x288u);\n  cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v0);\n  *(_QWORD *)v0 = &GJTransformControl::`vftable';\n  *((_QWORD *)v0 + 40) = &GJTransformControl::`vftable';\n  *((_QWORD *)v0 + 41) = &GJTransformControl::`vftable';\n  *((_QWORD *)v0 + 42) = &GJTransformControl::`vftable';\n  *((_QWORD *)v0 + 43) = &GJTransformControl::`vftable';\n  *((_QWORD *)v0 + 44) = &GJTransformControl::`vftable';\n  *((_QWORD *)v0 + 53) = 0;\n  *((_DWORD *)v0 + 108) = -1;\n  *((_WORD *)v0 + 218) = 0;\n  *((_QWORD *)v0 + 55) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 448));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 456));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 464));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 472));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 480));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 488));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 496));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 504));\n  *((_QWORD *)v0 + 64) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 520));\n  *((_QWORD *)v0 + 66) = 0;\n  *((_QWORD *)v0 + 67) = 0;\n  *((_QWORD *)v0 + 68) = 0;\n  *((_QWORD *)v0 + 69) = 0;\n  *((_QWORD *)v0 + 70) = 0;\n  *((_QWORD *)v0 + 71) = 0;\n  *((_QWORD *)v0 + 72) = 0;\n  *((_QWORD *)v0 + 73) = 0;\n  *((_DWORD *)v0 + 148) = 1065353216;\n  *(_QWORD *)(v0 + 596) = 1065353216;\n  *(_QWORD *)(v0 + 604) = 0;\n  *((_DWORD *)v0 + 153) = 0;\n  *((_DWORD *)v0 + 154) = 1065353216;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 620));\n  v0[628] = 0;\n  *((_DWORD *)v0 + 158) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 636));\n  v1 = *(__int64 (__fastcall **)(char *))(*(_QWORD *)v0 + 72LL);\n  if ( (char *)v1 == (char *)GJTransformControl::init )\n    v2 = GJTransformControl::init(v0);\n  else\n    v2 = v1(v0);\n  if ( v2 )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n    return v0;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJTransformControl::create from 0x1401a4db0 to 0x1401a4fa9 (505 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x1401a9e5e\n; > <???> @ 0x140919af0\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:27:49 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401a4db0\npush    rdi                                                            ; +0x5, 0x1401a4db5\nsub     rsp, 20h                                                       ; +0x6, 0x1401a4db6\nmov     ecx, 288h; Size                                                ; +0xa, 0x1401a4dba\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf, 0x1401a4dbf\nmov     rbx, rax                                                       ; +0x14, 0x1401a4dc4\nmov     [rsp+28h+arg_0], rax                                           ; +0x17, 0x1401a4dc7\nmov     rcx, rax                                                       ; +0x1c, 0x1401a4dcc\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x1f, 0x1401a4dcf\nnop                                                                    ; +0x25, 0x1401a4dd5\nlea     rax, ??_7GJTransformControl@@6B@; const GJTransformControl::`vftable' ; +0x26, 0x1401a4dd6\nmov     [rbx], rax                                                     ; +0x2d, 0x1401a4ddd\nlea     rax, ??_7GJTransformControl@@6B@_0; const GJTransformControl::`vftable' ; +0x30, 0x1401a4de0\nmov     [rbx+140h], rax                                                ; +0x37, 0x1401a4de7\nlea     rax, ??_7GJTransformControl@@6B@_1; const GJTransformControl::`vftable' ; +0x3e, 0x1401a4dee\nmov     [rbx+148h], rax                                                ; +0x45, 0x1401a4df5\nlea     rax, ??_7GJTransformControl@@6B@_2; const GJTransformControl::`vftable' ; +0x4c, 0x1401a4dfc\nmov     [rbx+150h], rax                                                ; +0x53, 0x1401a4e03\nlea     rax, ??_7GJTransformControl@@6B@_3; const GJTransformControl::`vftable' ; +0x5a, 0x1401a4e0a\nmov     [rbx+158h], rax                                                ; +0x61, 0x1401a4e11\nlea     rax, ??_7GJTransformControl@@6B@_4; const GJTransformControl::`vftable' ; +0x68, 0x1401a4e18\nmov     [rbx+160h], rax                                                ; +0x6f, 0x1401a4e1f\nxor     edi, edi                                                       ; +0x76, 0x1401a4e26\nmov     [rbx+1A8h], rdi                                                ; +0x78, 0x1401a4e28\nmov     dword ptr [rbx+1B0h], 0FFFFFFFFh                               ; +0x7f, 0x1401a4e2f\nmov     [rbx+1B4h], di                                                 ; +0x89, 0x1401a4e39\nmov     [rbx+1B8h], rdi                                                ; +0x90, 0x1401a4e40\nlea     rcx, [rbx+1C0h]                                                ; +0x97, 0x1401a4e47\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x9e, 0x1401a4e4e\nlea     rcx, [rbx+1C8h]                                                ; +0xa4, 0x1401a4e54\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xab, 0x1401a4e5b\nlea     rcx, [rbx+1D0h]                                                ; +0xb1, 0x1401a4e61\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xb8, 0x1401a4e68\nlea     rcx, [rbx+1D8h]                                                ; +0xbe, 0x1401a4e6e\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xc5, 0x1401a4e75\nlea     rcx, [rbx+1E0h]                                                ; +0xcb, 0x1401a4e7b\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xd2, 0x1401a4e82\nlea     rcx, [rbx+1E8h]                                                ; +0xd8, 0x1401a4e88\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xdf, 0x1401a4e8f\nlea     rcx, [rbx+1F0h]                                                ; +0xe5, 0x1401a4e95\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xec, 0x1401a4e9c\nlea     rcx, [rbx+1F8h]                                                ; +0xf2, 0x1401a4ea2\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xf9, 0x1401a4ea9\nmov     [rbx+200h], rdi                                                ; +0xff, 0x1401a4eaf\nlea     rcx, [rbx+208h]                                                ; +0x106, 0x1401a4eb6\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x10d, 0x1401a4ebd\nmov     [rbx+210h], rdi                                                ; +0x113, 0x1401a4ec3\nmov     [rbx+218h], rdi                                                ; +0x11a, 0x1401a4eca\nmov     [rbx+220h], rdi                                                ; +0x121, 0x1401a4ed1\nmov     [rbx+228h], rdi                                                ; +0x128, 0x1401a4ed8\nmov     [rbx+230h], rdi                                                ; +0x12f, 0x1401a4edf\nmov     [rbx+238h], rdi                                                ; +0x136, 0x1401a4ee6\nmov     [rbx+240h], rdi                                                ; +0x13d, 0x1401a4eed\nmov     [rbx+248h], rdi                                                ; +0x144, 0x1401a4ef4\nmov     dword ptr [rbx+250h], 3F800000h                                ; +0x14b, 0x1401a4efb\nmov     qword ptr [rbx+254h], 3F800000h                                ; +0x155, 0x1401a4f05\nmov     [rbx+25Ch], rdi                                                ; +0x160, 0x1401a4f10\nmov     [rbx+264h], edi                                                ; +0x167, 0x1401a4f17\nmov     dword ptr [rbx+268h], 3F800000h                                ; +0x16d, 0x1401a4f1d\nlea     rcx, [rbx+26Ch]                                                ; +0x177, 0x1401a4f27\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x17e, 0x1401a4f2e\nmov     [rbx+274h], dil                                                ; +0x184, 0x1401a4f34\nmov     [rbx+278h], edi                                                ; +0x18b, 0x1401a4f3b\nlea     rcx, [rbx+27Ch]                                                ; +0x191, 0x1401a4f41\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x198, 0x1401a4f48\nnop                                                                    ; +0x19e, 0x1401a4f4e\nmov     rax, [rbx]                                                     ; +0x19f, 0x1401a4f4f\nmov     rdx, [rax+48h]                                                 ; +0x1a2, 0x1401a4f52\nlea     rax, GJTransformControl__init                                  ; +0x1a6, 0x1401a4f56\nmov     rcx, rbx                                                       ; +0x1ad, 0x1401a4f5d\ncmp     rdx, rax                                                       ; +0x1b0, 0x1401a4f60\njnz     short loc_1401A4F6C                                            ; +0x1b3, 0x1401a4f63\ncall    GJTransformControl__init                                       ; +0x1b5, 0x1401a4f65\njmp     short loc_1401A4F6E                                            ; +0x1ba, 0x1401a4f6a\ncall    rdx                                                            ; +0x1bc, 0x1401a4f6c\ntest    al, al                                                         ; +0x1be, 0x1401a4f6e\njz      short loc_1401A4F89                                            ; +0x1c0, 0x1401a4f70\nmov     rcx, rbx                                                       ; +0x1c2, 0x1401a4f72\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1c5, 0x1401a4f75\nmov     rax, rbx                                                       ; +0x1cb, 0x1401a4f7b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1ce, 0x1401a4f7e\nadd     rsp, 20h                                                       ; +0x1d3, 0x1401a4f83\npop     rdi                                                            ; +0x1d7, 0x1401a4f87\nretn                                                                   ; +0x1d8, 0x1401a4f88\nmov     rcx, [rbx]                                                     ; +0x1d9, 0x1401a4f89\nmov     r8, [rcx+8]                                                    ; +0x1dc, 0x1401a4f8c\nmov     edx, 1                                                         ; +0x1e0, 0x1401a4f90\nmov     rcx, rbx                                                       ; +0x1e5, 0x1401a4f95\ncall    r8                                                             ; +0x1e8, 0x1401a4f98\nmov     rax, rdi                                                       ; +0x1eb, 0x1401a4f9b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1ee, 0x1401a4f9e\nadd     rsp, 20h                                                       ; +0x1f3, 0x1401a4fa3\npop     rdi                                                            ; +0x1f7, 0x1401a4fa7\nretn                                                                   ; +0x1f8, 0x1401a4fa8", "xrefs": ["EditorUI::init @ 0x1401a9e5e", "<???> @ 0x140919af0"], "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"}