{"type": "func", "start": 4295301392, "end": 4295301623, "name": "GJRotationControl::init", "pseudocode": "// \n// GJRotationControl::init from 0x100051910 to 0x1000519f7 (231 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008b0fe0\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\nbool __fastcall GJRotationControl::init(GJRotationControl *a1)\n{\n  bool result; // al\n  bool v2; // r12\n  double v3; // xmm0_8\n  cocos2d::CCSprite *v4; // rax\n  double v5; // xmm0_8\n  _BYTE v6[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  result = cocos2d::CCLayer::init(a1);\n  if ( result )\n  {\n    v2 = result;\n    ((void (__fastcall *)(GJRotationControl *, __int64))a1->setTouchEnabled)(a1, 1);\n    sub_10028CBE0(v6, 60.0, 0.0);\n    v3 = sub_10028CC90();\n    ((void (__fastcall *)(GJRotationControl *, __int64 *, double))a1->setAnchorPoint)(a1, &qword_10099EC08, v3);\n    v4 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_rotationControlBtn01_001.png\");\n    a1->m_controlSprite = v4;\n    ((void (__fastcall *)(GJRotationControl *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v4, 1);\n    *(_QWORD *)&a1->m_startingRotation = 0;\n    sub_10028CBE0(v6, 60.0, -0.0);\n    v5 = sub_10028CC90();\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *, double))a1->m_controlSprite->setPosition)(\n      a1->m_controlSprite,\n      &a1->m_controlPosition,\n      v5);\n    return v2;\n  }\n  return result;\n}", "assembly": "; \n; GJRotationControl::init from 0x100051910 to 0x1000519f7 (231 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008b0fe0\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, 0x100051910\nmov     rbp, rsp                                                       ; +0x1, 0x100051911\npush    r15                                                            ; +0x4, 0x100051914\npush    r14                                                            ; +0x6, 0x100051916\npush    r12                                                            ; +0x8, 0x100051918\npush    rbx                                                            ; +0xa, 0x10005191a\nsub     rsp, 10h                                                       ; +0xb, 0x10005191b\nmov     rbx, rdi                                                       ; +0xf, 0x10005191f\ncall    cocos2d__CCLayer__init                                         ; +0x12, 0x100051922\ntest    al, al                                                         ; +0x17, 0x100051927\njz      loc_1000519EA                                                  ; +0x19, 0x100051929\nmov     rcx, [rbx]                                                     ; +0x1f, 0x10005192f\nmov     rdi, rbx                                                       ; +0x22, 0x100051932\nmov     esi, 1                                                         ; +0x25, 0x100051935\nmov     r12d, eax                                                      ; +0x2a, 0x10005193a\ncall    qword ptr [rcx+3D8h]                                           ; +0x2d, 0x10005193d\nlea     r15, [rbp+var_28]                                              ; +0x33, 0x100051943\nmovss   xmm0, cs:dword_100815028                                       ; +0x37, 0x100051947\nxorps   xmm1, xmm1                                                     ; +0x3f, 0x10005194f\nmov     rdi, r15                                                       ; +0x42, 0x100051952\ncall    sub_10028CBE0                                                  ; +0x45, 0x100051955\nlea     r14, [rbx+19Ch]                                                ; +0x4a, 0x10005195a\nmov     rdi, r14                                                       ; +0x51, 0x100051961\nmov     rsi, r15                                                       ; +0x54, 0x100051964\ncall    sub_10028CC90                                                  ; +0x57, 0x100051967\nmov     rax, [rbx]                                                     ; +0x5c, 0x10005196c\nlea     rsi, qword_10099EC08                                           ; +0x5f, 0x10005196f\nmov     rdi, rbx                                                       ; +0x66, 0x100051976\ncall    qword ptr [rax+118h]                                           ; +0x69, 0x100051979\nlea     rdi, aGjRotationcont; \"GJ_rotationControlBtn01_001.png\"        ; +0x6f, 0x10005197f\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x76, 0x100051986\nmov     [rbx+1A8h], rax                                                ; +0x7b, 0x10005198b\nmov     rcx, [rbx]                                                     ; +0x82, 0x100051992\nmov     rdi, rbx                                                       ; +0x85, 0x100051995\nmov     rsi, rax                                                       ; +0x88, 0x100051998\nmov     edx, 1                                                         ; +0x8b, 0x10005199b\ncall    qword ptr [rcx+1C0h]                                           ; +0x90, 0x1000519a0\nmov     qword ptr [rbx+1B0h], 0                                        ; +0x96, 0x1000519a6\nmovss   xmm1, cs:dword_100815424                                       ; +0xa1, 0x1000519b1\nmov     rdi, r15                                                       ; +0xa9, 0x1000519b9\nmovss   xmm0, cs:dword_100815028                                       ; +0xac, 0x1000519bc\ncall    sub_10028CBE0                                                  ; +0xb4, 0x1000519c4\nmov     rdi, r14                                                       ; +0xb9, 0x1000519c9\nmov     rsi, r15                                                       ; +0xbc, 0x1000519cc\ncall    sub_10028CC90                                                  ; +0xbf, 0x1000519cf\nmov     rdi, [rbx+1A8h]                                                ; +0xc4, 0x1000519d4\nmov     rax, [rdi]                                                     ; +0xcb, 0x1000519db\nmov     rsi, r14                                                       ; +0xce, 0x1000519de\ncall    qword ptr [rax+0B8h]                                           ; +0xd1, 0x1000519e1\nmov     eax, r12d                                                      ; +0xd7, 0x1000519e7\nadd     rsp, 10h                                                       ; +0xda, 0x1000519ea\npop     rbx                                                            ; +0xde, 0x1000519ee\npop     r12                                                            ; +0xdf, 0x1000519ef\npop     r14                                                            ; +0xe1, 0x1000519f1\npop     r15                                                            ; +0xe3, 0x1000519f3\npop     rbp                                                            ; +0xe5, 0x1000519f5\nretn                                                                   ; +0xe6, 0x1000519f6", "xrefs": ["<???> @ 0x1008b0fe0"], "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"}