{"type": "func", "start": 351142, "end": 351230, "name": "sub_55BA6", "pseudocode": "// \n// sub_55BA6 from 0x55ba6 to 0x55bfe (88 bytes)\n// \n// 0 xrefs:\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:46 +0000\n// \n\nint __fastcall sub_55BA6(int a1, int a2, int a3)\n{\n  float *v3; // r4\n  int v4; // r5\n  int v5; // r3\n  float v6; // s2\n\n  if ( a3 < 0 )\n    return 31;\n  if ( a2 )\n  {\n    v3 = (float *)(a2 + 12);\n    v4 = 0;\n    v5 = 31;\n    while ( ++v4 < a3 )\n    {\n      if ( *v3 <= *(v3 - 3) )\n        return 31;\n      v6 = v3[1];\n      if ( v6 >= 0.0 )\n      {\n        v3 += 3;\n        if ( v6 <= 1.0 )\n          continue;\n      }\n      return v5;\n    }\n  }\n  v5 = 0;\n  *(_DWORD *)(a1 + 112) = a2;\n  *(_DWORD *)(a1 + 116) = a3;\n  return v5;\n}", "assembly": "; \n; sub_55BA6 from 0x55ba6 to 0x55bfe (88 bytes)\n; \n; 0 xrefs:\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:46 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x55ba6\nADD             R7, SP, #8                                             ; +0x2, 0x55ba8\nCMP             R2, #0                                                 ; +0x4, 0x55baa\nBMI             loc_55BF0                                              ; +0x6, 0x55bac\nCBZ             R1, loc_55BF4                                          ; +0x8, 0x55bae\nVMOV.F32        S0, #1.0                                               ; +0xa, 0x55bb0\nADD.W           R4, R1, #0xC                                           ; +0xe, 0x55bb4\nMOVS            R5, #0                                                 ; +0x12, 0x55bb8\nMOVS            R3, #0x1F                                              ; +0x14, 0x55bba\nADDS            R5, #1                                                 ; +0x16, 0x55bbc\nCMP             R5, R2                                                 ; +0x18, 0x55bbe\nBGE             loc_55BF4                                              ; +0x1a, 0x55bc0\nVLDR            S2, [R4]                                               ; +0x1c, 0x55bc2\nVLDR            S4, [R4,#-0xC]                                         ; +0x20, 0x55bc6\nVCMPE.F32       S2, S4                                                 ; +0x24, 0x55bca\nVMRS            APSR_nzcv, FPSCR                                       ; +0x28, 0x55bce\nBLE             loc_55BF0                                              ; +0x2c, 0x55bd2\nVLDR            S2, [R4,#4]                                            ; +0x2e, 0x55bd4\nVCMPE.F32       S2, #0.0                                               ; +0x32, 0x55bd8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x36, 0x55bdc\nBLT             loc_55BFA                                              ; +0x3a, 0x55be0\nVCMPE.F32       S2, S0                                                 ; +0x3c, 0x55be2\nADDS            R4, #0xC                                               ; +0x40, 0x55be6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x42, 0x55be8\nBLE             loc_55BBC                                              ; +0x46, 0x55bec\nB               loc_55BFA                                              ; +0x48, 0x55bee\nMOVS            R3, #0x1F                                              ; +0x4a, 0x55bf0\nB               loc_55BFA                                              ; +0x4c, 0x55bf2\nMOVS            R3, #0                                                 ; +0x4e, 0x55bf4\nSTRD.W          R1, R2, [R0,#0x70]                                     ; +0x50, 0x55bf6\nMOV             R0, R3                                                 ; +0x54, 0x55bfa\nPOP             {R4,R5,R7,PC}                                          ; +0x56, 0x55bfc", "xrefs": [], "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"}