{"type": "func", "start": 596220, "end": 596282, "name": "sub_918FC", "pseudocode": "// \n// sub_918FC from 0x918fc to 0x9193a (62 bytes)\n// \n// 2 xrefs:\n// > sub_91750 @ 0x9183c\n// > sub_91E20 @ 0x91ebe\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_918FC(int a1)\n{\n  int *v1; // r1\n  int *v2; // r2\n  bool v3; // zf\n  float v4; // s0\n  float v5; // s2\n\n  v1 = *(int **)(a1 + 400);\n  v2 = (int *)(a1 + 400);\n  v3 = v1 == (int *)(a1 + 400);\n  if ( v1 == (int *)(a1 + 400) )\n    v3 = *(_DWORD *)(a1 + 404) == (_DWORD)v2;\n  if ( !v3 )\n  {\n    v4 = 0.0;\n    while ( v2 != v1 )\n    {\n      v5 = *((float *)v1 + 2);\n      if ( v4 > v5 )\n        v5 = v4;\n      v1 = (int *)*v1;\n      v4 = v5;\n    }\n    *(float *)(a1 + 496) = v4;\n  }\n  return 0;\n}", "assembly": "; \n; sub_918FC from 0x918fc to 0x9193a (62 bytes)\n; \n; 2 xrefs:\n; > sub_91750 @ 0x9183c\n; > sub_91E20 @ 0x91ebe\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\nLDR.W           R1, [R0,#0x190]                                        ; +0x0, 0x918fc\nADD.W           R2, R0, #0x190                                         ; +0x4, 0x91900\nCMP             R1, R2                                                 ; +0x8, 0x91904\nITT EQ                                                                 ; +0xa, 0x91906\nLDREQ.W         R3, [R0,#0x194]                                        ; +0xc, 0x91908\nCMPEQ           R3, R2                                                 ; +0x10, 0x9190c\nBEQ             loc_91936                                              ; +0x12, 0x9190e\nVLDR            S0, =0.0                                               ; +0x14, 0x91910\nCMP             R2, R1                                                 ; +0x18, 0x91914\nBEQ             loc_91932                                              ; +0x1a, 0x91916\nVLDR            S2, [R1,#8]                                            ; +0x1c, 0x91918\nVCMPE.F32       S0, S2                                                 ; +0x20, 0x9191c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x91920\nIT GT                                                                  ; +0x28, 0x91924\nVMOVGT.F32      S2, S0                                                 ; +0x2a, 0x91926\nLDR             R1, [R1]                                               ; +0x2e, 0x9192a\nVMOV.F32        S0, S2                                                 ; +0x30, 0x9192c\nB               loc_91914                                              ; +0x34, 0x91930\nVSTR            S0, [R0,#0x1F0]                                        ; +0x36, 0x91932\nMOVS            R0, #0                                                 ; +0x3a, 0x91936\nBX              LR                                                     ; +0x3c, 0x91938", "xrefs": ["sub_91750 @ 0x9183c", "sub_91E20 @ 0x91ebe"], "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"}