{"type": "func", "start": 464920, "end": 465016, "name": "sub_71818", "pseudocode": "// \n// sub_71818 from 0x71818 to 0x71878 (96 bytes)\n// \n// 1 xrefs:\n// > sub_71880 @ 0x71a66\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_71818(int a1, int a2, int *a3)\n{\n  int result; // r0\n  int v6; // r1\n  int v8; // r0\n  int v9; // r5\n\n  result = 0;\n  *a3 = 0;\n  v6 = *(_DWORD *)(a2 + 16);\n  if ( v6 )\n  {\n    v8 = sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v6, \"../../src/fmod_codec_fsb5.cpp\", 563);\n    if ( v8 )\n    {\n      v9 = v8;\n      result = sub_BB750(a1, v8, 1, *(_DWORD *)(a2 + 16), 0);\n      if ( !result )\n      {\n        *a3 = v9;\n        return 0;\n      }\n    }\n    else\n    {\n      return 38;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_71818 from 0x71818 to 0x71878 (96 bytes)\n; \n; 1 xrefs:\n; > sub_71880 @ 0x71a66\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, 0x71818\nADD             R7, SP, #0xC                                           ; +0x2, 0x7181a\nPUSH.W          {R8}                                                   ; +0x4, 0x7181c\nSUB             SP, SP, #0x10                                          ; +0x8, 0x71820\nMOV             R8, R0                                                 ; +0xa, 0x71822\nMOVS            R0, #0                                                 ; +0xc, 0x71824\nSTR             R0, [R2]                                               ; +0xe, 0x71826\nMOV             R6, R1                                                 ; +0x10, 0x71828\nLDR             R1, [R1,#0x10]                                         ; +0x12, 0x7182a\nCBZ             R1, loc_71870                                          ; +0x14, 0x7182c\nMOV             R4, R2                                                 ; +0x16, 0x7182e\nLDR             R2, =(off_E6144 - 0x71836)                             ; +0x18, 0x71830\nADD             R2, PC; off_E6144                                      ; +0x1a, 0x71832\nLDR             R2, [R2]; off_E8000                                    ; +0x1c, 0x71834\nLDR             R2, [R2]; dword_F2488                                  ; +0x1e, 0x71836\nLDR.W           R3, [R2,#(dword_F25D4 - 0xF2488)]                      ; +0x20, 0x71838\nMOVS            R2, #1                                                 ; +0x24, 0x7183c\nSTRD.W          R0, R0, [SP,#0x10+var_10]                              ; +0x26, 0x7183e\nSTR             R2, [SP,#0x10+var_8]                                   ; +0x2a, 0x71842\nLDR             R2, =(aSrcFmodCodecFs_0 - 0x71850); \"../../src/fmod_codec_fsb5.cpp\" ... ; +0x2c, 0x71844\nMOV             R0, R3                                                 ; +0x2e, 0x71846\nMOVW            R3, #0x233                                             ; +0x30, 0x71848\nADD             R2, PC; \"../../src/fmod_codec_fsb5.cpp\"                ; +0x34, 0x7184c\nBL              sub_BD410                                              ; +0x36, 0x7184e\nCBZ             R0, loc_7186E                                          ; +0x3a, 0x71852\nLDR             R3, [R6,#0x10]                                         ; +0x3c, 0x71854\nMOV             R5, R0                                                 ; +0x3e, 0x71856\nMOVS            R0, #0                                                 ; +0x40, 0x71858\nMOV             R1, R5                                                 ; +0x42, 0x7185a\nSTR             R0, [SP,#0x10+var_10]                                  ; +0x44, 0x7185c\nMOV             R0, R8                                                 ; +0x46, 0x7185e\nMOVS            R2, #1                                                 ; +0x48, 0x71860\nBL              sub_BB750                                              ; +0x4a, 0x71862\nCBNZ            R0, loc_71870                                          ; +0x4e, 0x71866\nMOVS            R0, #0                                                 ; +0x50, 0x71868\nSTR             R5, [R4]                                               ; +0x52, 0x7186a\nB               loc_71870                                              ; +0x54, 0x7186c\nMOVS            R0, #0x26 ; '&'                                        ; +0x56, 0x7186e\nADD             SP, SP, #0x10                                          ; +0x58, 0x71870\nPOP.W           {R8}                                                   ; +0x5a, 0x71872\nPOP             {R4-R7,PC}                                             ; +0x5e, 0x71876", "xrefs": ["sub_71880 @ 0x71a66"], "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"}