{"type": "func", "start": 4296230880, "end": 4296230931, "name": "GJBaseGameLayer::getPlayerButtonID", "pseudocode": "// \n// GJBaseGameLayer::getPlayerButtonID from 0x1001347e0 to 0x100134813 (51 bytes)\n// \n// 0 xrefs:\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::getPlayerButtonID(__int64 a1, unsigned int a2, char a3)\n{\n  __int64 result; // rax\n  unsigned int v4; // ecx\n  bool v5; // cf\n  unsigned int v6; // ecx\n\n  result = a2;\n  if ( (a2 & 0xFFFFFFFE) != 0x62 )\n  {\n    v4 = a2 - 2;\n    if ( a3 )\n    {\n      LODWORD(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 (unsigned int)result;\n    return v6;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getPlayerButtonID from 0x1001347e0 to 0x100134813 (51 bytes)\n; \n; 0 xrefs:\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, 0x1001347e0\nmov     rbp, rsp                                                       ; +0x1, 0x1001347e1\nmov     eax, esi                                                       ; +0x4, 0x1001347e4\nmov     ecx, esi                                                       ; +0x6, 0x1001347e6\nand     ecx, 0FFFFFFFEh                                                ; +0x8, 0x1001347e8\ncmp     ecx, 62h ; 'b'                                                 ; +0xb, 0x1001347eb\njz      short loc_100134811                                            ; +0xe, 0x1001347ee\nlea     ecx, [rax-2]                                                   ; +0x10, 0x1001347f0\ntest    dl, dl                                                         ; +0x13, 0x1001347f3\njz      short loc_100134804                                            ; +0x15, 0x1001347f5\nadd     eax, 5                                                         ; +0x17, 0x1001347f7\ncmp     ecx, 4                                                         ; +0x1a, 0x1001347fa\nmov     ecx, 6                                                         ; +0x1d, 0x1001347fd\njmp     short loc_10013480C                                            ; +0x22, 0x100134802\ncmp     ecx, 4                                                         ; +0x24, 0x100134804\nmov     ecx, 1                                                         ; +0x27, 0x100134807\ncmovb   ecx, eax                                                       ; +0x2c, 0x10013480c\nmov     eax, ecx                                                       ; +0x2f, 0x10013480f\npop     rbp                                                            ; +0x31, 0x100134811\nretn                                                                   ; +0x32, 0x100134812", "xrefs": [], "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"}