{"type": "func", "start": 4299128988, "end": 4299129104, "name": "GJRotationControl::finishTouch", "pseudocode": "// \n// GJRotationControl::finishTouch from 0x1003f809c to 0x1003f8110 (116 bytes)\n// \n// 3 xrefs:\n// > EditorUI::deactivateRotationControl @ 0x1003c6fe4\n// > GJRotationControl::ccTouchEnded @ 0x1003fabd0\n// > sub_1003FABD8 @ 0x1003fabec\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\nvoid __fastcall GJRotationControl::finishTouch(GJRotationControl *a1)\n{\n  cocos2d::CCSprite *m_controlSprite; // x20\n  cocos2d::CCSpriteFrameCache *v3; // x0\n  cocos2d::CCSpriteFrame *v4; // x0\n  GJRotationControlDelegate *m_delegate; // x0\n\n  if ( a1->m_touchID != -1 )\n  {\n    a1->m_touchID = -1;\n    m_controlSprite = a1->m_controlSprite;\n    v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, \"GJ_rotationControlBtn01_001.png\");\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_controlSprite->setDisplayFrame)(\n      m_controlSprite,\n      v4);\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      ((void (__fastcall *)(GJRotationControlDelegate *))m_delegate->angleChangeEnded)(m_delegate);\n  }\n}", "assembly": "; \n; GJRotationControl::finishTouch from 0x1003f809c to 0x1003f8110 (116 bytes)\n; \n; 3 xrefs:\n; > EditorUI::deactivateRotationControl @ 0x1003c6fe4\n; > GJRotationControl::ccTouchEnded @ 0x1003fabd0\n; > sub_1003FABD8 @ 0x1003fabec\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003f809c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003f80a0\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003f80a4\nLDR             W8, [X0,#0x1B8]                                        ; +0xc, 0x1003f80a8\nCMN             W8, #1                                                 ; +0x10, 0x1003f80ac\nB.EQ            loc_1003F8104                                          ; +0x14, 0x1003f80b0\nMOV             X19, X0                                                ; +0x18, 0x1003f80b4\nMOV             W8, #0xFFFFFFFF                                        ; +0x1c, 0x1003f80b8\nSTR             W8, [X0,#0x1B8]                                        ; +0x20, 0x1003f80bc\nLDR             X20, [X0,#0x1A8]                                       ; +0x24, 0x1003f80c0\nBL              cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache    ; +0x28, 0x1003f80c4\nADRL            X1, aGjRotationcont; \"GJ_rotationControlBtn01_001.png\" ; +0x2c, 0x1003f80c8\nBL              cocos2d__CCSpriteFrameCache__spriteFrameByName         ; +0x34, 0x1003f80d0\nMOV             X1, X0                                                 ; +0x38, 0x1003f80d4\nLDR             X8, [X20]                                              ; +0x3c, 0x1003f80d8\nLDR             X8, [X8,#0x478]                                        ; +0x40, 0x1003f80dc\nMOV             X0, X20                                                ; +0x44, 0x1003f80e0\nBLR             X8                                                     ; +0x48, 0x1003f80e4\nLDR             X0, [X19,#0x1C0]                                       ; +0x4c, 0x1003f80e8\nCBZ             X0, loc_1003F8104                                      ; +0x50, 0x1003f80ec\nLDR             X8, [X0]                                               ; +0x54, 0x1003f80f0\nLDR             X1, [X8,#0x10]                                         ; +0x58, 0x1003f80f4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x1003f80f8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x1003f80fc\nBR              X1                                                     ; +0x64, 0x1003f8100\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x1003f8104\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x1003f8108\nRET                                                                    ; +0x70, 0x1003f810c", "xrefs": ["EditorUI::deactivateRotationControl @ 0x1003c6fe4", "GJRotationControl::ccTouchEnded @ 0x1003fabd0", "sub_1003FABD8 @ 0x1003fabec"], "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"}