// File: /workspace/github_c_makefile_star2_O3/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 0x2fff1
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %r15d
leal -0xec0(%r15), %eax
cmpl $0xe, %eax
ja 0x2fca6
leaq 0x1a99a(%rip), %rcx     # 0x4a158
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x1, 0x44(%rbx)
jne 0x3002f
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x301c2
movq %r12, %rdi
callq 0x2d683
testb %al, %al
jne 0x2fdea
cmpl $0xec3, %r15d           # imm = 0xEC3
je 0x2fdb9
cmpl $0xec0, %r15d           # imm = 0xEC0
jne 0x30127
movups 0x1bb54(%rip), %xmm0    # 0x4b368
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x19(%rdx)
movups 0x1bb39(%rip), %xmm0    # 0x4b35f
movaps %xmm0, 0x10(%rdx)
movups 0x1bb1e(%rip), %xmm0    # 0x4b34f
jmp 0x2fddd
cmpl $0x1, 0x44(%rbx)
jne 0x30010
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x301c2
movq %r12, %rdi
callq 0x30769
testb %al, %al
jne 0x2fd83
cmpl $0xec1, %r15d           # imm = 0xEC1
jne 0x2fd4f
movups 0x1bb3b(%rip), %xmm0    # 0x4b3b1
leaq -0x430(%rbp), %rdx
movaps %xmm0, 0x10(%rdx)
movups 0x1bb19(%rip), %xmm0    # 0x4b3a1
jmp 0x2fd68
cmpl $0x1, 0x44(%rbx)
jne 0x3004e
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x301c2
movq %r12, %rdi
callq 0x2c597
testl %eax, %eax
je 0x2fcc2
movq %r12, %rdi
callq 0x30769
testb %al, %al
jne 0x2ffb7
cmpl $0xec4, %r15d           # imm = 0xEC4
je 0x2fd1b
jmp 0x2ff7b
cmpl $0x1, 0x44(%rbx)
jne 0x3006d
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x301c2
movq 0x68(%r15), %r15
cmpl $0x440, (%r15)          # imm = 0x440
je 0x2f935
movups 0x1bba6(%rip), %xmm0    # 0x4b4b1
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x1e(%rdx)
movups 0x1bb86(%rip), %xmm0    # 0x4b4a3
movaps %xmm0, 0x10(%rdx)
movups 0x1bb6b(%rip), %xmm0    # 0x4b493
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 0x2f981
movups 0x1bba2(%rip), %xmm0    # 0x4b4ee
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2d(%rdx)
movups 0x1bb83(%rip), %xmm0    # 0x4b4e1
movaps %xmm0, 0x20(%rdx)
movups 0x1bb68(%rip), %xmm0    # 0x4b4d1
movaps %xmm0, 0x10(%rdx)
movups 0x1bb4d(%rip), %xmm0    # 0x4b4c1
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2a712
movb %al, 0x60(%rbx)
jmp 0x2fa4d
cmpl $0x2, 0x44(%rbx)
jne 0x3008c
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r15
movq %r14, %rdi
movq %r12, %rsi
callq 0x2b6a7
leaq -0x29(%rbp), %rdx
movb $0x0, (%rdx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2b24f
cmpb $0xc, 0x60(%r12)
je 0x2fa0a
movups 0x1bbf4(%rip), %xmm0    # 0x4b5c9
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2c(%rdx)
movups 0x1bbd6(%rip), %xmm0    # 0x4b5bd
movaps %xmm0, 0x20(%rdx)
movups 0x1bbbb(%rip), %xmm0    # 0x4b5ad
movaps %xmm0, 0x10(%rdx)
movups 0x1bba0(%rip), %xmm0    # 0x4b59d
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 0x2fa4a
leaq 0x1bbb3(%rip), %rsi     # 0x4b5d9
leaq -0x430(%rbp), %r12
movl $0x4a, %edx
movq %r12, %rdi
callq 0x3110
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 0x2ffdb
cmpl $0x1, 0x44(%rbx)
jne 0x300ab
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 0x2fe2d
cmpl $0x1, %eax
jne 0x30146
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x2becf
jmp 0x2fe3c
cmpl $0x1, 0x44(%rbx)
jne 0x300ca
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 0x2fe71
cmpl $0x1, %eax
jne 0x30165
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x2becf
movq %r15, %r12
jmp 0x2fe80
cmpl $0x1, 0x44(%rbx)
jne 0x300e9
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x301c2
movq %r15, %rdi
callq 0x2c597
testl %eax, %eax
jne 0x2fb68
movups 0x1b945(%rip), %xmm0    # 0x4b483
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x1c(%rdx)
movups 0x1b927(%rip), %xmm0    # 0x4b477
movaps %xmm0, 0x10(%rdx)
movups 0x1b90c(%rip), %xmm0    # 0x4b467
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq 0x68(%r15), %r15
leaq 0x123ab(%rip), %rdx     # 0x41f1e
movq %r14, %rdi
movl $0x440, %esi            # imm = 0x440
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x65f1
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x68cf
movb $0x10, 0x60(%rbx)
movq %r12, 0x68(%rbx)
jmp 0x2ffdb
cmpl $0x2, 0x44(%rbx)
jne 0x30108
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r15
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x2b24f
movq %r14, %rdi
movq %r15, %rsi
callq 0x2b6a7
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 0x2a712
movl %eax, %r13d
leal -0xd(%r13), %eax
cmpb $0x2, %al
ja 0x2fc33
leaq 0x1b8ed(%rip), %rsi     # 0x4b4fe
leaq -0x430(%rbp), %rdi
movl $0x51, %edx
callq 0x3110
movq %r14, %rdi
movq %rbx, %rsi
leaq -0x430(%rbp), %rdx
callq *0x58(%r14)
movq 0x68(%r15), %rsi
movq %r14, %rdi
callq 0x2a712
addb $-0xd, %al
cmpb $0x2, %al
ja 0x2fc6e
leaq 0x1b903(%rip), %rsi     # 0x4b54f
leaq -0x430(%rbp), %rdi
movl $0x4e, %edx
callq 0x3110
movq %r14, %rdi
movq %rbx, %rsi
leaq -0x430(%rbp), %rdx
callq *0x58(%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0x2a712
movb %al, 0x60(%rbx)
movq %r12, 0x68(%rbx)
cmpb $0x1, 0x70(%r15)
jne 0x2ffdf
movb $0x1, 0x70(%rbx)
movzbl %r13b, %esi
movq %r14, %rdi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x30d23
jmp 0x2ffdf
movq %r14, %rdi
movq %rbx, %rsi
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x301c2
cmpl $0xec4, %r15d           # imm = 0xEC4
jne 0x2ff33
movups 0x1b746(%rip), %xmm0    # 0x4b41c
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1b729(%rip), %xmm0    # 0x4b411
movaps %xmm0, 0x20(%rdx)
movups 0x1b70e(%rip), %xmm0    # 0x4b401
movaps %xmm0, 0x10(%rdx)
movups 0x1b6f3(%rip), %xmm0    # 0x4b3f1
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r12, %rdi
callq 0x30769
testb %al, %al
jne 0x2ffb7
movups 0x1b6fa(%rip), %xmm0    # 0x4b41c
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1b6dd(%rip), %xmm0    # 0x4b411
movaps %xmm0, 0x20(%rdx)
movups 0x1b6c2(%rip), %xmm0    # 0x4b401
movaps %xmm0, 0x10(%rdx)
movups 0x1b6a7(%rip), %xmm0    # 0x4b3f1
jmp 0x2ffaa
movups 0x1b683(%rip), %xmm0    # 0x4b3d9
leaq -0x430(%rbp), %rdx
movaps %xmm0, 0x10(%rdx)
movups 0x1b661(%rip), %xmm0    # 0x4b3c9
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 0x2ffdf
movb $0x1, 0x70(%rbx)
jmp 0x2fe1a
movups 0x1b5d1(%rip), %xmm0    # 0x4b391
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x19(%rdx)
movups 0x1b5b6(%rip), %xmm0    # 0x4b388
movaps %xmm0, 0x10(%rdx)
movups 0x1b59b(%rip), %xmm0    # 0x4b378
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 0x2ffdf
movl %r15d, %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x303d0
jmp 0x2ffdf
movq %r14, %rdi
movq %r15, %rsi
callq 0x2b6a7
movq 0x68(%r15), %r15
movl 0x30(%r14), %eax
cmpl $0x2, %eax
je 0x2fef0
cmpl $0x1, %eax
jne 0x30184
movb $0x8, 0x60(%rbx)
leaq 0x2892b(%rip), %rax     # 0x58788
movq %rax, 0x68(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x307ca
jmp 0x2fee6
movq %r14, %rdi
movq %r15, %rsi
callq 0x2b6a7
movq 0x68(%r15), %r12
cmpl $0xee0, (%r15)          # imm = 0xEE0
jne 0x2feb7
movq 0x48(%r15), %rax
movq (%rax), %rax
cmpl $0x200, (%rax)          # imm = 0x200
jne 0x2feb7
movq 0x10(%rax), %rcx
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x6c89
testq %rax, %rax
je 0x2feb7
movslq 0x60(%rax), %rax
jmp 0x2fec5
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2b281
movl 0x30(%r14), %ecx
cmpl $0x2, %ecx
je 0x2ff0f
cmpl $0x1, %ecx
jne 0x301a3
movb $0x8, 0x60(%rbx)
leaq 0x288a6(%rip), %rcx     # 0x58788
movq %rcx, 0x68(%rbx)
movl %eax, 0x88(%rbx)
movb $0x8, %al
jmp 0x2ff27
movb $0x9, 0x60(%rbx)
leaq 0x288ed(%rip), %rax     # 0x587e8
movq %rax, 0x68(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x307ca
jmp 0x2ff1e
movb $0x9, 0x60(%rbx)
leaq 0x288ce(%rip), %rcx     # 0x587e8
movq %rcx, 0x68(%rbx)
movq %rax, 0x88(%rbx)
movb $0x9, %al
movb %al, 0x71(%rbx)
movb $0x1, 0x70(%rbx)
jmp 0x2ffdf
movups 0x1b51d(%rip), %xmm0    # 0x4b457
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1b500(%rip), %xmm0    # 0x4b44c
movaps %xmm0, 0x20(%rdx)
movups 0x1b4e5(%rip), %xmm0    # 0x4b43c
movaps %xmm0, 0x10(%rdx)
movups 0x1b4ca(%rip), %xmm0    # 0x4b42c
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r12, %rdi
callq 0x30769
testb %al, %al
jne 0x2ffb7
movups 0x1b4d5(%rip), %xmm0    # 0x4b457
leaq -0x430(%rbp), %rdx
movups %xmm0, 0x2b(%rdx)
movups 0x1b4b8(%rip), %xmm0    # 0x4b44c
movaps %xmm0, 0x20(%rdx)
movups 0x1b49d(%rip), %xmm0    # 0x4b43c
movaps %xmm0, 0x10(%rdx)
movups 0x1b482(%rip), %xmm0    # 0x4b42c
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 0x12dea(%rip), %rdi     # 0x42de2
leaq 0x1a8fb(%rip), %rsi     # 0x4a8fa
leaq 0x1b316(%rip), %rcx     # 0x4b31c
movl $0xdec, %edx            # imm = 0xDEC
callq 0x30a0
leaq 0x1b779(%rip), %rdi     # 0x4b790
leaq 0x1a8dc(%rip), %rsi     # 0x4a8fa
leaq 0x1b2f7(%rip), %rcx     # 0x4b31c
movl $0xe11, %edx            # imm = 0xE11
callq 0x30a0
leaq 0x1b75a(%rip), %rdi     # 0x4b790
leaq 0x1a8bd(%rip), %rsi     # 0x4a8fa
leaq 0x1b2d8(%rip), %rcx     # 0x4b31c
movl $0xdf3, %edx            # imm = 0xDF3
callq 0x30a0
leaq 0x1b73b(%rip), %rdi     # 0x4b790
leaq 0x1a89e(%rip), %rsi     # 0x4a8fa
leaq 0x1b2b9(%rip), %rcx     # 0x4b31c
movl $0xe30, %edx            # imm = 0xE30
callq 0x30a0
leaq 0x1b71c(%rip), %rdi     # 0x4b790
leaq 0x1a87f(%rip), %rsi     # 0x4a8fa
leaq 0x1b29a(%rip), %rcx     # 0x4b31c
movl $0xed6, %edx            # imm = 0xED6
callq 0x30a0
leaq 0x1ac62(%rip), %rdi     # 0x4acf5
leaq 0x1a860(%rip), %rsi     # 0x4a8fa
leaq 0x1b27b(%rip), %rcx     # 0x4b31c
movl $0xf13, %edx            # imm = 0xF13
callq 0x30a0
leaq 0x1b6de(%rip), %rdi     # 0x4b790
leaq 0x1a841(%rip), %rsi     # 0x4a8fa
leaq 0x1b25c(%rip), %rcx     # 0x4b31c
movl $0xe5b, %edx            # imm = 0xE5B
callq 0x30a0
leaq 0x1b6bf(%rip), %rdi     # 0x4b790
leaq 0x1a822(%rip), %rsi     # 0x4a8fa
leaq 0x1b23d(%rip), %rcx     # 0x4b31c
movl $0xe87, %edx            # imm = 0xE87
callq 0x30a0
leaq 0x1b6a0(%rip), %rdi     # 0x4b790
leaq 0x1a803(%rip), %rsi     # 0x4a8fa
leaq 0x1b21e(%rip), %rcx     # 0x4b31c
movl $0xec1, %edx            # imm = 0xEC1
callq 0x30a0
leaq 0x1abe6(%rip), %rdi     # 0x4acf5
leaq 0x1a7e4(%rip), %rsi     # 0x4a8fa
leaq 0x1b1ff(%rip), %rcx     # 0x4b31c
movl $0xeec, %edx            # imm = 0xEEC
callq 0x30a0
leaq 0xf232(%rip), %rdi      # 0x3f360
leaq 0x1a7c5(%rip), %rsi     # 0x4a8fa
leaq 0x1b1e0(%rip), %rcx     # 0x4b31c
movl $0xe03, %edx            # imm = 0xE03
callq 0x30a0
leaq 0xf213(%rip), %rdi      # 0x3f360
leaq 0x1a7a6(%rip), %rsi     # 0x4a8fa
leaq 0x1b1c1(%rip), %rcx     # 0x4b31c
movl $0xe6b, %edx            # imm = 0xE6B
callq 0x30a0
leaq 0xf1f4(%rip), %rdi      # 0x3f360
leaq 0x1a787(%rip), %rsi     # 0x4a8fa
leaq 0x1b1a2(%rip), %rcx     # 0x4b31c
movl $0xe97, %edx            # imm = 0xE97
callq 0x30a0
leaq 0xf1d5(%rip), %rdi      # 0x3f360
leaq 0x1a768(%rip), %rsi     # 0x4a8fa
leaq 0x1b183(%rip), %rcx     # 0x4b31c
movl $0xe7f, %edx            # imm = 0xE7F
callq 0x30a0
leaq 0xf1b6(%rip), %rdi      # 0x3f360
leaq 0x1a749(%rip), %rsi     # 0x4a8fa
leaq 0x1b164(%rip), %rcx     # 0x4b31c
movl $0xeba, %edx            # imm = 0xEBA
callq 0x30a0