// File: /workspace/github_c_makefile_star2_O1/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 0x30d04
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %r15d
leal -0xec0(%r15), %eax
cmpl $0xe, %eax
ja 0x309fb
leaq 0x1abab(%rip), %rcx     # 0x4b088
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x1, 0x44(%rbx)
jne 0x30d42
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x30f32
movq %r12, %rdi
callq 0x2e28f
testb %al, %al
jne 0x30ab2
cmpl $0xec3, %r15d           # imm = 0xEC3
je 0x30a81
cmpl $0xec0, %r15d           # imm = 0xEC0
jne 0x30e59
movups 0x1bd95(%rip), %xmm0    # 0x4c2c8
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x19(%rdx)
movups 0x1bd7a(%rip), %xmm0    # 0x4c2bf
movaps %xmm0, 0x10(%rdx)
movups 0x1bd5f(%rip), %xmm0    # 0x4c2af
jmp 0x30aa5
cmpl $0x1, 0x44(%rbx)
jne 0x30d23
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x30f32
movq %r12, %rdi
callq 0x31509
testb %al, %al
jne 0x30a4b
cmpl $0xec2, %r15d           # imm = 0xEC2
je 0x30a17
cmpl $0xec1, %r15d           # imm = 0xEC1
jne 0x30e3a
movups 0x1bd6f(%rip), %xmm0    # 0x4c311
leaq -0x430(%rbp), %rdx
movaps %xmm0, 0x10(%rdx)
movups 0x1bd4d(%rip), %xmm0    # 0x4c301
jmp 0x30a30
cmpl $0x1, 0x44(%rbx)
jne 0x30d61
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x30f32
movq %r12, %rdi
callq 0x2cf63
testl %eax, %eax
jne 0x30c37
cmpl $0xec5, %r15d           # imm = 0xEC5
je 0x30bfb
cmpl $0xec4, %r15d           # imm = 0xEC4
jne 0x30f13
movups 0x1bd76(%rip), %xmm0    # 0x4c37c
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1bd59(%rip), %xmm0    # 0x4c371
movaps %xmm0, 0x20(%rdx)
movups 0x1bd3e(%rip), %xmm0    # 0x4c361
movaps %xmm0, 0x10(%rdx)
movups 0x1bd23(%rip), %xmm0    # 0x4c351
jmp 0x30c2a
cmpl $0x1, 0x44(%rbx)
jne 0x30d80
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30f32
movq 0x68(%r15), %r15
cmpl $0x440, (%r15)          # imm = 0x440
je 0x3068d
movups 0x1bdae(%rip), %xmm0    # 0x4c411
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x1e(%rdx)
movups 0x1bd8e(%rip), %xmm0    # 0x4c403
movaps %xmm0, 0x10(%rdx)
movups 0x1bd73(%rip), %xmm0    # 0x4c3f3
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 0x306d9
movups 0x1bdaa(%rip), %xmm0    # 0x4c44e
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2d(%rdx)
movups 0x1bd8b(%rip), %xmm0    # 0x4c441
movaps %xmm0, 0x20(%rdx)
movups 0x1bd70(%rip), %xmm0    # 0x4c431
movaps %xmm0, 0x10(%rdx)
movups 0x1bd55(%rip), %xmm0    # 0x4c421
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2b04a
jmp 0x3079f
cmpl $0x2, 0x44(%rbx)
jne 0x30d9f
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r15
movq %r14, %rdi
movq %r12, %rsi
callq 0x2c01f
leaq -0x29(%rbp), %rdx
movb $0x0, (%rdx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2bbca
cmpb $0xc, 0x60(%r12)
je 0x3075f
movups 0x1bdff(%rip), %xmm0    # 0x4c529
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2c(%rdx)
movups 0x1bde1(%rip), %xmm0    # 0x4c51d
movaps %xmm0, 0x20(%rdx)
movups 0x1bdc6(%rip), %xmm0    # 0x4c50d
movaps %xmm0, 0x10(%rdx)
movups 0x1bdab(%rip), %xmm0    # 0x4c4fd
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 %al
orb %cl, %al
jne 0x3079c
leaq 0x1bdbe(%rip), %rsi     # 0x4c539
leaq -0x430(%rbp), %r12
movl $0x4a, %edx
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 0x30cee
cmpl $0x1, 0x44(%rbx)
jne 0x30dbe
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
movl $0x1, %eax
cmovnel %ecx, %eax
cmpl $0x2, %eax
je 0x30af5
cmpl $0x1, %eax
jne 0x30e78
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x2c8aa
jmp 0x30b04
cmpl $0x1, 0x44(%rbx)
jne 0x30ddd
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
movl $0x1, %eax
cmovnel %ecx, %eax
cmpl $0x2, %eax
je 0x30b39
cmpl $0x1, %eax
jne 0x30e97
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x2c8aa
movq %r15, %r12
jmp 0x30b48
cmpl $0x1, 0x44(%rbx)
jne 0x30dfc
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30f32
movq %r15, %rdi
callq 0x2cf63
testl %eax, %eax
jne 0x308bd
movups 0x1bb50(%rip), %xmm0    # 0x4c3e3
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x1c(%rdx)
movups 0x1bb32(%rip), %xmm0    # 0x4c3d7
movaps %xmm0, 0x10(%rdx)
movups 0x1bb17(%rip), %xmm0    # 0x4c3c7
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq 0x68(%r15), %r15
leaq 0x1260a(%rip), %rdx     # 0x42ed2
movq %r14, %rdi
movl $0x440, %esi            # imm = 0x440
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x6721
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x69ff
movb $0x10, 0x60(%rbx)
movq %r12, 0x68(%rbx)
jmp 0x30cee
cmpl $0x2, 0x44(%rbx)
jne 0x30e1b
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r15
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x2bbca
movq %r14, %rdi
movq %r15, %rsi
callq 0x2c01f
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 0x2b04a
movl %eax, %r13d
leal -0xd(%r13), %eax
cmpb $0x2, %al
ja 0x30988
leaq 0x1baf8(%rip), %rsi     # 0x4c45e
leaq -0x430(%rbp), %rdi
movl $0x51, %edx
callq 0x3100
movq %r14, %rdi
movq %rbx, %rsi
leaq -0x430(%rbp), %rdx
callq *0x58(%r14)
movq 0x68(%r15), %rsi
movq %r14, %rdi
callq 0x2b04a
addb $-0xd, %al
cmpb $0x2, %al
ja 0x309c3
leaq 0x1bb0e(%rip), %rsi     # 0x4c4af
leaq -0x430(%rbp), %rdi
movl $0x4e, %edx
callq 0x3100
movq %r14, %rdi
movq %rbx, %rsi
leaq -0x430(%rbp), %rdx
callq *0x58(%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0x2b04a
movb %al, 0x60(%rbx)
movq %r12, 0x68(%rbx)
cmpb $0x1, 0x70(%r15)
jne 0x30cf2
movb $0x1, 0x70(%rbx)
movzbl %r13b, %esi
movq %r14, %rdi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x31acc
jmp 0x30cf2
movq %r14, %rdi
movq %rbx, %rsi
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30f32
movups 0x1b91b(%rip), %xmm0    # 0x4c339
leaq -0x430(%rbp), %rdx
movaps %xmm0, 0x10(%rdx)
movups 0x1b8f9(%rip), %xmm0    # 0x4c329
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 0x30cf2
movb $0x1, 0x70(%rbx)
jmp 0x30ae2
movups 0x1b869(%rip), %xmm0    # 0x4c2f1
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x19(%rdx)
movups 0x1b84e(%rip), %xmm0    # 0x4c2e8
movaps %xmm0, 0x10(%rdx)
movups 0x1b833(%rip), %xmm0    # 0x4c2d8
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 0x30cf2
movl %r15d, %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x31170
jmp 0x30cf2
movq %r14, %rdi
movq %r15, %rsi
callq 0x2c01f
movq 0x68(%r15), %r15
movl 0x30(%r14), %eax
cmpl $0x2, %eax
je 0x30bb8
cmpl $0x1, %eax
jne 0x30ed5
movb $0x8, 0x60(%rbx)
leaq 0x28c63(%rip), %rax     # 0x59788
movq %rax, 0x68(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x3156a
jmp 0x30bae
movq %r14, %rdi
movq %r15, %rsi
callq 0x2c01f
movq 0x68(%r15), %r12
cmpl $0xee0, (%r15)          # imm = 0xEE0
jne 0x30b7f
movq 0x48(%r15), %rax
movq (%rax), %rax
cmpl $0x200, (%rax)          # imm = 0x200
jne 0x30b7f
movq 0x10(%rax), %rcx
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x6db9
testq %rax, %rax
je 0x30b7f
movslq 0x60(%rax), %rax
jmp 0x30b8d
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2bbfc
movl 0x30(%r14), %ecx
cmpl $0x2, %ecx
je 0x30bd7
cmpl $0x1, %ecx
jne 0x30ef4
movb $0x8, 0x60(%rbx)
leaq 0x28bde(%rip), %rcx     # 0x59788
movq %rcx, 0x68(%rbx)
movl %eax, 0x88(%rbx)
movb $0x8, %al
jmp 0x30bef
movb $0x9, 0x60(%rbx)
leaq 0x28c25(%rip), %rax     # 0x597e8
movq %rax, 0x68(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x3156a
jmp 0x30be6
movb $0x9, 0x60(%rbx)
leaq 0x28c06(%rip), %rcx     # 0x597e8
movq %rcx, 0x68(%rbx)
movq %rax, 0x88(%rbx)
movb $0x9, %al
movb %al, 0x71(%rbx)
movb $0x1, 0x70(%rbx)
jmp 0x30cf2
movups 0x1b7b5(%rip), %xmm0    # 0x4c3b7
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1b798(%rip), %xmm0    # 0x4c3ac
movaps %xmm0, 0x20(%rdx)
movups 0x1b77d(%rip), %xmm0    # 0x4c39c
movaps %xmm0, 0x10(%rdx)
movups 0x1b762(%rip), %xmm0    # 0x4c38c
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r12, %rdi
callq 0x31509
testb %al, %al
jne 0x30cca
cmpl $0xec5, %r15d           # imm = 0xEC5
je 0x30c8e
cmpl $0xec4, %r15d           # imm = 0xEC4
jne 0x30eb6
movups 0x1b718(%rip), %xmm0    # 0x4c37c
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1b6fb(%rip), %xmm0    # 0x4c371
movaps %xmm0, 0x20(%rdx)
movups 0x1b6e0(%rip), %xmm0    # 0x4c361
movaps %xmm0, 0x10(%rdx)
movups 0x1b6c5(%rip), %xmm0    # 0x4c351
jmp 0x30cbd
movups 0x1b722(%rip), %xmm0    # 0x4c3b7
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1b705(%rip), %xmm0    # 0x4c3ac
movaps %xmm0, 0x20(%rdx)
movups 0x1b6ea(%rip), %xmm0    # 0x4c39c
movaps %xmm0, 0x10(%rdx)
movups 0x1b6cf(%rip), %xmm0    # 0x4c38c
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 0x1308b(%rip), %rdi     # 0x43d96
leaq 0x1ab48(%rip), %rsi     # 0x4b85a
leaq 0x1b563(%rip), %rcx     # 0x4c27c
movl $0xdec, %edx            # imm = 0xDEC
callq 0x30a0
leaq 0x1b9c6(%rip), %rdi     # 0x4c6f0
leaq 0x1ab29(%rip), %rsi     # 0x4b85a
leaq 0x1b544(%rip), %rcx     # 0x4c27c
movl $0xe11, %edx            # imm = 0xE11
callq 0x30a0
leaq 0x1b9a7(%rip), %rdi     # 0x4c6f0
leaq 0x1ab0a(%rip), %rsi     # 0x4b85a
leaq 0x1b525(%rip), %rcx     # 0x4c27c
movl $0xdf3, %edx            # imm = 0xDF3
callq 0x30a0
leaq 0x1b988(%rip), %rdi     # 0x4c6f0
leaq 0x1aaeb(%rip), %rsi     # 0x4b85a
leaq 0x1b506(%rip), %rcx     # 0x4c27c
movl $0xe30, %edx            # imm = 0xE30
callq 0x30a0
leaq 0x1b969(%rip), %rdi     # 0x4c6f0
leaq 0x1aacc(%rip), %rsi     # 0x4b85a
leaq 0x1b4e7(%rip), %rcx     # 0x4c27c
movl $0xed6, %edx            # imm = 0xED6
callq 0x30a0
leaq 0x1aeaf(%rip), %rdi     # 0x4bc55
leaq 0x1aaad(%rip), %rsi     # 0x4b85a
leaq 0x1b4c8(%rip), %rcx     # 0x4c27c
movl $0xf13, %edx            # imm = 0xF13
callq 0x30a0
leaq 0x1b92b(%rip), %rdi     # 0x4c6f0
leaq 0x1aa8e(%rip), %rsi     # 0x4b85a
leaq 0x1b4a9(%rip), %rcx     # 0x4c27c
movl $0xe5b, %edx            # imm = 0xE5B
callq 0x30a0
leaq 0x1b90c(%rip), %rdi     # 0x4c6f0
leaq 0x1aa6f(%rip), %rsi     # 0x4b85a
leaq 0x1b48a(%rip), %rcx     # 0x4c27c
movl $0xe87, %edx            # imm = 0xE87
callq 0x30a0
leaq 0x1b8ed(%rip), %rdi     # 0x4c6f0
leaq 0x1aa50(%rip), %rsi     # 0x4b85a
leaq 0x1b46b(%rip), %rcx     # 0x4c27c
movl $0xec1, %edx            # imm = 0xEC1
callq 0x30a0
leaq 0x1ae33(%rip), %rdi     # 0x4bc55
leaq 0x1aa31(%rip), %rsi     # 0x4b85a
leaq 0x1b44c(%rip), %rcx     # 0x4c27c
movl $0xeec, %edx            # imm = 0xEEC
callq 0x30a0
leaq 0xf543(%rip), %rdi      # 0x40384
leaq 0x1aa12(%rip), %rsi     # 0x4b85a
leaq 0x1b42d(%rip), %rcx     # 0x4c27c
movl $0xe21, %edx            # imm = 0xE21
callq 0x30a0
leaq 0xf524(%rip), %rdi      # 0x40384
leaq 0x1a9f3(%rip), %rsi     # 0x4b85a
leaq 0x1b40e(%rip), %rcx     # 0x4c27c
movl $0xe03, %edx            # imm = 0xE03
callq 0x30a0
leaq 0xf505(%rip), %rdi      # 0x40384
leaq 0x1a9d4(%rip), %rsi     # 0x4b85a
leaq 0x1b3ef(%rip), %rcx     # 0x4c27c
movl $0xe6b, %edx            # imm = 0xE6B
callq 0x30a0
leaq 0xf4e6(%rip), %rdi      # 0x40384
leaq 0x1a9b5(%rip), %rsi     # 0x4b85a
leaq 0x1b3d0(%rip), %rcx     # 0x4c27c
movl $0xe97, %edx            # imm = 0xE97
callq 0x30a0
leaq 0xf4c7(%rip), %rdi      # 0x40384
leaq 0x1a996(%rip), %rsi     # 0x4b85a
leaq 0x1b3b1(%rip), %rcx     # 0x4c27c
movl $0xe50, %edx            # imm = 0xE50
callq 0x30a0
leaq 0xf4a8(%rip), %rdi      # 0x40384
leaq 0x1a977(%rip), %rsi     # 0x4b85a
leaq 0x1b392(%rip), %rcx     # 0x4c27c
movl $0xe7f, %edx            # imm = 0xE7F
callq 0x30a0
leaq 0xf489(%rip), %rdi      # 0x40384
leaq 0x1a958(%rip), %rsi     # 0x4b85a
leaq 0x1b373(%rip), %rcx     # 0x4c27c
movl $0xeba, %edx            # imm = 0xEBA
callq 0x30a0
leaq 0xf46a(%rip), %rdi      # 0x40384
leaq 0x1a939(%rip), %rsi     # 0x4b85a
leaq 0x1b354(%rip), %rcx     # 0x4c27c
movl $0xe40, %edx            # imm = 0xE40
callq 0x30a0