{"type": "func", "start": 5373199392, "end": 5373199502, "name": "ControllerInputNode::onButton", "pseudocode": "// \n// ControllerInputNode::onButton from 0x140448420 to 0x14044848e (110 bytes)\n// \n// 2 xrefs:\n// > ControllerInputNode::init @ 0x140447f9e\n// > <???> @ 0x14092729c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:24 +0000\n// \n\nchar *__fastcall ControllerInputNode::onButton(__int64 a1, __int64 a2)\n{\n  _DWORD *v3; // rbx\n  __int64 v4; // rdx\n  char *result; // rax\n  int v6; // ecx\n  __int64 v7; // r8\n\n  v3 = (_DWORD *)((char *)&unk_140703C00 + 32 * (*(int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2));\n  *(_DWORD *)(a1 + 332) = *v3;\n  result = ControllerInputNode::refreshVisuals(a1, v4);\n  v6 = *v3;\n  if ( *(_BYTE *)(a1 + 328) )\n  {\n    result = (char *)(unsigned int)(v6 + 1);\n    if ( (v6 & 1) != 0 )\n      LOWORD(v6) = v6 + 1;\n  }\n  v7 = *(_QWORD *)(a1 + 320);\n  if ( v7 )\n    return (char *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v7 + 8LL))(\n                     *(_QWORD *)(a1 + 320),\n                     (unsigned __int16)v6);\n  return result;\n}", "assembly": "; \n; ControllerInputNode::onButton from 0x140448420 to 0x14044848e (110 bytes)\n; \n; 2 xrefs:\n; > ControllerInputNode::init @ 0x140447f9e\n; > <???> @ 0x14092729c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:24 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140448420\npush    rdi                                                            ; +0x5, 0x140448425\nsub     rsp, 20h                                                       ; +0x6, 0x140448426\nmov     rax, [rdx]                                                     ; +0xa, 0x14044842a\nmov     rdi, rcx                                                       ; +0xd, 0x14044842d\nmov     rcx, rdx                                                       ; +0x10, 0x140448430\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x140448433\nmovsxd  rbx, eax                                                       ; +0x16, 0x140448436\nmov     rcx, rdi                                                       ; +0x19, 0x140448439\nlea     rax, unk_140703C00                                             ; +0x1c, 0x14044843c\nshl     rbx, 5                                                         ; +0x23, 0x140448443\nadd     rbx, rax                                                       ; +0x27, 0x140448447\nmov     eax, [rbx]                                                     ; +0x2a, 0x14044844a\nmov     [rdi+14Ch], eax                                                ; +0x2c, 0x14044844c\ncall    ControllerInputNode__refreshVisuals                            ; +0x32, 0x140448452\ncmp     byte ptr [rdi+148h], 0                                         ; +0x37, 0x140448457\nmov     ecx, [rbx]                                                     ; +0x3e, 0x14044845e\njz      short loc_14044846B                                            ; +0x40, 0x140448460\ntest    cl, 1                                                          ; +0x42, 0x140448462\nlea     eax, [rcx+1]                                                   ; +0x45, 0x140448465\ncmovnz  ecx, eax                                                       ; +0x48, 0x140448468\nmov     r8, [rdi+140h]                                                 ; +0x4b, 0x14044846b\ntest    r8, r8                                                         ; +0x52, 0x140448472\njz      short loc_140448483                                            ; +0x55, 0x140448475\nmov     rax, [r8]                                                      ; +0x57, 0x140448477\nmovzx   edx, cx                                                        ; +0x5a, 0x14044847a\nmov     rcx, r8                                                        ; +0x5d, 0x14044847d\ncall    qword ptr [rax+8]                                              ; +0x60, 0x140448480\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x63, 0x140448483\nadd     rsp, 20h                                                       ; +0x68, 0x140448488\npop     rdi                                                            ; +0x6c, 0x14044848c\nretn                                                                   ; +0x6d, 0x14044848d", "xrefs": ["ControllerInputNode::init @ 0x140447f9e", "<???> @ 0x14092729c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}