{"type": "func", "start": 722992, "end": 723074, "name": "sub_B0830", "pseudocode": "// \n// sub_B0830 from 0xb0830 to 0xb0882 (82 bytes)\n// \n// 1 xrefs:\n// > sub_55EE4 @ 0x55f46\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_B0830(int a1, _DWORD *a2, int a3)\n{\n  int result; // r0\n  int (__fastcall *v6)(int, _DWORD *); // r3\n  _DWORD v7[14]; // [sp+0h] [bp-48h] BYREF\n\n  if ( a3 == 8 )\n  {\n    memset(v7, 0, 0x34u);\n    result = (*(int (__fastcall **)(int, _DWORD, _DWORD *))(a1 + 76))(a1, *(_DWORD *)(a1 + 164), v7);\n    if ( !result )\n      *a2 = v7[4];\n  }\n  else\n  {\n    v6 = *(int (__fastcall **)(int, _DWORD *))(a1 + 60);\n    if ( v6 )\n    {\n      return v6(a1, a2);\n    }\n    else\n    {\n      *a2 = 0;\n      return 68;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_B0830 from 0xb0830 to 0xb0882 (82 bytes)\n; \n; 1 xrefs:\n; > sub_55EE4 @ 0x55f46\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, 0xb0830\nADD             R7, SP, #0xC                                           ; +0x2, 0xb0832\nPUSH.W          {R11}                                                  ; +0x4, 0xb0834\nSUB             SP, SP, #0x38                                          ; +0x8, 0xb0838\nMOV             R4, R1                                                 ; +0xa, 0xb083a\nMOV             R5, R0                                                 ; +0xc, 0xb083c\nCMP             R2, #8                                                 ; +0xe, 0xb083e\nBNE             loc_B0860                                              ; +0x10, 0xb0840\nMOV             R6, SP                                                 ; +0x12, 0xb0842\nMOVS            R1, #0x34 ; '4'                                        ; +0x14, 0xb0844\nMOV             R0, R6                                                 ; +0x16, 0xb0846\nBLX             __aeabi_memclr8                                        ; +0x18, 0xb0848\nLDR             R3, [R5,#0x4C]                                         ; +0x1c, 0xb084c\nMOV             R0, R5                                                 ; +0x1e, 0xb084e\nLDR.W           R1, [R5,#0xA4]                                         ; +0x20, 0xb0850\nMOV             R2, R6                                                 ; +0x24, 0xb0854\nBLX             R3                                                     ; +0x26, 0xb0856\nCBNZ            R0, loc_B087A                                          ; +0x28, 0xb0858\nLDR             R1, [SP,#0x38+var_28]                                  ; +0x2a, 0xb085a\nSTR             R1, [R4]                                               ; +0x2c, 0xb085c\nB               loc_B087A                                              ; +0x2e, 0xb085e\nLDR             R3, [R5,#0x3C]                                         ; +0x30, 0xb0860\nCBZ             R3, loc_B0874                                          ; +0x32, 0xb0862\nMOV             R0, R5                                                 ; +0x34, 0xb0864\nMOV             R1, R4                                                 ; +0x36, 0xb0866\nADD             SP, SP, #0x38 ; '8'                                    ; +0x38, 0xb0868\nPOP.W           {R11}                                                  ; +0x3a, 0xb086a\nPOP.W           {R4-R7,LR}                                             ; +0x3e, 0xb086e\nBX              R3                                                     ; +0x42, 0xb0872\nMOVS            R0, #0                                                 ; +0x44, 0xb0874\nSTR             R0, [R4]                                               ; +0x46, 0xb0876\nMOVS            R0, #0x44 ; 'D'                                        ; +0x48, 0xb0878\nADD             SP, SP, #0x38 ; '8'                                    ; +0x4a, 0xb087a\nPOP.W           {R11}                                                  ; +0x4c, 0xb087c\nPOP             {R4-R7,PC}                                             ; +0x50, 0xb0880", "xrefs": ["sub_55EE4 @ 0x55f46"], "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"}