// File: /workspace/github_c_makefile_star2_O0/mijallen[P]SimpleHTTPServer/lib/libyaml/src/parser.c
// Function: yaml_parser_parse_block_mapping_value
static int
yaml_parser_parse_block_mapping_value(yaml_parser_t *parser,
        yaml_event_t *event)
{
    yaml_token_t *token;

    token = PEEK_TOKEN(parser);
    if (!token) return 0;

    if (token->type == YAML_VALUE_TOKEN)
    {
        yaml_mark_t mark = token->end_mark;
        SKIP_TOKEN(parser);
        token = PEEK_TOKEN(parser);
        if (!token) return 0;
        if (token->type != YAML_KEY_TOKEN &&
                token->type != YAML_VALUE_TOKEN &&
                token->type != YAML_BLOCK_END_TOKEN) {
            if (!PUSH(parser, parser->states,
                        YAML_PARSE_BLOCK_MAPPING_KEY_STATE))
                return 0;
            return yaml_parser_parse_node(parser, event, 1, 1);
        }
        else {
            parser->state = YAML_PARSE_BLOCK_MAPPING_KEY_STATE;
            return yaml_parser_process_empty_scalar(parser, event, mark);
        }
    }

    else
    {
        parser->state = YAML_PARSE_BLOCK_MAPPING_KEY_STATE;
        return yaml_parser_process_empty_scalar(parser, event, token->start_mark);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x130(%rax)
jne 0x1b52b
movq -0x10(%rbp), %rdi
callq 0x21c0
cmpl $0x0, %eax
je 0x1b53c
movq -0x10(%rbp), %rax
movq 0x118(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x1b544
xorl %eax, %eax
movq %rax, -0x40(%rbp)
jmp 0x1b544
movq -0x40(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x1b55f
movl $0x0, -0x4(%rbp)
jmp 0x1b77b
movq -0x20(%rbp), %rax
cmpl $0x11, (%rax)
jne 0x1b73c
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x40(%rax), %rcx
movq %rcx, -0x30(%rbp)
movq 0x48(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl $0x0, 0x130(%rax)
movq -0x10(%rbp), %rax
movq 0x128(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x128(%rax)
movq -0x10(%rbp), %rax
movq 0x118(%rax), %rax
cmpl $0x2, (%rax)
sete %al
andb $0x1, %al
movzbl %al, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0xfc(%rax)
movq -0x10(%rbp), %rax
movq 0x118(%rax), %rcx
addq $0x50, %rcx
movq %rcx, 0x118(%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x130(%rax)
jne 0x1b5fd
movq -0x10(%rbp), %rdi
callq 0x21c0
cmpl $0x0, %eax
je 0x1b60e
movq -0x10(%rbp), %rax
movq 0x118(%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x1b616
xorl %eax, %eax
movq %rax, -0x48(%rbp)
jmp 0x1b616
movq -0x48(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x1b631
movl $0x0, -0x4(%rbp)
jmp 0x1b77b
movq -0x20(%rbp), %rax
cmpl $0x10, (%rax)
je 0x1b6ff
movq -0x20(%rbp), %rax
cmpl $0x11, (%rax)
je 0x1b6ff
movq -0x20(%rbp), %rax
cmpl $0x9, (%rax)
je 0x1b6ff
movq -0x10(%rbp), %rax
movq 0x180(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x178(%rcx), %rax
jne 0x1b6a3
movq -0x10(%rbp), %rdi
addq $0x170, %rdi            # imm = 0x170
movq -0x10(%rbp), %rsi
addq $0x170, %rsi            # imm = 0x170
addq $0x10, %rsi
movq -0x10(%rbp), %rdx
addq $0x170, %rdx            # imm = 0x170
addq $0x8, %rdx
callq 0x20e0
cmpl $0x0, %eax
je 0x1b6ca
movq -0x10(%rbp), %rcx
movq 0x180(%rcx), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, 0x180(%rcx)
movl $0xc, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x1b6e6
jmp 0x1b6da
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x1b6e6
movl $0x0, -0x4(%rbp)
jmp 0x1b77b
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl $0x1, %ecx
movl %ecx, %edx
callq 0x19870
movl %eax, -0x4(%rbp)
jmp 0x1b77b
movq -0x10(%rbp), %rax
movl $0xc, 0x188(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x38(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x1d2d0
movl %eax, -0x4(%rbp)
jmp 0x1b77b
movq -0x10(%rbp), %rax
movl $0xc, 0x188(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rax
addq $0x20, %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x1d2d0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)