{"type": "func", "start": 4753668, "end": 4753728, "name": "GJBaseGameLayer::isButtonAllowed", "pseudocode": "// \n// GJBaseGameLayer::isButtonAllowed from 0x488904 to 0x488940 (60 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::handleButton @ 0x492d92\n// > GJBaseGameLayer::handleButton @ 0x492dcc\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\nbool GJBaseGameLayer::isButtonAllowed(GJBaseGameLayer *a1, bool a2, int a3, bool a4)\n{\n  int v5; // [sp+0h] [bp-10h] BYREF\n  _BOOL4 v6; // [sp+4h] [bp-Ch] BYREF\n  int v7; // [sp+8h] [bp-8h]\n  _BOOL4 v8; // [sp+Ch] [bp-4h]\n\n  v6 = a2;\n  v7 = a3;\n  v8 = a4;\n  v5 = a2 + 10 * a4 + 1000 * a3;\n  sub_488790((int)&v6, &a1->m_allowedButtons._M_h._M_buckets, (unsigned int *)&v5);\n  return v7;\n}", "assembly": "; \n; GJBaseGameLayer::isButtonAllowed from 0x488904 to 0x488940 (60 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::handleButton @ 0x492d92\n; > GJBaseGameLayer::handleButton @ 0x492dcc\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            {R0-R6,LR}                                             ; +0x0, 0x488904\nMOVS            R6, #0xA                                               ; +0x2, 0x488906\nLDR             R5, =(__stack_chk_guard_ptr - 0x488910)                ; +0x4, 0x488908\nMULS            R3, R6                                                 ; +0x6, 0x48890a\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x8, 0x48890c\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xa, 0x48890e\nLDR             R4, [R5]                                               ; +0xc, 0x488910\nSTR             R4, [SP,#0x10+var_4]                                   ; +0xe, 0x488912\nMOV.W           R4, #0x3E8                                             ; +0x10, 0x488914\nMLA             R2, R4, R2, R3                                         ; +0x14, 0x488918\nADD             R1, R2                                                 ; +0x18, 0x48891c\nMOV             R2, SP                                                 ; +0x1a, 0x48891e\nSTR             R1, [SP,#0x10+var_10]                                  ; +0x1c, 0x488920\nADDW            R1, R0, #0x674                                         ; +0x1e, 0x488922\nADD             R0, SP, #0x10+var_C                                    ; +0x22, 0x488926\nBL              sub_488790                                             ; +0x24, 0x488928\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x28, 0x48892c\nLDR             R3, [R5]                                               ; +0x2a, 0x48892e\nLDRB.W          R0, [SP,#0x10+var_8]                                   ; +0x2c, 0x488930\nCMP             R2, R3                                                 ; +0x30, 0x488934\nBEQ             loc_48893C                                             ; +0x32, 0x488936\nBLX             __stack_chk_fail                                       ; +0x34, 0x488938\nADD             SP, SP, #0x10                                          ; +0x38, 0x48893c\nPOP             {R4-R6,PC}                                             ; +0x3a, 0x48893e", "xrefs": ["GJBaseGameLayer::handleButton @ 0x492d92", "GJBaseGameLayer::handleButton @ 0x492dcc"], "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"}