{"type": "func", "start": 796056, "end": 796122, "name": "sub_C2598", "pseudocode": "// \n// sub_C2598 from 0xc2598 to 0xc25da (66 bytes)\n// \n// 1 xrefs:\n// > sub_C20A8 @ 0xc20ae\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_C2598(int a1)\n{\n  int result; // r0\n\n  result = sub_BE65C(a1 + 844, \"FMOD mixer thread\", (int)sub_C25E4, a1, 0, 1, 0, *(_DWORD *)(a1 + 36), 1);\n  if ( !result )\n  {\n    result = (***(int (__fastcall ****)(_DWORD, int))(a1 + 836))(*(_DWORD *)(a1 + 836), 3);\n    if ( result )\n      return 28;\n  }\n  return result;\n}", "assembly": "; \n; sub_C2598 from 0xc2598 to 0xc25da (66 bytes)\n; \n; 1 xrefs:\n; > sub_C20A8 @ 0xc20ae\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,R6,R7,LR}                                          ; +0x0, 0xc2598\nADD             R7, SP, #8                                             ; +0x2, 0xc259a\nSUB             SP, SP, #0x18                                          ; +0x4, 0xc259c\nMOV             R4, R0                                                 ; +0x6, 0xc259e\nLDR             R0, [R0,#0x24]                                         ; +0x8, 0xc25a0\nMOVS            R1, #1                                                 ; +0xa, 0xc25a2\nMOVS            R2, #0                                                 ; +0xc, 0xc25a4\nSTRD.W          R2, R1, [SP,#0x18+var_18]                              ; +0xe, 0xc25a6\nMOV             R3, R4                                                 ; +0x12, 0xc25aa\nSTRD.W          R2, R0, [SP,#0x18+var_10]                              ; +0x14, 0xc25ac\nADD.W           R0, R4, #0x34C                                         ; +0x18, 0xc25b0\nSTR             R1, [SP,#0x18+var_8]                                   ; +0x1c, 0xc25b4\nLDR             R1, =(aFmodMixerThrea - 0xC25BE); \"FMOD mixer thread\" ... ; +0x1e, 0xc25b6\nLDR             R2, =(sub_C25E4+1 - 0xC25C0)                           ; +0x20, 0xc25b8\nADD             R1, PC; \"FMOD mixer thread\"                            ; +0x22, 0xc25ba\nADD             R2, PC; sub_C25E4                                      ; +0x24, 0xc25bc\nBL              sub_BE65C                                              ; +0x26, 0xc25be\nCBNZ            R0, loc_C25D6                                          ; +0x2a, 0xc25c2\nLDR.W           R0, [R4,#0x344]                                        ; +0x2c, 0xc25c4\nLDR             R1, [R0]                                               ; +0x30, 0xc25c8\nLDR             R2, [R1]                                               ; +0x32, 0xc25ca\nMOVS            R1, #3                                                 ; +0x34, 0xc25cc\nBLX             R2                                                     ; +0x36, 0xc25ce\nCMP             R0, #0                                                 ; +0x38, 0xc25d0\nIT NE                                                                  ; +0x3a, 0xc25d2\nMOVNE           R0, #0x1C                                              ; +0x3c, 0xc25d4\nADD             SP, SP, #0x18                                          ; +0x3e, 0xc25d6\nPOP             {R4,R6,R7,PC}                                          ; +0x40, 0xc25d8", "xrefs": ["sub_C20A8 @ 0xc20ae"], "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"}