{"type": "func", "start": 632924, "end": 633012, "name": "sub_9A85C", "pseudocode": "// \n// sub_9A85C from 0x9a85c to 0x9a8b4 (88 bytes)\n// \n// 2 xrefs:\n// > sub_99B7C @ 0x99eda\n// > sub_99B7C @ 0x9a06a\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:41:30 +0000\n// \n\nint __fastcall sub_9A85C(int a1)\n{\n  int v1; // r2\n  float v3; // s16\n  float v4; // r0\n\n  v1 = *(_DWORD *)(a1 + 504);\n  if ( v1 == 1 )\n  {\n    v3 = *(float *)(a1 + 516);\n    v4 = ((float (*)(void))sub_9A8B8)();\n    if ( v3 <= v4 )\n      v3 = v4;\n  }\n  else\n  {\n    if ( !v1 )\n      return sub_9A8B8();\n    v3 = 0.0;\n  }\n  return LODWORD(v3);\n}", "assembly": "; \n; sub_9A85C from 0x9a85c to 0x9a8b4 (88 bytes)\n; \n; 2 xrefs:\n; > sub_99B7C @ 0x99eda\n; > sub_99B7C @ 0x9a06a\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:41:30 +0000\n; \nPUSH            {R7,LR}                                                ; +0x0, 0x9a85c\nMOV             R7, SP                                                 ; +0x2, 0x9a85e\nVPUSH           {D8}                                                   ; +0x4, 0x9a860\nLDR.W           R2, [R0,#0x1F8]                                        ; +0x8, 0x9a864\nCMP             R2, #1                                                 ; +0xc, 0x9a868\nBEQ             loc_9A886                                              ; +0xe, 0x9a86a\nCBNZ            R2, loc_9A8A6                                          ; +0x10, 0x9a86c\nVLDR            S0, [R0,#0x1F0]                                        ; +0x12, 0x9a86e\nVADD.F32        S0, S0, S0                                             ; +0x16, 0x9a872\nVMOV            R2, S0                                                 ; +0x1a, 0x9a876\nVPOP            {D8}                                                   ; +0x1e, 0x9a87a\nPOP.W           {R7,LR}                                                ; +0x22, 0x9a87e\nB.W             sub_9A8B8                                              ; +0x26, 0x9a882\nLDR.W           R2, [R0,#0x1FC]                                        ; +0x2a, 0x9a886\nVLDR            S16, [R0,#0x204]                                       ; +0x2e, 0x9a88a\nBL              sub_9A8B8                                              ; +0x32, 0x9a88e\nVMOV            S0, R0                                                 ; +0x36, 0x9a892\nVCMPE.F32       S16, S0                                                ; +0x3a, 0x9a896\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3e, 0x9a89a\nIT LE                                                                  ; +0x42, 0x9a89e\nVMOVLE.F32      S16, S0                                                ; +0x44, 0x9a8a0\nB               loc_9A8AA                                              ; +0x48, 0x9a8a4\nVLDR            S16, =0.0                                              ; +0x4a, 0x9a8a6\nVMOV            R0, S16                                                ; +0x4e, 0x9a8aa\nVPOP            {D8}                                                   ; +0x52, 0x9a8ae\nPOP             {R7,PC}                                                ; +0x56, 0x9a8b2", "xrefs": ["sub_99B7C @ 0x99eda", "sub_99B7C @ 0x9a06a"], "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"}