// File: /workspace/github_c_makefile_star2_O1/masyagin1998[P]GCI/src/bytecode-generator/bytecode-generator.c
// Function: assignment_expr_ast_bytecode_generate
static enum BYTECODE_GENERATOR_CODES assignment_expr_ast_bytecode_generate(bytecode_generator_type_t bc_gen, const struct ASSIGNMENT_EXPR_AST*ast)
{
    enum BYTECODE_GENERATOR_CODES r;
    
    switch (ast->type) {
    case AST_ASSIGNMENT_EXPR_TYPE_OBJECT_LITERAL:
        r = object_literal_ast_bytecode_generate(bc_gen, ast->object_literal);
        break;
    case AST_ASSIGNMENT_EXPR_TYPE_ARRAY_LITERAL:
        r = array_literal_ast_bytecode_generate(bc_gen, ast->array_literal);
        break;
    case AST_ASSIGNMENT_EXPR_TYPE_LOGICAL_OR_EXPR:
        r = logical_or_expr_ast_bytecode_generate(bc_gen, ast->logical_or_expr);
        break;
    default:
        fprintf(stderr, "Invalid ASSIGNMENT_EXPR_AST type: %d\n", ast->type);
        exit(EXIT_FAILURE);
        break;
    }

    return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movl 0x8(%rsi), %edi
cmpl $0x2, %edi
je 0xbf69
cmpl $0x1, %edi
je 0xbf28
testl %edi, %edi
jne 0xc18e
movq (%rsi), %r15
cmpq $0x0, 0x8(%r15)
je 0xbee4
xorl %r12d, %r12d
movq (%r15), %rax
movq (%rax,%r12,8), %r13
movq 0x8(%r13), %rsi
movq %rbx, %rdi
callq 0xbd1e
testl %eax, %eax
jne 0xbecc
movq 0x8(%rbx), %r14
movq 0x10(%r14), %rsi
cmpq %rsi, 0x8(%r14)
jne 0xbdd1
testq %rsi, %rsi
je 0xbdb3
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r14)
movq (%r14), %rdi
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %rdi
movq %rax, (%rdi)
testq %rax, %rax
jne 0xbdd1
jmp 0xc184
movq $0x1, 0x10(%r14)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r14)
testq %rax, %rax
je 0xc198
movq 0x8(%rbx), %r14
movq (%r14), %rax
movq 0x8(%r14), %rcx
movq $0x6, (%rax,%rcx,8)
incq 0x8(%r14)
movq (%r13), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x50(%rsp)
movl $0x20, %edx
leaq 0x30(%rsp), %rdi
callq 0x1040
movl $0x2, 0x50(%rsp)
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movaps %xmm0, 0x60(%rsp)
movaps %xmm1, 0x70(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x10(%r14), %rsi
cmpq %rsi, 0x8(%r14)
jne 0xbe8c
testq %rsi, %rsi
je 0xbe6e
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r14)
movq (%r14), %rdi
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %rdi
movq %rax, (%rdi)
testq %rax, %rax
jne 0xbe8c
jmp 0xc189
movq $0x1, 0x10(%r14)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r14)
testq %rax, %rax
je 0xc193
movq 0x8(%rbx), %rdi
movq 0x80(%rsp), %rax
movq %rax, 0x20(%rsp)
movaps 0x60(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0xc2cf
cltq
movq 0x8(%rbx), %rcx
movq (%rcx), %rdx
movq 0x8(%rcx), %rsi
movq %rax, (%rdx,%rsi,8)
incq 0x8(%rcx)
xorl %eax, %eax
testl %eax, %eax
cmovnel %eax, %ebp
jne 0xc13d
incq %r12
cmpq 0x8(%r15), %r12
jb 0xbd60
movq 0x8(%rbx), %r14
movq 0x10(%r14), %rsi
cmpq %rsi, 0x8(%r14)
jne 0xc091
testq %rsi, %rsi
je 0xc073
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r14)
movq (%r14), %rdi
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %rdi
movq %rax, (%rdi)
testq %rax, %rax
jne 0xc091
callq 0x2cc0
movq (%rsi), %r14
movq (%r14), %rax
testq %rax, %rax
je 0xbf85
movl 0x8(%rax), %r15d
decq %r15
testl %r15d, %r15d
js 0xbf85
movq (%r14), %rax
movq (%rax), %rax
movl %r15d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq (%rax,%rcx,8), %rsi
movq %rbx, %rdi
callq 0xbd1e
decq %r15
testl %eax, %eax
cmovnel %eax, %ebp
je 0xbf3a
jmp 0xc13d
movq (%rsi), %rsi
movq %rbx, %rdi
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc1f9
movq 0x8(%rbx), %r15
movq 0x10(%r15), %rsi
cmpq %rsi, 0x8(%r15)
jne 0xbfdb
testq %rsi, %rsi
je 0xbfbd
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r15)
movq (%r15), %rdi
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %rdi
movq %rax, (%rdi)
testq %rax, %rax
jne 0xbfdb
callq 0x2ab3
movq $0x1, 0x10(%r15)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r15)
testq %rax, %rax
je 0xc19d
movq 0x8(%rbx), %r15
movq (%r15), %rdi
movq 0x8(%r15), %rax
movq $0x7, (%rdi,%rax,8)
movq 0x8(%r15), %rax
movq 0x10(%r15), %rsi
incq %rax
movq %rax, 0x8(%r15)
cmpq $0x0, (%r14)
je 0xc03b
cmpq %rsi, %rax
jne 0xc121
testq %rsi, %rsi
je 0xc103
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r15)
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %rdi
movq %rax, (%rdi)
testq %rax, %rax
jne 0xc121
callq 0x2aeb
cmpq %rsi, %rax
jne 0xc16b
testq %rsi, %rsi
je 0xc151
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r15)
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %rdi
movq %rax, (%rdi)
testq %rax, %rax
jne 0xc16b
callq 0x2b54
movq $0x1, 0x10(%r14)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r14)
testq %rax, %rax
je 0xc1a2
movq 0x8(%rbx), %r14
movq (%r14), %rdi
movq 0x8(%r14), %rax
movq $0x5, (%rdi,%rax,8)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rsi
incq %rax
movq %rax, 0x8(%r14)
cmpq %rsi, %rax
jne 0xc0fd
testq %rsi, %rsi
je 0xc0df
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r14)
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %rdi
movq %rax, (%rdi)
testq %rax, %rax
jne 0xc0fd
callq 0x2cf8
movq $0x1, 0x10(%r14)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r14)
testq %rax, %rax
je 0xc1a7
movq 0x8(%r15), %rax
jmp 0xc128
movq $0x1, 0x10(%r15)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r15)
testq %rax, %rax
je 0xc1ac
movq (%r14), %rax
movq 0x8(%rax), %rax
movq 0x8(%rbx), %rcx
movq (%rcx), %rdx
movq 0x8(%rcx), %rsi
movq %rax, (%rdx,%rsi,8)
incq 0x8(%rcx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x1, 0x10(%r15)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r15)
testq %rax, %rax
je 0xc1b1
movq 0x8(%rbx), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rdx
movq $0x0, (%rcx,%rdx,8)
incq 0x8(%rax)
jmp 0xc13b
callq 0x2bee
callq 0x2c26
callq 0x2d92
callq 0x2c5e
callq 0x2c8f
callq 0x2bbd
callq 0x2d61
callq 0x2d30
callq 0x2b23
callq 0x2b8c