// File: /workspace/github_c_makefile_star2_O1/yutopp[P]cc/parser.c
// Function: parse_declarator
ParserResult parse_declarator(Parser *parser) {
    ParserResult res;
    state_t _parser_state = save_state(parser);

    res = parse_direct_declarator(parser); ErrProp;

    Node* node = node_arena_malloc(parser->arena);
    node->kind = NODE_DECLARATOR;
    node->value.declarator.node = res.value.node;

    res.result = PARSER_OK;
    res.value.node = node;

    return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbp
movq 0x10(%rsi), %r12
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x1f63
cmpl $0x1, (%r15)
movq %r12, 0x38(%rsp)
jne 0x2054
movq (%r14), %rdi
movq 0x10(%r14), %rsi
callq 0x3216
movq %rax, %rsi
xorl %r8d, %r8d
testq %rax, %rax
sete %r8b
je 0x2290
xorl %r13d, %r13d
cmpl $0x4, (%rsi)
setne %r13b
movl $0x1, %eax
cmovnel %eax, %r8d
jmp 0x2293
movq %rbp, 0x30(%rsp)
movq 0x28(%rsp), %rbx
movq 0x8(%r14), %rdi
callq 0x3876
movl $0xd, (%rax)
movq %rbx, 0x10(%rax)
movq %rax, 0x8(%rsp)
movl $0x0, 0x8(%rax)
movq %r14, 0x60(%rsp)
movq (%r14), %rdi
movq 0x10(%r14), %r15
movq %r15, %rsi
callq 0x3216
testq %rax, %rax
cmovneq %rax, %rbp
je 0x2277
sete %al
movq 0x10(%r14), %r12
incq %r12
movq %r12, 0x10(%r14)
movl (%rbp), %ecx
movl $0x6, %ebx
cmpl $0x6, %ecx
je 0x20e2
cmpl $0x4, %ecx
jne 0x213d
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x47a(%rip), %rdx       # 0x2547
callq 0x1ea0
cmpl $0x1, 0x10(%rsp)
jne 0x214c
movq %r12, 0x10(%r14)
jmp 0x2171
movq (%r14), %rdi
movq %r12, %rsi
callq 0x3216
testq %rax, %rax
sete %cl
movq 0x70(%rsp), %r12
cmovneq %rax, %r12
movl $0x0, %eax
movl 0x44(%rsp), %r13d
cmovel %eax, %r13d
je 0x2120
cmpl $0x7, (%r12)
je 0x2120
movb $0x1, %cl
movl $0x1, %r13d
movq %r12, 0x58(%rsp)
movzbl %cl, %r8d
testb %r8b, %r8b
movq %r12, 0x70(%rsp)
movl %r13d, 0x44(%rsp)
je 0x2197
movq 0x58(%rsp), %rsi
jmp 0x225c
movzbl %al, %r8d
xorl %r13d, %r13d
movq %rbp, %r12
jmp 0x225c
movq 0x8(%r14), %rdi
callq 0x3876
movl $0xf, (%rax)
movq 0x28(%rsp), %rcx
movq %rcx, 0x8(%rax)
movl $0x0, 0x10(%rsp)
movq %rax, 0x28(%rsp)
movl 0x10(%rsp), %r8d
movq 0x28(%rsp), %r12
testl %r8d, %r8d
je 0x21a4
movl 0x14(%rsp), %edx
movl 0x18(%rsp), %r13d
movl 0x1c(%rsp), %ecx
movq 0x20(%rsp), %rsi
jmp 0x225c
movq 0x58(%rsp), %rcx
movq %r12, %rdx
xorl %r12d, %r12d
jmp 0x220a
movq (%r14), %rdi
movq 0x10(%r14), %rsi
callq 0x3216
testq %rax, %rax
sete %cl
movq 0x50(%rsp), %rdx
cmovneq %rax, %rdx
movl $0x0, %eax
movl 0x4(%rsp), %r13d
cmovel %eax, %r13d
je 0x21e1
cmpl $0x5, (%rdx)
je 0x21e1
movb $0x1, %cl
movl $0x1, %r13d
movq %rdx, 0x48(%rsp)
movzbl %cl, %r8d
movq 0x48(%rsp), %rcx
movl %r13d, 0x4(%rsp)
movq %rdx, 0x50(%rsp)
testb %r8b, %r8b
je 0x220a
movq 0x48(%rsp), %rsi
movl 0x4(%rsp), %r13d
movq 0x50(%rsp), %r12
jmp 0x225c
movq %rdx, 0x68(%rsp)
incq 0x10(%r14)
movq 0x8(%r14), %rdi
movq %rcx, %rbx
movq %r15, %r14
movq %r12, %r15
movl %r8d, %r12d
callq 0x3876
movl %r12d, %r8d
movq %rbx, %rsi
movl $0xd, (%rax)
movl $0x1, 0x8(%rax)
movq 0x8(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq %r15, 0x18(%rax)
movq %r14, %r15
movq 0x60(%rsp), %r14
xorl %ebx, %ebx
movq 0x68(%rsp), %r12
movq %rax, 0x8(%rsp)
testl %ebx, %ebx
je 0x2082
cmpl $0x6, %ebx
movq 0x30(%rsp), %rbp
jne 0x231f
xorl %r8d, %r8d
jmp 0x2286
movq %r15, 0x10(%r14)
xorl %r13d, %r13d
xorl %r8d, %r8d
movq 0x30(%rsp), %rbp
movq 0x8(%rsp), %r12
jmp 0x231b
xorl %r13d, %r13d
movq %r12, %r15
movq %rsi, %r12
testl %r8d, %r8d
jne 0x231b
incq 0x10(%r14)
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x1fed
movl (%r15), %r8d
movq 0x18(%r15), %rbx
cmpl $0x1, %r8d
jne 0x22db
movl 0x14(%rsp), %edx
movl 0x18(%rsp), %r13d
movl 0x1c(%rsp), %ecx
movq 0x20(%rsp), %rsi
movq 0x38(%rsp), %r15
movq %rbx, %r12
jmp 0x231b
movq (%r14), %rdi
movq 0x10(%r14), %rsi
callq 0x3216
movq %rax, %rsi
xorl %r8d, %r8d
testq %rax, %rax
sete %r8b
movq 0x38(%rsp), %r15
je 0x2310
xorl %r13d, %r13d
cmpl $0x5, (%rsi)
setne %r13b
movl $0x1, %eax
cmovnel %eax, %r8d
jmp 0x2313
xorl %r13d, %r13d
movq %rsi, %r12
testl %r8d, %r8d
je 0x2376
movq %r15, 0x10(%r14)
movl %r8d, (%rbp)
movl %edx, 0x4(%rbp)
movl %r13d, 0x8(%rbp)
movl %ecx, 0xc(%rbp)
movq %rsi, 0x10(%rbp)
movq %r12, 0x18(%rbp)
cmpl $0x1, %r8d
jne 0x2346
movq 0x38(%rsp), %rax
movq %rax, 0x10(%r14)
jmp 0x2364
movq 0x8(%r14), %rdi
callq 0x3876
movl $0xc, (%rax)
movq %r12, 0x8(%rax)
movl $0x0, (%rbp)
movq %rax, 0x18(%rbp)
movq %rbp, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, 0x30(%rsp)
incq 0x10(%r14)
jmp 0x205e