{"type": "func", "start": 322416, "end": 322536, "name": "sub_4EB70", "pseudocode": "// \n// sub_4EB70 from 0x4eb70 to 0x4ebe8 (120 bytes)\n// \n// 1 xrefs:\n// > sub_5B6F0 @ 0x5b73e\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_4EB70(_DWORD *a1, int a2)\n{\n  int i; // r6\n  int v5; // r0\n  int v6; // r1\n  int v7; // r2\n  int v8; // r2\n  int v10; // [sp+0h] [bp-18h] BYREF\n  char v11; // [sp+4h] [bp-14h]\n\n  v10 = *(_DWORD *)(a1[3] + 332);\n  j_FMOD_OS_CriticalSection_Enter(v10);\n  v11 = 1;\n  sub_503D8(a1 + 57, a2);\n  for ( i = 0; ; ++i )\n  {\n    v5 = a1[7];\n    if ( i >= v5 )\n      break;\n    sub_5006E(a1 + 57);\n  }\n  v6 = 0;\n  while ( v6 < v5 )\n  {\n    v7 = *(_DWORD *)(a1[8] + 4 * v6++);\n    v8 = v7 + a1[10];\n    *(_DWORD *)(v8 + 56) = a1[12];\n    a1[12] = v8;\n  }\n  sub_4D4EE((int)a1);\n  sub_44984((int)&v10);\n  return 0;\n}", "assembly": "; \n; sub_4EB70 from 0x4eb70 to 0x4ebe8 (120 bytes)\n; \n; 1 xrefs:\n; > sub_5B6F0 @ 0x5b73e\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, 0x4eb70\nADD             R7, SP, #0xC                                           ; +0x2, 0x4eb72\nPUSH.W          {R11}                                                  ; +0x4, 0x4eb74\nSUB             SP, SP, #8                                             ; +0x8, 0x4eb78\nMOV             R4, R0                                                 ; +0xa, 0x4eb7a\nLDR             R0, [R0,#0xC]                                          ; +0xc, 0x4eb7c\nMOV             R6, R1                                                 ; +0xe, 0x4eb7e\nLDR.W           R0, [R0,#0x14C]                                        ; +0x10, 0x4eb80\nSTR             R0, [SP,#8+var_8]                                      ; +0x14, 0x4eb84\nBLX             j_FMOD_OS_CriticalSection_Enter                        ; +0x16, 0x4eb86\nADD.W           R5, R4, #0xE4                                          ; +0x1a, 0x4eb8a\nMOVS            R0, #1                                                 ; +0x1e, 0x4eb8e\nSTRB.W          R0, [SP,#8+var_4]                                      ; +0x20, 0x4eb90\nMOV             R1, R6                                                 ; +0x24, 0x4eb94\nMOV             R0, R5                                                 ; +0x26, 0x4eb96\nBL              sub_503D8                                              ; +0x28, 0x4eb98\nMOVS            R6, #0                                                 ; +0x2c, 0x4eb9c\nLDR             R0, [R4,#0x1C]                                         ; +0x2e, 0x4eb9e\nCMP             R6, R0                                                 ; +0x30, 0x4eba0\nBGE             loc_4EBB8                                              ; +0x32, 0x4eba2\nLDR             R0, [R4,#0x20]                                         ; +0x34, 0x4eba4\nLDR             R1, [R4,#0x28]                                         ; +0x36, 0x4eba6\nLDR.W           R0, [R0,R6,LSL#2]                                      ; +0x38, 0x4eba8\nADD             R1, R0                                                 ; +0x3c, 0x4ebac\nMOV             R0, R5                                                 ; +0x3e, 0x4ebae\nBL              sub_5006E                                              ; +0x40, 0x4ebb0\nADDS            R6, #1                                                 ; +0x44, 0x4ebb4\nB               loc_4EB9E                                              ; +0x46, 0x4ebb6\nMOVS            R1, #0                                                 ; +0x48, 0x4ebb8\nCMP             R1, R0                                                 ; +0x4a, 0x4ebba\nBGE             loc_4EBD2                                              ; +0x4c, 0x4ebbc\nLDR             R2, [R4,#0x20]                                         ; +0x4e, 0x4ebbe\nLDR             R3, [R4,#0x28]                                         ; +0x50, 0x4ebc0\nLDR             R5, [R4,#0x30]                                         ; +0x52, 0x4ebc2\nLDR.W           R2, [R2,R1,LSL#2]                                      ; +0x54, 0x4ebc4\nADDS            R1, #1                                                 ; +0x58, 0x4ebc8\nADD             R2, R3                                                 ; +0x5a, 0x4ebca\nSTR             R5, [R2,#0x38]                                         ; +0x5c, 0x4ebcc\nSTR             R2, [R4,#0x30]                                         ; +0x5e, 0x4ebce\nB               loc_4EBBA                                              ; +0x60, 0x4ebd0\nMOV             R0, R4                                                 ; +0x62, 0x4ebd2\nBL              sub_4D4EE                                              ; +0x64, 0x4ebd4\nMOV             R0, SP                                                 ; +0x68, 0x4ebd8\nBL              sub_44984                                              ; +0x6a, 0x4ebda\nMOVS            R0, #0                                                 ; +0x6e, 0x4ebde\nADD             SP, SP, #8                                             ; +0x70, 0x4ebe0\nPOP.W           {R11}                                                  ; +0x72, 0x4ebe2\nPOP             {R4-R7,PC}                                             ; +0x76, 0x4ebe6", "xrefs": ["sub_5B6F0 @ 0x5b73e"], "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"}