{"type": "func", "start": 453124, "end": 453204, "name": "sub_6EA04", "pseudocode": "// \n// sub_6EA04 from 0x6ea04 to 0x6ea54 (80 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:59 +0000\n// \n\nint __fastcall sub_6EA04(int a1)\n{\n  int result; // r0\n  int v3; // r0\n\n  result = sub_5D838(*(_DWORD **)(a1 + 48), *(_DWORD *)(a1 + 36), *(_DWORD *)(a1 + 72), 0, 1);\n  if ( !result )\n  {\n    qmemcpy(\n      (void *)(*(_DWORD *)(a1 + 68) + 8 * (*(_DWORD *)(a1 + 8) + 1) * *(_DWORD *)(a1 + 32)),\n      *(const void **)(a1 + 72),\n      8 * (*(_DWORD *)(a1 + 8) + 1));\n    result = sub_6E9AC(a1);\n    if ( !result )\n    {\n      v3 = *(_DWORD *)(a1 + 32);\n      *(_DWORD *)(a1 + 32) = v3 - 1;\n      if ( v3 <= 0 )\n        *(_DWORD *)(a1 + 32) = *(_DWORD *)(a1 + 24) - 1;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_6EA04 from 0x6ea04 to 0x6ea54 (80 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:59 +0000\n; \nPUSH            {R2-R5,R7,LR}                                          ; +0x0, 0x6ea04\nADD             R7, SP, #0x10                                          ; +0x2, 0x6ea06\nMOV             R4, R0                                                 ; +0x4, 0x6ea08\nLDR             R1, [R0,#0x24]                                         ; +0x6, 0x6ea0a\nLDR             R0, [R0,#0x30]                                         ; +0x8, 0x6ea0c\nMOVS            R3, #1                                                 ; +0xa, 0x6ea0e\nLDR             R2, [R4,#0x48]                                         ; +0xc, 0x6ea10\nSTR             R3, [SP,#8+var_8]                                      ; +0xe, 0x6ea12\nMOVS            R3, #0                                                 ; +0x10, 0x6ea14\nBL              sub_5D838                                              ; +0x12, 0x6ea16\nCBNZ            R0, loc_6EA50                                          ; +0x16, 0x6ea1a\nLDR             R0, [R4,#8]                                            ; +0x18, 0x6ea1c\nLDR             R2, [R4,#0x20]                                         ; +0x1a, 0x6ea1e\nADDS            R5, R0, #1                                             ; +0x1c, 0x6ea20\nLDRD.W          R3, R1, [R4,#0x44]                                     ; +0x1e, 0x6ea22\nMUL             R0, R5, R2                                             ; +0x22, 0x6ea26\nLSLS            R2, R5, #3                                             ; +0x26, 0x6ea2a\nADD.W           R0, R3, R0,LSL#3                                       ; +0x28, 0x6ea2c\nBLX             __aeabi_memcpy4                                        ; +0x2c, 0x6ea30\nMOV             R0, R4                                                 ; +0x30, 0x6ea34\nBL              sub_6E9AC                                              ; +0x32, 0x6ea36\nCBNZ            R0, loc_6EA50                                          ; +0x36, 0x6ea3a\nLDR             R0, [R4,#0x20]                                         ; +0x38, 0x6ea3c\nCMP             R0, #0                                                 ; +0x3a, 0x6ea3e\nSUB.W           R1, R0, #1                                             ; +0x3c, 0x6ea40\nSTR             R1, [R4,#0x20]                                         ; +0x40, 0x6ea44\nBGT             loc_6EA4E                                              ; +0x42, 0x6ea46\nLDR             R0, [R4,#0x18]                                         ; +0x44, 0x6ea48\nSUBS            R0, #1                                                 ; +0x46, 0x6ea4a\nSTR             R0, [R4,#0x20]                                         ; +0x48, 0x6ea4c\nMOVS            R0, #0                                                 ; +0x4a, 0x6ea4e\nADD             SP, SP, #8                                             ; +0x4c, 0x6ea50\nPOP             {R4,R5,R7,PC}                                          ; +0x4e, 0x6ea52", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}