{"type": "func", "start": 328080, "end": 328184, "name": "sub_50190", "pseudocode": "// \n// sub_50190 from 0x50190 to 0x501f8 (104 bytes)\n// \n// 5 xrefs:\n// > sub_4FE54 @ 0x4ffce\n// > sub_4FE54 @ 0x5003c\n// > sub_5006E @ 0x500fa\n// > sub_5006E @ 0x50152\n// > sub_50210 @ 0x502e2\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:43 +0000\n// \n\nfloat *__fastcall sub_50190(int a1, int a2)\n{\n  float *result; // r0\n  int i; // r5\n  int v5; // r5\n  int v6; // r5\n\n  while ( a2 )\n  {\n    result = (float *)(*(unsigned __int8 *)(a2 + 24) << 29);\n    if ( (*(_BYTE *)(a2 + 24) & 4) == 0 )\n    {\n      sub_4FC2C(*(float **)(a2 + 48), *(float **)(a2 + 52), (float *)a2);\n      for ( i = a2; ; sub_4FC2C((float *)i, (float *)a2, (float *)a2) )\n      {\n        i = *(_DWORD *)(i + 56);\n        if ( !i )\n          break;\n      }\n      v5 = *(_DWORD *)(a2 + 48);\n      *(_DWORD *)(a2 + 24) |= 8u;\n      if ( (*(_BYTE *)(v5 + 24) & 4) != 0 )\n      {\n        while ( 1 )\n        {\n          v5 = *(_DWORD *)(v5 + 56);\n          if ( !v5 )\n            break;\n          sub_4FC2C((float *)v5, (float *)a2, (float *)a2);\n        }\n      }\n      v6 = *(_DWORD *)(a2 + 52);\n      result = (float *)(*(unsigned __int8 *)(v6 + 24) << 29);\n      if ( (*(_BYTE *)(v6 + 24) & 4) != 0 )\n      {\n        while ( 1 )\n        {\n          v6 = *(_DWORD *)(v6 + 56);\n          if ( !v6 )\n            break;\n          result = sub_4FC2C((float *)v6, (float *)a2, (float *)a2);\n        }\n      }\n    }\n    a2 = *(_DWORD *)(a2 + 44);\n  }\n  return result;\n}", "assembly": "; \n; sub_50190 from 0x50190 to 0x501f8 (104 bytes)\n; \n; 5 xrefs:\n; > sub_4FE54 @ 0x4ffce\n; > sub_4FE54 @ 0x5003c\n; > sub_5006E @ 0x500fa\n; > sub_5006E @ 0x50152\n; > sub_50210 @ 0x502e2\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:43 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x50190\nADD             R7, SP, #8                                             ; +0x2, 0x50192\nMOV             R4, R1                                                 ; +0x4, 0x50194\nCBZ             R4, locret_501F6                                       ; +0x6, 0x50196\nLDRB            R0, [R4,#0x18]                                         ; +0x8, 0x50198\nLSLS            R0, R0, #0x1D                                          ; +0xa, 0x5019a\nBMI             loc_501F2                                              ; +0xc, 0x5019c\nLDRD.W          R0, R1, [R4,#0x30]                                     ; +0xe, 0x5019e\nMOV             R2, R4                                                 ; +0x12, 0x501a2\nBL              sub_4FC2C                                              ; +0x14, 0x501a4\nMOV             R5, R4                                                 ; +0x18, 0x501a8\nLDR             R5, [R5,#0x38]                                         ; +0x1a, 0x501aa\nCBZ             R5, loc_501BA                                          ; +0x1c, 0x501ac\nMOV             R0, R5                                                 ; +0x1e, 0x501ae\nMOV             R1, R4                                                 ; +0x20, 0x501b0\nMOV             R2, R4                                                 ; +0x22, 0x501b2\nBL              sub_4FC2C                                              ; +0x24, 0x501b4\nB               loc_501AA                                              ; +0x28, 0x501b8\nLDR             R0, [R4,#0x18]                                         ; +0x2a, 0x501ba\nLDR             R5, [R4,#0x30]                                         ; +0x2c, 0x501bc\nORR.W           R0, R0, #8                                             ; +0x2e, 0x501be\nSTR             R0, [R4,#0x18]                                         ; +0x32, 0x501c2\nLDRB            R0, [R5,#0x18]                                         ; +0x34, 0x501c4\nLSLS            R0, R0, #0x1D                                          ; +0x36, 0x501c6\nBPL             loc_501DA                                              ; +0x38, 0x501c8\nLDR             R5, [R5,#0x38]                                         ; +0x3a, 0x501ca\nCBZ             R5, loc_501DA                                          ; +0x3c, 0x501cc\nMOV             R0, R5                                                 ; +0x3e, 0x501ce\nMOV             R1, R4                                                 ; +0x40, 0x501d0\nMOV             R2, R4                                                 ; +0x42, 0x501d2\nBL              sub_4FC2C                                              ; +0x44, 0x501d4\nB               loc_501CA                                              ; +0x48, 0x501d8\nLDR             R5, [R4,#0x34]                                         ; +0x4a, 0x501da\nLDRB            R0, [R5,#0x18]                                         ; +0x4c, 0x501dc\nLSLS            R0, R0, #0x1D                                          ; +0x4e, 0x501de\nBPL             loc_501F2                                              ; +0x50, 0x501e0\nLDR             R5, [R5,#0x38]                                         ; +0x52, 0x501e2\nCBZ             R5, loc_501F2                                          ; +0x54, 0x501e4\nMOV             R0, R5                                                 ; +0x56, 0x501e6\nMOV             R1, R4                                                 ; +0x58, 0x501e8\nMOV             R2, R4                                                 ; +0x5a, 0x501ea\nBL              sub_4FC2C                                              ; +0x5c, 0x501ec\nB               loc_501E2                                              ; +0x60, 0x501f0\nLDR             R4, [R4,#0x2C]                                         ; +0x62, 0x501f2\nB               loc_50196                                              ; +0x64, 0x501f4\nPOP             {R4,R5,R7,PC}                                          ; +0x66, 0x501f6", "xrefs": ["sub_4FE54 @ 0x4ffce", "sub_4FE54 @ 0x5003c", "sub_5006E @ 0x500fa", "sub_5006E @ 0x50152", "sub_50210 @ 0x502e2"], "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"}