{"type": "func", "start": 4296230944, "end": 4296231009, "name": "GJBaseGameLayer::buttonIDToButton", "pseudocode": "// \n// GJBaseGameLayer::buttonIDToButton from 0x100134820 to 0x100134861 (65 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::parseRecording @ 0x100135608\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 12:24:49 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::buttonIDToButton(__int64 a1, unsigned int a2)\n{\n  __int64 result; // rax\n\n  result = a2;\n  switch ( a2 )\n  {\n    case 2u:\n    case 7u:\n      result = 2;\n      break;\n    case 3u:\n    case 8u:\n      result = 3;\n      break;\n    case 4u:\n    case 9u:\n      result = 4;\n      break;\n    case 5u:\n    case 0xAu:\n      result = 5;\n      break;\n    case 0x62u:\n    case 0x63u:\n      return result;\n    default:\n      result = 1;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::buttonIDToButton from 0x100134820 to 0x100134861 (65 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::parseRecording @ 0x100135608\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 12:24:49 +0000\n; \npush    rbp                                                            ; +0x0, 0x100134820\nmov     rbp, rsp                                                       ; +0x1, 0x100134821\nmov     eax, esi                                                       ; +0x4, 0x100134824\nlea     ecx, [rax-2]; switch 98 cases                                  ; +0x6, 0x100134826\ncmp     ecx, 61h                                                       ; +0x9, 0x100134829\nja      short def_10013483C; jumptable 000000010013483C default case, cases 6,11-97 ; +0xc, 0x10013482c\nlea     rdx, jpt_10013483C                                             ; +0xe, 0x10013482e\nmovsxd  rcx, (jpt_10013483C - 100134864h)[rdx+rcx*4]                   ; +0x15, 0x100134835\nadd     rcx, rdx                                                       ; +0x19, 0x100134839\njmp     rcx; switch jump                                               ; +0x1c, 0x10013483c\nmov     eax, 2; jumptable 000000010013483C cases 2,7                   ; +0x1e, 0x10013483e\npop     rbp                                                            ; +0x23, 0x100134843\nretn                                                                   ; +0x24, 0x100134844\nmov     eax, 4; jumptable 000000010013483C cases 4,9                   ; +0x25, 0x100134845\npop     rbp                                                            ; +0x2a, 0x10013484a\nretn                                                                   ; +0x2b, 0x10013484b\nmov     eax, 3; jumptable 000000010013483C cases 3,8                   ; +0x2c, 0x10013484c\npop     rbp                                                            ; +0x31, 0x100134851\nretn                                                                   ; +0x32, 0x100134852\nmov     eax, 5; jumptable 000000010013483C cases 5,10                  ; +0x33, 0x100134853\npop     rbp                                                            ; +0x38, 0x100134858\nretn                                                                   ; +0x39, 0x100134859\nmov     eax, 1; jumptable 000000010013483C default case, cases 6,11-97 ; +0x3a, 0x10013485a\npop     rbp; jumptable 000000010013483C cases 98,99                    ; +0x3f, 0x10013485f\nretn                                                                   ; +0x40, 0x100134860", "xrefs": ["GJBaseGameLayer::parseRecording @ 0x100135608"], "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"}