{"type": "func", "start": 4299984064, "end": 4299984180, "name": "GJUINode::resetState", "pseudocode": "// \n// GJUINode::resetState from 0x1004c8cc0 to 0x1004c8d34 (116 bytes)\n// \n// 0 xrefs:\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::resetState(GJUINode *a1)\n{\n  __int64 v1; // rax\n  cocos2d::CCSprite *m_firstSprite; // rdi\n  __int64 v4; // rdi\n  _QWORD v5[2]; // [rsp+0h] [rbp-10h] BYREF\n\n  v5[0] = v1;\n  a1->m_touchID = -1;\n  *(_WORD *)&a1->m_swiping = 0;\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  v4 = *((_QWORD *)&a1->m_firstSprite + !a1->m_modeB);\n  if ( v4 )\n  {\n    BYTE2(v5[0]) = -1;\n    LOWORD(v5[0]) = -1;\n    (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v4 + 944LL))(v4, v5);\n  }\n}", "assembly": "; \n; GJUINode::resetState from 0x1004c8cc0 to 0x1004c8d34 (116 bytes)\n; \n; 0 xrefs:\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, 0x1004c8cc0\nmov     rbp, rsp                                                       ; +0x1, 0x1004c8cc1\npush    rbx                                                            ; +0x4, 0x1004c8cc4\npush    rax                                                            ; +0x5, 0x1004c8cc5\nmov     rbx, rdi                                                       ; +0x6, 0x1004c8cc6\nmov     dword ptr [rdi+160h], 0FFFFFFFFh                               ; +0x9, 0x1004c8cc9\nmov     word ptr [rdi+17Fh], 0                                         ; +0x13, 0x1004c8cd3\nmov     rdi, [rdi+140h]                                                ; +0x1c, 0x1004c8cdc\ntest    rdi, rdi                                                       ; +0x23, 0x1004c8ce3\njz      short loc_1004C8CFF                                            ; +0x26, 0x1004c8ce6\nmov     [rbp+var_A], 0FFh                                              ; +0x28, 0x1004c8ce8\nmov     [rbp+var_C], 0FFFFh                                            ; +0x2c, 0x1004c8cec\nmov     rax, [rdi]                                                     ; +0x32, 0x1004c8cf2\nlea     rsi, [rbp+var_C]                                               ; +0x35, 0x1004c8cf5\ncall    qword ptr [rax+3B0h]                                           ; +0x39, 0x1004c8cf9\nmovzx   eax, byte ptr [rbx+17Dh]                                       ; +0x3f, 0x1004c8cff\nxor     eax, 1                                                         ; +0x46, 0x1004c8d06\nmov     rdi, [rbx+rax*8+140h]                                          ; +0x49, 0x1004c8d09\ntest    rdi, rdi                                                       ; +0x51, 0x1004c8d11\njz      short loc_1004C8D2D                                            ; +0x54, 0x1004c8d14\nmov     [rbp+var_E], 0FFh                                              ; +0x56, 0x1004c8d16\nmov     [rbp+var_10], 0FFFFh                                           ; +0x5a, 0x1004c8d1a\nmov     rax, [rdi]                                                     ; +0x60, 0x1004c8d20\nlea     rsi, [rbp+var_10]                                              ; +0x63, 0x1004c8d23\ncall    qword ptr [rax+3B0h]                                           ; +0x67, 0x1004c8d27\nadd     rsp, 8                                                         ; +0x6d, 0x1004c8d2d\npop     rbx                                                            ; +0x71, 0x1004c8d31\npop     rbp                                                            ; +0x72, 0x1004c8d32\nretn                                                                   ; +0x73, 0x1004c8d33", "xrefs": [], "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"}