{"type": "func", "start": 785516, "end": 785664, "name": "sub_BFC6C", "pseudocode": "// \n// sub_BFC6C from 0xbfc6c to 0xbfd00 (148 bytes)\n// \n// 2 xrefs:\n// > JNI_OnLoad @ 0xbfc4a\n// > FMOD_Android_JNI_Init @ 0xbfdba\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_BFC6C(int a1, int a2, int a3)\n{\n  int v6; // r0\n  int v7; // r10\n  int v8; // r0\n  int v9; // r9\n  int v10; // r0\n  int v11; // r8\n\n  v6 = sub_BFEAC(a1, \"org/fmod/FMOD\", a2, a3);\n  if ( !v6 )\n    return 28;\n  v7 = v6;\n  v8 = sub_BFEAC(a1, \"org/fmod/AudioDevice\", a2, a3);\n  if ( !v8 )\n    return 28;\n  v9 = v8;\n  v10 = sub_BFEAC(a1, \"org/fmod/MediaCodec\", a2, a3);\n  if ( !v10 )\n    return 28;\n  v11 = v10;\n  gFMODClass = (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 84))(a1, v7);\n  gAudioDeviceClass = (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 84))(a1, v9);\n  gMediaCodecClass = (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 84))(a1, v11);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)a1 + 92))(a1, v7);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)a1 + 92))(a1, v9);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)a1 + 92))(a1, v11);\n  return 0;\n}", "assembly": "; \n; sub_BFC6C from 0xbfc6c to 0xbfd00 (148 bytes)\n; \n; 2 xrefs:\n; > JNI_OnLoad @ 0xbfc4a\n; > FMOD_Android_JNI_Init @ 0xbfdba\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, 0xbfc6c\nADD             R7, SP, #0xC                                           ; +0x2, 0xbfc6e\nPUSH.W          {R8-R10}                                               ; +0x4, 0xbfc70\nMOV             R5, R1                                                 ; +0x8, 0xbfc74\nLDR             R1, =(aOrgFmodFmod - 0xBFC80); \"org/fmod/FMOD\" ...     ; +0xa, 0xbfc76\nMOV             R6, R2                                                 ; +0xc, 0xbfc78\nMOV             R2, R5                                                 ; +0xe, 0xbfc7a\nADD             R1, PC; \"org/fmod/FMOD\"                                ; +0x10, 0xbfc7c\nMOV             R3, R6                                                 ; +0x12, 0xbfc7e\nMOV             R4, R0                                                 ; +0x14, 0xbfc80\nBL              sub_BFEAC                                              ; +0x16, 0xbfc82\nCBZ             R0, loc_BFCF8                                          ; +0x1a, 0xbfc86\nLDR             R1, =(aOrgFmodAudiode - 0xBFC94); \"org/fmod/AudioDevice\" ... ; +0x1c, 0xbfc88\nMOV             R10, R0                                                ; +0x1e, 0xbfc8a\nMOV             R0, R4                                                 ; +0x20, 0xbfc8c\nMOV             R2, R5                                                 ; +0x22, 0xbfc8e\nADD             R1, PC; \"org/fmod/AudioDevice\"                         ; +0x24, 0xbfc90\nMOV             R3, R6                                                 ; +0x26, 0xbfc92\nBL              sub_BFEAC                                              ; +0x28, 0xbfc94\nCBZ             R0, loc_BFCF8                                          ; +0x2c, 0xbfc98\nLDR             R1, =(aOrgFmodMediaco - 0xBFCA6); \"org/fmod/MediaCodec\" ... ; +0x2e, 0xbfc9a\nMOV             R9, R0                                                 ; +0x30, 0xbfc9c\nMOV             R0, R4                                                 ; +0x32, 0xbfc9e\nMOV             R2, R5                                                 ; +0x34, 0xbfca0\nADD             R1, PC; \"org/fmod/MediaCodec\"                          ; +0x36, 0xbfca2\nMOV             R3, R6                                                 ; +0x38, 0xbfca4\nBL              sub_BFEAC                                              ; +0x3a, 0xbfca6\nCBZ             R0, loc_BFCF8                                          ; +0x3e, 0xbfcaa\nMOV             R8, R0                                                 ; +0x40, 0xbfcac\nLDR             R0, [R4]                                               ; +0x42, 0xbfcae\nMOV             R1, R10                                                ; +0x44, 0xbfcb0\nLDR             R2, [R0,#0x54]                                         ; +0x46, 0xbfcb2\nMOV             R0, R4                                                 ; +0x48, 0xbfcb4\nBLX             R2                                                     ; +0x4a, 0xbfcb6\nLDR             R5, =(gAudioDeviceClass - 0xBFCC0)                     ; +0x4c, 0xbfcb8\nMOV             R1, R9                                                 ; +0x4e, 0xbfcba\nADD             R5, PC; gAudioDeviceClass                              ; +0x50, 0xbfcbc\nSTR             R0, [R5,#(gFMODClass - 0x1261B8)]                      ; +0x52, 0xbfcbe\nLDR             R0, [R4]                                               ; +0x54, 0xbfcc0\nLDR             R2, [R0,#0x54]                                         ; +0x56, 0xbfcc2\nMOV             R0, R4                                                 ; +0x58, 0xbfcc4\nBLX             R2                                                     ; +0x5a, 0xbfcc6\nSTR             R0, [R5]                                               ; +0x5c, 0xbfcc8\nMOV             R1, R8                                                 ; +0x5e, 0xbfcca\nLDR             R0, [R4]                                               ; +0x60, 0xbfccc\nLDR             R2, [R0,#0x54]                                         ; +0x62, 0xbfcce\nMOV             R0, R4                                                 ; +0x64, 0xbfcd0\nBLX             R2                                                     ; +0x66, 0xbfcd2\nSTR             R0, [R5,#(gMediaCodecClass - 0x1261B8)]                ; +0x68, 0xbfcd4\nMOV             R1, R10                                                ; +0x6a, 0xbfcd6\nLDR             R0, [R4]                                               ; +0x6c, 0xbfcd8\nLDR             R2, [R0,#0x5C]                                         ; +0x6e, 0xbfcda\nMOV             R0, R4                                                 ; +0x70, 0xbfcdc\nBLX             R2                                                     ; +0x72, 0xbfcde\nLDR             R0, [R4]                                               ; +0x74, 0xbfce0\nMOV             R1, R9                                                 ; +0x76, 0xbfce2\nLDR             R2, [R0,#0x5C]                                         ; +0x78, 0xbfce4\nMOV             R0, R4                                                 ; +0x7a, 0xbfce6\nBLX             R2                                                     ; +0x7c, 0xbfce8\nLDR             R0, [R4]                                               ; +0x7e, 0xbfcea\nMOV             R1, R8                                                 ; +0x80, 0xbfcec\nLDR             R2, [R0,#0x5C]                                         ; +0x82, 0xbfcee\nMOV             R0, R4                                                 ; +0x84, 0xbfcf0\nBLX             R2                                                     ; +0x86, 0xbfcf2\nMOVS            R0, #0                                                 ; +0x88, 0xbfcf4\nB               loc_BFCFA                                              ; +0x8a, 0xbfcf6\nMOVS            R0, #0x1C                                              ; +0x8c, 0xbfcf8\nPOP.W           {R8-R10}                                               ; +0x8e, 0xbfcfa\nPOP             {R4-R7,PC}                                             ; +0x92, 0xbfcfe", "xrefs": ["JNI_OnLoad @ 0xbfc4a", "FMOD_Android_JNI_Init @ 0xbfdba"], "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"}