{"type": "func", "start": 762392, "end": 762484, "name": "sub_BA218", "pseudocode": "// \n// sub_BA218 from 0xba218 to 0xba274 (92 bytes)\n// \n// 2 xrefs:\n// > sub_B9360 @ 0xb9728\n// > sub_B9360 @ 0xb98b0\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:40 +0000\n// \n\nlong double __fastcall sub_BA218(__int64 a1, long double a2)\n{\n  long double v2; // q8\n  int v3; // w8\n  long double result; // q0\n  long double v5; // q0\n\n  v3 = *(_DWORD *)(a1 + 696);\n  if ( v3 == 1 )\n  {\n    LODWORD(v2) = *(_DWORD *)(a1 + 708);\n    *(float *)&v5 = sub_BA274(a2, *(float *)(a1 + 700));\n    if ( *(float *)&v2 <= *(float *)&v5 )\n      return v5;\n  }\n  else\n  {\n    LODWORD(v2) = 0;\n    if ( !v3 )\n    {\n      *(float *)&result = sub_BA274(a2, *(float *)(a1 + 688) + *(float *)(a1 + 688));\n      return result;\n    }\n  }\n  return v2;\n}", "assembly": "; \n; sub_BA218 from 0xba218 to 0xba274 (92 bytes)\n; \n; 2 xrefs:\n; > sub_B9360 @ 0xb9728\n; > sub_B9360 @ 0xb98b0\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:40 +0000\n; \nSTR             D8, [SP,#-0x10+var_10]!                                ; +0x0, 0xba218\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0xba21c\nLDR             W8, [X0,#0x2B8]                                        ; +0x8, 0xba220\nADD             X29, SP, #0x10                                         ; +0xc, 0xba224\nCMP             W8, #1                                                 ; +0x10, 0xba228\nB.EQ            loc_BA24C                                              ; +0x14, 0xba22c\nFMOV            S8, WZR                                                ; +0x18, 0xba230\nCBNZ            W8, loc_BA264                                          ; +0x1c, 0xba234\nLDR             S1, [X0,#0x2B0]                                        ; +0x20, 0xba238\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x24, 0xba23c\nFADD            S1, S1, S1                                             ; +0x28, 0xba240\nLDR             D8, [SP+0x10+var_10],#0x20                             ; +0x2c, 0xba244\nB               sub_BA274                                              ; +0x30, 0xba248\nLDR             S1, [X0,#0x2BC]                                        ; +0x34, 0xba24c\nLDR             S8, [X0,#0x2C4]                                        ; +0x38, 0xba250\nBL              sub_BA274                                              ; +0x3c, 0xba254\nFCMP            S8, S0                                                 ; +0x40, 0xba258\nB.GT            loc_BA264                                              ; +0x44, 0xba25c\nMOV             V8.16B, V0.16B                                         ; +0x48, 0xba260\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0xba264\nMOV             V0.16B, V8.16B                                         ; +0x50, 0xba268\nLDR             D8, [SP+0x10+var_10],#0x20                             ; +0x54, 0xba26c\nRET                                                                    ; +0x58, 0xba270", "xrefs": ["sub_B9360 @ 0xb9728", "sub_B9360 @ 0xb98b0"], "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"}