// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/parser/parser.c
// Function: left_unary_expr_ast_read
static enum PARSER_CODES left_unary_expr_ast_read(struct PARSER*parser, struct LEFT_UNARY_EXPR_AST**left_unary_expr)
{
    enum PARSER_CODES r;

    enum AST_LEFT_UNARY_OP op = AST_LEFT_UNARY_OP_PLUS;

    struct PRIMARY_EXPR_AST*primary_expr;
    
    if ((parser->tok)->token_type == TOKEN_TYPE_PLUS) {
        op = AST_LEFT_UNARY_OP_PLUS;
        token_free((parser->tok));
        lexer_next_token(parser->lexer, &(parser->tok));
    } else if ((parser->tok)->token_type == TOKEN_TYPE_MINUS) {
        op = AST_LEFT_UNARY_OP_MINUS;
        token_free((parser->tok));
        lexer_next_token(parser->lexer, &(parser->tok));
    }

    r = primary_expr_ast_read(parser, &primary_expr);
    if (r != PARSER_OK) {
        goto err0;
    }

    (*left_unary_expr) = create_left_unary_expr_ast(op, primary_expr,
                                                    (parser->tok)->frag.starting.line,
                                                    (parser->tok)->frag.starting.pos);

    return PARSER_OK;

 err0:
    (*left_unary_expr) = NULL;
    return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x8(%rdi), %r14
movq 0x8(%rdi), %rdi
movl (%rdi), %eax
xorl %ebp, %ebp
cmpl $0x16, %eax
je 0x79da
cmpl $0x17, %eax
jne 0x79ea
movl $0x1, %ebp
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
movq (%r14), %rdi
movl (%rdi), %eax
cmpl $0xb, %eax
jle 0x7a6e
cmpl $0x1d, %eax
je 0x7b34
cmpl $0x1b, %eax
je 0x7b8c
cmpl $0xc, %eax
jne 0x7cf5
leaq 0x58(%rdi), %rax
movq 0x18(%rdi), %rsi
movq 0x20(%rdi), %rdx
movq %rax, %rdi
callq 0xa96f
movq %rax, %r13
movq 0x8(%r15), %rdi
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
movq 0x8(%r15), %rax
cmpl $0x1b, (%rax)
jne 0x7d2c
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x6681
testl %eax, %eax
jne 0x7d40
movq 0x8(%rsp), %rdi
movl $0x2, %esi
jmp 0x7b67
cmpl $0x9, %eax
je 0x7bdc
cmpl $0xa, %eax
jne 0x7cf5
movq 0x18(%rdi), %r13
movq 0x20(%rdi), %r12
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
movq 0x8(%r15), %rdi
cmpl $0x1b, (%rdi)
jne 0x7cd9
movq %r12, 0x20(%rsp)
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x5c5f
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x7d4b
movq %r13, 0x18(%rsp)
movq 0x8(%rsp), %r13
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x6771
movl %eax, %r12d
testl %eax, %eax
jne 0x7d43
movq (%r14), %rdi
cmpl $0x1c, (%rdi)
jne 0x7db9
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0xa6de
movq %rax, %rdi
movl $0x1, %esi
jmp 0x7b67
movq 0x58(%rdi), %rax
movq 0x18(%rdi), %rsi
movq 0x20(%rdi), %rdx
movq %rax, %rdi
callq 0xaa04
movq %rax, %r12
movq 0x8(%r15), %rdi
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
movq %r12, %rdi
movl $0x4, %esi
callq 0xa509
movq (%r14), %rcx
movq 0x18(%rcx), %rdx
movq 0x20(%rcx), %rcx
movl %ebp, %edi
movq %rax, %rsi
callq 0xa35f
movq %rax, %r14
xorl %r12d, %r12d
jmp 0x7d4e
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x6fc5
movl %eax, %r12d
testl %eax, %eax
jne 0x7d4b
movq (%r14), %rdi
cmpl $0x1c, (%rdi)
jne 0x7d63
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
movq 0x8(%rsp), %rdi
movl $0x5, %esi
jmp 0x7b67
movq 0x18(%rdi), %r13
movq 0x20(%rdi), %r12
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
movq 0x8(%r15), %rdi
cmpl $0x1b, (%rdi)
jne 0x7cd9
movq %r12, 0x20(%rsp)
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x5c5f
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x7d4b
movq %r13, 0x18(%rsp)
movq 0x10(%rsp), %r13
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x6771
movl %eax, %r12d
testl %eax, %eax
jne 0x7db2
movq $0x0, 0x10(%rsp)
movq (%r14), %rdi
movl $0x22, %edx
cmpl $0x22, (%rdi)
jne 0x7d8e
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x5c5f
testl %eax, %eax
jne 0x7d9d
movq (%r14), %rdi
movl $0x1c, %edx
cmpl $0x1c, (%rdi)
jne 0x7d8e
callq 0x53ac
movq (%r15), %rdi
movq %r14, %rsi
callq 0x45d6
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0xa5cd
movq %rax, %rdi
xorl %esi, %esi
jmp 0x7b67
movl $0x1, %esi
movq %r15, %rdi
movl $0x1b, %edx
xorl %eax, %eax
callq 0x5b97
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x7d4b
movl $0x9, (%rsp)
xorl %r14d, %r14d
movl $0x5, %esi
movq %r15, %rdi
movl $0xc, %edx
movl $0x1d, %ecx
movl $0x1b, %r8d
movl $0xa, %r9d
xorl %eax, %eax
callq 0x5b97
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x7d4e
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x6771
testl %eax, %eax
je 0x7d7f
movl %eax, %r12d
movq %r13, %rdi
callq 0x809d
xorl %r14d, %r14d
movq %r14, (%rbx)
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rdi
callq 0x8bdc
movl $0x1, %esi
movq %r15, %rdi
movl $0x23, %edx
jmp 0x7ce6
movq 0x8(%rsp), %rdi
movl $0x3, %esi
jmp 0x7b67
movl $0x1, %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x5b97
movq 0x8(%rsp), %rdi
callq 0x8877
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movq 0x10(%rsp), %r13
testq %r13, %r13
jne 0x7d43
jmp 0x7d4b
movl $0x1, %esi
movq %r15, %rdi
movl $0x1c, %edx
xorl %eax, %eax
callq 0x5b97
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x7d43