{"type": "func", "start": 4299990240, "end": 4299990395, "name": "GJUINode::highlightButton", "pseudocode": "// \n// GJUINode::highlightButton from 0x1004ca4e0 to 0x1004ca57b (155 bytes)\n// \n// 1 xrefs:\n// > UILayer::processUINodeTouch @ 0x1004ca26f\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::highlightButton(GJUINode *a1, int a2)\n{\n  __int64 v2; // rax\n  bool m_modeB; // al\n  __int64 v4; // rdi\n  __int16 v5; // [rsp-20h] [rbp-20h] BYREF\n  char v6; // [rsp-1Eh] [rbp-1Eh]\n  __int16 v7; // [rsp-1Ch] [rbp-1Ch] BYREF\n  char v8; // [rsp-1Ah] [rbp-1Ah]\n\n  if ( !a1->m_modeB )\n  {\n    v2 = *((_QWORD *)&a1->m_firstSprite + (a2 == 3));\n    if ( v2 )\n    {\n      v8 = -106;\n      v7 = -26986;\n      (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v2 + 944LL))(v2, &v7);\n      m_modeB = a1->m_modeB;\n    }\n    else\n    {\n      m_modeB = 0;\n    }\n    v4 = *((_QWORD *)&a1->m_firstSprite + ((a2 == 2) & (unsigned __int8)!m_modeB));\n    if ( v4 )\n    {\n      v6 = -1;\n      v5 = -1;\n      (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 944LL))(v4, &v5);\n    }\n  }\n}", "assembly": "; \n; GJUINode::highlightButton from 0x1004ca4e0 to 0x1004ca57b (155 bytes)\n; \n; 1 xrefs:\n; > UILayer::processUINodeTouch @ 0x1004ca26f\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\ncmp     byte ptr [rdi+17Dh], 0                                         ; +0x0, 0x1004ca4e0\njnz     locret_1004CA57A                                               ; +0x7, 0x1004ca4e7\npush    rbp                                                            ; +0xd, 0x1004ca4ed\nmov     rbp, rsp                                                       ; +0xe, 0x1004ca4ee\npush    r14                                                            ; +0x11, 0x1004ca4f1\npush    rbx                                                            ; +0x13, 0x1004ca4f3\nsub     rsp, 10h                                                       ; +0x14, 0x1004ca4f4\nxor     eax, eax                                                       ; +0x18, 0x1004ca4f8\ncmp     esi, 3                                                         ; +0x1a, 0x1004ca4fa\nsetz    al                                                             ; +0x1d, 0x1004ca4fd\nmov     rax, [rdi+rax*8+140h]                                          ; +0x20, 0x1004ca500\ntest    rax, rax                                                       ; +0x28, 0x1004ca508\njz      short loc_1004CA53F                                            ; +0x2b, 0x1004ca50b\nmov     byte ptr [rbp-12h], 96h                                        ; +0x2d, 0x1004ca50d\nmov     word ptr [rbp-14h], 9696h                                      ; +0x31, 0x1004ca511\nmov     rdx, [rax]                                                     ; +0x37, 0x1004ca517\nlea     rcx, [rbp-14h]                                                 ; +0x3a, 0x1004ca51a\nmov     rbx, rdi                                                       ; +0x3e, 0x1004ca51e\nmov     rdi, rax                                                       ; +0x41, 0x1004ca521\nmov     r14d, esi                                                      ; +0x44, 0x1004ca524\nmov     rsi, rcx                                                       ; +0x47, 0x1004ca527\ncall    qword ptr [rdx+3B0h]                                           ; +0x4a, 0x1004ca52a\nmov     esi, r14d                                                      ; +0x50, 0x1004ca530\nmov     rdi, rbx                                                       ; +0x53, 0x1004ca533\nmovzx   eax, byte ptr [rbx+17Dh]                                       ; +0x56, 0x1004ca536\njmp     short loc_1004CA541                                            ; +0x5d, 0x1004ca53d\nxor     eax, eax                                                       ; +0x5f, 0x1004ca53f\ncmp     esi, 2                                                         ; +0x61, 0x1004ca541\nsetz    cl                                                             ; +0x64, 0x1004ca544\nxor     al, 1                                                          ; +0x67, 0x1004ca547\nand     al, cl                                                         ; +0x69, 0x1004ca549\nmovzx   eax, al                                                        ; +0x6b, 0x1004ca54b\nmov     rdi, [rdi+rax*8+140h]                                          ; +0x6e, 0x1004ca54e\ntest    rdi, rdi                                                       ; +0x76, 0x1004ca556\njz      short loc_1004CA572                                            ; +0x79, 0x1004ca559\nmov     byte ptr [rbp-16h], 0FFh                                       ; +0x7b, 0x1004ca55b\nmov     word ptr [rbp-18h], 0FFFFh                                     ; +0x7f, 0x1004ca55f\nmov     rax, [rdi]                                                     ; +0x85, 0x1004ca565\nlea     rsi, [rbp-18h]                                                 ; +0x88, 0x1004ca568\ncall    qword ptr [rax+3B0h]                                           ; +0x8c, 0x1004ca56c\nadd     rsp, 10h                                                       ; +0x92, 0x1004ca572\npop     rbx                                                            ; +0x96, 0x1004ca576\npop     r14                                                            ; +0x97, 0x1004ca577\npop     rbp                                                            ; +0x99, 0x1004ca579\nretn                                                                   ; +0x9a, 0x1004ca57a", "xrefs": ["UILayer::processUINodeTouch @ 0x1004ca26f"], "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"}