{"type": "func", "start": 4299139144, "end": 4299139324, "name": "GJRotationControl::init", "pseudocode": "// \n// GJRotationControl::init from 0x1003fa848 to 0x1003fa8fc (180 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008149e0\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  _BOOL4 v2; // w20\n  __n128 v3; // q0\n  __n128 v4; // q1\n  double v5; // d0\n  cocos2d::CCSprite *v6; // x0\n  double v8; // [xsp+8h] [xbp-18h] BYREF\n\n  v2 = cocos2d::CCLayer::init(a1);\n  if ( v2 )\n  {\n    v3 = ((__n128 (__fastcall *)(GJRotationControl *, __int64))a1->setTouchEnabled)(a1, 1);\n    v3.n128_u32[0] = 1114636288;\n    v4.n128_u32[0] = 0;\n    sub_100022980(v3, v4, &v8);\n    v5 = sub_1000229D0(&a1->m_controlPosition, &v8);\n    ((void (__fastcall *)(GJRotationControl *, int *, double))a1->setAnchorPoint)(a1, &dword_10086E8B0, v5);\n    v6 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_rotationControlBtn01_001.png\");\n    a1->m_controlSprite = v6;\n    ((void (__fastcall *)(GJRotationControl *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v6, 1);\n    GJRotationControl::setAngle(a1, 0.0);\n  }\n  return v2;\n}", "assembly": "; \n; GJRotationControl::init from 0x1003fa848 to 0x1003fa8fc (180 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008149e0\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1003fa848\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003fa84c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003fa850\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003fa854\nMOV             X19, X0                                                ; +0x10, 0x1003fa858\nBL              cocos2d__CCLayer__init                                 ; +0x14, 0x1003fa85c\nMOV             X20, X0                                                ; +0x18, 0x1003fa860\nCBZ             W0, loc_1003FA8E8                                      ; +0x1c, 0x1003fa864\nLDR             X8, [X19]                                              ; +0x20, 0x1003fa868\nLDR             X8, [X8,#0x3D8]                                        ; +0x24, 0x1003fa86c\nMOV             X0, X19                                                ; +0x28, 0x1003fa870\nMOV             W1, #1                                                 ; +0x2c, 0x1003fa874\nBLR             X8                                                     ; +0x30, 0x1003fa878\nMOV             W8, #0x42700000                                        ; +0x34, 0x1003fa87c\nFMOV            S0, W8                                                 ; +0x38, 0x1003fa880\nADD             X0, SP, #0x20+var_18                                   ; +0x3c, 0x1003fa884\nFMOV            S1, WZR                                                ; +0x40, 0x1003fa888\nBL              sub_100022980                                          ; +0x44, 0x1003fa88c\nADD             X0, X19, #0x19C                                        ; +0x48, 0x1003fa890\nADD             X1, SP, #0x20+var_18                                   ; +0x4c, 0x1003fa894\nBL              sub_1000229D0                                          ; +0x50, 0x1003fa898\nLDR             X8, [X19]                                              ; +0x54, 0x1003fa89c\nLDR             X8, [X8,#0x118]                                        ; +0x58, 0x1003fa8a0\nADRL            X1, dword_10086E8B0                                    ; +0x5c, 0x1003fa8a4\nMOV             X0, X19                                                ; +0x64, 0x1003fa8ac\nBLR             X8                                                     ; +0x68, 0x1003fa8b0\nADRL            X0, aGjRotationcont; \"GJ_rotationControlBtn01_001.png\" ; +0x6c, 0x1003fa8b4\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x74, 0x1003fa8bc\nMOV             X1, X0                                                 ; +0x78, 0x1003fa8c0\nSTR             X0, [X19,#0x1A8]                                       ; +0x7c, 0x1003fa8c4\nLDR             X8, [X19]                                              ; +0x80, 0x1003fa8c8\nLDR             X8, [X8,#0x1C0]                                        ; +0x84, 0x1003fa8cc\nMOV             X0, X19                                                ; +0x88, 0x1003fa8d0\nMOV             W2, #1                                                 ; +0x8c, 0x1003fa8d4\nBLR             X8                                                     ; +0x90, 0x1003fa8d8\nFMOV            S0, WZR                                                ; +0x94, 0x1003fa8dc\nMOV             X0, X19                                                ; +0x98, 0x1003fa8e0\nBL              GJRotationControl__setAngle                            ; +0x9c, 0x1003fa8e4\nMOV             X0, X20                                                ; +0xa0, 0x1003fa8e8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa4, 0x1003fa8ec\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa8, 0x1003fa8f0\nADD             SP, SP, #0x30 ; '0'                                    ; +0xac, 0x1003fa8f4\nRET                                                                    ; +0xb0, 0x1003fa8f8", "xrefs": ["<???> @ 0x1008149e0"], "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"}