{"type": "func", "start": 5373752480, "end": 5373752671, "name": "GJUINode::touchEnded", "pseudocode": "// \n// GJUINode::touchEnded from 0x1404cf4a0 to 0x1404cf55f (191 bytes)\n// \n// 4 xrefs:\n// > UILayer::processUINodeTouch @ 0x1404ce854\n// > UILayer::processUINodeTouch @ 0x1404cea67\n// > UILayer::processUINodeTouch @ 0x1404cea7c\n// > <???> @ 0x1406dd5ec\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 GJUINode::touchEnded(GJUINode *a1)\n{\n  cocos2d::CCSprite *m_firstSprite; // rcx\n  cocos2d::CCSprite *m_secondSprite; // rcx\n  __int16 v4; // [rsp+30h] [rbp+8h] BYREF\n  char v5; // [rsp+32h] [rbp+Ah]\n\n  a1->m_touchID = -1;\n  m_firstSprite = a1->m_firstSprite;\n  if ( m_firstSprite )\n  {\n    v4 = -1;\n    v5 = -1;\n    m_firstSprite->setColor(&m_firstSprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v4);\n  }\n  if ( a1->m_modeB )\n  {\n    if ( a1->m_snap )\n    {\n      a1->m_firstSprite->setVisible(a1->m_firstSprite, 0);\n      a1->m_currentButton = 0;\n      return;\n    }\n  }\n  else\n  {\n    m_secondSprite = a1->m_secondSprite;\n    if ( m_secondSprite )\n    {\n      v4 = -1;\n      v5 = -1;\n      m_secondSprite->setColor(&m_secondSprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v4);\n    }\n  }\n  a1->m_currentButton = 0;\n}", "assembly": "; \n; GJUINode::touchEnded from 0x1404cf4a0 to 0x1404cf55f (191 bytes)\n; \n; 4 xrefs:\n; > UILayer::processUINodeTouch @ 0x1404ce854\n; > UILayer::processUINodeTouch @ 0x1404cea67\n; > UILayer::processUINodeTouch @ 0x1404cea7c\n; > <???> @ 0x1406dd5ec\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    rbx                                                            ; +0x0, 0x1404cf4a0\nsub     rsp, 20h                                                       ; +0x2, 0x1404cf4a2\nmov     rbx, rcx                                                       ; +0x6, 0x1404cf4a6\nmov     dword ptr [rcx+160h], 0FFFFFFFFh                               ; +0x9, 0x1404cf4a9\nmov     rcx, [rcx+140h]                                                ; +0x13, 0x1404cf4b3\ntest    rcx, rcx                                                       ; +0x1a, 0x1404cf4ba\njz      short loc_1404CF4E7                                            ; +0x1d, 0x1404cf4bd\nmovzx   eax, cs:word_140529CA0                                         ; +0x1f, 0x1404cf4bf\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x26, 0x1404cf4c6\nmov     [rsp+28h+arg_0], ax                                            ; +0x2b, 0x1404cf4cb\nadd     rcx, 140h                                                      ; +0x30, 0x1404cf4d0\nmovzx   eax, cs:byte_140529CA2                                         ; +0x37, 0x1404cf4d7\nmov     [rsp+28h+arg_2], al                                            ; +0x3e, 0x1404cf4de\nmov     rax, [rcx]                                                     ; +0x42, 0x1404cf4e2\ncall    qword ptr [rax]                                                ; +0x45, 0x1404cf4e5\ncmp     byte ptr [rbx+17Dh], 0                                         ; +0x47, 0x1404cf4e7\njz      short loc_1404CF51B                                            ; +0x4e, 0x1404cf4ee\ncmp     byte ptr [rbx+17Eh], 0                                         ; +0x50, 0x1404cf4f0\njz      short loc_1404CF54F                                            ; +0x57, 0x1404cf4f7\nmov     rcx, [rbx+140h]                                                ; +0x59, 0x1404cf4f9\nxor     edx, edx                                                       ; +0x60, 0x1404cf500\nmov     rax, [rcx]                                                     ; +0x62, 0x1404cf502\ncall    qword ptr [rax+140h]                                           ; +0x65, 0x1404cf505\nmov     dword ptr [rbx+184h], 0                                        ; +0x6b, 0x1404cf50b\nadd     rsp, 20h                                                       ; +0x75, 0x1404cf515\npop     rbx                                                            ; +0x79, 0x1404cf519\nretn                                                                   ; +0x7a, 0x1404cf51a\nmov     rcx, [rbx+148h]                                                ; +0x7b, 0x1404cf51b\ntest    rcx, rcx                                                       ; +0x82, 0x1404cf522\njz      short loc_1404CF54F                                            ; +0x85, 0x1404cf525\nmovzx   eax, cs:word_140529CA0                                         ; +0x87, 0x1404cf527\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x8e, 0x1404cf52e\nmov     [rsp+28h+arg_0], ax                                            ; +0x93, 0x1404cf533\nadd     rcx, 140h                                                      ; +0x98, 0x1404cf538\nmovzx   eax, cs:byte_140529CA2                                         ; +0x9f, 0x1404cf53f\nmov     [rsp+28h+arg_2], al                                            ; +0xa6, 0x1404cf546\nmov     rax, [rcx]                                                     ; +0xaa, 0x1404cf54a\ncall    qword ptr [rax]                                                ; +0xad, 0x1404cf54d\nmov     dword ptr [rbx+184h], 0                                        ; +0xaf, 0x1404cf54f\nadd     rsp, 20h                                                       ; +0xb9, 0x1404cf559\npop     rbx                                                            ; +0xbd, 0x1404cf55d\nretn                                                                   ; +0xbe, 0x1404cf55e", "xrefs": ["UILayer::processUINodeTouch @ 0x1404ce854", "UILayer::processUINodeTouch @ 0x1404cea67", "UILayer::processUINodeTouch @ 0x1404cea7c", "<???> @ 0x1406dd5ec"], "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"}