{"type": "func", "start": 4295014368, "end": 4295014577, "name": "GJRotationControl::create", "pseudocode": "// \n// GJRotationControl::create from 0x10000b7e0 to 0x10000b8b1 (209 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x100009225\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\nGJRotationControl *__fastcall GJRotationControl::create()\n{\n  GJRotationControl *v0; // rbx\n\n  v0 = (GJRotationControl *)operator new(0x1C8u);\n  cocos2d::CCLayer::CCLayer(v0);\n  v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJRotationControl_vtbl *)off_1008B0F90;\n  v0->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1008B1410;\n  v0->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1008B1480;\n  v0->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_1008B1498;\n  v0->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_1008B14B8;\n  v0->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_1008B14D8;\n  sub_10028CC30(&v0->m_cursorDifference);\n  sub_10028CC30(&v0->m_controlPosition);\n  *(_QWORD *)&v0->m_startingRotation = 0;\n  v0->m_touchID = -1;\n  v0->m_delegate = nullptr;\n  if ( ((unsigned __int8 (__fastcall *)(GJRotationControl *))v0->init)(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJRotationControl *))v0->~GJRotationControl_0)(v0);\n    return nullptr;\n  }\n  return v0;\n}", "assembly": "; \n; GJRotationControl::create from 0x10000b7e0 to 0x10000b8b1 (209 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x100009225\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\npush    rbp                                                            ; +0x0, 0x10000b7e0\nmov     rbp, rsp                                                       ; +0x1, 0x10000b7e1\npush    r14                                                            ; +0x4, 0x10000b7e4\npush    rbx                                                            ; +0x6, 0x10000b7e6\nmov     edi, 1C8h; __sz                                                ; +0x7, 0x10000b7e7\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x10000b7ec\nmov     rbx, rax                                                       ; +0x11, 0x10000b7f1\nmov     rdi, rax                                                       ; +0x14, 0x10000b7f4\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x17, 0x10000b7f7\nlea     rax, off_1008B0F90                                             ; +0x1c, 0x10000b7fc\nmov     [rbx], rax                                                     ; +0x23, 0x10000b803\nlea     rax, off_1008B1410                                             ; +0x26, 0x10000b806\nmov     [rbx+140h], rax                                                ; +0x2d, 0x10000b80d\nlea     rax, off_1008B1480                                             ; +0x34, 0x10000b814\nmov     [rbx+148h], rax                                                ; +0x3b, 0x10000b81b\nlea     rax, off_1008B1498                                             ; +0x42, 0x10000b822\nmov     [rbx+150h], rax                                                ; +0x49, 0x10000b829\nlea     rax, off_1008B14B8                                             ; +0x50, 0x10000b830\nmov     [rbx+158h], rax                                                ; +0x57, 0x10000b837\nlea     rax, off_1008B14D8                                             ; +0x5e, 0x10000b83e\nmov     [rbx+160h], rax                                                ; +0x65, 0x10000b845\nlea     rdi, [rbx+194h]                                                ; +0x6c, 0x10000b84c\ncall    sub_10028CC30                                                  ; +0x73, 0x10000b853\nmov     rdi, rbx                                                       ; +0x78, 0x10000b858\nadd     rdi, 19Ch                                                      ; +0x7b, 0x10000b85b\ncall    sub_10028CC30                                                  ; +0x82, 0x10000b862\nmov     qword ptr [rbx+1B0h], 0                                        ; +0x87, 0x10000b867\nmov     dword ptr [rbx+1B8h], 0FFFFFFFFh                               ; +0x92, 0x10000b872\nmov     qword ptr [rbx+1C0h], 0                                        ; +0x9c, 0x10000b87c\nmov     rax, [rbx]                                                     ; +0xa7, 0x10000b887\nmov     rdi, rbx                                                       ; +0xaa, 0x10000b88a\ncall    qword ptr [rax+50h]                                            ; +0xad, 0x10000b88d\ntest    al, al                                                         ; +0xb0, 0x10000b890\njz      short loc_10000B89E                                            ; +0xb2, 0x10000b892\nmov     rdi, rbx                                                       ; +0xb4, 0x10000b894\ncall    cocos2d__CCObject__autorelease                                 ; +0xb7, 0x10000b897\njmp     short loc_10000B8A9                                            ; +0xbc, 0x10000b89c\nmov     rax, [rbx]                                                     ; +0xbe, 0x10000b89e\nmov     rdi, rbx                                                       ; +0xc1, 0x10000b8a1\ncall    qword ptr [rax+10h]                                            ; +0xc4, 0x10000b8a4\nxor     ebx, ebx                                                       ; +0xc7, 0x10000b8a7\nmov     rax, rbx                                                       ; +0xc9, 0x10000b8a9\npop     rbx                                                            ; +0xcc, 0x10000b8ac\npop     r14                                                            ; +0xcd, 0x10000b8ad\npop     rbp                                                            ; +0xcf, 0x10000b8af\nretn                                                                   ; +0xd0, 0x10000b8b0", "xrefs": ["EditorUI::init @ 0x100009225"], "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"}