{"type": "func", "start": 453204, "end": 453380, "name": "sub_6EA54", "pseudocode": "// \n// sub_6EA54 from 0x6ea54 to 0x6eb04 (176 bytes)\n// \n// 0 xrefs:\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_6EA54(_DWORD *a1, const void *a2, float *a3, int a4, float a5, float a6, int a7)\n{\n  int result; // r0\n  int v11; // r0\n  int v12; // r1\n  int v13; // r0\n  int v15; // r2\n  float v16; // s6\n  int v17; // r2\n  int v18; // r2\n\n  if ( a7 > a4 )\n    return 28;\n  qmemcpy((void *)(a1[9] + 4 * a1[13]), a2, 4 * a4);\n  v11 = a1[2];\n  v12 = a1[13] + a4;\n  a1[13] = v12;\n  if ( v12 != v11 || (result = (*(int (__fastcall **)(_DWORD *))(*a1 + 12))(a1), a1[13] = 0, !result) )\n  {\n    v13 = 0;\n    while ( v13 < a7 )\n    {\n      v15 = a1[15] + v13++;\n      v16 = *a3 + (float)(*(float *)(a1[10] + 4 * v15) * a5);\n      a5 = a5 + a6;\n      *a3++ = v16;\n    }\n    while ( v13 < a4 )\n    {\n      v17 = a1[15] + v13++;\n      *a3 = *a3 + (float)(*(float *)(a1[10] + 4 * v17) * a5);\n      ++a3;\n    }\n    v18 = a1[15] + a4;\n    result = 0;\n    if ( v18 >= (a1[5] + 1) * a1[2] )\n      v18 = 0;\n    a1[15] = v18;\n  }\n  return result;\n}", "assembly": "; \n; sub_6EA54 from 0x6ea54 to 0x6eb04 (176 bytes)\n; \n; 0 xrefs:\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, 0x6ea54\nADD             R7, SP, #0xC                                           ; +0x2, 0x6ea56\nPUSH.W          {R8}                                                   ; +0x4, 0x6ea58\nLDR.W           R8, [R7,#-0x10+arg_8]                                  ; +0x8, 0x6ea5c\nCMP             R8, R3                                                 ; +0xc, 0x6ea60\nBLE             loc_6EA68                                              ; +0xe, 0x6ea62\nMOVS            R0, #0x1C                                              ; +0x10, 0x6ea64\nB               loc_6EAFE                                              ; +0x12, 0x6ea66\nMOV             R4, R0                                                 ; +0x14, 0x6ea68\nMOV             R5, R3                                                 ; +0x16, 0x6ea6a\nLDR             R3, [R4,#0x34]                                         ; +0x18, 0x6ea6c\nMOV             R6, R2                                                 ; +0x1a, 0x6ea6e\nLDR             R0, [R0,#0x24]                                         ; +0x1c, 0x6ea70\nLSLS            R2, R5, #2                                             ; +0x1e, 0x6ea72\nADD.W           R0, R0, R3,LSL#2                                       ; +0x20, 0x6ea74\nBLX             __aeabi_memcpy4                                        ; +0x24, 0x6ea78\nLDR             R1, [R4,#0x34]                                         ; +0x28, 0x6ea7c\nLDR             R0, [R4,#8]                                            ; +0x2a, 0x6ea7e\nADD             R1, R5                                                 ; +0x2c, 0x6ea80\nSTR             R1, [R4,#0x34]                                         ; +0x2e, 0x6ea82\nCMP             R1, R0                                                 ; +0x30, 0x6ea84\nBNE             loc_6EA96                                              ; +0x32, 0x6ea86\nLDR             R0, [R4]                                               ; +0x34, 0x6ea88\nLDR             R1, [R0,#0xC]                                          ; +0x36, 0x6ea8a\nMOV             R0, R4                                                 ; +0x38, 0x6ea8c\nBLX             R1                                                     ; +0x3a, 0x6ea8e\nMOVS            R1, #0                                                 ; +0x3c, 0x6ea90\nSTR             R1, [R4,#0x34]                                         ; +0x3e, 0x6ea92\nCBNZ            R0, loc_6EAFE                                          ; +0x40, 0x6ea94\nVLDR            S2, [R7,#-0x10+arg_4]                                  ; +0x42, 0x6ea96\nMOVS            R0, #0                                                 ; +0x46, 0x6ea9a\nVLDR            S0, [R7,#-0x10+arg_0]                                  ; +0x48, 0x6ea9c\nCMP             R0, R8                                                 ; +0x4c, 0x6eaa0\nBGE             loc_6EAE4                                              ; +0x4e, 0x6eaa2\nLDR             R2, [R4,#0x3C]                                         ; +0x50, 0x6eaa4\nLDR             R1, [R4,#0x28]                                         ; +0x52, 0x6eaa6\nADD             R2, R0                                                 ; +0x54, 0x6eaa8\nVLDR            S6, [R6]                                               ; +0x56, 0x6eaaa\nADDS            R0, #1                                                 ; +0x5a, 0x6eaae\nADD.W           R1, R1, R2,LSL#2                                       ; +0x5c, 0x6eab0\nVLDR            S4, [R1]                                               ; +0x60, 0x6eab4\nVMLA.F32        S6, S4, S0                                             ; +0x64, 0x6eab8\nVADD.F32        S0, S0, S2                                             ; +0x68, 0x6eabc\nVSTR            S6, [R6]                                               ; +0x6c, 0x6eac0\nADDS            R6, #4                                                 ; +0x70, 0x6eac4\nB               loc_6EAA0                                              ; +0x72, 0x6eac6\nLDR             R2, [R4,#0x3C]                                         ; +0x74, 0x6eac8\nLDR             R1, [R4,#0x28]                                         ; +0x76, 0x6eaca\nADD             R2, R0                                                 ; +0x78, 0x6eacc\nVLDR            S4, [R6]                                               ; +0x7a, 0x6eace\nADDS            R0, #1                                                 ; +0x7e, 0x6ead2\nADD.W           R1, R1, R2,LSL#2                                       ; +0x80, 0x6ead4\nVLDR            S2, [R1]                                               ; +0x84, 0x6ead8\nVMLA.F32        S4, S2, S0                                             ; +0x88, 0x6eadc\nVSTM            R6!, {S4}                                              ; +0x8c, 0x6eae0\nCMP             R0, R5                                                 ; +0x90, 0x6eae4\nBLT             loc_6EAC8                                              ; +0x92, 0x6eae6\nLDR             R1, [R4,#0x14]                                         ; +0x94, 0x6eae8\nLDR             R0, [R4,#8]                                            ; +0x96, 0x6eaea\nADDS            R1, #1                                                 ; +0x98, 0x6eaec\nLDR             R2, [R4,#0x3C]                                         ; +0x9a, 0x6eaee\nMULS            R1, R0                                                 ; +0x9c, 0x6eaf0\nADD             R2, R5                                                 ; +0x9e, 0x6eaf2\nMOVS            R0, #0                                                 ; +0xa0, 0x6eaf4\nCMP             R2, R1                                                 ; +0xa2, 0x6eaf6\nIT GE                                                                  ; +0xa4, 0x6eaf8\nMOVGE           R2, R0                                                 ; +0xa6, 0x6eafa\nSTR             R2, [R4,#0x3C]                                         ; +0xa8, 0x6eafc\nPOP.W           {R8}                                                   ; +0xaa, 0x6eafe\nPOP             {R4-R7,PC}                                             ; +0xae, 0x6eb02", "xrefs": [], "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"}