// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_name_QName_mangledzj
static void mw_mirth_name_QName_mangledzj (struct mirth_mirth_zaMirth* in_zaMirth_1, STR* in_zaStr_2, struct mirth_name_QName* in_QName_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, STR* *out_zaStr_5) {
	struct mirth_name_Namespace v6;
	uint64_t v7;
	INT v8;
	mtp_mirth_name_QName_QName(in_QName_3, &v6, &v7, &v8);
	struct mirth_mirth_zaMirth* v9;
	STR* v10;
	mw_mirth_name_Namespace_mangledzj(in_zaMirth_1, in_zaStr_2, v6, &v9, &v10);
	STR* v11;
	STRLIT(v11, "_", 1);
	STR* v12;
	mw_std_str_zaStr_pushzestrzx(v11, v10, &v12);
	struct mirth_mirth_zaMirth* v13;
	STR* v14;
	mw_mirth_name_Name_mangledzj(v9, v12, v7, &v13, &v14);
	incref(MKINT(v8));
	INT v15 = WRAP_I63(0LL);
	INT v16 = v15;
	bool v17 = int_lt(v16, v8);
	struct mirth_mirth_zaMirth* branch_zaMirth_18;
	STR* branch_zaStr_19;
	if (v17) {
		STR* v20;
		STRLIT(v20, "_", 1);
		STR* v21;
		mw_std_str_zaStr_pushzestrzx(v20, v14, &v21);
		STR* v22 = int_to_str(v8);
		STR* v23;
		mw_std_str_zaStr_pushzestrzx(v22, v21, &v23);
		branch_zaStr_19 = v23;
		branch_zaMirth_18 = v13;
	} else {
		decref(MKINT(v8));
		branch_zaStr_19 = v14;
		branch_zaMirth_18 = v13;
	}
	*out_zaStr_5 = branch_zaStr_19;
	*out_zaMirth_4 = branch_zaMirth_18;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r14
movq %rcx, -0x48(%rbp)
movq %rdx, %rax
movq %rsi, %r12
movq %rdi, %r15
leaq -0x68(%rbp), %r13
leaq -0x58(%rbp), %rdx
leaq -0x50(%rbp), %rcx
movq %rax, %rdi
movq %r13, %rsi
callq 0x17772
movl (%r13), %eax
cmpq $0x4, %rax
ja 0x8c662
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq -0x60(%rbp), %rdi
leaq 0x4756f(%rip), %rcx     # 0xd39bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10816b3(%rip), %rsi   # 0x110db10
testq %rsi, %rsi
jne 0x8c47b
leaq 0x60abb(%rip), %rdi     # 0xecf24
pushq $0x8
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x1081695(%rip)   # 0x110db10
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x8c491
incl (%rax)
movq %r12, %rdi
callq 0xd8b0
movq %rax, %r12
jmp 0x8c543
callq 0x17c77
leaq -0x38(%rbp), %r13
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x17f62
jmp 0x8c4e9
callq 0x17b2e
leaq -0x38(%rbp), %r13
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x13f85
jmp 0x8c4e9
callq 0x17b4b
leaq -0x38(%rbp), %r13
movq %r15, %rdi
movl %eax, %esi
movq %r13, %rcx
callq 0x17ecb
movq (%r13), %rdi
leaq -0x30(%rbp), %r15
leaq -0x40(%rbp), %r13
movq %r12, %rsi
movq %rax, %rdx
movq %r15, %rcx
movq %r13, %r8
callq 0x8c3f2
jmp 0x8c53c
callq 0x17b11
leaq -0x38(%rbp), %r13
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x14712
movq (%r13), %rdi
leaq -0x30(%rbp), %r15
leaq -0x40(%rbp), %r13
movq %r12, %rsi
movq %rax, %rdx
movq %r15, %rcx
movq %r13, %r8
callq 0x8c679
movq (%r13), %r12
movq (%r15), %r15
movq 0x10815b6(%rip), %rsi   # 0x110db00
testq %rsi, %rsi
jne 0x8c568
leaq 0x4ca7a(%rip), %rdi     # 0xd8fd0
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x1081598(%rip)   # 0x110db00
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x8c57e
incl (%rax)
movq %r12, %rdi
callq 0xd8b0
movq -0x58(%rbp), %rdx
leaq -0x38(%rbp), %rcx
leaq -0x30(%rbp), %r8
movq %r15, %rdi
movq %rax, %rsi
callq 0x8c679
movq -0x50(%rbp), %r15
movq %r15, %r12
andq %rbx, %r12
setne %al
testb $0x3, %r15b
sete %r13b
andb %al, %r13b
cmpb $0x1, %r13b
jne 0x8c5bf
incl (%r12)
pushq $0x1
popq %rdi
movq %r15, %rsi
callq 0x89cc
testb %al, %al
je 0x8c627
movq 0x1081533(%rip), %rsi   # 0x110db08
testq %rsi, %rsi
jne 0x8c5f3
leaq 0x4c9ef(%rip), %rdi     # 0xd8fd0
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x1081515(%rip)   # 0x110db08
andq %rsi, %rbx
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x8c606
incl (%rbx)
movq -0x30(%rbp), %rdi
callq 0xd8b0
movq %rax, %r12
movq %r15, %rdi
callq 0xf51c
movq %r12, %rdi
movq %rax, %rsi
callq 0xd8b0
jmp 0x8c645
testb %r13b, %r13b
je 0x8c641
decl (%r12)
jne 0x8c641
leaq 0x7bdf0(%rip), %rsi     # 0x108429
movq %r15, %rdi
callq 0xce94
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rax, (%r14)
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x481a4(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6