// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/frontend/semantics.c
// Function: expr_unary
static void _expr_unary(
	ParserContext *ctx,
	ParserASTNode *node
) {
	assert(ctx);
	assert(node);

	uint32_t node_type = node->type;

	switch (node_type) {
		case FE_NODE_EXPR_NOT:
		case FE_NODE_EXPR_BNOT: {
			assert(node->nchilds == 1);

			ParserASTNode *node_oprd = node->childs[0];
			_expr_unary_postfix(ctx, node_oprd);

			if (!_is_integer_type_node(ctx, node_oprd)) {
				switch (node_type) {
					case FE_NODE_EXPR_NOT: {
						_SYNERR_NODE(ctx, node, "unary operator '!' need integer operand.");
						break;
					}
					case FE_NODE_EXPR_BNOT: {
						_SYNERR_NODE(ctx, node, "unary operator '~' need integer operand.");
						break;
					}
					default: {
						assert(0);
					}
				}
			}

			FE_EXPR_AST_NODE_COPY(node, node_oprd);

			if (FE_EXPR_AST_NODE_GET_CONSTANT(node_oprd)) {
				_calc_unary_constexpr(ctx, node_type, node, node_oprd);
			}
			break;
		}
		case FE_NODE_EXPR_POSITIVE:
		case FE_NODE_EXPR_NEGATIVE: {
			assert(node->nchilds == 1);

			ParserASTNode *node_oprd = node->childs[0];
			_expr_unary_postfix(ctx, node_oprd);

			if (!_is_number_type_node(ctx, node_oprd)) {
				switch (node_type) {
					case FE_NODE_EXPR_POSITIVE: {
						_SYNERR_NODE(ctx, node, "unary operator '+' need number operand.");
						break;
					}
					case FE_NODE_EXPR_NEGATIVE: {
						_SYNERR_NODE(ctx, node, "unary operator '-' need number operand.");
						break;
					}
					default: {
						assert(0);
					}
				}
			}

			FE_EXPR_AST_NODE_COPY(node, node_oprd);

			if (FE_EXPR_AST_NODE_GET_CONSTANT(node_oprd)) {
				FE_EXPR_AST_NODE_COPY_CONSTANT(node, node_oprd);
				_calc_unary_constexpr(ctx, node_type, node, node_oprd);
			}
			break;
		}
		case FE_NODE_EXPR_INC_LEFT:
		case FE_NODE_EXPR_DEC_LEFT: {
			assert(node->nchilds == 1);

			ParserASTNode *node_oprd = node->childs[0];
			_expr_unary_postfix(ctx, node_oprd);

			if (!_expr_is_lvalue(ctx, node_oprd)) {
				switch (node_type) {
					case FE_NODE_EXPR_INC_LEFT: {
						_SYNERR_NODE(ctx, node, "unary operator prefix '++' need number left value operand.");
						break;
					}
					case FE_NODE_EXPR_DEC_LEFT: {
						_SYNERR_NODE(ctx, node, "unary operator prefix '--' need number left value operand.");
						break;
					}
					default: {
						assert(0);
					}
				}
			}

			if (!_is_number_type_node(ctx, node_oprd)) {
				switch (node_type) {
					case FE_NODE_EXPR_INC_LEFT: {
						_SYNERR_NODE(ctx, node, "unary operator prefix '++' need number left value operand.");
						break;
					}
					case FE_NODE_EXPR_DEC_LEFT: {
						_SYNERR_NODE(ctx, node, "unary operator prefix '--' need number left value operand.");
						break;
					}
					default: {
						assert(0);
					}
				}
			}

			FE_EXPR_AST_NODE_COPY(node, node_oprd);

			FE_EXPR_AST_NODE_SET_CONSTANT(node, false);
			break;
		}
		case FE_NODE_EXPR_SIZEOF: {
			assert(node->nchilds == 1);

			ParserASTNode *node_oprd = node->childs[0];
			ParserASTNode *type_node = NULL;
			switch (_get_node_catagory(node_oprd->type)) {
				case FE_SEM_NODE_CATEGORY_TYPE: {
					_type(ctx, node_oprd, NULL);
					type_node = node_oprd;
					break;
				}
				case FE_SEM_NODE_CATAGORY_EXPR: {
					_expr(ctx, node_oprd);
					type_node = FE_EXPR_AST_NODE_GET_TYPE_NODE(node_oprd);
					break;
				}
				default: {
					assert(0);
					break;
				}
			}

			if (ctx->arch == FE_ARCH_32) {
				FE_EXPR_AST_NODE_SET_TYPE(node, FE_TYPE_UINT32);
				FE_EXPR_AST_NODE_SET_TYPE_NODE(node, _NODE_TYPE_UINT32);

				FE_EXPR_AST_NODE_SET_CONSTEXPR_RESULT_UINT32_VAL(
					node, (uint32_t) _calc_type_size(ctx, node, type_node)
				);
			} else if (ctx->arch == FE_ARCH_64) {
				FE_EXPR_AST_NODE_SET_TYPE(node, FE_TYPE_UINT64);
				FE_EXPR_AST_NODE_SET_TYPE_NODE(node, _NODE_TYPE_UINT64);
			
				FE_EXPR_AST_NODE_SET_CONSTEXPR_RESULT_UINT64_VAL(
					node, (uint64_t) _calc_type_size(ctx, node, type_node)
				);
			} else {
				assert(0);
			}

			FE_EXPR_AST_NODE_SET_CONSTANT(node, true);

			break;
		}
		case FE_NODE_EXPR_ALIGNOF: {
			assert(node->nchilds == 1);

			ParserASTNode *node_oprd = node->childs[0];
			ParserASTNode *type_node = NULL;
			switch (_get_node_catagory(node_oprd->type)) {
				case FE_SEM_NODE_CATEGORY_TYPE: {
					_type(ctx, node_oprd, NULL);
					type_node = node_oprd;
					break;
				}
				case FE_SEM_NODE_CATAGORY_EXPR: {
					_expr(ctx, node_oprd);
					type_node = FE_EXPR_AST_NODE_GET_TYPE_NODE(node_oprd);
					break;
				}
				default: {
					assert(0);
					break;
				}
			}

			size_t align = 0;
			if (node_oprd->type == FE_NODE_EXPR_ATOM
					&& node_oprd->childs[0]->type == FE_NODE_IDENTIFIER) {
				ParserSymbol *symbol = parser_get_symbol_from_node(
					ctx, node, FE_SYM_VAR, node_oprd->childs[0]->token
				);
				if (symbol != NULL) {
					align = FE_VAR_SYMBOL_GET_ALIGN(symbol);
				} else {
					align = _calc_type_align(ctx, node, type_node);
				}
			} else {
				align = _calc_type_align(ctx, node, type_node);
			}

			if (ctx->arch == FE_ARCH_32) {
				FE_EXPR_AST_NODE_SET_TYPE(node, FE_TYPE_UINT32);
				FE_EXPR_AST_NODE_SET_TYPE_NODE(node, _NODE_TYPE_UINT32);

				FE_EXPR_AST_NODE_SET_CONSTEXPR_RESULT_UINT32_VAL(
					node, (uint32_t) align
				);
			} else if (ctx->arch == FE_ARCH_64) {
				FE_EXPR_AST_NODE_SET_TYPE(node, FE_TYPE_UINT64);
				FE_EXPR_AST_NODE_SET_TYPE_NODE(node, _NODE_TYPE_UINT64);
			
				FE_EXPR_AST_NODE_SET_CONSTEXPR_RESULT_UINT64_VAL(
					node, (uint64_t) align
				);
			} else {
				assert(0);
			}

			FE_EXPR_AST_NODE_SET_CONSTANT(node, true);
			break;
		}
		case FE_NODE_EXPR_REF: {
			assert(node->nchilds == 1);

			ParserASTNode *node_oprd = node->childs[0];
			_expr_unary_postfix(ctx, node_oprd);

			if (!_expr_is_lvalue(ctx, node_oprd)) {
				_SYNERR_NODE(ctx, node, "unary operator '&' need left value operand.");
			}

			ParserASTNode *node_oprd_type = FE_EXPR_AST_NODE_GET_TYPE_NODE(node_oprd);

			ParserASTNode *node_pointer_type = _NEW_NODE(ctx, FE_NODE_TYPE_POINTER, NULL);
			parser_add_child(ctx, node_pointer_type, node_oprd_type);

			FE_EXPR_AST_NODE_SET_TYPE(node, FE_TYPE_POINTER);
			FE_EXPR_AST_NODE_SET_TYPE_NODE(node, node_pointer_type);

			FE_EXPR_AST_NODE_SET_CONSTANT(node, false);
			break;
		}
		case FE_NODE_EXPR_DEREF: {
			assert(node->nchilds == 1);

			ParserASTNode *node_oprd = node->childs[0];
			_expr_unary_postfix(ctx, node_oprd);

			ParserASTNode *node_oprd_type = FE_EXPR_AST_NODE_GET_TYPE_NODE(node_oprd);
			if (node_oprd_type->type != FE_NODE_TYPE_POINTER) {
				_SYNERR_NODE(ctx, node, "unary operator '*' need pointer type operand.");
			}

			ParserASTNode *node_oprd_child_type = node_oprd_type->childs[0];
			if (node_oprd_child_type->type == FE_NODE_TYPE_VOID) {
				_SYNERR_NODE(ctx, node, "unary operator '*' operand type cannot be void pointer type.");
			}

			FE_EXPR_AST_NODE_SET_TYPE(node, _get_type_by_type_node(ctx, node_oprd_child_type));
			FE_EXPR_AST_NODE_SET_TYPE_NODE(node, node_oprd_child_type);

			FE_EXPR_AST_NODE_SET_CONSTANT(node, false);
			break;
		}
		case FE_NODE_EXPR_CAST: {
			assert(node->nchilds == 2);

			ParserASTNode *node_type = node->childs[0];
			ParserASTNode *node_expr = node->childs[1];

			_type(ctx, node_type, NULL);
			_expr(ctx, node_expr);

			FE_EXPR_AST_NODE_COPY(node, node_expr);

			uint8_t node_type_type = _get_type_by_type_node(ctx, node_type);
			if (node_type_type == FE_TYPE_STRUCT
					|| node_type_type == FE_TYPE_ARRAY
					|| node_type_type == FE_TYPE_FUNC) {
				_SYNERR_NODE(
					ctx, node, "operator cast cannot cast operand to struct type or array type or function type."
				);
			}

			ParserASTNode *node_expr_type = FE_EXPR_AST_NODE_GET_TYPE_NODE(node_expr);
			uint8_t node_expr_type_type = _get_type_by_type_node(ctx, node_expr_type);
			if (node_expr_type_type == FE_TYPE_STRUCT
					|| node_expr_type_type == FE_TYPE_ARRAY
					|| node_expr_type_type == FE_TYPE_FUNC) {
				_SYNERR_NODE(
					ctx, node, "operator cast cannot cast struct type or array type or function type operand."
				);
			}

			FE_EXPR_AST_NODE_SET_TYPE(node, _get_type_by_type_node(ctx, node_type));
			FE_EXPR_AST_NODE_SET_TYPE_NODE(node, node_type);

			if (FE_EXPR_AST_NODE_GET_CONSTANT(node_expr)) {
				FE_EXPR_AST_NODE_SET_CONSTANT(node, true);
				_calc_cast_constexpr(ctx, node_type_type, node, node_expr);
			}
			break;
		}
		case FE_NODE_EXPR_VA_ARG: {
			assert(node->nchilds == 2);

			ParserASTNode *node_expr = node->childs[0];
			ParserASTNode *node_type = node->childs[1];

			_expr(ctx, node_expr);

			uint8_t type = FE_TYPE_UNKNOWN;
			_type(ctx, node_type, &type);

			if (FE_EXPR_AST_NODE_GET_TYPE(node_expr) != FE_TYPE_VA_LIST) {
				_SYNERR_NODE(
					ctx, node, "operator __va_arg first parameter type must be '__va_list'."
				);
			}

			if (!_is_primitive_type(type)
					&& !_is_pointer_type(type)) {
				_SYNERR_NODE(
					ctx, node, "operator __va_arg first parameter must be primitive type or pointer type."
				);
			}

			FE_EXPR_AST_NODE_SET_TYPE(node, type);
			FE_EXPR_AST_NODE_SET_TYPE_NODE(node, node_type);

			FE_EXPR_AST_NODE_SET_CONSTANT(node, false);

			break;
		}
		default: {
			_expr_unary_postfix(ctx, node);
			break;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
testq %rsi, %rsi
je 0x2dc48
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %r15d
leal -0xec0(%r15), %eax
cmpl $0xe, %eax
ja 0x2d952
leaq 0x19d31(%rip), %rcx     # 0x47198
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x1, 0x44(%rbx)
jne 0x2dc86
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x2de19
movq %r12, %rdi
callq 0x2b3d4
testb %al, %al
jne 0x2da09
cmpl $0xec3, %r15d           # imm = 0xEC3
je 0x2d9d8
cmpl $0xec0, %r15d           # imm = 0xEC0
jne 0x2dd7e
movups 0x1aeeb(%rip), %xmm0    # 0x483a8
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x19(%rdx)
movups 0x1aed0(%rip), %xmm0    # 0x4839f
movaps %xmm0, 0x10(%rdx)
movups 0x1aeb5(%rip), %xmm0    # 0x4838f
jmp 0x2d9fc
cmpl $0x1, 0x44(%rbx)
jne 0x2dc67
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x2de19
movq %r12, %rdi
callq 0x2e394
testb %al, %al
jne 0x2d9a2
cmpl $0xec1, %r15d           # imm = 0xEC1
jne 0x2d96e
movups 0x1aed2(%rip), %xmm0    # 0x483f1
leaq -0x430(%rbp), %rdx
movaps %xmm0, 0x10(%rdx)
movups 0x1aeb0(%rip), %xmm0    # 0x483e1
jmp 0x2d987
cmpl $0x1, 0x44(%rbx)
jne 0x2dca5
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x2de19
movq %r12, %rdi
callq 0x2a37d
testl %eax, %eax
jne 0x2db8c
cmpl $0xec4, %r15d           # imm = 0xEC4
jne 0x2db50
movups 0x1aee6(%rip), %xmm0    # 0x4845c
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1aec9(%rip), %xmm0    # 0x48451
movaps %xmm0, 0x20(%rdx)
movups 0x1aeae(%rip), %xmm0    # 0x48441
movaps %xmm0, 0x10(%rdx)
movups 0x1ae93(%rip), %xmm0    # 0x48431
jmp 0x2db7f
cmpl $0x1, 0x44(%rbx)
jne 0x2dcc4
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2de19
movq 0x68(%r15), %r15
cmpl $0x440, (%r15)          # imm = 0x440
je 0x2d5fd
movups 0x1af1e(%rip), %xmm0    # 0x484f1
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x1e(%rdx)
movups 0x1aefe(%rip), %xmm0    # 0x484e3
movaps %xmm0, 0x10(%rdx)
movups 0x1aee3(%rip), %xmm0    # 0x484d3
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq 0x48(%r15), %rax
movq (%rax), %r15
cmpl $0x4ff, (%r15)          # imm = 0x4FF
jne 0x2d649
movups 0x1af1a(%rip), %xmm0    # 0x4852e
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2d(%rdx)
movups 0x1aefb(%rip), %xmm0    # 0x48521
movaps %xmm0, 0x20(%rdx)
movups 0x1aee0(%rip), %xmm0    # 0x48511
movaps %xmm0, 0x10(%rdx)
movups 0x1aec5(%rip), %xmm0    # 0x48501
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r14, %rdi
movq %r15, %rsi
callq 0x285a5
movb %al, 0x60(%rbx)
jmp 0x2d713
cmpl $0x2, 0x44(%rbx)
jne 0x2dce3
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r15
movq %r14, %rdi
movq %r12, %rsi
callq 0x294d8
leaq -0x29(%rbp), %rdx
movb $0x0, (%rdx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x290cb
cmpb $0xc, 0x60(%r12)
je 0x2d6d2
movups 0x1af6c(%rip), %xmm0    # 0x48609
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2c(%rdx)
movups 0x1af4e(%rip), %xmm0    # 0x485fd
movaps %xmm0, 0x20(%rdx)
movups 0x1af33(%rip), %xmm0    # 0x485ed
movaps %xmm0, 0x10(%rdx)
movups 0x1af18(%rip), %xmm0    # 0x485dd
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movb -0x29(%rbp), %al
leal -0x1(%rax), %ecx
cmpb $0xb, %cl
setb %cl
cmpb $0x10, %al
sete %dl
orb %cl, %dl
jne 0x2d710
leaq 0x1af2b(%rip), %rsi     # 0x48619
leaq -0x430(%rbp), %r12
pushq $0x4a
popq %rdx
movq %r12, %rdi
callq 0x3100
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq *0x58(%r14)
movb -0x29(%rbp), %al
movb %al, 0x60(%rbx)
movq %r15, 0x68(%rbx)
jmp 0x2dc32
cmpl $0x1, 0x44(%rbx)
jne 0x2dd02
movq 0x48(%rbx), %rax
movq (%rax), %r15
movzbl 0x1(%r15), %eax
shll $0x8, %eax
xorl %ecx, %ecx
cmpl $0xe00, %eax            # imm = 0xE00
sete %cl
addl %ecx, %ecx
cmpl $0x400, %eax            # imm = 0x400
pushq $0x1
popq %rax
cmovnel %ecx, %eax
cmpl $0x2, %eax
je 0x2da4c
cmpl $0x1, %eax
jne 0x2dd9d
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x290cb
jmp 0x2da5b
cmpl $0x1, 0x44(%rbx)
jne 0x2dd21
movq 0x48(%rbx), %rax
movq (%rax), %r15
movzbl 0x1(%r15), %eax
shll $0x8, %eax
xorl %ecx, %ecx
cmpl $0xe00, %eax            # imm = 0xE00
sete %cl
addl %ecx, %ecx
cmpl $0x400, %eax            # imm = 0x400
pushq $0x1
popq %rax
cmovnel %ecx, %eax
cmpl $0x2, %eax
je 0x2da90
cmpl $0x1, %eax
jne 0x2ddbc
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x290cb
movq %r15, %r12
jmp 0x2da9f
cmpl $0x1, 0x44(%rbx)
jne 0x2dd40
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2de19
movq %r15, %rdi
callq 0x2a37d
testl %eax, %eax
jne 0x2d820
movups 0x1accd(%rip), %xmm0    # 0x484c3
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x1c(%rdx)
movups 0x1acaf(%rip), %xmm0    # 0x484b7
movaps %xmm0, 0x10(%rdx)
movups 0x1ac94(%rip), %xmm0    # 0x484a7
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq 0x68(%r15), %r15
leaq 0x11703(%rip), %rdx     # 0x3ef2e
movq %r14, %rdi
movl $0x440, %esi            # imm = 0x440
callq 0x2e924
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x63c4
movb $0x10, 0x60(%rbx)
movq %r12, 0x68(%rbx)
jmp 0x2dc32
cmpl $0x2, 0x44(%rbx)
jne 0x2dd5f
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r15
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x290cb
movq %r14, %rdi
movq %r15, %rsi
callq 0x294d8
movups 0x60(%r15), %xmm0
movups 0x70(%r15), %xmm1
movups 0x80(%r15), %xmm2
movups %xmm2, 0x80(%rbx)
movups %xmm1, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
movq %r14, %rdi
movq %r12, %rsi
callq 0x285a5
movl %eax, %r13d
leal -0xd(%r13), %eax
cmpb $0x2, %al
ja 0x2d8e1
leaq 0x1ac7d(%rip), %rsi     # 0x4853e
leaq -0x430(%rbp), %rdi
pushq $0x51
popq %rdx
callq 0x3100
movq %r14, %rdi
movq %rbx, %rsi
leaq -0x430(%rbp), %rdx
callq *0x58(%r14)
movq 0x68(%r15), %rsi
movq %r14, %rdi
callq 0x285a5
addb $-0xd, %al
cmpb $0x2, %al
ja 0x2d91a
leaq 0x1ac95(%rip), %rsi     # 0x4858f
leaq -0x430(%rbp), %rdi
pushq $0x4e
popq %rdx
callq 0x3100
movq %r14, %rdi
movq %rbx, %rsi
leaq -0x430(%rbp), %rdx
callq *0x58(%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0x285a5
movb %al, 0x60(%rbx)
movq %r12, 0x68(%rbx)
cmpb $0x1, 0x70(%r15)
jne 0x2dc36
movb $0x1, 0x70(%rbx)
movzbl %r13b, %esi
movq %r14, %rdi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x2e959
jmp 0x2dc36
movq %r14, %rdi
movq %rbx, %rsi
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2de19
movups 0x1aaa4(%rip), %xmm0    # 0x48419
leaq -0x430(%rbp), %rdx
movaps %xmm0, 0x10(%rdx)
movups 0x1aa82(%rip), %xmm0    # 0x48409
movaps %xmm0, (%rdx)
movabsq $0x2e646e61726570, %rax # imm = 0x2E646E61726570
movq %rax, 0x20(%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movups 0x60(%r12), %xmm0
movups 0x70(%r12), %xmm1
movups 0x80(%r12), %xmm2
movups %xmm2, 0x80(%rbx)
movups %xmm1, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
cmpb $0x1, 0x70(%r12)
jne 0x2dc36
movb $0x1, 0x70(%rbx)
jmp 0x2da39
movups 0x1a9f2(%rip), %xmm0    # 0x483d1
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x19(%rdx)
movups 0x1a9d7(%rip), %xmm0    # 0x483c8
movaps %xmm0, 0x10(%rdx)
movups 0x1a9bc(%rip), %xmm0    # 0x483b8
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movups 0x60(%r12), %xmm0
movups 0x70(%r12), %xmm1
movups 0x80(%r12), %xmm2
movups %xmm2, 0x80(%rbx)
movups %xmm1, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
cmpb $0x1, 0x70(%r12)
jne 0x2dc36
movl %r15d, %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2dffb
jmp 0x2dc36
movq %r14, %rdi
movq %r15, %rsi
callq 0x294d8
movq 0x68(%r15), %r15
movl 0x30(%r14), %eax
cmpl $0x2, %eax
je 0x2db0d
cmpl $0x1, %eax
jne 0x2dddb
movb $0x8, 0x60(%rbx)
leaq 0x27d0c(%rip), %rax     # 0x55788
movq %rax, 0x68(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2e3f5
jmp 0x2db03
movq %r14, %rdi
movq %r15, %rsi
callq 0x294d8
movq 0x68(%r15), %r12
cmpl $0xee0, (%r15)          # imm = 0xEE0
jne 0x2dad4
movq 0x48(%r15), %rax
movq (%rax), %rax
cmpl $0x200, (%rax)          # imm = 0x200
jne 0x2dad4
movq 0x10(%rax), %rcx
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6779
testq %rax, %rax
je 0x2dad4
movslq 0x60(%rax), %rax
jmp 0x2dae2
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x290fb
movl 0x30(%r14), %ecx
cmpl $0x2, %ecx
je 0x2db2c
cmpl $0x1, %ecx
jne 0x2ddfa
movb $0x8, 0x60(%rbx)
leaq 0x27c89(%rip), %rcx     # 0x55788
movq %rcx, 0x68(%rbx)
movl %eax, 0x88(%rbx)
movb $0x8, %al
jmp 0x2db44
movb $0x9, 0x60(%rbx)
leaq 0x27cd0(%rip), %rax     # 0x557e8
movq %rax, 0x68(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2e3f5
jmp 0x2db3b
movb $0x9, 0x60(%rbx)
leaq 0x27cb1(%rip), %rcx     # 0x557e8
movq %rcx, 0x68(%rbx)
movq %rax, 0x88(%rbx)
movb $0x9, %al
movb %al, 0x71(%rbx)
movb $0x1, 0x70(%rbx)
jmp 0x2dc36
movups 0x1a940(%rip), %xmm0    # 0x48497
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1a923(%rip), %xmm0    # 0x4848c
movaps %xmm0, 0x20(%rdx)
movups 0x1a908(%rip), %xmm0    # 0x4847c
movaps %xmm0, 0x10(%rdx)
movups 0x1a8ed(%rip), %xmm0    # 0x4846c
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r12, %rdi
callq 0x2e394
testb %al, %al
jne 0x2dc0e
cmpl $0xec4, %r15d           # imm = 0xEC4
jne 0x2dbd2
movups 0x1a8b4(%rip), %xmm0    # 0x4845c
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1a897(%rip), %xmm0    # 0x48451
movaps %xmm0, 0x20(%rdx)
movups 0x1a87c(%rip), %xmm0    # 0x48441
movaps %xmm0, 0x10(%rdx)
movups 0x1a861(%rip), %xmm0    # 0x48431
jmp 0x2dc01
movups 0x1a8be(%rip), %xmm0    # 0x48497
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1a8a1(%rip), %xmm0    # 0x4848c
movaps %xmm0, 0x20(%rdx)
movups 0x1a886(%rip), %xmm0    # 0x4847c
movaps %xmm0, 0x10(%rdx)
movups 0x1a86b(%rip), %xmm0    # 0x4846c
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movups 0x60(%r12), %xmm0
movups 0x70(%r12), %xmm1
movups 0x80(%r12), %xmm2
movups %xmm1, 0x70(%rbx)
movups %xmm2, 0x80(%rbx)
movups %xmm0, 0x60(%rbx)
movb $0x0, 0x70(%rbx)
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x121a3(%rip), %rdi     # 0x3fdf2
leaq 0x19ce4(%rip), %rsi     # 0x4793a
leaq 0x1a6ff(%rip), %rcx     # 0x4835c
movl $0xdec, %edx            # imm = 0xDEC
callq 0x30a0
leaq 0x1ab62(%rip), %rdi     # 0x487d0
leaq 0x19cc5(%rip), %rsi     # 0x4793a
leaq 0x1a6e0(%rip), %rcx     # 0x4835c
movl $0xe11, %edx            # imm = 0xE11
callq 0x30a0
leaq 0x1ab43(%rip), %rdi     # 0x487d0
leaq 0x19ca6(%rip), %rsi     # 0x4793a
leaq 0x1a6c1(%rip), %rcx     # 0x4835c
movl $0xdf3, %edx            # imm = 0xDF3
callq 0x30a0
leaq 0x1ab24(%rip), %rdi     # 0x487d0
leaq 0x19c87(%rip), %rsi     # 0x4793a
leaq 0x1a6a2(%rip), %rcx     # 0x4835c
movl $0xe30, %edx            # imm = 0xE30
callq 0x30a0
leaq 0x1ab05(%rip), %rdi     # 0x487d0
leaq 0x19c68(%rip), %rsi     # 0x4793a
leaq 0x1a683(%rip), %rcx     # 0x4835c
movl $0xed6, %edx            # imm = 0xED6
callq 0x30a0
leaq 0x1a04b(%rip), %rdi     # 0x47d35
leaq 0x19c49(%rip), %rsi     # 0x4793a
leaq 0x1a664(%rip), %rcx     # 0x4835c
movl $0xf13, %edx            # imm = 0xF13
callq 0x30a0
leaq 0x1aac7(%rip), %rdi     # 0x487d0
leaq 0x19c2a(%rip), %rsi     # 0x4793a
leaq 0x1a645(%rip), %rcx     # 0x4835c
movl $0xe5b, %edx            # imm = 0xE5B
callq 0x30a0
leaq 0x1aaa8(%rip), %rdi     # 0x487d0
leaq 0x19c0b(%rip), %rsi     # 0x4793a
leaq 0x1a626(%rip), %rcx     # 0x4835c
movl $0xe87, %edx            # imm = 0xE87
callq 0x30a0
leaq 0x1aa89(%rip), %rdi     # 0x487d0
leaq 0x19bec(%rip), %rsi     # 0x4793a
leaq 0x1a607(%rip), %rcx     # 0x4835c
movl $0xec1, %edx            # imm = 0xEC1
callq 0x30a0
leaq 0x19fcf(%rip), %rdi     # 0x47d35
leaq 0x19bcd(%rip), %rsi     # 0x4793a
leaq 0x1a5e8(%rip), %rcx     # 0x4835c
movl $0xeec, %edx            # imm = 0xEEC
callq 0x30a0
leaq 0xe5db(%rip), %rdi      # 0x3c360
leaq 0x19bae(%rip), %rsi     # 0x4793a
leaq 0x1a5c9(%rip), %rcx     # 0x4835c
movl $0xe03, %edx            # imm = 0xE03
callq 0x30a0
leaq 0xe5bc(%rip), %rdi      # 0x3c360
leaq 0x19b8f(%rip), %rsi     # 0x4793a
leaq 0x1a5aa(%rip), %rcx     # 0x4835c
movl $0xe6b, %edx            # imm = 0xE6B
callq 0x30a0
leaq 0xe59d(%rip), %rdi      # 0x3c360
leaq 0x19b70(%rip), %rsi     # 0x4793a
leaq 0x1a58b(%rip), %rcx     # 0x4835c
movl $0xe97, %edx            # imm = 0xE97
callq 0x30a0
leaq 0xe57e(%rip), %rdi      # 0x3c360
leaq 0x19b51(%rip), %rsi     # 0x4793a
leaq 0x1a56c(%rip), %rcx     # 0x4835c
movl $0xe7f, %edx            # imm = 0xE7F
callq 0x30a0
leaq 0xe55f(%rip), %rdi      # 0x3c360
leaq 0x19b32(%rip), %rsi     # 0x4793a
leaq 0x1a54d(%rip), %rcx     # 0x4835c
movl $0xeba, %edx            # imm = 0xEBA
callq 0x30a0