{"type": "func", "start": 644952, "end": 645094, "name": "sub_9D758", "pseudocode": "// \n// sub_9D758 from 0x9d758 to 0x9d7e6 (142 bytes)\n// \n// 1 xrefs:\n// > sub_9BBD2 @ 0x9bbe0\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_9D758(int a1, const void *a2, void *a3, int a4, int a5, _DWORD *a6)\n{\n  int v7; // r5\n  int v9; // r4\n  int v10; // r6\n  int i; // r8\n  int v12; // r2\n\n  if ( a2 )\n  {\n    v7 = a1 + 49528;\n    if ( *(_DWORD *)(a1 + 49552) >= a5 && *(_DWORD *)(a1 + 49544) )\n    {\n      v9 = 81968;\n      v10 = 0;\n      for ( i = 0; i < a5; ++i )\n      {\n        v12 = *(_DWORD *)(v7 + 16);\n        *(_DWORD *)(v12 + v9 - 4) = *(_DWORD *)(v7 + 4);\n        *(_DWORD *)(v12 + v9) = *(_DWORD *)(v7 + 28);\n        sub_9CEEC(v12 + v10, *(float *)v7, a4, *(_DWORD *)(v7 + 8), (float)*(int *)(v7 + 20), (int)a2, (int)a3, i, a5);\n        v10 += 81980;\n        v9 += 81980;\n      }\n    }\n    else\n    {\n      qmemcpy(a3, a2, 4 * a4 * *a6);\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_9D758 from 0x9d758 to 0x9d7e6 (142 bytes)\n; \n; 1 xrefs:\n; > sub_9BBD2 @ 0x9bbe0\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, 0x9d758\nADD             R7, SP, #0xC                                           ; +0x2, 0x9d75a\nPUSH.W          {R1-R11}; float                                        ; +0x4, 0x9d75c\nSTR             R2, [SP,#0x1C+var_4]                                   ; +0x8, 0x9d760\nCBZ             R1, loc_9D7DC                                          ; +0xa, 0x9d762\nMOV             R11, R1                                                ; +0xc, 0x9d764\nMOVW            R1, #0xC178                                            ; +0xe, 0x9d766\nADDS            R5, R0, R1                                             ; +0x12, 0x9d76a\nLDR.W           R10, [R7,#-0x1C+arg_0]                                 ; +0x14, 0x9d76c\nMOV             R9, R3                                                 ; +0x18, 0x9d770\nLDR             R0, [R5,#0x18]                                         ; +0x1a, 0x9d772\nCMP             R0, R10                                                ; +0x1c, 0x9d774\nBLT             loc_9D7CA                                              ; +0x1e, 0x9d776\nLDR             R0, [R5,#0x10]                                         ; +0x20, 0x9d778\nCBZ             R0, loc_9D7CA                                          ; +0x22, 0x9d77a\nLDR             R4, =0x14030                                           ; +0x24, 0x9d77c\nMOVS            R6, #0                                                 ; +0x26, 0x9d77e\nMOV.W           R8, #0                                                 ; +0x28, 0x9d780\nCMP             R8, R10                                                ; +0x2c, 0x9d784\nBGE             loc_9D7DC                                              ; +0x2e, 0x9d786\nLDR             R2, [R5,#0x10]                                         ; +0x30, 0x9d788\nADD.W           R12, SP, #0x1C+var_14                                  ; +0x32, 0x9d78a\nLDR             R0, [R5,#4]                                            ; +0x36, 0x9d78e\nADDS            R1, R2, R4                                             ; +0x38, 0x9d790\nSTR.W           R0, [R1,#-4]                                           ; +0x3a, 0x9d792\nLDR             R0, [R5,#0x1C]                                         ; +0x3e, 0x9d796\nSTR             R0, [R2,R4]                                            ; +0x40, 0x9d798\nVLDR            S0, [R5,#0x14]                                         ; +0x42, 0x9d79a\nLDR             R3, [R5,#8]; int                                       ; +0x46, 0x9d79e\nLDR             R1, [R5]; int                                          ; +0x48, 0x9d7a0\nVCVT.F32.S32    S0, S0                                                 ; +0x4a, 0x9d7a2\nLDR             R0, [SP,#0x1C+var_4]                                   ; +0x4e, 0x9d7a6\nSTR.W           R11, [SP,#0x1C+var_18]; int                            ; +0x50, 0x9d7a8\nSTM.W           R12, {R0,R8,R10}                                       ; +0x54, 0x9d7ac\nADDS            R0, R2, R6; int                                        ; +0x58, 0x9d7b0\nMOV             R2, R9; int                                            ; +0x5a, 0x9d7b2\nVSTR            S0, [SP,#0x1C+var_1C]                                  ; +0x5c, 0x9d7b4\nBL              sub_9CEEC                                              ; +0x60, 0x9d7b8\nLDR             R0, =0x14030                                           ; +0x64, 0x9d7bc\nADD.W           R8, R8, #1                                             ; +0x66, 0x9d7be\nADDS            R0, #0xC                                               ; +0x6a, 0x9d7c2\nADD             R6, R0                                                 ; +0x6c, 0x9d7c4\nADD             R4, R0                                                 ; +0x6e, 0x9d7c6\nB               loc_9D784                                              ; +0x70, 0x9d7c8\nLDR             R0, [R7,#-0x1C+arg_4]                                  ; +0x72, 0x9d7ca\nMOV             R1, R11                                                ; +0x74, 0x9d7cc\nLDR             R0, [R0]                                               ; +0x76, 0x9d7ce\nMUL             R0, R9, R0                                             ; +0x78, 0x9d7d0\nLSLS            R2, R0, #2                                             ; +0x7c, 0x9d7d4\nLDR             R0, [SP,#0x1C+var_4]                                   ; +0x7e, 0x9d7d6\nBLX             __aeabi_memcpy4                                        ; +0x80, 0x9d7d8\nMOVS            R0, #0                                                 ; +0x84, 0x9d7dc\nADD             SP, SP, #0x1C                                          ; +0x86, 0x9d7de\nPOP.W           {R8-R11}                                               ; +0x88, 0x9d7e0\nPOP             {R4-R7,PC}                                             ; +0x8c, 0x9d7e4", "xrefs": ["sub_9BBD2 @ 0x9bbe0"], "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"}