// File: /workspace/github_c_makefile_star2_O3/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 0xbb58
cmpl $0x1, %edi
je 0xbb1a
testl %edi, %edi
jne 0xbdda
movq (%rsi), %r12
cmpq $0x0, 0x8(%r12)
je 0xbbb1
xorl %r13d, %r13d
leaq 0x60(%rsp), %r14
movq (%r12), %rax
movq (%rax,%r13,8), %rbp
movq 0x8(%rbp), %rsi
movq %rbx, %rdi
callq 0xb959
testl %eax, %eax
jne 0xbdae
movq 0x8(%rbx), %r15
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
jne 0xb9fa
testq %rsi, %rsi
je 0xb9ff
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r15)
movq (%r15), %rdi
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %r15
movq %rax, (%r15)
testq %rax, %rax
je 0xbdc0
movq 0x8(%r15), %rsi
jmp 0xba1f
movq (%r15), %rax
jmp 0xba1f
movq $0x1, 0x10(%r15)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r15)
testq %rax, %rax
je 0xbdd5
xorl %esi, %esi
movq $0x6, (%rax,%rsi,8)
incq 0x8(%r15)
movq (%rbp), %rsi
movq $0x0, 0x80(%rsp)
movl $0x20, %edx
movq %r14, %rdi
callq 0x1040
movl $0x2, 0x80(%rsp)
movups 0x60(%rsp), %xmm0
movups 0x70(%rsp), %xmm1
movaps %xmm0, 0x30(%rsp)
movaps %xmm1, 0x40(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
jne 0xbac6
testq %rsi, %rsi
je 0xbaa8
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r15)
movq (%r15), %rdi
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %r15
movq %rax, (%r15)
testq %rax, %rax
jne 0xbac6
jmp 0xbdc8
movq $0x1, 0x10(%r15)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r15)
testq %rax, %rax
je 0xbdd0
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
callq 0xbf36
cltq
movq 0x8(%rbx), %r15
movq (%r15), %rcx
movq 0x8(%r15), %rdx
movq %rax, (%rcx,%rdx,8)
movq 0x8(%r15), %rsi
incq %rsi
movq %rsi, 0x8(%r15)
incq %r13
cmpq 0x8(%r12), %r13
jb 0xb9a1
jmp 0xbbb9
movq (%rsi), %r15
movq (%r15), %rax
testq %rax, %rax
je 0xbb74
movl 0x8(%rax), %r14d
decq %r14
testl %r14d, %r14d
js 0xbb74
movq (%r15), %rax
movq (%rax), %rax
movl %r14d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq (%rax,%rcx,8), %rsi
movq %rbx, %rdi
callq 0xb959
decq %r14
testl %eax, %eax
je 0xbb2c
jmp 0xbdae
movq (%rsi), %rsi
movq %rbx, %rdi
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbe63
movq 0x8(%rbx), %r14
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
jne 0xbbf5
testq %rsi, %rsi
je 0xbc02
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r14)
movq (%r14), %rdi
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %r14
movq %rax, (%r14)
testq %rax, %rax
je 0xbddf
movq 0x8(%r14), %rsi
jmp 0xbc22
movq 0x8(%rbx), %r15
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
jne 0xbbfa
testq %rsi, %rsi
je 0xbcc2
leaq (%rsi,%rsi), %rax
movq %rax, 0x10(%r15)
movq (%r15), %rdi
shlq $0x4, %rsi
callq 0x1160
movq 0x8(%rbx), %r15
movq %rax, (%r15)
testq %rax, %rax
je 0xbde7
movq 0x8(%r15), %rsi
jmp 0xbce2
movq (%r14), %rax
jmp 0xbc22
movq (%r15), %rax
jmp 0xbce2
movq $0x1, 0x10(%r14)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r14)
testq %rax, %rax
je 0xbdff
xorl %esi, %esi
movq $0x7, (%rax,%rsi,8)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rcx
incq %rsi
movq %rsi, 0x8(%r14)
movq (%r15), %r12
testq %r12, %r12
je 0xbc83
cmpq %rcx, %rsi
jne 0xbd79
testq %rsi, %rsi
je 0xbd59
leaq (%rsi,%rsi), %rcx
movq %rcx, 0x10(%r14)
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x1160
movq 0x8(%rbx), %r14
movq %rax, (%r14)
testq %rax, %rax
je 0xbdf7
movq (%r15), %r12
movq 0x8(%r14), %rsi
jmp 0xbd79
cmpq %rcx, %rsi
jne 0xbda0
testq %rsi, %rsi
je 0xbd84
leaq (%rsi,%rsi), %rcx
movq %rcx, 0x10(%r14)
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x1160
movq 0x8(%rbx), %r14
movq %rax, (%r14)
testq %rax, %rax
je 0xbe0e
movq 0x8(%r14), %rsi
jmp 0xbda0
movq $0x1, 0x10(%r15)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r15)
testq %rax, %rax
je 0xbe04
xorl %esi, %esi
movq $0x5, (%rax,%rsi,8)
movq 0x8(%r15), %rsi
incq %rsi
movq %rsi, 0x8(%r15)
cmpq 0x10(%r15), %rsi
jne 0xbd4a
testq %rsi, %rsi
je 0xbd2a
leaq (%rsi,%rsi), %rcx
movq %rcx, 0x10(%r15)
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x1160
movq 0x8(%rbx), %r15
movq %rax, (%r15)
testq %rax, %rax
je 0xbdef
movq 0x8(%r15), %rsi
jmp 0xbd4a
movq $0x1, 0x10(%r15)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r15)
testq %rax, %rax
je 0xbe09
xorl %esi, %esi
movq 0x8(%r12), %rcx
movq %rcx, (%rax,%rsi,8)
incq 0x8(%r15)
jmp 0xbdac
movq $0x1, 0x10(%r14)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r14)
testq %rax, %rax
je 0xbe16
xorl %esi, %esi
movq 0x8(%r12), %rcx
movq %rcx, (%rax,%rsi,8)
jmp 0xbda8
movq $0x1, 0x10(%r14)
movl $0x8, %edi
callq 0x1130
movq %rax, (%r14)
testq %rax, %rax
je 0xbe1b
xorl %esi, %esi
movq $0x0, (%rax,%rsi,8)
incq 0x8(%r14)
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x2c0c
movq %r15, %rdi
callq 0x2c44
callq 0x2c7c
callq 0x2cad
callq 0x2db0
movq %r14, %rdi
callq 0x2ad1
movq %r15, %rdi
callq 0x2cde
movq %r15, %rdi
callq 0x2d16
movq %r14, %rdi
callq 0x2b09
callq 0x2bdb
callq 0x2d7f
callq 0x2d4e
movq %r14, %rdi
callq 0x2b72
callq 0x2b41
callq 0x2baa