// File: /workspace/github_cpp_makefile_star2_O1/ClauParser[P]ClauParser/./include/clau_parser.h
// Function: clau_parser::LoadData::Merge(clau_parser::UserType*, clau_parser::UserType*, clau_parser::UserType**, clau_parser::UserType**)
static int Merge(UserType* next, UserType* ut, UserType** ut_next, UserType** out = nullptr)
		{
			//check!!
			while (ut->GetIListSize() >= 1 && ut->GetUserTypeListSize() >= 1
				&& (ut->GetUserTypeList(0)->GetName() == "#"sv))
			{
				ut = ut->GetUserTypeList(0);
			}

			bool chk_ut_next = false;
			UserType* temp = nullptr;

			while (true) {
				int itCount = 0;
				int utCount = 0;

				UserType* _ut = ut;
				UserType* _next = next;


				if (ut_next && _ut == *ut_next) {
					*ut_next = _next;
					temp = _next;
					chk_ut_next = true;
				}

				_next->ReserveItemList(_ut->GetItemListSize());

				for (size_t i = 0; i < _ut->GetIListSize(); ++i) {
					if (_ut->IsUserTypeList(i)) {
						if (_ut->GetUserTypeList(utCount)->GetName() == "#"sv) {
							_ut->GetUserTypeList(utCount)->SetName("");
						}
						else {
							{
								_next->LinkUserType(_ut->GetUserTypeList(utCount));
								_ut->GetUserTypeList(utCount) = nullptr;
							}
						}
						utCount++;
					}
					else if (_ut->IsItemList(i)) {
						_next->AddItemType(std::move(_ut->GetItemList(itCount)));
						itCount++;
					}
				}
				_ut->Remove();

				ut = ut->GetParent();

				next = next->GetParent();


				if (next && ut) {
					//
				}
				else {
					// right_depth > left_depth
					if (!next && ut) {
						return -1;
					}
					else if (next && !ut) {
						return 1;
					}

					return 0;
				}
			}
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r14
leaq 0x3fc3(%rip), %r12      # 0xa139
movq %r13, %r15
movq 0x38(%r13), %rax
cmpq 0x30(%r13), %rax
je 0x61aa
movq 0x60(%r15), %rax
cmpq %rax, 0x68(%r15)
je 0x61aa
movq (%rax), %r13
movq 0x10(%r13), %rdx
cmpq $0x1, %rdx
jne 0x61aa
movq 0x8(%r13), %rdi
movq %r12, %rsi
callq 0x21b0
testl %eax, %eax
je 0x6176
movq %rbx, 0x10(%rsp)
testq %rbx, %rbx
je 0x61bc
cmpq (%rbx), %r15
jne 0x61bc
movq %r14, (%rbx)
movq 0x50(%r15), %rsi
subq 0x48(%r15), %rsi
je 0x61e1
sarq $0x4, %rsi
movabsq $-0x3333333333333333, %rax # imm = 0xCCCCCCCCCCCCCCCD
imulq %rax, %rsi
leaq 0x48(%r14), %rdi
callq 0x8286
movq 0x30(%r15), %rax
cmpq %rax, 0x38(%r15)
je 0x62e7
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %ebp, %ebp
movq %r14, 0x8(%rsp)
movl (%rax,%rbx,4), %eax
cmpl $0x1, %eax
je 0x625c
cmpl $0x2, %eax
jne 0x6276
movl %ebp, 0x4(%rsp)
movslq %ebp, %r13
movq 0x60(%r15), %rax
movq (%rax,%r13,8), %rbp
movq 0x10(%rbp), %rdx
cmpq $0x1, %rdx
jne 0x6238
leaq 0x8(%rbp), %r14
movq (%r14), %rdi
leaq 0x3f0a(%rip), %rsi      # 0xa139
callq 0x21b0
testl %eax, %eax
je 0x6293
movq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbp, %rsi
callq 0x417e
movq 0x60(%r15), %rax
movq $0x0, (%rax,%r13,8)
movl 0x4(%rsp), %ebp
incl %ebp
jmp 0x6276
movslq %r12d, %r12
leaq (%r12,%r12,4), %rsi
shlq $0x4, %rsi
addq 0x48(%r15), %rsi
movq %r14, %rdi
callq 0x80ca
incl %r12d
incq %rbx
movq 0x30(%r15), %rax
movq 0x38(%r15), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rcx, %rbx
jb 0x61fb
jmp 0x62e7
movq %r14, %r13
leaq 0x28(%rsp), %r14
movq %r14, 0x18(%rsp)
leaq 0x18(%rsp), %rbp
movq %rbp, %rdi
leaq 0x3e38(%rip), %rdx      # 0xa0e7
movq %rdx, %rsi
callq 0x85d2
movq %r13, %rdi
movq %rbp, %rsi
callq 0x20f0
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
movl 0x4(%rsp), %ebp
je 0x62dd
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x8(%rsp), %r14
jmp 0x6258
movq %r15, %rdi
callq 0x8118
movq 0x28(%r15), %r15
movq 0x28(%r14), %r14
testq %r14, %r14
setne %cl
testq %r15, %r15
setne %al
andb %cl, %al
jne 0x6332
testq %r15, %r15
setne %cl
testq %r14, %r14
sete %dl
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
testb %dl, %cl
jne 0x6332
testq %r14, %r14
setne %cl
testq %r15, %r15
sete %dl
andb %cl, %dl
movzbl %dl, %ecx
movl %ecx, (%rsp)
testb %al, %al
movq 0x10(%rsp), %rbx
jne 0x61af
movl (%rsp), %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x636b
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x22d0
nop