{"type": "func", "start": 8807552, "end": 8807648, "name": "GJBaseGameLayer::getPlayerButtonID", "pseudocode": "// \n// GJBaseGameLayer::getPlayerButtonID from 0x866480 to 0x8664e0 (96 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::getRecordString @ 0x891818\n// > <???> @ 0x8f598\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 GJBaseGameLayer::getPlayerButtonID(GJBaseGameLayer *a1, int a2, bool a3)\n{\n  unsigned int v3; // w1\n  int result; // w0\n\n  if ( (unsigned int)(a2 - 98) <= 1 )\n    return a2;\n  v3 = a2 - 2;\n  if ( a3 )\n  {\n    result = 6;\n    if ( v3 <= 3 )\n      return dword_EED5F0[v3 + 32];\n  }\n  else\n  {\n    result = 1;\n    if ( v3 <= 3 )\n      return dword_EED5F0[v3 + 28];\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getPlayerButtonID from 0x866480 to 0x8664e0 (96 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::getRecordString @ 0x891818\n; > <???> @ 0x8f598\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\nSUB             W0, W1, #0x62 ; 'b'                                    ; +0x0, 0x866480\nUXTB            W2, W2                                                 ; +0x4, 0x866484\nCMP             W0, #1                                                 ; +0x8, 0x866488\nB.LS            loc_8664D8                                             ; +0xc, 0x86648c\nSUB             W1, W1, #2                                             ; +0x10, 0x866490\nCBNZ            W2, loc_8664B8                                         ; +0x14, 0x866494\nCMP             W1, #3                                                 ; +0x18, 0x866498\nMOV             W0, #1                                                 ; +0x1c, 0x86649c\nB.HI            locret_8664B4                                          ; +0x20, 0x8664a0\nADRL            X0, dword_EED5F0                                       ; +0x24, 0x8664a4\nADD             X1, X0, W1,UXTW#2                                      ; +0x2c, 0x8664ac\nLDR             W0, [X1,#0x70]                                         ; +0x30, 0x8664b0\nRET                                                                    ; +0x34, 0x8664b4\nCMP             W1, #3                                                 ; +0x38, 0x8664b8\nMOV             W0, #6                                                 ; +0x3c, 0x8664bc\nB.HI            locret_8664B4                                          ; +0x40, 0x8664c0\nADRL            X0, dword_EED5F0                                       ; +0x44, 0x8664c4\nADD             X1, X0, W1,UXTW#2                                      ; +0x4c, 0x8664cc\nLDR             W0, [X1,#0x80]                                         ; +0x50, 0x8664d0\nRET                                                                    ; +0x54, 0x8664d4\nMOV             W0, W1                                                 ; +0x58, 0x8664d8\nRET                                                                    ; +0x5c, 0x8664dc", "xrefs": ["GJBaseGameLayer::getRecordString @ 0x891818", "<???> @ 0x8f598"], "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"}