{"type": "func", "start": 4296370448, "end": 4296370513, "name": "GJBaseGameLayer::buttonIDToButton", "pseudocode": "// \n// GJBaseGameLayer::buttonIDToButton from 0x100156910 to 0x100156951 (65 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\nint __fastcall GJBaseGameLayer::buttonIDToButton(GJBaseGameLayer *a1, int a2)\n{\n  int result; // eax\n\n  result = a2;\n  switch ( a2 )\n  {\n    case 2:\n    case 7:\n      result = 2;\n      break;\n    case 3:\n    case 8:\n      result = 3;\n      break;\n    case 4:\n    case 9:\n      result = 4;\n      break;\n    case 5:\n    case 10:\n      result = 5;\n      break;\n    case 98:\n    case 99:\n      return result;\n    default:\n      result = 1;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::buttonIDToButton from 0x100156910 to 0x100156951 (65 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, 0x100156910\nmov     rbp, rsp                                                       ; +0x1, 0x100156911\nmov     eax, esi                                                       ; +0x4, 0x100156914\nlea     ecx, [rax-2]; switch 98 cases                                  ; +0x6, 0x100156916\ncmp     ecx, 61h                                                       ; +0x9, 0x100156919\nja      short def_10015692C; jumptable 000000010015692C default case, cases 6,11-97 ; +0xc, 0x10015691c\nlea     rdx, jpt_10015692C                                             ; +0xe, 0x10015691e\nmovsxd  rcx, (jpt_10015692C - 100156954h)[rdx+rcx*4]                   ; +0x15, 0x100156925\nadd     rcx, rdx                                                       ; +0x19, 0x100156929\njmp     rcx; switch jump                                               ; +0x1c, 0x10015692c\nmov     eax, 2; jumptable 000000010015692C cases 2,7                   ; +0x1e, 0x10015692e\npop     rbp                                                            ; +0x23, 0x100156933\nretn                                                                   ; +0x24, 0x100156934\nmov     eax, 4; jumptable 000000010015692C cases 4,9                   ; +0x25, 0x100156935\npop     rbp                                                            ; +0x2a, 0x10015693a\nretn                                                                   ; +0x2b, 0x10015693b\nmov     eax, 3; jumptable 000000010015692C cases 3,8                   ; +0x2c, 0x10015693c\npop     rbp                                                            ; +0x31, 0x100156941\nretn                                                                   ; +0x32, 0x100156942\nmov     eax, 5; jumptable 000000010015692C cases 5,10                  ; +0x33, 0x100156943\npop     rbp                                                            ; +0x38, 0x100156948\nretn                                                                   ; +0x39, 0x100156949\nmov     eax, 1; jumptable 000000010015692C default case, cases 6,11-97 ; +0x3a, 0x10015694a\npop     rbp; jumptable 000000010015692C cases 98,99                    ; +0x3f, 0x10015694f\nretn                                                                   ; +0x40, 0x100156950", "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"}