// File: /workspace/github_c_makefile_star2_O3/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, %r14d
leaq 0x3cbc(%rip), %r15      # 0x5250
leaq 0x3cba(%rip), %rcx      # 0x5255
leaq 0x1ba8(%rip), %r12      # 0x314a
movq %r15, %rbx
movl $0x0, 0x8(%rsp)
xorl %ebp, %ebp
movl %edi, 0xc(%rsp)
testl %r14d, %r14d
jne 0x162a
movq %rbp, %rax
shlq $0x4, %rax
leaq (%r15,%rax), %r13
movss (%rax,%r15), %xmm1
movss 0xc(%rax,%r15), %xmm0
ucomiss %xmm0, %xmm1
jne 0x163d
jp 0x163d
movss 0x5(%r13), %xmm1
ucomiss %xmm0, %xmm1
jne 0x16e2
jp 0x16e2
movss %xmm0, 0x2c(%rsp)
movd %xmm0, %eax
cmpl %eax, (%r13)
jne 0x1787
movss %xmm0, 0x2d(%rsp)
movl (%r13), %eax
cmpl 0x2d(%rsp), %eax
jne 0x1859
incq %rbp
addq $0x10, %rbx
addq $0x10, %rcx
cmpq $0x7, %rbp
jne 0x15b3
jmp 0x1871
movq %rbp, %rdi
movq %rcx, %r13
callq 0x1060
movq %r13, %rcx
jmp 0x15b8
movss %xmm1, 0x4(%rsp)
movq %r13, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
movq 0x398c(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movl $0x40, %r13d
leaq 0x3d47(%rip), %r15      # 0x53b0
movq %rbx, %r14
movzbl (%r14), %ecx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1040
addq $-0x3, %r13
incq %r14
addq $0x3, %r15
cmpq $0x34, %r13
jne 0x166c
xorps %xmm0, %xmm0
cvtss2sd 0x4(%rsp), %xmm0
movq 0x18(%rsp), %r13
xorps %xmm1, %xmm1
cvtss2sd 0xc(%r13), %xmm1
movq 0x10(%rsp), %rdi
leaq 0x1957(%rip), %rsi      # 0x300b
leaq 0x3cf5(%rip), %rdx      # 0x53b0
movb $0x2, %al
callq 0x1030
incl 0x8(%rsp)
movss 0xc(%r13), %xmm0
movl 0xc(%rsp), %r14d
leaq 0x3b78(%rip), %r15      # 0x5250
movq 0x20(%rsp), %rcx
jmp 0x15d7
movss %xmm1, 0x4(%rsp)
movq %r13, 0x18(%rsp)
movq 0x38ec(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movl $0x40, %r13d
leaq 0x3ca7(%rip), %r15      # 0x53b0
movq %rcx, 0x20(%rsp)
movq %rcx, %r14
movzbl (%r14), %ecx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1040
addq $-0x3, %r13
incq %r14
addq $0x3, %r15
cmpq $0x34, %r13
jne 0x1711
xorps %xmm0, %xmm0
cvtss2sd 0x4(%rsp), %xmm0
movq 0x18(%rsp), %r13
xorps %xmm1, %xmm1
cvtss2sd 0xc(%r13), %xmm1
movq 0x10(%rsp), %rdi
leaq 0x18d0(%rip), %rsi      # 0x3029
leaq 0x3c50(%rip), %rdx      # 0x53b0
movb $0x2, %al
callq 0x1030
incl 0x8(%rsp)
movss 0xc(%r13), %xmm0
movl 0xc(%rsp), %r14d
leaq 0x3ad3(%rip), %r15      # 0x5250
movq 0x20(%rsp), %rcx
jmp 0x15ec
movss %xmm0, 0x4(%rsp)
movq %r13, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
movq 0x3842(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movl $0x40, %r13d
leaq 0x3bfd(%rip), %r15      # 0x53b0
leaq 0x2c(%rsp), %r14
movzbl (%r14), %ecx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1040
addq $-0x3, %r13
incq %r14
addq $0x3, %r15
cmpq $0x34, %r13
jne 0x17b8
movl $0x40, %r13d
leaq 0x3bc6(%rip), %r15      # 0x53b0
movq %rbx, %r14
movzbl (%r14), %ecx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1040
addq $-0x3, %r13
incq %r14
addq $0x3, %r15
cmpq $0x34, %r13
jne 0x17ed
xorps %xmm0, %xmm0
cvtss2sd 0x4(%rsp), %xmm0
movq 0x10(%rsp), %rdi
leaq 0x182a(%rip), %rsi      # 0x3051
leaq 0x3b82(%rip), %rcx      # 0x53b0
movq %rcx, %rdx
movb $0x1, %al
callq 0x1030
movq 0x18(%rsp), %r13
movss 0xc(%r13), %xmm0
movl 0xc(%rsp), %r14d
leaq 0x3a01(%rip), %r15      # 0x5250
movq 0x20(%rsp), %rcx
jmp 0x1600
movq %r13, %rdi
leaq 0x2d(%rsp), %rsi
movq %rcx, %r13
callq 0x10e9
movq %r13, %rcx
jmp 0x1614
movl 0x8(%rsp), %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq