{"type": "func", "start": 4296370384, "end": 4296370435, "name": "GJBaseGameLayer::getPlayerButtonID", "pseudocode": "// \n// GJBaseGameLayer::getPlayerButtonID from 0x1001568d0 to 0x100156903 (51 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::getPlayerButtonID(GJBaseGameLayer *a1, int a2, bool a3)\n{\n  int result; // eax\n  unsigned int v4; // ecx\n  bool v5; // cf\n  int v6; // ecx\n\n  result = a2;\n  if ( (a2 & 0xFFFFFFFE) != 0x62 )\n  {\n    v4 = a2 - 2;\n    if ( a3 )\n    {\n      result = a2 + 5;\n      v5 = v4 < 4;\n      v6 = 6;\n    }\n    else\n    {\n      v5 = v4 < 4;\n      v6 = 1;\n    }\n    if ( v5 )\n      return result;\n    return v6;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getPlayerButtonID from 0x1001568d0 to 0x100156903 (51 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, 0x1001568d0\nmov     rbp, rsp                                                       ; +0x1, 0x1001568d1\nmov     eax, esi                                                       ; +0x4, 0x1001568d4\nmov     ecx, esi                                                       ; +0x6, 0x1001568d6\nand     ecx, 0FFFFFFFEh                                                ; +0x8, 0x1001568d8\ncmp     ecx, 62h ; 'b'                                                 ; +0xb, 0x1001568db\njz      short loc_100156901                                            ; +0xe, 0x1001568de\nlea     ecx, [rax-2]                                                   ; +0x10, 0x1001568e0\ntest    dl, dl                                                         ; +0x13, 0x1001568e3\njz      short loc_1001568F4                                            ; +0x15, 0x1001568e5\nadd     eax, 5                                                         ; +0x17, 0x1001568e7\ncmp     ecx, 4                                                         ; +0x1a, 0x1001568ea\nmov     ecx, 6                                                         ; +0x1d, 0x1001568ed\njmp     short loc_1001568FC                                            ; +0x22, 0x1001568f2\ncmp     ecx, 4                                                         ; +0x24, 0x1001568f4\nmov     ecx, 1                                                         ; +0x27, 0x1001568f7\ncmovb   ecx, eax                                                       ; +0x2c, 0x1001568fc\nmov     eax, ecx                                                       ; +0x2f, 0x1001568ff\npop     rbp                                                            ; +0x31, 0x100156901\nretn                                                                   ; +0x32, 0x100156902", "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"}