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

    for (i = 0; i < NELE(tests_32_bit); i++) {
        uint32_t u32;
        int32_t  i32;

        if (verbose) {
            fprintf(stderr, "%s %11"PRId32" %11"PRIu32"\n",
                    to_hex(tests_32_bit[i].u8, 4),
                    tests_32_bit[i].i32, tests_32_bit[i].u32);
        }

        u32 = le_to_u32(tests_32_bit[i].u8);
        if (u32 != tests_32_bit[i].u32) {
            fprintf(stderr, "Failed %s => %"PRIu32"; expected %"PRIu32"\n",
                    to_hex(tests_32_bit[i].u8, 4), u32, tests_32_bit[i].u32);
            errors++;
        }
        i32 = le_to_i32(tests_32_bit[i].u8);
        if (i32 != tests_32_bit[i].i32) {
            fprintf(stderr, "Failed %s => %"PRId32"; expected %"PRId32"\n",
                    to_hex(tests_32_bit[i].u8, 4), i32, tests_32_bit[i].i32);
            errors++;
        }

        u32 = le_to_u32(tests_32_bit[i].u8_unaligned + 1);
        if (u32 != tests_32_bit[i].u32) {
            fprintf(stderr,
                    "Failed unaligned %s => %"PRIu32"; expected %"PRIu32"\n",
                    to_hex(tests_32_bit[i].u8_unaligned + 1, 4),
                    u32, tests_32_bit[i].u32);
            errors++;
        }
        i32 = le_to_i32(tests_32_bit[i].u8_unaligned + 1);
        if (i32 != tests_32_bit[i].i32) {
            fprintf(stderr,
                    "Failed unaligned %s => %"PRId32"; expected %"PRId32"\n",
                    to_hex(tests_32_bit[i].u8_unaligned + 1, 4),
                    i32, tests_32_bit[i].i32);
            errors++;
        }

        u32_to_le(tests_32_bit[i].u32, buf);
        if (memcmp(buf, tests_32_bit[i].u8, 4) != 0) {
            fprintf(stderr, "Failed %"PRIu32" => %s; expected %s\n",
                    tests_32_bit[i].u32,
                    to_hex(buf, 4), to_hex(tests_32_bit[i].u8, 4));
            errors++;
        }

        i32_to_le(tests_32_bit[i].i32, buf);
        if (memcmp(buf, tests_32_bit[i].u8, 4) != 0) {
            fprintf(stderr, "Failed %"PRId32" => %s; expected %s\n",
                    tests_32_bit[i].i32,
                    to_hex(buf, 4), to_hex(tests_32_bit[i].u8, 4));
            errors++;
        }

        u32_to_le(tests_32_bit[i].u32, buf + 1);
        if (memcmp(buf + 1, tests_32_bit[i].u8, 4) != 0) {
            fprintf(stderr, "Failed unaligned %"PRIu32" => %s; expected %s\n",
                    tests_32_bit[i].u32,
                    to_hex(buf + 1, 4), to_hex(tests_32_bit[i].u8, 4));
            errors++;
        }

        i32_to_le(tests_32_bit[i].i32, buf + 1);
        if (memcmp(buf + 1, tests_32_bit[i].u8, 4) != 0) {
            fprintf(stderr, "Failed unaligned %"PRId32" => %s; expected %s\n",
                    tests_32_bit[i].i32,
                    to_hex(buf + 1, 4), to_hex(tests_32_bit[i].u8, 4));
            errors++;
        }
    }

    return errors;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movl %edi, -0x4(%rbp)
movl $0x0, -0x1c(%rbp)
movq $0x0, -0x18(%rbp)
cmpq $0x7, -0x18(%rbp)
jae 0x26c2
cmpl $0x0, -0x4(%rbp)
je 0x215f
movq 0x2edb(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, -0x30(%rbp)
leaq 0x2f6d(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
movl $0x4, %esi
callq 0x1500
movq -0x30(%rbp), %rdi
movq %rax, %rdx
leaq 0x2f4d(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
leaq 0x2f3b(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rsi
addq %rsi, %rax
movl 0x10(%rax), %r8d
leaq 0x111f(%rip), %rsi      # 0x3277
movb $0x0, %al
callq 0x1040
leaq 0x2f1a(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
callq 0x2d10
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
leaq 0x2f00(%rip), %rcx      # 0x5080
imulq $0x14, -0x18(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x10(%rcx), %eax
je 0x21e8
movq 0x2e4c(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
leaq 0x2ede(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
movl $0x4, %esi
callq 0x1500
movq -0x38(%rbp), %rdi
movq %rax, %rdx
movl -0x20(%rbp), %ecx
leaq 0x2ebb(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rsi
addq %rsi, %rax
movl 0x10(%rax), %r8d
leaq 0xf87(%rip), %rsi       # 0x315f
movb $0x0, %al
callq 0x1040
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
leaq 0x2e91(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
callq 0x2e40
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
leaq 0x2e77(%rip), %rcx      # 0x5080
imulq $0x14, -0x18(%rbp), %rdx
addq %rdx, %rcx
cmpl 0xc(%rcx), %eax
je 0x2271
movq 0x2dc3(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, -0x40(%rbp)
leaq 0x2e55(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
movl $0x4, %esi
callq 0x1500
movq -0x40(%rbp), %rdi
movq %rax, %rdx
movl -0x24(%rbp), %ecx
leaq 0x2e32(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rsi
addq %rsi, %rax
movl 0xc(%rax), %r8d
leaq 0xf1c(%rip), %rsi       # 0x317d
movb $0x0, %al
callq 0x1040
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
leaq 0x2e08(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
addq $0x4, %rdi
addq $0x1, %rdi
callq 0x2d10
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
leaq 0x2de6(%rip), %rcx      # 0x5080
imulq $0x14, -0x18(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x10(%rcx), %eax
je 0x230a
movq 0x2d32(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, -0x48(%rbp)
leaq 0x2dc4(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
addq $0x4, %rdi
addq $0x1, %rdi
movl $0x4, %esi
callq 0x1500
movq -0x48(%rbp), %rdi
movq %rax, %rdx
movl -0x20(%rbp), %ecx
leaq 0x2d99(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rsi
addq %rsi, %rax
movl 0x10(%rax), %r8d
leaq 0xea1(%rip), %rsi       # 0x319b
movb $0x0, %al
callq 0x1040
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
leaq 0x2d6f(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
addq $0x4, %rdi
addq $0x1, %rdi
callq 0x2e40
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
leaq 0x2d4d(%rip), %rcx      # 0x5080
imulq $0x14, -0x18(%rbp), %rdx
addq %rdx, %rcx
cmpl 0xc(%rcx), %eax
je 0x23a3
movq 0x2c99(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, -0x50(%rbp)
leaq 0x2d2b(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
addq $0x4, %rdi
addq $0x1, %rdi
movl $0x4, %esi
callq 0x1500
movq -0x50(%rbp), %rdi
movq %rax, %rdx
movl -0x24(%rbp), %ecx
leaq 0x2d00(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rsi
addq %rsi, %rax
movl 0xc(%rax), %r8d
leaq 0xe30(%rip), %rsi       # 0x31c3
movb $0x0, %al
callq 0x1040
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
leaq 0x2cd6(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %edi
leaq -0xd(%rbp), %rsi
callq 0x2d20
leaq -0xd(%rbp), %rax
leaq 0x2cb7(%rip), %rcx      # 0x5080
imulq $0x14, -0x18(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
movl (%rax), %eax
subl %ecx, %eax
setne %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x2455
movq 0x2bf7(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, -0x68(%rbp)
leaq 0x2c89(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movl %eax, -0x5c(%rbp)
leaq -0xd(%rbp), %rdi
movl $0x4, %esi
callq 0x1500
movq %rax, -0x58(%rbp)
leaq 0x2c62(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
movl $0x4, %esi
callq 0x1500
movq -0x68(%rbp), %rdi
movl -0x5c(%rbp), %edx
movq -0x58(%rbp), %rcx
movq %rax, %r8
leaq 0xda6(%rip), %rsi       # 0x31eb
movb $0x0, %al
callq 0x1040
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
leaq 0x2c24(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %edi
leaq -0xd(%rbp), %rsi
callq 0x2e90
leaq -0xd(%rbp), %rax
leaq 0x2c05(%rip), %rcx      # 0x5080
imulq $0x14, -0x18(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
movl (%rax), %eax
subl %ecx, %eax
setne %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x2507
movq 0x2b45(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, -0x80(%rbp)
leaq 0x2bd7(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
movl %eax, -0x74(%rbp)
leaq -0xd(%rbp), %rdi
movl $0x4, %esi
callq 0x1500
movq %rax, -0x70(%rbp)
leaq 0x2bb0(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
movl $0x4, %esi
callq 0x1500
movq -0x80(%rbp), %rdi
movl -0x74(%rbp), %edx
movq -0x70(%rbp), %rcx
movq %rax, %r8
leaq 0xd12(%rip), %rsi       # 0x3209
movb $0x0, %al
callq 0x1040
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
leaq 0x2b72(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %edi
leaq -0xd(%rbp), %rsi
addq $0x1, %rsi
callq 0x2d20
leaq -0xd(%rbp), %rax
addq $0x1, %rax
leaq 0x2b4b(%rip), %rcx      # 0x5080
imulq $0x14, -0x18(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
movl (%rax), %eax
subl %ecx, %eax
setne %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x25db
movq 0x2a87(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, -0x98(%rbp)
leaq 0x2b16(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movl %eax, -0x8c(%rbp)
leaq -0xd(%rbp), %rdi
addq $0x1, %rdi
movl $0x4, %esi
callq 0x1500
movq %rax, -0x88(%rbp)
leaq 0x2ae5(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
movl $0x4, %esi
callq 0x1500
movq -0x98(%rbp), %rdi
movl -0x8c(%rbp), %edx
movq -0x88(%rbp), %rcx
movq %rax, %r8
leaq 0xc5c(%rip), %rsi       # 0x3227
movb $0x0, %al
callq 0x1040
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
leaq 0x2a9e(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %edi
leaq -0xd(%rbp), %rsi
addq $0x1, %rsi
callq 0x2e90
leaq -0xd(%rbp), %rax
addq $0x1, %rax
leaq 0x2a77(%rip), %rcx      # 0x5080
imulq $0x14, -0x18(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
movl (%rax), %eax
subl %ecx, %eax
setne %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x26af
movq 0x29b3(%rip), %rax      # 0x4fe0
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
leaq 0x2a42(%rip), %rax      # 0x5080
imulq $0x14, -0x18(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
movl %eax, -0xa4(%rbp)
leaq -0xd(%rbp), %rdi
addq $0x1, %rdi
movl $0x4, %esi
callq 0x1500
movq %rax, -0xa0(%rbp)
leaq 0x2a11(%rip), %rdi      # 0x5080
imulq $0x14, -0x18(%rbp), %rax
addq %rax, %rdi
movl $0x4, %esi
callq 0x1500
movq -0xb0(%rbp), %rdi
movl -0xa4(%rbp), %edx
movq -0xa0(%rbp), %rcx
movq %rax, %r8
leaq 0xbb0(%rip), %rsi       # 0x324f
movb $0x0, %al
callq 0x1040
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x26b1
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x20ed
movl -0x1c(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
nop