{"type": "func", "start": 463800, "end": 463966, "name": "sub_713B8", "pseudocode": "// \n// sub_713B8 from 0x713b8 to 0x7145e (166 bytes)\n// \n// 1 xrefs:\n// > sub_70F88 @ 0x70f88\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_713B8(int *a1, int a2, unsigned int a3, _DWORD *a4)\n{\n  unsigned int v8; // r0\n  int v9; // r1\n  unsigned int v10; // r5\n  int v11; // r1\n  int result; // r0\n  int v13; // [sp+4h] [bp-1Ch] BYREF\n\n  if ( !a1[56] )\n    return 31;\n  sub_71348(1u, &v13, a1[1]);\n  while ( a3 )\n  {\n    v8 = a1[74];\n    if ( !v8 )\n    {\n      a1[73] = 0;\n      sub_C6E34(a1, a1[56]);\n      v8 = a1[74];\n      if ( !v8 )\n        break;\n    }\n    v9 = a1[73];\n    v10 = a3;\n    if ( v9 + a3 >= v8 )\n    {\n      a1[74] = 0;\n      v10 = v8 - v9;\n    }\n    qmemcpy((void *)(a2 + v13 * *a4), (const void *)(a1[70] + v13 * v9), v13 * v10);\n    a3 -= v10;\n    a1[73] += v10;\n    *a4 += v10;\n  }\n  v11 = sub_C6D0A(a1[56]);\n  result = 0;\n  if ( v11 == 4 )\n  {\n    *a4 = 0;\n    return 16;\n  }\n  return result;\n}", "assembly": "; \n; sub_713B8 from 0x713b8 to 0x7145e (166 bytes)\n; \n; 1 xrefs:\n; > sub_70F88 @ 0x70f88\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, 0x713b8\nADD             R7, SP, #0xC                                           ; +0x2, 0x713ba\nPUSH.W          {R6-R10}                                               ; +0x4, 0x713bc\nMOV             R6, R0                                                 ; +0x8, 0x713c0\nLDR.W           R0, [R0,#0xE0]                                         ; +0xa, 0x713c2\nCMP             R0, #0                                                 ; +0xe, 0x713c6\nBEQ             loc_71456                                              ; +0x10, 0x713c8\nMOV             R4, R2                                                 ; +0x12, 0x713ca\nLDR             R2, [R6,#4]                                            ; +0x14, 0x713cc\nMOV             R8, R1                                                 ; +0x16, 0x713ce\nADD             R1, SP, #8+var_4                                       ; +0x18, 0x713d0\nMOV             R10, R3                                                ; +0x1a, 0x713d2\nMOVS            R0, #1                                                 ; +0x1c, 0x713d4\nMOVS            R3, #1                                                 ; +0x1e, 0x713d6\nBL              sub_71348                                              ; +0x20, 0x713d8\nMOV.W           R9, #0                                                 ; +0x24, 0x713dc\nCBZ             R4, loc_7143E                                          ; +0x28, 0x713e0\nLDR.W           R0, [R6,#0x128]                                        ; +0x2a, 0x713e2\nCBNZ            R0, loc_713FC                                          ; +0x2e, 0x713e6\nSTR.W           R9, [R6,#0x124]                                        ; +0x30, 0x713e8\nMOV             R0, R6                                                 ; +0x34, 0x713ec\nLDR.W           R1, [R6,#0xE0]                                         ; +0x36, 0x713ee\nBL              sub_C6E34                                              ; +0x3a, 0x713f2\nLDR.W           R0, [R6,#0x128]                                        ; +0x3e, 0x713f6\nCBZ             R0, loc_7143E                                          ; +0x42, 0x713fa\nLDR.W           R1, [R6,#0x124]                                        ; +0x44, 0x713fc\nMOV             R5, R4                                                 ; +0x48, 0x71400\nADDS            R2, R1, R4                                             ; +0x4a, 0x71402\nCMP             R2, R0                                                 ; +0x4c, 0x71404\nITT CS                                                                 ; +0x4e, 0x71406\nSTRCS.W         R9, [R6,#0x128]                                        ; +0x50, 0x71408\nSUBCS           R5, R0, R1                                             ; +0x54, 0x7140c\nLDR.W           R0, [R10]                                              ; +0x56, 0x7140e\nLDR             R2, [SP,#8+var_4]                                      ; +0x5a, 0x71412\nLDR.W           R3, [R6,#0x118]                                        ; +0x5c, 0x71414\nMLA             R0, R2, R0, R8                                         ; +0x60, 0x71418\nMLA             R1, R2, R1, R3                                         ; +0x64, 0x7141c\nMULS            R2, R5                                                 ; +0x68, 0x71420\nBLX             __aeabi_memcpy                                         ; +0x6a, 0x71422\nLDR.W           R0, [R6,#0x124]                                        ; +0x6e, 0x71426\nSUBS            R4, R4, R5                                             ; +0x72, 0x7142a\nADD             R0, R5                                                 ; +0x74, 0x7142c\nSTR.W           R0, [R6,#0x124]                                        ; +0x76, 0x7142e\nLDR.W           R0, [R10]                                              ; +0x7a, 0x71432\nADD             R0, R5                                                 ; +0x7e, 0x71436\nSTR.W           R0, [R10]                                              ; +0x80, 0x71438\nB               loc_713E0                                              ; +0x84, 0x7143c\nLDR.W           R0, [R6,#0xE0]                                         ; +0x86, 0x7143e\nBL              sub_C6D0A                                              ; +0x8a, 0x71442\nMOV             R1, R0                                                 ; +0x8e, 0x71446\nMOVS            R0, #0                                                 ; +0x90, 0x71448\nCMP             R1, #4                                                 ; +0x92, 0x7144a\nITT EQ                                                                 ; +0x94, 0x7144c\nSTREQ.W         R0, [R10]                                              ; +0x96, 0x7144e\nMOVEQ           R0, #0x10                                              ; +0x9a, 0x71452\nB               loc_71458                                              ; +0x9c, 0x71454\nMOVS            R0, #0x1F                                              ; +0x9e, 0x71456\nPOP.W           {R2,R3,R8-R10}                                         ; +0xa0, 0x71458\nPOP             {R4-R7,PC}                                             ; +0xa4, 0x7145c", "xrefs": ["sub_70F88 @ 0x70f88"], "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"}