// File: /workspace/github_c_makefile_star2_O2/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 $0x18, %rsp
movl %edi, %ebp
xorl %ebx, %ebx
pushq $0x7
popq %r13
leaq 0x30e7(%rip), %r14      # 0x4250
leaq 0xd(%rsp), %r15
subq $0x1, %r13
jb 0x1357
testl %ebp, %ebp
jne 0x11ce
movss (%r14), %xmm1
movss 0xc(%r14), %xmm0
ucomiss %xmm0, %xmm1
jne 0x1206
jp 0x1206
movss 0x5(%r14), %xmm1
ucomiss %xmm0, %xmm1
jne 0x1250
jp 0x1250
movss %xmm0, 0xc(%rsp)
movd %xmm0, %eax
cmpl %eax, (%r14)
jne 0x129b
movss %xmm0, 0xd(%rsp)
movl (%r14), %eax
cmpl (%r15), %eax
jne 0x12fd
addq $0x10, %r14
jmp 0x116e
movq 0x2e0b(%rip), %rax      # 0x3fe0
movq (%rax), %r12
movq %r14, %rdi
pushq $0x4
popq %rsi
callq 0x1368
cvtss2sd 0xc(%r14), %xmm0
movq %r12, %rdi
leaq 0xe11(%rip), %rsi       # 0x2004
leaq 0x31b6(%rip), %rdx      # 0x43b0
movb $0x1, %al
callq 0x1030
jmp 0x117c
movq 0x2dd3(%rip), %rax      # 0x3fe0
movq (%rax), %r12
movq %r14, %rdi
pushq $0x4
popq %rsi
movss %xmm1, (%rsp)
callq 0x1368
cvtss2sd (%rsp), %xmm0
cvtss2sd 0xc(%r14), %xmm1
movq %r12, %rdi
leaq 0xdd6(%rip), %rsi       # 0x200b
leaq 0x3174(%rip), %rdx      # 0x43b0
movb $0x2, %al
callq 0x1030
incl %ebx
movss 0xc(%r14), %xmm0
jmp 0x118e
leaq 0x5(%r14), %rdi
movq 0x2d85(%rip), %rax      # 0x3fe0
movq (%rax), %r12
pushq $0x4
popq %rsi
movss %xmm1, (%rsp)
callq 0x1368
cvtss2sd (%rsp), %xmm0
cvtss2sd 0xc(%r14), %xmm1
movq %r12, %rdi
leaq 0xda9(%rip), %rsi       # 0x2029
leaq 0x3129(%rip), %rdx      # 0x43b0
movb $0x2, %al
callq 0x1030
incl %ebx
movss 0xc(%r14), %xmm0
jmp 0x11a3
movq 0x2d3e(%rip), %rax      # 0x3fe0
movq (%rax), %r12
cvtss2sd %xmm0, %xmm0
movsd %xmm0, (%rsp)
leaq 0xc(%rsp), %rdi
movl %ebx, %r15d
pushq $0x4
popq %rbx
movl %ebx, %esi
callq 0x1368
movq %r14, %rdi
movl %ebx, %esi
movl %r15d, %ebx
leaq 0xd(%rsp), %r15
callq 0x1368
movq %r12, %rdi
leaq 0xd75(%rip), %rsi       # 0x2051
movsd (%rsp), %xmm0
leaq 0x30c8(%rip), %rcx      # 0x43b0
movq %rcx, %rdx
movb $0x1, %al
callq 0x1030
movss 0xc(%r14), %xmm0
jmp 0x11b6
movq 0x2cdc(%rip), %rax      # 0x3fe0
movq (%rax), %r12
cvtss2sd %xmm0, %xmm0
movsd %xmm0, (%rsp)
movq %r15, %rdi
movl %ebx, %r15d
pushq $0x4
popq %rbx
movl %ebx, %esi
callq 0x1368
movq %r14, %rdi
movl %ebx, %esi
movl %r15d, %ebx
leaq 0xd(%rsp), %r15
callq 0x1368
movq %r12, %rdi
leaq 0xd33(%rip), %rsi       # 0x206f
movsd (%rsp), %xmm0
leaq 0x3068(%rip), %rcx      # 0x43b0
movq %rcx, %rdx
movb $0x1, %al
callq 0x1030
jmp 0x11c8
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq