{"type": "func", "start": 4299990400, "end": 4299990544, "name": "GJUINode::touchEnded", "pseudocode": "// \n// GJUINode::touchEnded from 0x1004ca580 to 0x1004ca610 (144 bytes)\n// \n// 1 xrefs:\n// > UILayer::processUINodeTouch @ 0x1004ca23c\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 GJUINode::touchEnded(GJUINode *a1)\n{\n  __int64 v1; // rax\n  cocos2d::CCSprite *m_firstSprite; // rdi\n  cocos2d::CCSprite *m_secondSprite; // rdi\n  _QWORD v5[2]; // [rsp+0h] [rbp-10h] BYREF\n\n  v5[0] = v1;\n  a1->m_touchID = -1;\n  m_firstSprite = a1->m_firstSprite;\n  if ( m_firstSprite )\n  {\n    BYTE6(v5[0]) = -1;\n    WORD2(v5[0]) = -1;\n    ((void (__fastcall *)(cocos2d::CCSprite *, char *))m_firstSprite->setColor)(m_firstSprite, (char *)v5 + 4);\n  }\n  if ( a1->m_modeB )\n  {\n    if ( a1->m_snap )\n      ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_firstSprite->setVisible)(a1->m_firstSprite, 0);\n  }\n  else\n  {\n    m_secondSprite = a1->m_secondSprite;\n    if ( m_secondSprite )\n    {\n      BYTE2(v5[0]) = -1;\n      LOWORD(v5[0]) = -1;\n      ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD *))m_secondSprite->setColor)(m_secondSprite, v5);\n    }\n  }\n  a1->m_currentButton = 0;\n}", "assembly": "; \n; GJUINode::touchEnded from 0x1004ca580 to 0x1004ca610 (144 bytes)\n; \n; 1 xrefs:\n; > UILayer::processUINodeTouch @ 0x1004ca23c\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, 0x1004ca580\nmov     rbp, rsp                                                       ; +0x1, 0x1004ca581\npush    rbx                                                            ; +0x4, 0x1004ca584\npush    rax                                                            ; +0x5, 0x1004ca585\nmov     rbx, rdi                                                       ; +0x6, 0x1004ca586\nmov     dword ptr [rdi+160h], 0FFFFFFFFh                               ; +0x9, 0x1004ca589\nmov     rdi, [rdi+140h]                                                ; +0x13, 0x1004ca593\ntest    rdi, rdi                                                       ; +0x1a, 0x1004ca59a\njz      short loc_1004CA5B6                                            ; +0x1d, 0x1004ca59d\nmov     [rbp+var_A], 0FFh                                              ; +0x1f, 0x1004ca59f\nmov     [rbp+var_C], 0FFFFh                                            ; +0x23, 0x1004ca5a3\nmov     rax, [rdi]                                                     ; +0x29, 0x1004ca5a9\nlea     rsi, [rbp+var_C]                                               ; +0x2c, 0x1004ca5ac\ncall    qword ptr [rax+3B0h]                                           ; +0x30, 0x1004ca5b0\ncmp     byte ptr [rbx+17Dh], 1                                         ; +0x36, 0x1004ca5b6\njnz     short loc_1004CA5DC                                            ; +0x3d, 0x1004ca5bd\ncmp     byte ptr [rbx+17Eh], 1                                         ; +0x3f, 0x1004ca5bf\njnz     short loc_1004CA5FF                                            ; +0x46, 0x1004ca5c6\nmov     rdi, [rbx+140h]                                                ; +0x48, 0x1004ca5c8\nmov     rax, [rdi]                                                     ; +0x4f, 0x1004ca5cf\nxor     esi, esi                                                       ; +0x52, 0x1004ca5d2\ncall    qword ptr [rax+148h]                                           ; +0x54, 0x1004ca5d4\njmp     short loc_1004CA5FF                                            ; +0x5a, 0x1004ca5da\nmov     rdi, [rbx+148h]                                                ; +0x5c, 0x1004ca5dc\ntest    rdi, rdi                                                       ; +0x63, 0x1004ca5e3\njz      short loc_1004CA5FF                                            ; +0x66, 0x1004ca5e6\nmov     [rbp+var_E], 0FFh                                              ; +0x68, 0x1004ca5e8\nmov     [rbp+var_10], 0FFFFh                                           ; +0x6c, 0x1004ca5ec\nmov     rax, [rdi]                                                     ; +0x72, 0x1004ca5f2\nlea     rsi, [rbp+var_10]                                              ; +0x75, 0x1004ca5f5\ncall    qword ptr [rax+3B0h]                                           ; +0x79, 0x1004ca5f9\nmov     dword ptr [rbx+184h], 0                                        ; +0x7f, 0x1004ca5ff\nadd     rsp, 8                                                         ; +0x89, 0x1004ca609\npop     rbx                                                            ; +0x8d, 0x1004ca60d\npop     rbp                                                            ; +0x8e, 0x1004ca60e\nretn                                                                   ; +0x8f, 0x1004ca60f", "xrefs": ["UILayer::processUINodeTouch @ 0x1004ca23c"], "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"}