{"type": "func", "start": 443336, "end": 443440, "name": "sub_6C3C8", "pseudocode": "// \n// sub_6C3C8 from 0x6c3c8 to 0x6c430 (104 bytes)\n// \n// 1 xrefs:\n// > sub_6BE4E @ 0x6be6a\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_6C3C8(int a1, int a2)\n{\n  int v4; // r1\n  int v5; // r0\n\n  if ( *(_DWORD *)(a1 + 32) >= a2 )\n    return 0;\n  v4 = *(_DWORD *)(a1 + 24);\n  if ( v4 )\n    sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v4, \"../../src/fmod_profile_remotefile.cpp\", 649, 1);\n  v5 = sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), a2, \"../../src/fmod_profile_remotefile.cpp\", 652);\n  *(_DWORD *)(a1 + 24) = v5;\n  if ( v5 )\n  {\n    *(_DWORD *)(a1 + 32) = a2;\n    return 0;\n  }\n  return 38;\n}", "assembly": "; \n; sub_6C3C8 from 0x6c3c8 to 0x6c430 (104 bytes)\n; \n; 1 xrefs:\n; > sub_6BE4E @ 0x6be6a\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, 0x6c3c8\nADD             R7, SP, #0xC                                           ; +0x2, 0x6c3ca\nPUSH.W          {R11}                                                  ; +0x4, 0x6c3cc\nSUB             SP, SP, #0x10                                          ; +0x8, 0x6c3d0\nMOV             R5, R0                                                 ; +0xa, 0x6c3d2\nLDR             R0, [R0,#0x20]                                         ; +0xc, 0x6c3d4\nCMP             R0, R1                                                 ; +0xe, 0x6c3d6\nBGE             loc_6C422                                              ; +0x10, 0x6c3d8\nMOV             R4, R1                                                 ; +0x12, 0x6c3da\nLDR             R1, [R5,#0x18]                                         ; +0x14, 0x6c3dc\nLDR             R6, =(off_E6144 - 0x6C3E4)                             ; +0x16, 0x6c3de\nADD             R6, PC; off_E6144                                      ; +0x18, 0x6c3e0\nCBZ             R1, loc_6C3FC                                          ; +0x1a, 0x6c3e2\nLDR             R0, [R6]; off_E8000                                    ; +0x1c, 0x6c3e4\nMOVS            R2, #1                                                 ; +0x1e, 0x6c3e6\nMOVW            R3, #0x289                                             ; +0x20, 0x6c3e8\nLDR             R0, [R0]; dword_F2488                                  ; +0x24, 0x6c3ec\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x26, 0x6c3ee\nSTR             R2, [SP,#0x10+var_10]                                  ; +0x2a, 0x6c3f2\nLDR             R2, =(aSrcFmodProfile_3 - 0x6C3FA); \"../../src/fmod_profile_remotefile.cpp\" ... ; +0x2c, 0x6c3f4\nADD             R2, PC; \"../../src/fmod_profile_remotefile.cpp\"        ; +0x2e, 0x6c3f6\nBL              sub_BD7AC                                              ; +0x30, 0x6c3f8\nLDR             R0, [R6]; off_E8000                                    ; +0x34, 0x6c3fc\nMOVS            R1, #1                                                 ; +0x36, 0x6c3fe\nMOVS            R2, #0                                                 ; +0x38, 0x6c400\nMOV.W           R3, #0x28C                                             ; +0x3a, 0x6c402\nLDR             R0, [R0]; dword_F2488                                  ; +0x3e, 0x6c406\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x40, 0x6c408\nSTRD.W          R2, R2, [SP,#0x10+var_10]                              ; +0x44, 0x6c40c\nSTR             R1, [SP,#0x10+var_8]                                   ; +0x48, 0x6c410\nMOV             R1, R4                                                 ; +0x4a, 0x6c412\nLDR             R2, =(aSrcFmodProfile_3 - 0x6C41A); \"../../src/fmod_profile_remotefile.cpp\" ... ; +0x4c, 0x6c414\nADD             R2, PC; \"../../src/fmod_profile_remotefile.cpp\"        ; +0x4e, 0x6c416\nBL              sub_BD410                                              ; +0x50, 0x6c418\nSTR             R0, [R5,#0x18]                                         ; +0x54, 0x6c41c\nCBZ             R0, loc_6C426                                          ; +0x56, 0x6c41e\nSTR             R4, [R5,#0x20]                                         ; +0x58, 0x6c420\nMOVS            R0, #0                                                 ; +0x5a, 0x6c422\nB               loc_6C428                                              ; +0x5c, 0x6c424\nMOVS            R0, #0x26 ; '&'                                        ; +0x5e, 0x6c426\nADD             SP, SP, #0x10                                          ; +0x60, 0x6c428\nPOP.W           {R11}                                                  ; +0x62, 0x6c42a\nPOP             {R4-R7,PC}                                             ; +0x66, 0x6c42e", "xrefs": ["sub_6BE4E @ 0x6be6a"], "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"}