{"type": "func", "start": 4295269100, "end": 4295269240, "name": "GJUINode::resetState", "pseudocode": "// \n// GJUINode::resetState from 0x100049aec to 0x100049b78 (140 bytes)\n// \n// 1 xrefs:\n// > UILayer::resetUINodeState @ 0x100049ad0\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  cocos2d::CCSprite *m_firstSprite; // x0\n  __int64 v3; // x8\n  __int64 v4; // x0\n  __int16 v5; // [xsp+8h] [xbp-18h] BYREF\n  char v6; // [xsp+Ah] [xbp-16h]\n  __int16 v7; // [xsp+Ch] [xbp-14h] BYREF\n  char v8; // [xsp+Eh] [xbp-12h]\n\n  a1->m_touchID = -1;\n  *(_WORD *)&a1->m_swiping = 0;\n  m_firstSprite = a1->m_firstSprite;\n  if ( m_firstSprite )\n  {\n    v6 = -1;\n    v5 = -1;\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))m_firstSprite->setColor)(m_firstSprite, &v5);\n  }\n  v3 = 328;\n  if ( a1->m_modeB )\n    v3 = 320;\n  v4 = *(__int64 *)((char *)&a1->__vftable + v3);\n  if ( v4 )\n  {\n    v8 = -1;\n    v7 = -1;\n    (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 944LL))(v4, &v7);\n  }\n}", "assembly": "; \n; GJUINode::resetState from 0x100049aec to 0x100049b78 (140 bytes)\n; \n; 1 xrefs:\n; > UILayer::resetUINodeState @ 0x100049ad0\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, 0x100049aec\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100049af0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100049af4\nADD             X29, SP, #0x20                                         ; +0xc, 0x100049af8\nMOV             X19, X0                                                ; +0x10, 0x100049afc\nMOV             W8, #0xFFFFFFFF                                        ; +0x14, 0x100049b00\nSTR             W8, [X0,#0x160]                                        ; +0x18, 0x100049b04\nADD             X9, X0, #0x17F                                         ; +0x1c, 0x100049b08\nSTRH            WZR, [X9]                                              ; +0x20, 0x100049b0c\nLDR             X0, [X0,#0x140]                                        ; +0x24, 0x100049b10\nCBZ             X0, loc_100049B30                                      ; +0x28, 0x100049b14\nSTRB            W8, [SP,#0x20+var_16]                                  ; +0x2c, 0x100049b18\nSTRH            W8, [SP,#0x20+var_18]                                  ; +0x30, 0x100049b1c\nLDR             X8, [X0]                                               ; +0x34, 0x100049b20\nLDR             X8, [X8,#0x3B0]                                        ; +0x38, 0x100049b24\nADD             X1, SP, #0x20+var_18                                   ; +0x3c, 0x100049b28\nBLR             X8                                                     ; +0x40, 0x100049b2c\nLDRB            W8, [X19,#0x17D]                                       ; +0x44, 0x100049b30\nCMP             W8, #0                                                 ; +0x48, 0x100049b34\nMOV             W8, #0x148                                             ; +0x4c, 0x100049b38\nMOV             W9, #0x140                                             ; +0x50, 0x100049b3c\nCSEL            X8, X9, X8, NE                                         ; +0x54, 0x100049b40\nLDR             X0, [X19,X8]                                           ; +0x58, 0x100049b44\nCBZ             X0, loc_100049B68                                      ; +0x5c, 0x100049b48\nMOV             W8, #0xFFFFFFFF                                        ; +0x60, 0x100049b4c\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x64, 0x100049b50\nSTRH            W8, [SP,#0x20+var_14]                                  ; +0x68, 0x100049b54\nLDR             X8, [X0]                                               ; +0x6c, 0x100049b58\nLDR             X8, [X8,#0x3B0]                                        ; +0x70, 0x100049b5c\nADD             X1, SP, #0x20+var_14                                   ; +0x74, 0x100049b60\nBLR             X8                                                     ; +0x78, 0x100049b64\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x7c, 0x100049b68\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x80, 0x100049b6c\nADD             SP, SP, #0x30 ; '0'                                    ; +0x84, 0x100049b70\nRET                                                                    ; +0x88, 0x100049b74", "xrefs": ["UILayer::resetUINodeState @ 0x100049ad0"], "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"}