{"type": "func", "start": 784580, "end": 784640, "name": "sub_BF8C4", "pseudocode": "// \n// sub_BF8C4 from 0xbf8c4 to 0xbf900 (60 bytes)\n// \n// 0 xrefs:\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 sub_BF8C4(int a1, int a2, _DWORD *a3)\n{\n  int v4; // r6\n  int v6; // r0\n\n  v4 = *(int *)((char *)&dword_154 + (_DWORD)off_E8000);\n  if ( !v4 )\n    return 18;\n  if ( !*(_DWORD *)v4 )\n    return 18;\n  v6 = (*(int (__fastcall **)(_DWORD, int, _DWORD))(v4 + 12))(*(_DWORD *)v4, a2 + 22, 0);\n  *(_DWORD *)(a1 + 4) = v6;\n  if ( !v6 )\n    return 18;\n  *a3 = (*(int (**)(void))(v4 + 28))();\n  return 0;\n}", "assembly": "; \n; sub_BF8C4 from 0xbf8c4 to 0xbf900 (60 bytes)\n; \n; 0 xrefs:\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            {R4-R7,LR}                                             ; +0x0, 0xbf8c4\nADD             R7, SP, #0xC                                           ; +0x2, 0xbf8c6\nPUSH.W          {R11}                                                  ; +0x4, 0xbf8c8\nMOV             R5, R0                                                 ; +0x8, 0xbf8cc\nLDR             R0, =(off_E6144 - 0xBF8D4)                             ; +0xa, 0xbf8ce\nADD             R0, PC; off_E6144                                      ; +0xc, 0xbf8d0\nLDR             R0, [R0]; off_E8000                                    ; +0xe, 0xbf8d2\nLDR             R0, [R0]; dword_F2488                                  ; +0x10, 0xbf8d4\nLDR.W           R6, [R0,#(dword_F25DC - 0xF2488)]                      ; +0x12, 0xbf8d6\nCBZ             R6, loc_BF8F8                                          ; +0x16, 0xbf8da\nLDR             R0, [R6]                                               ; +0x18, 0xbf8dc\nCBZ             R0, loc_BF8F8                                          ; +0x1a, 0xbf8de\nLDR             R3, [R6,#0xC]                                          ; +0x1c, 0xbf8e0\nADDS            R1, #0x16                                              ; +0x1e, 0xbf8e2\nMOV             R4, R2                                                 ; +0x20, 0xbf8e4\nMOVS            R2, #0                                                 ; +0x22, 0xbf8e6\nBLX             R3                                                     ; +0x24, 0xbf8e8\nSTR             R0, [R5,#4]                                            ; +0x26, 0xbf8ea\nCBZ             R0, loc_BF8F8                                          ; +0x28, 0xbf8ec\nLDR             R1, [R6,#0x1C]                                         ; +0x2a, 0xbf8ee\nBLX             R1                                                     ; +0x2c, 0xbf8f0\nSTR             R0, [R4]                                               ; +0x2e, 0xbf8f2\nMOVS            R0, #0                                                 ; +0x30, 0xbf8f4\nB               loc_BF8FA                                              ; +0x32, 0xbf8f6\nMOVS            R0, #0x12                                              ; +0x34, 0xbf8f8\nPOP.W           {R11}                                                  ; +0x36, 0xbf8fa\nPOP             {R4-R7,PC}                                             ; +0x3a, 0xbf8fe", "xrefs": [], "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"}