// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_def_Def_register
static void mw_mirth_def_Def_register (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_def_Def in_Def_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	incref(MK_mirth_def_Def(in_Def_2));
	struct mirth_mirth_zaMirth* v4;
	struct std_maybe_Maybe_1 v5 = mw_mirth_def_Def_qnamezesoft(in_zaMirth_1, in_Def_2, &v4);
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	switch ((v5).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v7 = mtp_std_maybe_Maybe_1_Some(v5);
			incref(v7);
			struct mirth_mirth_zaMirth* v8;
			bool v9 = mw_mirth_name_QName_undefinedzesoftzy(v4, V_mirth_name_QName(v7), &v8);
			struct mirth_mirth_zaMirth* branch_zaMirth_10;
			struct mirth_name_QName* branch_QName_11;
			if (v9) {
				branch_QName_11 = V_mirth_name_QName(v7);
				branch_zaMirth_10 = v8;
			} else {
				STR* v12;
				STRLIT(v12, "", 0);
				STR* v13;
				STRLIT(v13, "Already defined: ", 17);
				STR* v14;
				mw_std_str_zaStr_pushzestrzx(v13, v12, &v14);
				struct mirth_mirth_zaMirth* v15;
				STR* v16;
				mw_mirth_name_QName_qnamezj(v8, v14, V_mirth_name_QName(v7), &v15, &v16);
				mw_mirth_mirth_zaMirth_fatalzeerrorzx(v15, v16);
			}
			decref(MK_mirth_name_QName(branch_QName_11));
			branch_zaMirth_6 = branch_zaMirth_10;
		} break;
		case std_maybe_Maybe_1_None: {
			branch_zaMirth_6 = v4;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	incref(MK_mirth_def_Def(in_Def_2));
	struct mirth_mirth_zaMirth* v19;
	uint64_t v20 = mw_mirth_def_Def_name(branch_zaMirth_6, in_Def_2, &v19);
	struct mirth_mirth_zaMirth* v21;
	struct std_list_List_1 v22 = mw_mirth_name_Name_defs(v19, v20, &v21);
	struct std_list_List_1 v23 = mw_std_list_List_1_cons(MK_mirth_def_Def(in_Def_2), v22);
	struct mirth_mirth_zaMirth* v24;
	mw_mirth_name_Name_defszx(v21, v23, v20, &v24);
	*out_zaMirth_3 = v24;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, -0x50(%rbp)
movq %rdx, %r14
movl %esi, %r15d
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq %rdx, %r13
andq %rbx, %r13
setne %al
testb $0x3, %r14b
sete %r12b
andb %al, %r12b
cmpb $0x1, %r12b
jne 0x12840
incl (%r13)
leaq -0x40(%rbp), %rcx
movl %r15d, %esi
movq %r14, %rdx
callq 0x139a1
testl %eax, %eax
je 0x128d7
movq %r14, -0x48(%rbp)
cmpl $0x1, %eax
jne 0x12b35
movq %rdx, %rdi
callq 0xd491
movq %rax, %r14
testb $0x1, %dl
je 0x1288a
movq %r14, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x1288a
incl (%rax)
movq -0x40(%rbp), %rdi
leaq -0x38(%rbp), %rdx
movq %r14, %rsi
callq 0x13b55
testb %al, %al
je 0x12b4c
movq -0x38(%rbp), %rax
movq %rax, -0x30(%rbp)
movq %r14, %rax
andq %rbx, %rax
setne %cl
testb $0x3, %r14b
sete %dl
testb %dl, %cl
je 0x128d1
decl (%rax)
jne 0x128d1
leaq 0xf5e78(%rip), %rsi     # 0x108741
movq %r14, %rdi
callq 0xce94
movq -0x48(%rbp), %r14
jmp 0x128df
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
testb %r12b, %r12b
je 0x128e8
incl (%r13)
movl %r15d, %eax
leaq 0xbf73a(%rip), %rcx     # 0xd202c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0x13ef6
leaq 0x10f95fe(%rip), %rdi   # 0x110bf08
jmp 0x12a82
movq %r14, %rdi
callq 0x14121
leaq -0x38(%rbp), %r12
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x1a10b
jmp 0x12ab9
movq %r14, %rdi
callq 0x140ad
leaq -0x38(%rbp), %r12
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x1a0b9
jmp 0x12ab9
movq %r14, %rdi
callq 0x141c7
leaq -0x38(%rbp), %r12
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x1a134
jmp 0x12ab9
movq %r14, %rdi
callq 0x13fe7
leaq 0x10f959a(%rip), %rdi   # 0x110bf18
jmp 0x12a82
movq %r14, %rdi
callq 0x13f13
leaq -0x38(%rbp), %r12
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x14712
jmp 0x12ab9
movq %r14, %rdi
callq 0x14090
leaq -0x38(%rbp), %r12
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x1a090
jmp 0x12ab9
movq %r14, %r12
movq %r14, %rdi
callq 0x14004
leaq -0x38(%rbp), %r14
movl %eax, %edi
movq %r14, %rsi
callq 0x14e72
movq %rax, %r13
movq (%r14), %rdi
movq %rdi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x12a06
decl (%rax)
jne 0x12a06
leaq 0xf5a28(%rip), %rsi     # 0x108429
callq 0xce94
leaq -0x38(%rbp), %rdx
movq -0x30(%rbp), %rdi
movq %r13, %rsi
movq %rdx, %r13
callq 0x12215
movq %rax, %r14
movq (%r13), %rdi
movq %r12, %rcx
jmp 0x12ac3
movq %r14, %rdi
callq 0x13f68
leaq -0x38(%rbp), %r12
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x14812
jmp 0x12ab9
movq %r14, %rdi
callq 0x140ca
leaq 0x10f94f4(%rip), %rdi   # 0x110bf48
jmp 0x12a82
movq %r14, %rdi
callq 0x1413e
leaq -0x38(%rbp), %r12
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x172df
jmp 0x12ab9
movq %r14, %rdi
callq 0x140e7
leaq 0x10f94d6(%rip), %rdi   # 0x110bf58
movq %rax, %rsi
callq 0x12f88
movq %rax, %rdi
callq 0x1307d
movq %r14, %rcx
movq %rax, %r14
movq -0x30(%rbp), %rdi
jmp 0x12ac3
movq %r14, %rdi
callq 0x14104
leaq -0x38(%rbp), %r12
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x1a0e2
movq %r14, %rcx
movq %rax, %r14
movq (%r12), %rdi
shlq $0x30, %r15
orq %rcx, %r15
leaq 0xf5cb8(%rip), %r12     # 0x108789
leaq -0x38(%rbp), %r13
movq %r14, %rsi
movq %r13, %rdx
callq 0x13e13
movq %rdx, %rcx
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0xcf39
movq %rdx, %r15
movq (%r13), %r12
leaq 0x10f949a(%rip), %rdi   # 0x110bf98
movq %r14, %rsi
callq 0x12f88
addq $0x4, %rbx
orq %r15, %rbx
leaq 0xf5765(%rip), %rsi     # 0x108279
movq %rbx, %rdi
movq %rax, %rdx
callq 0x1393b
movq -0x50(%rbp), %rax
movq %r12, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc1cd1(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6
movq 0x10f89ad(%rip), %r15   # 0x110b500
testq %r15, %r15
jne 0x12b70
leaq 0xc9b96(%rip), %rdi     # 0xdc6f5
xorl %esi, %esi
callq 0x8a21
movq %rax, %r15
movq %rax, 0x10f8990(%rip)   # 0x110b500
movq %r15, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x12b86
incl (%rax)
movq 0x10f897b(%rip), %rsi   # 0x110b508
testq %rsi, %rsi
jne 0x12bab
leaq 0xc3adb(%rip), %rdi     # 0xd6674
pushq $0x11
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x10f895d(%rip)   # 0x110b508
andq %rsi, %rbx
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x12bbe
incl (%rbx)
movq %r15, %rdi
callq 0xd8b0
movq -0x38(%rbp), %rdi
leaq -0x60(%rbp), %rbx
leaq -0x58(%rbp), %r15
movq %rax, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %r15, %r8
callq 0x13bc8
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x13deb