{"type": "func", "start": 794916, "end": 795022, "name": "sub_C2124", "pseudocode": "// \n// sub_C2124 from 0xc2124 to 0xc218e (106 bytes)\n// \n// 1 xrefs:\n// > sub_C205A @ 0xc2066\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_C2124(int a1, int a2, _BYTE *a3, int a4, int a5, int *a6, _DWORD *a7)\n{\n  int result; // r0\n  int v8; // r0\n  int v9; // r3\n  int v10; // [sp+4h] [bp-14h] BYREF\n\n  if ( a3 && a4 >= 1 )\n    sub_BE220(a3, \"Android audio output\", a4);\n  if ( a7 )\n    *a7 = 3;\n  result = 0;\n  if ( a6 )\n  {\n    v10 = 0;\n    result = sub_BFE7C((int)&v10);\n    if ( !result )\n    {\n      v8 = (*(int (__fastcall **)(int, int, const char *, const char *))(*(_DWORD *)v10 + 452))(\n             v10,\n             gFMODClass,\n             \"getOutputSampleRate\",\n             \"()I\");\n      if ( v8 )\n      {\n        *a6 = sub_BFA88(v10, gFMODClass, v8, v9);\n        return 0;\n      }\n      else\n      {\n        return 28;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_C2124 from 0xc2124 to 0xc218e (106 bytes)\n; \n; 1 xrefs:\n; > sub_C205A @ 0xc2066\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, 0xc2124\nADD             R7, SP, #0xC                                           ; +0x2, 0xc2126\nPUSH.W          {R11}                                                  ; +0x4, 0xc2128\nSUB             SP, SP, #8                                             ; +0x8, 0xc212c\nLDR             R5, [R7,#-0x10+arg_8]                                  ; +0xa, 0xc212e\nCBZ             R2, loc_C2142                                          ; +0xc, 0xc2130\nCMP             R3, #1                                                 ; +0xe, 0xc2132\nBLT             loc_C2142                                              ; +0x10, 0xc2134\nLDR             R1, =(aAndroidAudioOu - 0xC2140); \"Android audio output\" ... ; +0x12, 0xc2136\nMOV             R0, R2                                                 ; +0x14, 0xc2138\nMOV             R2, R3                                                 ; +0x16, 0xc213a\nADD             R1, PC; \"Android audio output\"                         ; +0x18, 0xc213c\nBL              sub_BE220                                              ; +0x1a, 0xc213e\nLDR             R4, [R7,#-0x10+arg_4]                                  ; +0x1e, 0xc2142\nCBZ             R5, loc_C214A                                          ; +0x20, 0xc2144\nMOVS            R0, #3                                                 ; +0x22, 0xc2146\nSTR             R0, [R5]                                               ; +0x24, 0xc2148\nMOVS            R0, #0                                                 ; +0x26, 0xc214a\nCBZ             R4, loc_C2186                                          ; +0x28, 0xc214c\nSTR             R0, [SP,#8+var_4]                                      ; +0x2a, 0xc214e\nADD             R0, SP, #8+var_4                                       ; +0x2c, 0xc2150\nBL              sub_BFE7C                                              ; +0x2e, 0xc2152\nCBNZ            R0, loc_C2186                                          ; +0x32, 0xc2156\nLDR             R0, [SP,#8+var_4]                                      ; +0x34, 0xc2158\nLDR             R1, [R0]                                               ; +0x36, 0xc215a\nLDR.W           R6, [R1,#0x1C4]                                        ; +0x38, 0xc215c\nLDR             R1, =(gFMODClass_ptr - 0xC2166)                        ; +0x3c, 0xc2160\nADD             R1, PC; gFMODClass_ptr                                 ; +0x3e, 0xc2162\nLDR             R5, [R1]; gFMODClass                                   ; +0x40, 0xc2164\nLDR             R1, [R5]                                               ; +0x42, 0xc2166\nLDR             R2, =(aGetoutputsampl - 0xC2170); \"getOutputSampleRate\" ... ; +0x44, 0xc2168\nLDR             R3, =(aI - 0xC2172); \"()I\" ...                         ; +0x46, 0xc216a\nADD             R2, PC; \"getOutputSampleRate\"                          ; +0x48, 0xc216c\nADD             R3, PC; \"()I\"                                          ; +0x4a, 0xc216e\nBLX             R6                                                     ; +0x4c, 0xc2170\nCBZ             R0, loc_C2184                                          ; +0x4e, 0xc2172\nMOV             R2, R0                                                 ; +0x50, 0xc2174\nLDR             R1, [R5]                                               ; +0x52, 0xc2176\nLDR             R0, [SP,#8+var_4]                                      ; +0x54, 0xc2178\nBL              sub_BFA88                                              ; +0x56, 0xc217a\nSTR             R0, [R4]                                               ; +0x5a, 0xc217e\nMOVS            R0, #0                                                 ; +0x5c, 0xc2180\nB               loc_C2186                                              ; +0x5e, 0xc2182\nMOVS            R0, #0x1C                                              ; +0x60, 0xc2184\nADD             SP, SP, #8                                             ; +0x62, 0xc2186\nPOP.W           {R11}                                                  ; +0x64, 0xc2188\nPOP             {R4-R7,PC}                                             ; +0x68, 0xc218c", "xrefs": ["sub_C205A @ 0xc2066"], "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"}