// File: /workspace/github_c_makefile_star2_O0/ieyasu[P]funit/generate_code.c
// Function: check_assert_args2
static int check_assert_args2(const char *macro_name, struct Code *macro,
                              struct Code *args, int min_args, int max_args)
{
    long lineno;
    int n;

    assert(min_args > 0 && min_args <= max_args);

    if (!args) {
        fprintf(stderr, "near %s:%li: no arguments to %s()\n",
                test_set_file_name, macro->lineno, macro_name);
        return -1;
    }
    n = 0;
    while (args) {
        lineno = args->lineno;
        n++;
        if (n > max_args)
            goto badargs;
        args = args->next;
    }
    if (n < min_args)
        goto badargs;
    return n;
 badargs:
    if (min_args == max_args) {
        fprintf(stderr, "near %s:%li: expected %i argument%s to %s()\n",
                test_set_file_name, lineno, max_args,
                (max_args > 1) ? "s" : "", macro_name);
    } else {
        assert(min_args + 1 == max_args);
        fprintf(stderr, "near %s:%li: expected %i or %i arguments to %s()\n",
                test_set_file_name, lineno, min_args, max_args, macro_name);
    }
    return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
cmpl $0x0, -0x24(%rbp)
jle 0x5eab
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jg 0x5eab
jmp 0x5eca
leaq 0x564c(%rip), %rdi      # 0xb4fe
leaq 0x558c(%rip), %rsi      # 0xb445
movl $0x12, %edx
leaq 0x565e(%rip), %rcx      # 0xb523
callq 0x2120
cmpq $0x0, -0x20(%rbp)
jne 0x5f08
movq 0x9120(%rip), %rax      # 0xeff8
movq (%rax), %rdi
movq 0xb3b6(%rip), %rdx      # 0x11298
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %r8
leaq 0x567b(%rip), %rsi      # 0xb570
movb $0x0, %al
callq 0x21a0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x600e
movl $0x0, -0x34(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x5f42
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x28(%rbp), %eax
jle 0x5f35
jmp 0x5f57
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x5f0f
movl -0x34(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x5f4c
jmp 0x5f57
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x600e
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jne 0x5fa8
movq 0x9092(%rip), %rax      # 0xeff8
movq (%rax), %rdi
movq 0xb328(%rip), %rdx      # 0x11298
movq -0x30(%rbp), %rcx
movl -0x28(%rbp), %r8d
movl -0x28(%rbp), %esi
leaq 0x5e74(%rip), %r9       # 0xbdf6
leaq 0x636d(%rip), %rax      # 0xc2f6
cmpl $0x1, %esi
cmovgq %rax, %r9
movq -0x10(%rbp), %rax
leaq 0x55f8(%rip), %rsi      # 0xb593
movq %rax, (%rsp)
movb $0x0, %al
callq 0x21a0
jmp 0x6007
movl -0x24(%rbp), %eax
addl $0x1, %eax
cmpl -0x28(%rbp), %eax
jne 0x5fb5
jmp 0x5fd4
leaq 0x5604(%rip), %rdi      # 0xb5c0
leaq 0x5482(%rip), %rsi      # 0xb445
movl $0x2a, %edx
leaq 0x5554(%rip), %rcx      # 0xb523
callq 0x2120
movq 0x901d(%rip), %rax      # 0xeff8
movq (%rax), %rdi
movq 0xb2b3(%rip), %rdx      # 0x11298
movq -0x30(%rbp), %rcx
movl -0x24(%rbp), %r8d
movl -0x28(%rbp), %r9d
movq -0x10(%rbp), %rax
leaq 0x55dd(%rip), %rsi      # 0xb5d9
movq %rax, (%rsp)
movb $0x0, %al
callq 0x21a0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)