// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/test/hts_endian.c
// Function: t_float
int t_float(int verbose) {
    uint8_t buf[9];
    size_t i;
    int errors = 0;

    for (i = 0; i < NELE(tests_float); i++) {
        float f;

        if (verbose) {
            fprintf(stderr, "%s %g\n",
                    to_hex(tests_float[i].u8, 4), tests_float[i].f);
        }

        f = le_to_float(tests_float[i].u8);
        if (f != tests_float[i].f) {
            fprintf(stderr, "Failed %s => %g; expected %g\n",
                    to_hex(tests_float[i].u8, 4), f, tests_float[i].f);
            errors++;
        }

        f = le_to_float(tests_float[i].u8_unaligned + 1);
        if (f != tests_float[i].f) {
            fprintf(stderr, "Failed unaligned %s => %g; expected %g\n",
                    to_hex(tests_float[i].u8_unaligned + 1, 4),
                    f, tests_float[i].f);
            errors++;
        }

        float_to_le(tests_float[i].f, buf);
        if (memcmp(tests_float[i].u8, buf, 4) != 0) {
            fprintf(stderr, "Failed %g => %s; expected %s\n",
                    tests_float[i].f,
                    to_hex(buf, 4), to_hex(tests_float[i].u8, 4));
        }

        float_to_le(tests_float[i].f, buf + 1);
        if (memcmp(tests_float[i].u8, buf + 1, 4) != 0) {
            fprintf(stderr, "Failed unaligned %g => %s; expected %s\n",
                    tests_float[i].f,
                    to_hex(buf + 1, 4), to_hex(tests_float[i].u8, 4));
        }
    }
    return errors;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edi, %ebx
leaq 0x3b2d(%rip), %r15      # 0x5250
leaq 0x3b2b(%rip), %r13      # 0x5255
leaq 0x1a1c(%rip), %r12      # 0x314d
movq %r15, %rcx
movl $0x0, 0xc(%rsp)
xorl %ebp, %ebp
movl %edi, 0x18(%rsp)
testl %ebx, %ebx
jne 0x17c0
movq %rbp, %rax
shlq $0x4, %rax
leaq (%r15,%rax), %r14
movss (%rax,%r15), %xmm0
ucomiss 0xc(%rax,%r15), %xmm0
jne 0x17d3
jp 0x17d3
movss 0x5(%r14), %xmm0
ucomiss 0xc(%r14), %xmm0
jne 0x1870
jp 0x1870
movd 0xc(%r14), %xmm0
movd %xmm0, 0x1c(%rsp)
movd %xmm0, %eax
cmpl %eax, (%r14)
jne 0x190d
movss 0xc(%r14), %xmm0
movss %xmm0, 0x1d(%rsp)
movl (%r14), %eax
cmpl 0x1d(%rsp), %eax
jne 0x1929
incq %rbp
addq $0x10, %rcx
addq $0x10, %r13
cmpq $0x7, %rbp
jne 0x1742
jmp 0x1941
movq %rbp, %rdi
movq %rcx, %r14
callq 0x1070
movq %r14, %rcx
jmp 0x1746
movss %xmm0, 0x8(%rsp)
movq %r13, 0x30(%rsp)
movq 0x37fb(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, 0x28(%rsp)
movl $0x40, %r13d
leaq 0x3bb6(%rip), %r15      # 0x53b0
movq %rcx, 0x10(%rsp)
movq %rcx, %rbx
movzbl (%rbx), %ecx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1050
addq $-0x3, %r13
incq %rbx
addq $0x3, %r15
cmpq $0x34, %r13
jne 0x1802
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0xc(%r14), %xmm1
movq 0x28(%rsp), %rdi
leaq 0x17c7(%rip), %rsi      # 0x300b
leaq 0x3b65(%rip), %rdx      # 0x53b0
movb $0x2, %al
callq 0x1040
incl 0xc(%rsp)
movl 0x18(%rsp), %ebx
leaq 0x39ef(%rip), %r15      # 0x5250
movq 0x30(%rsp), %r13
movq 0x10(%rsp), %rcx
jmp 0x1761
movss %xmm0, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x375e(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, 0x28(%rsp)
movq %r13, %rbx
movl $0x40, %r13d
leaq 0x3b16(%rip), %r15      # 0x53b0
movq %rbx, 0x30(%rsp)
movzbl (%rbx), %ecx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1050
addq $-0x3, %r13
incq %rbx
addq $0x3, %r15
cmpq $0x34, %r13
jne 0x189f
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0xc(%r14), %xmm1
movq 0x28(%rsp), %rdi
leaq 0x1748(%rip), %rsi      # 0x3029
leaq 0x3ac8(%rip), %rdx      # 0x53b0
movb $0x2, %al
callq 0x1040
incl 0xc(%rsp)
movl 0x18(%rsp), %ebx
leaq 0x3952(%rip), %r15      # 0x5250
movq 0x30(%rsp), %r13
movq 0x10(%rsp), %rcx
jmp 0x1778
movq %r14, %rdi
leaq 0x1c(%rsp), %rsi
movq %rcx, 0x10(%rsp)
callq 0x10f9
movq 0x10(%rsp), %rcx
jmp 0x1791
movq %r14, %rdi
leaq 0x1d(%rsp), %rsi
movq %rcx, %r14
callq 0x11b7
movq %r14, %rcx
jmp 0x17aa
movl 0xc(%rsp), %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq