{"type": "func", "start": 4297069488, "end": 4297069536, "name": "GJBaseGameLayer::getPlayerButtonID", "pseudocode": "// \n// GJBaseGameLayer::getPlayerButtonID from 0x1002013b0 to 0x1002013e0 (48 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::getRecordString @ 0x100201994\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 v3; // w9\n  int v4; // w10\n\n  if ( (unsigned int)(a2 - 2) >= 4 )\n    v3 = 6;\n  else\n    v3 = a2 + 5;\n  if ( (unsigned int)(a2 - 2) >= 4 )\n    v4 = 1;\n  else\n    v4 = a2;\n  if ( !a3 )\n    v3 = v4;\n  if ( (a2 & 0xFFFFFFFE) == 0x62 )\n    return a2;\n  else\n    return v3;\n}", "assembly": "; \n; GJBaseGameLayer::getPlayerButtonID from 0x1002013b0 to 0x1002013e0 (48 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::getRecordString @ 0x100201994\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\nAND             W8, W1, #0xFFFFFFFE                                    ; +0x0, 0x1002013b0\nSUB             W9, W1, #2                                             ; +0x4, 0x1002013b4\nADD             W10, W1, #5                                            ; +0x8, 0x1002013b8\nCMP             W9, #4                                                 ; +0xc, 0x1002013bc\nMOV             W9, #6                                                 ; +0x10, 0x1002013c0\nCSEL            W9, W10, W9, CC                                        ; +0x14, 0x1002013c4\nCSINC           W10, W1, WZR, CC                                       ; +0x18, 0x1002013c8\nTST             W2, #1                                                 ; +0x1c, 0x1002013cc\nCSEL            W9, W9, W10, NE                                        ; +0x20, 0x1002013d0\nCMP             W8, #0x62 ; 'b'                                        ; +0x24, 0x1002013d4\nCSEL            W0, W1, W9, EQ                                         ; +0x28, 0x1002013d8\nRET                                                                    ; +0x2c, 0x1002013dc", "xrefs": ["GJBaseGameLayer::getRecordString @ 0x100201994"], "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"}