{"type": "func", "start": 739484, "end": 739588, "name": "sub_B489C", "pseudocode": "// \n// sub_B489C from 0xb489c to 0xb4904 (104 bytes)\n// \n// 1 xrefs:\n// > sub_B5744 @ 0xb5748\n// \n// This function is hookable on this platform (idp: arm, 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:14:38 +0000\n// \n\n__int64 __fastcall sub_B489C(__int64 a1, int a2, int a3)\n{\n  if ( a2 )\n    return 31;\n  if ( a3 == -1 )\n  {\n    *(_WORD *)(a1 + 3561) = 257;\n    return 0;\n  }\n  else if ( a3 == -2 )\n  {\n    *(_BYTE *)(a1 + 3562) = 1;\n    return 0;\n  }\n  else\n  {\n    if ( a3 == -3 )\n      *(_BYTE *)(a1 + 3561) = 1;\n    else\n      *(_DWORD *)(a1 + 3692) = a3;\n    return 0;\n  }\n}", "assembly": "; \n; sub_B489C from 0xb489c to 0xb4904 (104 bytes)\n; \n; 1 xrefs:\n; > sub_B5744 @ 0xb5748\n; \n; This function is hookable on this platform (idp: arm, 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:14:38 +0000\n; \nCBZ             W1, loc_B48A8                                          ; +0x0, 0xb489c\nMOV             W0, #0x1F                                              ; +0x4, 0xb48a0\nRET                                                                    ; +0x8, 0xb48a4\nMOV             X8, X0                                                 ; +0xc, 0xb48a8\nCMN             W2, #1                                                 ; +0x10, 0xb48ac\nB.EQ            loc_B48D4                                              ; +0x14, 0xb48b0\nCMN             W2, #2                                                 ; +0x18, 0xb48b4\nB.EQ            loc_B48E8                                              ; +0x1c, 0xb48b8\nCMN             W2, #3                                                 ; +0x20, 0xb48bc\nB.NE            loc_B48F8                                              ; +0x24, 0xb48c0\nMOV             W0, WZR                                                ; +0x28, 0xb48c4\nMOV             W9, #1                                                 ; +0x2c, 0xb48c8\nSTRB            W9, [X8,#0xDE9]                                        ; +0x30, 0xb48cc\nRET                                                                    ; +0x34, 0xb48d0\nMOV             W0, WZR                                                ; +0x38, 0xb48d4\nADD             X8, X8, #0xDE9                                         ; +0x3c, 0xb48d8\nMOV             W9, #0x101                                             ; +0x40, 0xb48dc\nSTRH            W9, [X8]                                               ; +0x44, 0xb48e0\nRET                                                                    ; +0x48, 0xb48e4\nMOV             W0, WZR                                                ; +0x4c, 0xb48e8\nMOV             W9, #1                                                 ; +0x50, 0xb48ec\nSTRB            W9, [X8,#0xDEA]                                        ; +0x54, 0xb48f0\nRET                                                                    ; +0x58, 0xb48f4\nMOV             W0, WZR                                                ; +0x5c, 0xb48f8\nSTR             W2, [X8,#0xE6C]                                        ; +0x60, 0xb48fc\nRET                                                                    ; +0x64, 0xb4900", "xrefs": ["sub_B5744 @ 0xb5748"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}