// File: /workspace/github_c_makefile_star2_O3/sharmaeklavya2[P]cerplag/error.c
// Function: print_error
void print_error(const char* category, int type, int err_num, int line, int col,
    const char* lexeme, const char* err_code, const char* err_msg)
{
    if(!print_error_req)
        return;
    if(error_stream == NULL)
        error_stream = stderr;

    const char* type_str;
    if(type == ERROR) {
        type_str = "error";
        error_count++;
    }
    else {
        type_str = "warning";
        warning_count++;
    }

    if(category != NULL)
        fprintf(error_stream, "%s_", category);
    fprintf(error_stream, "%s", type_str);
    if(err_num >= 0)
        fprintf(error_stream, "_%02d", err_num);
    fprintf(error_stream, ": ");

    if(line > 0)
    {
        fprintf(error_stream, "line %2d", line);
        if(col > 0)
            fprintf(error_stream, ", col %2d", col);
        fprintf(error_stream, ": ");
    }

    if(lexeme != NULL)
        fprintf(error_stream, "\'%s\'", lexeme);

    if(err_code != NULL || err_msg != NULL)
        fprintf(error_stream, "\n");
    if(err_code != NULL)
        fprintf(error_stream, "%s: ", err_code);
    if(err_msg != NULL)
        fprintf(error_stream, "%s", err_msg);

    fprintf(error_stream, "\n\n");
}

// Assembly:
cmpb $0x1, 0xc70d(%rip)      # 0x15ad0
jne 0x9590
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r15
movl %r8d, %r12d
movl %ecx, %r13d
movl %edx, %ebx
movl %esi, %eax
movq %rdi, %rdx
movq 0x18(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movq 0x10(%rbp), %rcx
movq %rcx, -0x30(%rbp)
movq 0x119af(%rip), %rsi     # 0x1adb0
testq %rsi, %rsi
jne 0x9417
movq 0xbbeb(%rip), %rcx      # 0x14ff8
movq (%rcx), %rsi
movq %rsi, 0x11999(%rip)     # 0x1adb0
testl %eax, %eax
leaq 0x11998(%rip), %rax     # 0x1adb8
leaq 0x11995(%rip), %rcx     # 0x1adbc
cmoveq %rax, %rcx
leaq 0x4dbe(%rip), %rax      # 0xe1f0
leaq 0x5c8c(%rip), %r14      # 0xf0c5
cmoveq %rax, %r14
incl (%rcx)
testq %rdx, %rdx
je 0x945f
leaq 0x5c82(%rip), %rax      # 0xf0cd
movq %rsi, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x3140
movq 0x11951(%rip), %rsi     # 0x1adb0
movq %r14, %rdi
callq 0x30e0
testl %ebx, %ebx
js 0x9482
movq 0x1193e(%rip), %rdi     # 0x1adb0
leaq 0x5c58(%rip), %rsi      # 0xf0d1
movl %ebx, %edx
xorl %eax, %eax
callq 0x3140
movq 0x11927(%rip), %rcx     # 0x1adb0
leaq 0x4b7c(%rip), %rdi      # 0xe00c
movl $0x2, %esi
movl $0x1, %edx
callq 0x31d0
testl %r13d, %r13d
movq -0x38(%rbp), %rbx
movq -0x30(%rbp), %r14
jle 0x94fe
movq 0x118fd(%rip), %rdi     # 0x1adb0
leaq 0x5c1d(%rip), %rsi      # 0xf0d7
movl %r13d, %edx
xorl %eax, %eax
callq 0x3140
testl %r12d, %r12d
jle 0x94e1
movq 0x118e0(%rip), %rdi     # 0x1adb0
leaq 0x5c09(%rip), %rsi      # 0xf0e0
movl %r12d, %edx
xorl %eax, %eax
callq 0x3140
movq 0x118c8(%rip), %rcx     # 0x1adb0
leaq 0x4b1d(%rip), %rdi      # 0xe00c
movl $0x2, %esi
movl $0x1, %edx
callq 0x31d0
testq %r15, %r15
je 0x951b
movq 0x118a6(%rip), %rdi     # 0x1adb0
leaq 0x629c(%rip), %rsi      # 0xf7ad
movq %r15, %rdx
xorl %eax, %eax
callq 0x3140
movq %r14, %rax
orq %rbx, %rax
je 0x9565
movq 0x11886(%rip), %rsi     # 0x1adb0
movl $0xa, %edi
callq 0x3110
testq %r14, %r14
je 0x9551
movq 0x11870(%rip), %rdi     # 0x1adb0
leaq 0x54d2(%rip), %rsi      # 0xea19
movq %r14, %rdx
xorl %eax, %eax
callq 0x3140
testq %rbx, %rbx
je 0x9565
movq 0x11853(%rip), %rsi     # 0x1adb0
movq %rbx, %rdi
callq 0x30e0
movq 0x11844(%rip), %rcx     # 0x1adb0
leaq 0x5b77(%rip), %rdi      # 0xf0ea
movl $0x2, %esi
movl $0x1, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x31d0
retq
nopl (%rax)