{"type": "func", "start": 845632, "end": 846172, "name": "sub_CE740", "pseudocode": "// \n// sub_CE740 from 0xce740 to 0xce95c (540 bytes)\n// \n// 1 xrefs:\n// > sub_CDEB8 @ 0xcdf00\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:49 +0000\n// \n\nvoid **__fastcall sub_CE740(void **result, unsigned int a2, int a3, float *a4)\n{\n  float *v4; // x8\n  unsigned int j; // w9\n  float v6; // s2\n  float v7; // s3\n  float v8; // s4\n  float v9; // s0\n  float v10; // s1\n  float *v11; // x8\n  unsigned int i; // w9\n  float v13; // s3\n  float v14; // s1\n  float v15; // s4\n  float v16; // s0\n  int v17; // w8\n  __int64 k; // x9\n  _DWORD *v19; // x14\n  __int64 v20; // x13\n  float v21; // s0\n  float v22; // s1\n\n  switch ( a3 )\n  {\n    case 1:\n      return (void **)memmove(result[1], a4, 4LL * a2);\n    case 6:\n      v11 = (float *)result[1];\n      for ( i = a2 >> 2; i; v11 += 4 )\n      {\n        --i;\n        *v11 = a4[1] + (float)((float)((float)((float)(*a4 + a4[2]) + a4[3]) + a4[4]) + a4[5]);\n        v11[1] = a4[7] + (float)((float)((float)((float)(a4[6] + a4[8]) + a4[9]) + a4[10]) + a4[11]);\n        v11[2] = a4[13] + (float)((float)((float)((float)(a4[12] + a4[14]) + a4[15]) + a4[16]) + a4[17]);\n        v13 = a4[19];\n        v15 = a4[22];\n        v14 = a4[23];\n        v16 = (float)(a4[18] + a4[20]) + a4[21];\n        a4 += 24;\n        v11[3] = v13 + (float)((float)(v16 + v15) + v14);\n      }\n      break;\n    case 8:\n      v4 = (float *)result[1];\n      for ( j = a2 >> 2; j; v4 += 4 )\n      {\n        --j;\n        *v4 = a4[1]\n            + (float)((float)((float)((float)((float)((float)(*a4 + a4[2]) + a4[3]) + a4[4]) + a4[5]) + a4[6]) + a4[7]);\n        v4[1] = a4[9]\n              + (float)((float)((float)((float)((float)((float)(a4[8] + a4[10]) + a4[11]) + a4[12]) + a4[13]) + a4[14])\n                      + a4[15]);\n        v4[2] = a4[17]\n              + (float)((float)((float)((float)((float)((float)(a4[16] + a4[18]) + a4[19]) + a4[20]) + a4[21]) + a4[22])\n                      + a4[23]);\n        v6 = a4[25];\n        v8 = a4[29];\n        v7 = a4[30];\n        v9 = (float)((float)(a4[24] + a4[26]) + a4[27]) + a4[28];\n        v10 = a4[31];\n        a4 += 32;\n        v4[3] = v6 + (float)((float)((float)(v9 + v8) + v7) + v10);\n      }\n      break;\n    default:\n      v17 = 0;\n      for ( k = 0; k != a2; ++k )\n      {\n        v19 = result[1];\n        v20 = 0;\n        v21 = 0.0;\n        v19[k] = 0;\n        while ( v20 < a3 )\n        {\n          v22 = a4[(unsigned int)(v17 + v20++)];\n          v21 = v21 + v22;\n          *(float *)&v19[k] = v21;\n        }\n        v17 += a3;\n      }\n      break;\n  }\n  return result;\n}", "assembly": "; \n; sub_CE740 from 0xce740 to 0xce95c (540 bytes)\n; \n; 1 xrefs:\n; > sub_CDEB8 @ 0xcdf00\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:49 +0000\n; \nCMP             W2, #1                                                 ; +0x0, 0xce740\nB.EQ            loc_CE83C                                              ; +0x4, 0xce744\nCMP             W2, #6                                                 ; +0x8, 0xce748\nB.EQ            loc_CE850                                              ; +0xc, 0xce74c\nCMP             W2, #8                                                 ; +0x10, 0xce750\nB.NE            loc_CE900                                              ; +0x14, 0xce754\nLDR             X8, [X0,#8]                                            ; +0x18, 0xce758\nLSR             W9, W1, #2                                             ; +0x1c, 0xce75c\nCBZ             W9, locret_CE958                                       ; +0x20, 0xce760\nLDP             S0, S1, [X3]                                           ; +0x24, 0xce764\nLDP             S2, S3, [X3,#8]                                        ; +0x28, 0xce768\nLDP             S4, S5, [X3,#0x10]                                     ; +0x2c, 0xce76c\nSUB             W9, W9, #1                                             ; +0x30, 0xce770\nFADD            S0, S0, S2                                             ; +0x34, 0xce774\nFADD            S0, S0, S3                                             ; +0x38, 0xce778\nLDP             S2, S3, [X3,#0x18]                                     ; +0x3c, 0xce77c\nFADD            S0, S0, S4                                             ; +0x40, 0xce780\nFADD            S0, S0, S5                                             ; +0x44, 0xce784\nFADD            S0, S0, S2                                             ; +0x48, 0xce788\nFADD            S0, S0, S3                                             ; +0x4c, 0xce78c\nFADD            S0, S1, S0                                             ; +0x50, 0xce790\nSTR             S0, [X8]                                               ; +0x54, 0xce794\nLDP             S0, S1, [X3,#0x20]                                     ; +0x58, 0xce798\nLDP             S2, S3, [X3,#0x28]                                     ; +0x5c, 0xce79c\nLDP             S4, S5, [X3,#0x30]                                     ; +0x60, 0xce7a0\nFADD            S0, S0, S2                                             ; +0x64, 0xce7a4\nFADD            S0, S0, S3                                             ; +0x68, 0xce7a8\nLDP             S2, S3, [X3,#0x38]                                     ; +0x6c, 0xce7ac\nFADD            S0, S0, S4                                             ; +0x70, 0xce7b0\nFADD            S0, S0, S5                                             ; +0x74, 0xce7b4\nFADD            S0, S0, S2                                             ; +0x78, 0xce7b8\nFADD            S0, S0, S3                                             ; +0x7c, 0xce7bc\nFADD            S0, S1, S0                                             ; +0x80, 0xce7c0\nSTR             S0, [X8,#4]                                            ; +0x84, 0xce7c4\nLDP             S0, S1, [X3,#0x40]                                     ; +0x88, 0xce7c8\nLDP             S2, S3, [X3,#0x48]                                     ; +0x8c, 0xce7cc\nLDP             S4, S5, [X3,#0x50]                                     ; +0x90, 0xce7d0\nFADD            S0, S0, S2                                             ; +0x94, 0xce7d4\nFADD            S0, S0, S3                                             ; +0x98, 0xce7d8\nLDP             S2, S3, [X3,#0x58]                                     ; +0x9c, 0xce7dc\nFADD            S0, S0, S4                                             ; +0xa0, 0xce7e0\nFADD            S0, S0, S5                                             ; +0xa4, 0xce7e4\nFADD            S0, S0, S2                                             ; +0xa8, 0xce7e8\nFADD            S0, S0, S3                                             ; +0xac, 0xce7ec\nFADD            S0, S1, S0                                             ; +0xb0, 0xce7f0\nSTR             S0, [X8,#8]                                            ; +0xb4, 0xce7f4\nLDP             S2, S0, [X3,#0x64]                                     ; +0xb8, 0xce7f8\nLDR             S1, [X3,#0x60]                                         ; +0xbc, 0xce7fc\nFADD            S0, S1, S0                                             ; +0xc0, 0xce800\nLDP             S3, S1, [X3,#0x6C]                                     ; +0xc4, 0xce804\nFADD            S0, S0, S3                                             ; +0xc8, 0xce808\nLDP             S4, S3, [X3,#0x74]                                     ; +0xcc, 0xce80c\nFADD            S0, S0, S1                                             ; +0xd0, 0xce810\nLDR             S1, [X3,#0x7C]                                         ; +0xd4, 0xce814\nADD             X3, X3, #0x80                                          ; +0xd8, 0xce818\nFADD            S0, S0, S4                                             ; +0xdc, 0xce81c\nFADD            S0, S0, S3                                             ; +0xe0, 0xce820\nFADD            S0, S0, S1                                             ; +0xe4, 0xce824\nFADD            S0, S2, S0                                             ; +0xe8, 0xce828\nSTR             S0, [X8,#0xC]                                          ; +0xec, 0xce82c\nADD             X8, X8, #0x10                                          ; +0xf0, 0xce830\nCBNZ            W9, loc_CE764                                          ; +0xf4, 0xce834\nB               locret_CE958                                           ; +0xf8, 0xce838\nLDR             X0, [X0,#8]                                            ; +0xfc, 0xce83c\nMOV             W8, W1                                                 ; +0x100, 0xce840\nLSL             X2, X8, #2                                             ; +0x104, 0xce844\nMOV             X1, X3                                                 ; +0x108, 0xce848\nB               .memmove                                               ; +0x10c, 0xce84c\nLDR             X8, [X0,#8]                                            ; +0x110, 0xce850\nLSR             W9, W1, #2                                             ; +0x114, 0xce854\nCBZ             W9, locret_CE958                                       ; +0x118, 0xce858\nLDP             S0, S1, [X3]                                           ; +0x11c, 0xce85c\nLDP             S2, S3, [X3,#8]                                        ; +0x120, 0xce860\nLDP             S4, S5, [X3,#0x10]                                     ; +0x124, 0xce864\nSUB             W9, W9, #1                                             ; +0x128, 0xce868\nFADD            S0, S0, S2                                             ; +0x12c, 0xce86c\nFADD            S0, S0, S3                                             ; +0x130, 0xce870\nFADD            S0, S0, S4                                             ; +0x134, 0xce874\nFADD            S0, S0, S5                                             ; +0x138, 0xce878\nFADD            S0, S1, S0                                             ; +0x13c, 0xce87c\nSTR             S0, [X8]                                               ; +0x140, 0xce880\nLDP             S0, S1, [X3,#0x18]                                     ; +0x144, 0xce884\nLDP             S2, S3, [X3,#0x20]                                     ; +0x148, 0xce888\nLDP             S4, S5, [X3,#0x28]                                     ; +0x14c, 0xce88c\nFADD            S0, S0, S2                                             ; +0x150, 0xce890\nFADD            S0, S0, S3                                             ; +0x154, 0xce894\nFADD            S0, S0, S4                                             ; +0x158, 0xce898\nFADD            S0, S0, S5                                             ; +0x15c, 0xce89c\nFADD            S0, S1, S0                                             ; +0x160, 0xce8a0\nSTR             S0, [X8,#4]                                            ; +0x164, 0xce8a4\nLDP             S0, S1, [X3,#0x30]                                     ; +0x168, 0xce8a8\nLDP             S2, S3, [X3,#0x38]                                     ; +0x16c, 0xce8ac\nLDP             S4, S5, [X3,#0x40]                                     ; +0x170, 0xce8b0\nFADD            S0, S0, S2                                             ; +0x174, 0xce8b4\nFADD            S0, S0, S3                                             ; +0x178, 0xce8b8\nFADD            S0, S0, S4                                             ; +0x17c, 0xce8bc\nFADD            S0, S0, S5                                             ; +0x180, 0xce8c0\nFADD            S0, S1, S0                                             ; +0x184, 0xce8c4\nSTR             S0, [X8,#8]                                            ; +0x188, 0xce8c8\nLDP             S0, S3, [X3,#0x48]                                     ; +0x18c, 0xce8cc\nLDP             S1, S2, [X3,#0x50]                                     ; +0x190, 0xce8d0\nFADD            S0, S0, S1                                             ; +0x194, 0xce8d4\nLDP             S4, S1, [X3,#0x58]                                     ; +0x198, 0xce8d8\nFADD            S0, S0, S2                                             ; +0x19c, 0xce8dc\nADD             X3, X3, #0x60 ; '`'                                    ; +0x1a0, 0xce8e0\nFADD            S0, S0, S4                                             ; +0x1a4, 0xce8e4\nFADD            S0, S0, S1                                             ; +0x1a8, 0xce8e8\nFADD            S0, S3, S0                                             ; +0x1ac, 0xce8ec\nSTR             S0, [X8,#0xC]                                          ; +0x1b0, 0xce8f0\nADD             X8, X8, #0x10                                          ; +0x1b4, 0xce8f4\nCBNZ            W9, loc_CE85C                                          ; +0x1b8, 0xce8f8\nB               locret_CE958                                           ; +0x1bc, 0xce8fc\nMOV             X8, XZR                                                ; +0x1c0, 0xce900\nMOV             X9, XZR                                                ; +0x1c4, 0xce904\nSXTW            X10, W2                                                ; +0x1c8, 0xce908\nMOV             W11, W1                                                ; +0x1cc, 0xce90c\nMOV             W12, W2                                                ; +0x1d0, 0xce910\nCMP             X9, X11                                                ; +0x1d4, 0xce914\nB.EQ            locret_CE958                                           ; +0x1d8, 0xce918\nLDR             X14, [X0,#8]                                           ; +0x1dc, 0xce91c\nMOV             X13, XZR                                               ; +0x1e0, 0xce920\nFMOV            S0, WZR                                                ; +0x1e4, 0xce924\nSTR             WZR, [X14,X9,LSL#2]                                    ; +0x1e8, 0xce928\nCMP             X13, X10                                               ; +0x1ec, 0xce92c\nB.GE            loc_CE94C                                              ; +0x1f0, 0xce930\nADD             W15, W8, W13                                           ; +0x1f4, 0xce934\nLDR             S1, [X3,W15,UXTW#2]                                    ; +0x1f8, 0xce938\nADD             X13, X13, #1                                           ; +0x1fc, 0xce93c\nFADD            S0, S0, S1                                             ; +0x200, 0xce940\nSTR             S0, [X14,X9,LSL#2]                                     ; +0x204, 0xce944\nB               loc_CE92C                                              ; +0x208, 0xce948\nADD             X9, X9, #1                                             ; +0x20c, 0xce94c\nADD             X8, X8, X12                                            ; +0x210, 0xce950\nB               loc_CE914                                              ; +0x214, 0xce954\nRET                                                                    ; +0x218, 0xce958", "xrefs": ["sub_CDEB8 @ 0xcdf00"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}