{"type": "func", "start": 4301522768, "end": 4301523019, "name": "GJRotationControl::create", "pseudocode": "// \n// GJRotationControl::create from 0x100640750 to 0x10064084b (251 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x100005501\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 12:34:42 +0000\n// \n\n_QWORD *GJRotationControl::create()\n{\n  _QWORD *v0; // rbx\n\n  v0 = operator new(0x208u);\n  cocos2d::CCLayer::CCLayer((__int64)v0);\n  *v0 = off_100B812E8;\n  v0[40] = off_100B81778;\n  v0[41] = &off_100B817E8;\n  v0[42] = off_100B81800;\n  v0[43] = off_100B81820;\n  v0[44] = off_100B81848;\n  sub_1002782A0((_QWORD *)((char *)v0 + 404));\n  sub_1002782A0((_QWORD *)((char *)v0 + 412));\n  v0[54] = 0;\n  *((_DWORD *)v0 + 110) = -1;\n  v0[56] = 0;\n  *((_BYTE *)v0 + 456) = 0;\n  *((_OWORD *)v0 + 29) = 0;\n  *((_OWORD *)v0 + 30) = 0;\n  *((_OWORD *)v0 + 31) = 0;\n  v0[64] = 0;\n  if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))(*v0 + 80LL))(v0) )\n  {\n    cocos2d::CCObject::autorelease((__int64)v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v0 + 16LL))(v0);\n    return nullptr;\n  }\n  return v0;\n}", "assembly": "; \n; GJRotationControl::create from 0x100640750 to 0x10064084b (251 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x100005501\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 12:34:42 +0000\n; \npush    rbp                                                            ; +0x0, 0x100640750\nmov     rbp, rsp                                                       ; +0x1, 0x100640751\npush    r14                                                            ; +0x4, 0x100640754\npush    rbx                                                            ; +0x6, 0x100640756\nmov     edi, 208h; __sz                                                ; +0x7, 0x100640757\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x10064075c\nmov     rbx, rax                                                       ; +0x11, 0x100640761\nmov     rdi, rax                                                       ; +0x14, 0x100640764\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x17, 0x100640767\nlea     rax, off_100B812E8                                             ; +0x1c, 0x10064076c\nmov     [rbx], rax                                                     ; +0x23, 0x100640773\nlea     rax, off_100B81778                                             ; +0x26, 0x100640776\nmov     [rbx+140h], rax                                                ; +0x2d, 0x10064077d\nlea     rax, off_100B817E8                                             ; +0x34, 0x100640784\nmov     [rbx+148h], rax                                                ; +0x3b, 0x10064078b\nlea     rax, off_100B81800                                             ; +0x42, 0x100640792\nmov     [rbx+150h], rax                                                ; +0x49, 0x100640799\nlea     rax, off_100B81820                                             ; +0x50, 0x1006407a0\nmov     [rbx+158h], rax                                                ; +0x57, 0x1006407a7\nlea     rax, off_100B81848                                             ; +0x5e, 0x1006407ae\nmov     [rbx+160h], rax                                                ; +0x65, 0x1006407b5\nlea     rdi, [rbx+194h]                                                ; +0x6c, 0x1006407bc\ncall    sub_1002782A0                                                  ; +0x73, 0x1006407c3\nmov     rdi, rbx                                                       ; +0x78, 0x1006407c8\nadd     rdi, 19Ch                                                      ; +0x7b, 0x1006407cb\ncall    sub_1002782A0                                                  ; +0x82, 0x1006407d2\nmov     qword ptr [rbx+1B0h], 0                                        ; +0x87, 0x1006407d7\nmov     dword ptr [rbx+1B8h], 0FFFFFFFFh                               ; +0x92, 0x1006407e2\nmov     qword ptr [rbx+1C0h], 0                                        ; +0x9c, 0x1006407ec\nmov     byte ptr [rbx+1C8h], 0                                         ; +0xa7, 0x1006407f7\nxorps   xmm0, xmm0                                                     ; +0xae, 0x1006407fe\nmovups  xmmword ptr [rbx+1D0h], xmm0                                   ; +0xb1, 0x100640801\nmovups  xmmword ptr [rbx+1E0h], xmm0                                   ; +0xb8, 0x100640808\nmovups  xmmword ptr [rbx+1F0h], xmm0                                   ; +0xbf, 0x10064080f\nmov     qword ptr [rbx+200h], 0                                        ; +0xc6, 0x100640816\nmov     rax, [rbx]                                                     ; +0xd1, 0x100640821\nmov     rdi, rbx                                                       ; +0xd4, 0x100640824\ncall    qword ptr [rax+50h]                                            ; +0xd7, 0x100640827\ntest    al, al                                                         ; +0xda, 0x10064082a\njz      short loc_100640838                                            ; +0xdc, 0x10064082c\nmov     rdi, rbx                                                       ; +0xde, 0x10064082e\ncall    cocos2d__CCObject__autorelease                                 ; +0xe1, 0x100640831\njmp     short loc_100640843                                            ; +0xe6, 0x100640836\nmov     rax, [rbx]                                                     ; +0xe8, 0x100640838\nmov     rdi, rbx                                                       ; +0xeb, 0x10064083b\ncall    qword ptr [rax+10h]                                            ; +0xee, 0x10064083e\nxor     ebx, ebx                                                       ; +0xf1, 0x100640841\nmov     rax, rbx                                                       ; +0xf3, 0x100640843\npop     rbx                                                            ; +0xf6, 0x100640846\npop     r14                                                            ; +0xf7, 0x100640847\npop     rbp                                                            ; +0xf9, 0x100640849\nretn                                                                   ; +0xfa, 0x10064084a", "xrefs": ["EditorUI::init @ 0x100005501"], "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"}