// File: /workspace/github_c_makefile_star2_O1/mahrr[P]raven/src/compiler.c
// Function: pattern
static void
pattern(Parser *parser, Pattern_Context *context, bool subvalue) {
    Debug_Log(parser);

    if (parser->panic_mode) {
        return;
    }

    if (context->cases_count == PATTERN_LIMIT) {
        error_limit(parser, "pattern elements", PATTERN_LIMIT);
        return;
    }

    switch (parser->current.type)
    {
    case TOKEN_IDENTIFIER: {
        Token token = parser->current;

        // Wildcard Pattern (No Binding)
        if (token.length == 1 && token.lexeme[0] == '_') {
            emit_byte(parser, OP_POP); // discard the match value
            advance(parser);           // consume the wildcard '_'
            break;
        }

        // Identifier Pattern
        uint8_t index = variable(parser, "");
        define_variable(parser, index);
        context->bindings_count += 1;
        break;
    }
    case TOKEN_NIL: {
        advance(parser);
        emit_byte(parser, OP_PUSH_NIL);
        emit_bytes(parser, OP_EQ, OP_NOT);
        pattern_fail_if_true(parser, context, subvalue);
        break;
    }
    case TOKEN_TRUE: {
        advance(parser);
        emit_byte(parser, OP_PUSH_TRUE);
        emit_bytes(parser, OP_EQ, OP_NOT);
        pattern_fail_if_true(parser, context, subvalue);
        break;
    }
    case TOKEN_FALSE: {
        advance(parser);
        emit_byte(parser, OP_PUSH_FALSE);
        emit_bytes(parser, OP_EQ, OP_NOT);
        pattern_fail_if_true(parser, context, subvalue);
        break;
    }
    case TOKEN_NUMBER: {
        advance(parser);
        number(parser);
        emit_bytes(parser, OP_EQ, OP_NOT);
        pattern_fail_if_true(parser, context, subvalue);
        break;
    }
    case TOKEN_STRING: {
        advance(parser);
        string(parser);
        emit_bytes(parser, OP_EQ, OP_NOT);
        pattern_fail_if_true(parser, context, subvalue);
        break;
    }
    case TOKEN_LEFT_PAREN: {
        // Pair Pattern
        advance(parser); // consume '('

        // Check if the recent match value is of type pair.
        emit_bytes(parser, OP_IS_PAIR, OP_NOT);
        pattern_fail_if_true(parser, context, subvalue);

        // Index of the recent match value on stack.
        add_dummy_local(parser);
        uint8_t match_value_index = parser->context->local_count - 1;

        // Compile the left side pattern.
        emit_bytes(parser, OP_DUP, OP_CAR);
        pattern(parser, context, true);

        consume(parser, TOKEN_COLON_COLON, "expect '::' in pair pattern");

        // Retrieve the match value to the stack top.
        emit_bytes(parser, OP_GET_LOCAL, match_value_index);

        // Compile the right side pattern.
        emit_byte(parser, OP_CDR);
        pattern(parser, context, true);

        consume(parser, TOKEN_RIGHT_PAREN, "expect closing ')' in pair pattern");
        break;
    }
    case TOKEN_LEFT_BRACKET: {
        // Array Pattern
        advance(parser); // consume '['

        // Check if the recent match value is of type array.
        emit_bytes(parser, OP_IS_ARRAY, OP_NOT);
        pattern_fail_if_true(parser, context, subvalue);

        // Index of the recent match value on stack.
        add_dummy_local(parser);
        uint8_t match_value_index = parser->context->local_count - 1;

        // Save a copy of the array length on the stack.
        emit_bytes(parser, OP_DUP, OP_ARRAY_LEN);
        add_dummy_local(parser);
        context->bindings_count += 1;
        uint8_t length_index = parser->context->local_count - 1;

        // Check for empty array pattern.
        if (consume_if(parser, TOKEN_RIGHT_BRACKET)) {
            emit_constant(parser, Num_Value(0));
            emit_byte(parser, OP_NEQ);
            pattern_fail_if_true(parser, context, subvalue);
            break; // switch
        }

        int array_subpatterns_count = 0;
        do {
            // Check that `array_length` >= `array_subpatterns_count`
            emit_bytes(parser, OP_GET_LOCAL, length_index);
            emit_constant(parser, Num_Value(array_subpatterns_count + 1));
            emit_byte(parser, OP_LT);
            pattern_fail_if_true(parser, context, subvalue);

            // Compile array element.
            emit_bytes(parser, OP_GET_LOCAL, match_value_index);
            emit_bytes(parser, OP_ARRAY_PUSH_ELEMENT, (uint8_t)array_subpatterns_count);
            pattern(parser, context, true);

            array_subpatterns_count++;
        } while (consume_if(parser, TOKEN_COMMA));

        // Check that the pattern count equals the array element count.
        emit_bytes(parser, OP_GET_LOCAL, length_index);
        emit_constant(parser, Num_Value(array_subpatterns_count));
        emit_byte(parser, OP_NEQ);
        pattern_fail_if_true(parser, context, subvalue);

        consume(parser, TOKEN_RIGHT_BRACKET, "expect closing ']' for the array pattern");
        break;
    }
    case TOKEN_LEFT_BRACE: {
        // Map Pattern
        advance(parser); // consume '{'

        // Check if the recent match value is of type map.
        emit_bytes(parser, OP_IS_MAP, OP_NOT);
        pattern_fail_if_true(parser, context, subvalue);

        // Check for empty map pattern, it matches all maps.
        if (consume_if(parser, TOKEN_RIGHT_BRACE)) {
            break; // switch
        }

        // The recent match value
        add_dummy_local(parser);
        uint8_t match_value_index = parser->context->local_count - 1;

        do {
            consume(parser, TOKEN_IDENTIFIER, "expect key name for the map pattern");

            RavString *key = object_string(
                &parser->vm->allocator,
                parser->previous.lexeme,
                parser->previous.length
            );

            // OP_MAP_GET sets the X register to true or false depending
            // on whether the map has the key or not
            uint8_t constant_index = make_constant(parser, Obj_Value(key));
            emit_bytes(parser, OP_GET_LOCAL, match_value_index);
            emit_bytes(parser, OP_MAP_PUSH_ELEMENT, constant_index);
            emit_bytes(parser, OP_PUSH_X, OP_NOT);
            pattern_fail_if_true(parser, context, subvalue);

            consume(parser, TOKEN_COLON, "expect ':' after the key name");
            pattern(parser, context, true);
        } while (consume_if(parser, TOKEN_COMMA));

        consume(parser, TOKEN_RIGHT_BRACE, "expect closing '}' after the map pattern");
        break;
    }
    default:
        error_current(parser, "expect beginning of a pattern");
        break;
    }

    Debug_Exit(parser);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpb $0x0, 0x49(%rdi)
jne 0x943c
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x20, 0x80(%rsi)
jne 0x891c
leaq 0x3138(%rip), %rsi      # 0xba39
movq %rbx, %rdi
movl $0x20, %edx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6518
movl %edx, %ebp
leaq 0x18(%rbx), %r15
movl 0x18(%rbx), %eax
cmpl $0x27, %eax
jle 0x8a63
addl $-0x28, %eax
cmpl $0x9, %eax
ja 0x910d
leaq 0x2df3(%rip), %rcx      # 0xb734
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x30(%rbx), %r13
movq 0x10(%r15), %rax
movq %rax, 0x40(%rbx)
movups (%r15), %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8963
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x31, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x15, %esi
callq 0x4d19
movzbl %bpl, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x944b
movq %rbx, %rdi
callq 0x95a8
movq 0x8(%rbx), %rax
movb 0x2018(%rax), %bpl
decb %bpl
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x6, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x2c, %esi
callq 0x4d19
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x88d3
cmpl $0x1a, 0x18(%rbx)
jne 0x937d
movq 0x10(%r15), %rax
movq %rax, 0x10(%r13)
movups (%r15), %xmm0
movups %xmm0, (%r13)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8a3b
jmp 0x938f
cmpl $0x4, %eax
je 0x9028
cmpl $0xb, %eax
je 0x9076
cmpl $0xe, %eax
jne 0x910d
movq 0x10(%r15), %rax
movq %rax, 0x40(%rbx)
movups (%r15), %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8a93
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
xorl %esi, %esi
jmp 0x90c2
movq 0x10(%r15), %rax
movq %rax, 0x40(%rbx)
movups (%r15), %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8ae1
movq %rbx, %rdi
callq 0x84ab
jmp 0x90c7
leaq 0x30(%rbx), %rax
movq %rax, 0x38(%rsp)
movq 0x10(%r15), %rax
movq %rax, 0x40(%rbx)
movups (%r15), %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8b2f
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x32, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x15, %esi
callq 0x4d19
movzbl %bpl, %edx
movq %rbx, %rdi
movq %r14, %rsi
movl %edx, 0x24(%rsp)
callq 0x944b
movq %rbx, %rdi
callq 0x95a8
movq 0x8(%rbx), %rax
movb 0x2018(%rax), %bpl
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x6, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x2e, %esi
callq 0x4d19
movq %rbx, %rdi
callq 0x95a8
movq %r14, 0x28(%rsp)
incl 0x84(%r14)
movq 0x8(%rbx), %rax
movb 0x2018(%rax), %r13b
movl 0x18(%rbx), %r14d
cmpl $0x2d, %r14d
jne 0x912d
movq 0x10(%r15), %rax
movq 0x38(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups (%r15), %xmm0
movups %xmm0, (%rcx)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8c1e
cmpl $0x2d, %r14d
jne 0x912d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x95fb
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x10, %esi
callq 0x4d19
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movl 0x24(%rsp), %edx
jmp 0x9103
cmpl $0x1, 0x28(%rbx)
jne 0x9357
movq 0x20(%rbx), %rax
cmpb $0x5f, (%rax)
jne 0x9357
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x7, %esi
callq 0x4d19
movq 0x10(%r15), %rax
movq %rax, 0x40(%rbx)
movups (%r15), %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0x8(%rsp), %r14
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8cc4
jmp 0x943c
leaq 0x30(%rbx), %r13
movq 0x10(%r15), %rax
movq %rax, 0x40(%rbx)
movups (%r15), %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8d05
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x33, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x15, %esi
callq 0x4d19
movzbl %bpl, %edx
movq %rbx, %rdi
movq %r14, %rsi
movl %edx, 0x28(%rsp)
callq 0x944b
movl 0x18(%rbx), %ebp
cmpl $0x2b, %ebp
jne 0x8db7
movq 0x10(%r15), %rax
movq %rax, 0x10(%r13)
movups (%r15), %xmm0
movups %xmm0, (%r13)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8d8b
cmpl $0x2b, %ebp
je 0x943c
movq %rbx, %rdi
callq 0x95a8
movq 0x8(%rbx), %rax
movb 0x2018(%rax), %al
decb %al
leaq 0x8(%rsp), %r12
movzbl %al, %eax
movl %eax, 0x24(%rsp)
cmpl $0x2f, (%r15)
jne 0x8e13
movq 0x10(%r15), %rax
movq %rax, 0x10(%r13)
movups (%r15), %xmm0
movups %xmm0, (%r13)
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8dee
jmp 0x8e25
movq %rbx, %rdi
movq %r15, %rsi
leaq 0x2c92(%rip), %rdx      # 0xbab2
callq 0x64ec
movq 0x10(%rbx), %rdi
movq 0x38(%rbx), %rsi
movl 0x40(%rbx), %edx
callq 0x52a0
movabsq $-0x4000000000000, %rcx # imm = 0xFFFC000000000000
orq %rcx, %rax
movq 0x8(%rbx), %rcx
movq 0x8(%rcx), %rdi
addq $0x20, %rdi
movq %rax, %rsi
callq 0x4db9
cmpl $0x100, %eax            # imm = 0x100
jl 0x8e87
movq %rbx, %rdi
leaq 0x2a44(%rip), %rsi      # 0xb8ab
movl $0x100, %edx            # imm = 0x100
callq 0x6518
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rax
movl $0x0, 0x848(%rax)
xorl %ebp, %ebp
jmp 0x8e89
movl %eax, %ebp
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x1a, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl 0x24(%rsp), %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x30, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movzbl %bpl, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x4, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x15, %esi
callq 0x4d19
movq %rbx, %rdi
movq %r14, %rsi
movl 0x28(%rsp), %edx
callq 0x944b
cmpl $0x27, 0x18(%rbx)
jne 0x8f68
movq 0x10(%r15), %rax
movq %rax, 0x10(%r13)
movups (%r15), %xmm0
movups %xmm0, (%r13)
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8f43
jmp 0x8f7a
movq %rbx, %rdi
movq %r15, %rsi
leaq 0x2b61(%rip), %rdx      # 0xbad6
callq 0x64ec
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x88d3
movl 0x18(%rbx), %ebp
cmpl $0x25, %ebp
jne 0x8fcf
movq 0x10(%r15), %rax
movq %rax, 0x10(%r13)
movups (%r15), %xmm0
movups %xmm0, (%r13)
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8fa3
cmpl $0x25, %ebp
je 0x8dd7
leaq 0x2b1e(%rip), %rdx      # 0xbaf4
movq %rbx, %rdi
movl $0x2b, %esi
jmp 0x934d
movq 0x10(%r15), %rax
movq %rax, 0x40(%rbx)
movups (%r15), %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x8ff8
movq %rbx, %rdi
callq 0x853c
jmp 0x90c7
movq 0x10(%r15), %rax
movq %rax, 0x40(%rbx)
movups (%r15), %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x903d
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x1, %esi
jmp 0x90c2
movq 0x10(%r15), %rax
movq %rax, 0x40(%rbx)
movups (%r15), %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0x8(%rsp), %r12
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x908b
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x2, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0xf, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x15, %esi
callq 0x4d19
movzbl %bpl, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x944b
jmp 0x943c
leaq 0x2a09(%rip), %rdx      # 0xbb1d
movq %rbx, %rdi
movq %r15, %rsi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x64ec
decb %bpl
decb %r13b
xorl %r14d, %r14d
movzbl %r13b, %eax
movl %eax, 0x30(%rsp)
movzbl %bpl, %eax
movl %eax, 0x34(%rsp)
leaq 0x8(%rsp), %rbp
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x1a, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl 0x30(%rsp), %esi
callq 0x4d19
leal 0x1(%r14), %r13d
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
movq %xmm0, %rsi
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movq %rsi, 0x40(%rsp)
callq 0x4db9
cmpl $0x100, %eax            # imm = 0x100
jl 0x91d5
movq %rbx, %rdi
leaq 0x26f7(%rip), %rsi      # 0xb8ab
movl $0x100, %edx            # imm = 0x100
callq 0x6518
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rax
movl $0x0, 0x848(%rax)
xorl %r12d, %r12d
jmp 0x91d8
movl %eax, %r12d
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x3, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movzbl %r12b, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x11, %esi
callq 0x4d19
movq %rbx, %rdi
movq 0x28(%rsp), %r12
movq %r12, %rsi
movl 0x24(%rsp), %edx
callq 0x944b
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x1a, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl 0x34(%rsp), %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x2f, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movzbl %r14b, %esi
callq 0x4d19
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x88d3
movl 0x18(%rbx), %r12d
cmpl $0x25, %r12d
jne 0x92f6
movq 0x10(%r15), %rax
movq 0x38(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups (%r15), %xmm0
movups %xmm0, (%rcx)
movq (%rbx), %rsi
movq %rbp, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x92c6
movl %r13d, %r14d
cmpl $0x25, %r12d
je 0x914b
movq %rbx, %rdi
movl $0x1a, %esi
movl 0x30(%rsp), %edx
callq 0x6555
movq %rbx, %rdi
movq 0x40(%rsp), %rsi
callq 0x95fb
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x10, %esi
callq 0x4d19
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movl 0x24(%rsp), %edx
callq 0x944b
leaq 0x2744(%rip), %rdx      # 0xba89
movq %rbx, %rdi
movl $0x2d, %esi
callq 0x6484
jmp 0x943c
leaq 0x1cf9(%rip), %rsi      # 0xb057
movq %rbx, %rdi
callq 0x629d
movzbl %al, %esi
movq %rbx, %rdi
callq 0x6428
incl 0x84(%r14)
jmp 0x943c
leaq 0x26c6(%rip), %rdx      # 0xba4a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64ec
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x1a, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movzbl %bpl, %esi
callq 0x4d19
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x20, %rdi
movl 0x44(%rbx), %edx
movl $0x2d, %esi
callq 0x4d19
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x88d3
cmpl $0x29, 0x18(%rbx)
jne 0x942a
movq 0x10(%r15), %rax
movq %rax, 0x10(%r13)
movups (%r15), %xmm0
movups %xmm0, (%r13)
leaq 0x8(%rsp), %r14
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x97fb
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%r15)
cmpl $0x35, 0x18(%rbx)
je 0x9405
jmp 0x943c
leaq 0x2635(%rip), %rdx      # 0xba66
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64ec
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq