{"type": "func", "start": 512644, "end": 513352, "name": "sub_7D284", "pseudocode": "// \n// sub_7D284 from 0x7d284 to 0x7d548 (708 bytes)\n// \n// 1 xrefs:\n// > sub_7D558 @ 0x7d63c\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:41:15 +0000\n// \n\nint __fastcall sub_7D284(int a1, float *a2, int a3, int a4, _WORD *a5)\n{\n  int v5; // r6\n  int v6; // r0\n  float *v7; // r4\n  float *v9; // r0\n  float v10; // s4\n  float v11; // s4\n  int v12; // r5\n  float v13; // s4\n  int v14; // r4\n  int v15; // r5\n  int i; // r4\n  float v17; // s6\n  int v18; // r6\n\n  v5 = 16;\n  v6 = dword_F7820 + 4 * a3;\n  v7 = (float *)(dword_F7820 - 4 * a3 + 64);\n  v9 = (float *)(v6 - 128);\n  while ( 1 )\n  {\n    v10 = *a2 * *v7;\n    if ( !v5 )\n      break;\n    v11 = (float)((float)((float)((float)((float)((float)((float)((float)(v10 + (float)(a2[2] * v7[2]))\n                                                                + (float)(a2[4] * v7[4]))\n                                                        + (float)(a2[6] * v7[6]))\n                                                + (float)(a2[8] * v7[8]))\n                                        + (float)(a2[10] * v7[10]))\n                                + (float)(a2[12] * v7[12]))\n                        + (float)(a2[14] * v7[14]))\n                - (float)((float)((float)((float)((float)((float)((float)((float)(a2[1] * v7[1]) + (float)(a2[3] * v7[3]))\n                                                                + (float)(a2[5] * v7[5]))\n                                                        + (float)(a2[7] * v7[7]))\n                                                + (float)(a2[9] * v7[9]))\n                                        + (float)(a2[11] * v7[11]))\n                                + (float)(a2[13] * v7[13]))\n                        + (float)(a2[15] * v7[15])))\n        * 32767.0;\n    if ( v11 <= 32767.0 )\n    {\n      if ( v11 < -32768.0 )\n        LOWORD(v12) = 0x8000;\n      else\n        v12 = (int)v11;\n    }\n    else\n    {\n      LOWORD(v12) = 0x7FFF;\n    }\n    *a5 = v12;\n    a5 += a4;\n    v9 += 32;\n    v7 += 32;\n    a2 += 16;\n    --v5;\n  }\n  v13 = (float)((float)((float)((float)((float)((float)((float)(v10 + (float)(a2[2] * v7[2])) + (float)(a2[4] * v7[4]))\n                                              + (float)(a2[6] * v7[6]))\n                                      + (float)(a2[8] * v7[8]))\n                              + (float)(a2[10] * v7[10]))\n                      + (float)(a2[12] * v7[12]))\n              + (float)(a2[14] * v7[14]))\n      * 32767.0;\n  if ( v13 <= 32767.0 )\n  {\n    if ( v13 < -32768.0 )\n      LOWORD(v14) = 0x8000;\n    else\n      v14 = (int)v13;\n  }\n  else\n  {\n    LOWORD(v14) = 0x7FFF;\n  }\n  v15 = a4;\n  *a5 = v14;\n  for ( i = 0; i != -240; i -= 16 )\n  {\n    v17 = (float)((float)((float)((float)((float)((float)((float)((float)((float)((float)((float)((float)((float)((float)((float)((float)(a2[i - 16] * v9[15]) + (float)(a2[i - 15] * v9[14])) + (float)(a2[i - 14] * v9[13])) + (float)(a2[i - 13] * v9[12])) + (float)(a2[i - 12] * v9[11]))\n                                                                                                + (float)(a2[i - 11] * v9[10]))\n                                                                                        + (float)(a2[i - 10] * v9[9]))\n                                                                                + (float)(a2[i - 9] * v9[8]))\n                                                                        + (float)(a2[i - 8] * v9[7]))\n                                                                + (float)(a2[i - 7] * v9[6]))\n                                                        + (float)(a2[i - 6] * v9[5]))\n                                                + (float)(a2[i - 5] * v9[4]))\n                                        + (float)(a2[i - 4] * v9[3]))\n                                + (float)(a2[i - 3] * v9[2]))\n                        + (float)(a2[i - 2] * v9[1]))\n                + (float)(a2[i - 1] * *v9))\n        * -32767.0;\n    if ( v17 <= 32767.0 )\n    {\n      if ( v17 < -32768.0 )\n        LOWORD(v18) = 0x8000;\n      else\n        v18 = (int)v17;\n    }\n    else\n    {\n      LOWORD(v18) = 0x7FFF;\n    }\n    a5[v15] = v18;\n    v15 += a4;\n    v9 -= 32;\n  }\n  return 0;\n}", "assembly": "; \n; sub_7D284 from 0x7d284 to 0x7d548 (708 bytes)\n; \n; 1 xrefs:\n; > sub_7D558 @ 0x7d63c\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:41:15 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x7d284\nADD             R7, SP, #0xC                                           ; +0x2, 0x7d286\nPUSH.W          {R11}                                                  ; +0x4, 0x7d288\nVPUSH           {D8-D9}                                                ; +0x8, 0x7d28c\nLDR             R0, =(off_E623C - 0x7D2A0)                             ; +0xc, 0x7d290\nMOV.W           R12, R3,LSL#1                                          ; +0xe, 0x7d292\nVLDR            S0, =32767.0                                           ; +0x12, 0x7d296\nMOVS            R6, #0x10                                              ; +0x16, 0x7d29a\nADD             R0, PC; off_E623C                                      ; +0x18, 0x7d29c\nVLDR            S2, =-32768.0                                          ; +0x1a, 0x7d29e\nLDR             R0, [R0]; dword_F7820                                  ; +0x1e, 0x7d2a2\nLDR             R4, [R0]                                               ; +0x20, 0x7d2a4\nADD.W           R0, R4, R2,LSL#2                                       ; +0x22, 0x7d2a6\nSUB.W           R2, R4, R2,LSL#2                                       ; +0x26, 0x7d2aa\nADD.W           R4, R2, #0x40 ; '@'                                    ; +0x2a, 0x7d2ae\nLDR             R2, [R7,#-0x20+arg_0]                                  ; +0x2e, 0x7d2b2\nSUBS            R0, #0x80                                              ; +0x30, 0x7d2b4\nVLDR            S4, [R4]                                               ; +0x32, 0x7d2b6\nCMP             R6, #0                                                 ; +0x36, 0x7d2ba\nVLDR            S6, [R1]                                               ; +0x38, 0x7d2bc\nVMUL.F32        S4, S6, S4                                             ; +0x3c, 0x7d2c0\nBEQ             loc_7D3B6                                              ; +0x40, 0x7d2c4\nVLDR            S8, [R4,#8]                                            ; +0x42, 0x7d2c6\nVLDR            S1, [R1,#8]                                            ; +0x46, 0x7d2ca\nVLDR            S12, [R4,#0x10]                                        ; +0x4a, 0x7d2ce\nVMLA.F32        S4, S1, S8                                             ; +0x4e, 0x7d2d2\nVLDR            S5, [R1,#0x10]                                         ; +0x52, 0x7d2d6\nVLDR            S8, [R4,#0x18]                                         ; +0x56, 0x7d2da\nVLDR            S6, [R4,#4]                                            ; +0x5a, 0x7d2de\nVLDR            S14, [R1,#4]                                           ; +0x5e, 0x7d2e2\nVLDR            S10, [R4,#0xC]                                         ; +0x62, 0x7d2e6\nVMUL.F32        S6, S14, S6                                            ; +0x66, 0x7d2ea\nVLDR            S3, [R1,#0xC]                                          ; +0x6a, 0x7d2ee\nVMLA.F32        S4, S5, S12                                            ; +0x6e, 0x7d2f2\nVLDR            S12, [R1,#0x18]                                        ; +0x72, 0x7d2f6\nVMLA.F32        S6, S3, S10                                            ; +0x76, 0x7d2fa\nVLDR            S10, [R1,#0x14]                                        ; +0x7a, 0x7d2fe\nVMLA.F32        S4, S12, S8                                            ; +0x7e, 0x7d302\nVLDR            S8, [R4,#0x20]                                         ; +0x82, 0x7d306\nVLDR            S12, [R1,#0x20]                                        ; +0x86, 0x7d30a\nVMLA.F32        S4, S12, S8                                            ; +0x8a, 0x7d30e\nVLDR            S8, [R4,#0x28]                                         ; +0x8e, 0x7d312\nVLDR            S12, [R1,#0x28]                                        ; +0x92, 0x7d316\nVMLA.F32        S4, S12, S8                                            ; +0x96, 0x7d31a\nVLDR            S8, [R4,#0x30]                                         ; +0x9a, 0x7d31e\nVLDR            S12, [R1,#0x30]                                        ; +0x9e, 0x7d322\nVMLA.F32        S4, S12, S8                                            ; +0xa2, 0x7d326\nVLDR            S8, [R4,#0x38]                                         ; +0xa6, 0x7d32a\nVLDR            S12, [R1,#0x38]                                        ; +0xaa, 0x7d32e\nVMLA.F32        S4, S12, S8                                            ; +0xae, 0x7d332\nVLDR            S8, [R4,#0x14]                                         ; +0xb2, 0x7d336\nVMLA.F32        S6, S10, S8                                            ; +0xb6, 0x7d33a\nVLDR            S8, [R4,#0x1C]                                         ; +0xba, 0x7d33e\nVLDR            S10, [R1,#0x1C]                                        ; +0xbe, 0x7d342\nVMLA.F32        S6, S10, S8                                            ; +0xc2, 0x7d346\nVLDR            S8, [R4,#0x24]                                         ; +0xc6, 0x7d34a\nVLDR            S10, [R1,#0x24]                                        ; +0xca, 0x7d34e\nVMLA.F32        S6, S10, S8                                            ; +0xce, 0x7d352\nVLDR            S8, [R4,#0x2C]                                         ; +0xd2, 0x7d356\nVLDR            S10, [R1,#0x2C]                                        ; +0xd6, 0x7d35a\nVMLA.F32        S6, S10, S8                                            ; +0xda, 0x7d35e\nVLDR            S8, [R4,#0x34]                                         ; +0xde, 0x7d362\nVLDR            S10, [R1,#0x34]                                        ; +0xe2, 0x7d366\nVMLA.F32        S6, S10, S8                                            ; +0xe6, 0x7d36a\nVLDR            S8, [R4,#0x3C]                                         ; +0xea, 0x7d36e\nVLDR            S10, [R1,#0x3C]                                        ; +0xee, 0x7d372\nVMLA.F32        S6, S10, S8                                            ; +0xf2, 0x7d376\nVSUB.F32        S4, S4, S6                                             ; +0xf6, 0x7d37a\nVMUL.F32        S4, S4, S0                                             ; +0xfa, 0x7d37e\nVCMPE.F32       S4, S0                                                 ; +0xfe, 0x7d382\nVMRS            APSR_nzcv, FPSCR                                       ; +0x102, 0x7d386\nBLE             loc_7D392                                              ; +0x106, 0x7d38a\nMOVW            R5, #0x7FFF                                            ; +0x108, 0x7d38c\nB               loc_7D3A8                                              ; +0x10c, 0x7d390\nVCMPE.F32       S4, S2                                                 ; +0x10e, 0x7d392\nVMRS            APSR_nzcv, FPSCR                                       ; +0x112, 0x7d396\nITTE GE                                                                ; +0x116, 0x7d39a\nVCVTGE.S32.F32  S4, S4                                                 ; +0x118, 0x7d39c\nVMOVGE          R5, S4                                                 ; +0x11c, 0x7d3a0\nMOVLT.W         R5, #0x8000                                            ; +0x120, 0x7d3a4\nSTRH            R5, [R2]                                               ; +0x124, 0x7d3a8\nADD             R2, R12                                                ; +0x126, 0x7d3aa\nADDS            R0, #0x80                                              ; +0x128, 0x7d3ac\nADDS            R4, #0x80                                              ; +0x12a, 0x7d3ae\nADDS            R1, #0x40 ; '@'                                        ; +0x12c, 0x7d3b0\nSUBS            R6, #1                                                 ; +0x12e, 0x7d3b2\nB               loc_7D2B6                                              ; +0x130, 0x7d3b4\nVLDR            S6, [R4,#8]                                            ; +0x132, 0x7d3b6\nVLDR            S14, [R1,#8]                                           ; +0x136, 0x7d3ba\nVLDR            S8, [R4,#0x10]                                         ; +0x13a, 0x7d3be\nVMLA.F32        S4, S14, S6                                            ; +0x13e, 0x7d3c2\nVLDR            S1, [R1,#0x10]                                         ; +0x142, 0x7d3c6\nVLDR            S10, [R4,#0x18]                                        ; +0x146, 0x7d3ca\nVLDR            S3, [R1,#0x18]                                         ; +0x14a, 0x7d3ce\nVLDR            S12, [R4,#0x20]                                        ; +0x14e, 0x7d3d2\nVLDR            S5, [R1,#0x20]                                         ; +0x152, 0x7d3d6\nVLDR            S6, [R4,#0x28]                                         ; +0x156, 0x7d3da\nVMLA.F32        S4, S1, S8                                             ; +0x15a, 0x7d3de\nVLDR            S8, [R1,#0x28]                                         ; +0x15e, 0x7d3e2\nVMLA.F32        S4, S3, S10                                            ; +0x162, 0x7d3e6\nVMLA.F32        S4, S5, S12                                            ; +0x166, 0x7d3ea\nVMLA.F32        S4, S8, S6                                             ; +0x16a, 0x7d3ee\nVLDR            S6, [R4,#0x30]                                         ; +0x16e, 0x7d3f2\nVLDR            S8, [R1,#0x30]                                         ; +0x172, 0x7d3f6\nVMLA.F32        S4, S8, S6                                             ; +0x176, 0x7d3fa\nVLDR            S6, [R4,#0x38]                                         ; +0x17a, 0x7d3fe\nVLDR            S8, [R1,#0x38]                                         ; +0x17e, 0x7d402\nVMLA.F32        S4, S8, S6                                             ; +0x182, 0x7d406\nVMUL.F32        S4, S4, S0                                             ; +0x186, 0x7d40a\nVCMPE.F32       S4, S0                                                 ; +0x18a, 0x7d40e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x18e, 0x7d412\nBLE             loc_7D41E                                              ; +0x192, 0x7d416\nMOVW            R4, #0x7FFF                                            ; +0x194, 0x7d418\nB               loc_7D434                                              ; +0x198, 0x7d41c\nVCMPE.F32       S4, S2                                                 ; +0x19a, 0x7d41e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x19e, 0x7d422\nITTE GE                                                                ; +0x1a2, 0x7d426\nVCVTGE.S32.F32  S4, S4                                                 ; +0x1a4, 0x7d428\nVMOVGE          R4, S4                                                 ; +0x1a8, 0x7d42c\nMOVLT.W         R4, #0x8000                                            ; +0x1ac, 0x7d430\nVLDR            S4, =-32767.0                                          ; +0x1b0, 0x7d434\nMOV             R5, R3                                                 ; +0x1b4, 0x7d438\nSTRH            R4, [R2]                                               ; +0x1b6, 0x7d43a\nMOVS            R4, #0                                                 ; +0x1b8, 0x7d43c\nCMN.W           R4, #0x3C0                                             ; +0x1ba, 0x7d43e\nBEQ             loc_7D53C                                              ; +0x1be, 0x7d442\nADDS            R6, R1, R4                                             ; +0x1c0, 0x7d444\nVLDR            S6, [R0,#0x3C]                                         ; +0x1c2, 0x7d446\nVLDR            S10, [R0,#0x38]                                        ; +0x1c6, 0x7d44a\nVLDR            S8, [R6,#-0x40]                                        ; +0x1ca, 0x7d44e\nVLDR            S9, [R0,#0x1C]                                         ; +0x1ce, 0x7d452\nVMUL.F32        S6, S8, S6                                             ; +0x1d2, 0x7d456\nVLDR            S8, [R6,#-0x3C]                                        ; +0x1d6, 0x7d45a\nVLDR            S7, [R0,#0x18]                                         ; +0x1da, 0x7d45e\nVLDR            S5, [R0,#0x14]                                         ; +0x1de, 0x7d462\nVLDR            S3, [R0,#0x10]                                         ; +0x1e2, 0x7d466\nVLDR            S11, [R6,#-0x14]                                       ; +0x1e6, 0x7d46a\nVLDR            S1, [R0,#0xC]                                          ; +0x1ea, 0x7d46e\nVMLA.F32        S6, S8, S10                                            ; +0x1ee, 0x7d472\nVLDR            S8, [R6,#-0x38]                                        ; +0x1f2, 0x7d476\nVLDR            S10, [R0,#0x34]                                        ; +0x1f6, 0x7d47a\nVLDR            S13, [R6,#-0x10]                                       ; +0x1fa, 0x7d47e\nVLDR            S14, [R0,#8]                                           ; +0x1fe, 0x7d482\nVLDR            S15, [R6,#-0xC]                                        ; +0x202, 0x7d486\nVLDR            S12, [R0,#4]                                           ; +0x206, 0x7d48a\nVMLA.F32        S6, S8, S10                                            ; +0x20a, 0x7d48e\nVLDR            S8, [R6,#-0x34]                                        ; +0x20e, 0x7d492\nVLDR            S10, [R0,#0x30]                                        ; +0x212, 0x7d496\nVLDR            S16, [R6,#-8]                                          ; +0x216, 0x7d49a\nVLDR            S18, [R6,#-4]                                          ; +0x21a, 0x7d49e\nVMLA.F32        S6, S8, S10                                            ; +0x21e, 0x7d4a2\nVLDR            S8, [R6,#-0x30]                                        ; +0x222, 0x7d4a6\nVLDR            S10, [R0,#0x2C]                                        ; +0x226, 0x7d4aa\nVMLA.F32        S6, S8, S10                                            ; +0x22a, 0x7d4ae\nVLDR            S8, [R6,#-0x2C]                                        ; +0x22e, 0x7d4b2\nVLDR            S10, [R0,#0x28]                                        ; +0x232, 0x7d4b6\nVMLA.F32        S6, S8, S10                                            ; +0x236, 0x7d4ba\nVLDR            S8, [R6,#-0x28]                                        ; +0x23a, 0x7d4be\nVLDR            S10, [R0,#0x24]                                        ; +0x23e, 0x7d4c2\nVMLA.F32        S6, S8, S10                                            ; +0x242, 0x7d4c6\nVLDR            S8, [R6,#-0x24]                                        ; +0x246, 0x7d4ca\nVLDR            S10, [R0,#0x20]                                        ; +0x24a, 0x7d4ce\nVMLA.F32        S6, S8, S10                                            ; +0x24e, 0x7d4d2\nVLDR            S8, [R6,#-0x20]                                        ; +0x252, 0x7d4d6\nVLDR            S10, [R0]                                              ; +0x256, 0x7d4da\nVMLA.F32        S6, S8, S9                                             ; +0x25a, 0x7d4de\nVLDR            S8, [R6,#-0x1C]                                        ; +0x25e, 0x7d4e2\nVLDR            S9, [R6,#-0x18]                                        ; +0x262, 0x7d4e6\nVMLA.F32        S6, S8, S7                                             ; +0x266, 0x7d4ea\nVMLA.F32        S6, S9, S5                                             ; +0x26a, 0x7d4ee\nVMLA.F32        S6, S11, S3                                            ; +0x26e, 0x7d4f2\nVMLA.F32        S6, S13, S1                                            ; +0x272, 0x7d4f6\nVMLA.F32        S6, S15, S14                                           ; +0x276, 0x7d4fa\nVMLA.F32        S6, S16, S12                                           ; +0x27a, 0x7d4fe\nVMLA.F32        S6, S18, S10                                           ; +0x27e, 0x7d502\nVMUL.F32        S6, S6, S4                                             ; +0x282, 0x7d506\nVCMPE.F32       S6, S0                                                 ; +0x286, 0x7d50a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x28a, 0x7d50e\nBLE             loc_7D51A                                              ; +0x28e, 0x7d512\nMOVW            R6, #0x7FFF                                            ; +0x290, 0x7d514\nB               loc_7D530                                              ; +0x294, 0x7d518\nVCMPE.F32       S6, S2                                                 ; +0x296, 0x7d51a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x29a, 0x7d51e\nITTE GE                                                                ; +0x29e, 0x7d522\nVCVTGE.S32.F32  S6, S6                                                 ; +0x2a0, 0x7d524\nVMOVGE          R6, S6                                                 ; +0x2a4, 0x7d528\nMOVLT.W         R6, #0x8000                                            ; +0x2a8, 0x7d52c\nSTRH.W          R6, [R2,R5,LSL#1]                                      ; +0x2ac, 0x7d530\nADD             R5, R3                                                 ; +0x2b0, 0x7d534\nSUBS            R4, #0x40 ; '@'                                        ; +0x2b2, 0x7d536\nSUBS            R0, #0x80                                              ; +0x2b4, 0x7d538\nB               loc_7D43E                                              ; +0x2b6, 0x7d53a\nMOVS            R0, #0                                                 ; +0x2b8, 0x7d53c\nVPOP            {D8-D9}                                                ; +0x2ba, 0x7d53e\nPOP.W           {R11}                                                  ; +0x2be, 0x7d542\nPOP             {R4-R7,PC}                                             ; +0x2c2, 0x7d546", "xrefs": ["sub_7D558 @ 0x7d63c"], "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"}