{"type": "func", "start": 604384, "end": 604496, "name": "sub_938E0", "pseudocode": "// \n// sub_938E0 from 0x938e0 to 0x93950 (112 bytes)\n// \n// 3 xrefs:\n// > sub_91C60 @ 0x91c6c\n// > sub_9342C @ 0x936a0\n// > sub_93B20 @ 0x93f6c\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:23 +0000\n// \n\n__int64 __fastcall sub_938E0(__int64 a1)\n{\n  float v1; // s0\n  unsigned int v2; // w8\n  float v3; // s1\n  float v4; // s1\n\n  v1 = (float)((float)*(unsigned int *)(a1 + 15336) * 0.001)\n     / (float)(*(float *)(a1 + 15352) * (float)*(int *)(a1 + 15312));\n  v2 = *(_DWORD *)(a1 + 15288);\n  v3 = v1 * (float)(0.001 * (float)*(int *)(*(_QWORD *)(a1 + 8) + 16LL));\n  if ( v2 <= (unsigned int)(float)(v3 + 0.5) )\n    v2 = (unsigned int)(float)(v3 + 0.5);\n  v4 = (float)v2 / v3;\n  *(_DWORD *)(a1 + 15284) = v2;\n  *(float *)(a1 + 15292) = v4;\n  *(float *)(a1 + 15344) = v4 * v1;\n  return 0;\n}", "assembly": "; \n; sub_938E0 from 0x938e0 to 0x93950 (112 bytes)\n; \n; 3 xrefs:\n; > sub_91C60 @ 0x91c6c\n; > sub_9342C @ 0x936a0\n; > sub_93B20 @ 0x93f6c\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:23 +0000\n; \nLDR             S2, [X0,#0x3BD0]                                       ; +0x0, 0x938e0\nLDR             S1, [X0,#0x3BF8]                                       ; +0x4, 0x938e4\nLDR             X9, [X0,#8]                                            ; +0x8, 0x938e8\nLDR             S0, [X0,#0x3BE8]                                       ; +0xc, 0x938ec\nADRP            X8, #dword_2F10C@PAGE                                  ; +0x10, 0x938f0\nLDR             S3, [X8,#dword_2F10C@PAGEOFF]                          ; +0x14, 0x938f4\nSCVTF           S2, S2                                                 ; +0x18, 0x938f8\nFMUL            S1, S1, S2                                             ; +0x1c, 0x938fc\nLDR             S2, [X9,#0x10]                                         ; +0x20, 0x93900\nUCVTF           S0, S0                                                 ; +0x24, 0x93904\nFMUL            S0, S0, S3                                             ; +0x28, 0x93908\nFDIV            S0, S0, S1                                             ; +0x2c, 0x9390c\nSCVTF           S1, S2                                                 ; +0x30, 0x93910\nFMUL            S1, S3, S1                                             ; +0x34, 0x93914\nLDR             W8, [X0,#0x3BB8]                                       ; +0x38, 0x93918\nFMOV            S2, #0.5                                               ; +0x3c, 0x9391c\nFMUL            S1, S0, S1                                             ; +0x40, 0x93920\nFADD            S2, S1, S2                                             ; +0x44, 0x93924\nFCVTZU          W9, S2                                                 ; +0x48, 0x93928\nCMP             W8, W9                                                 ; +0x4c, 0x9392c\nCSEL            W8, W8, W9, HI                                         ; +0x50, 0x93930\nUCVTF           S2, W8                                                 ; +0x54, 0x93934\nFDIV            S1, S2, S1                                             ; +0x58, 0x93938\nFMUL            S0, S1, S0                                             ; +0x5c, 0x9393c\nSTR             W8, [X0,#0x3BB4]                                       ; +0x60, 0x93940\nSTR             S1, [X0,#0x3BBC]                                       ; +0x64, 0x93944\nSTR             S0, [X0,#0x3BF0]                                       ; +0x68, 0x93948\nB               loc_9494C                                              ; +0x6c, 0x9394c", "xrefs": ["sub_91C60 @ 0x91c6c", "sub_9342C @ 0x936a0", "sub_93B20 @ 0x93f6c"], "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"}