// File: /workspace/github_c_makefile_star2_O1/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, %r13
movq %rdx, %r12
movl %esi, %r15d
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x13851
incl (%rax)
leaq -0x40(%rbp), %rcx
movl %r15d, %esi
movq %r12, %rdx
callq 0x14b21
testl %eax, %eax
je 0x138dc
cmpl $0x1, %eax
jne 0x13b65
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %r14
testb $0x1, %dl
je 0x13893
movq %r14, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x13893
incl (%rax)
movq -0x40(%rbp), %rdi
leaq -0x38(%rbp), %rdx
movq %r14, %rsi
callq 0x14d64
testb %al, %al
je 0x13b95
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 0x138e4
decl (%rax)
jne 0x138e4
leaq 0x101e6f(%rip), %rsi    # 0x115741
movq %r14, %rdi
callq 0xd4e3
jmp 0x138e4
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x138fa
incl (%rax)
movl %r15d, %eax
leaq 0xce724(%rip), %rcx     # 0xe2028
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq %r13, -0x48(%rbp)
jmpq *%rax
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13924
movq %r12, %rdi
callq 0x5030
leaq 0x11055dd(%rip), %rdi   # 0x1118f08
jmp 0x13adc
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13943
movq %r12, %rdi
callq 0x5030
leaq 0x110562e(%rip), %rdi   # 0x1118f78
jmp 0x13adc
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13962
movq %r12, %rdi
callq 0x5030
leaq 0x11055cf(%rip), %rdi   # 0x1118f38
jmp 0x13adc
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13981
movq %r12, %rdi
callq 0x5030
leaq 0x1105600(%rip), %rdi   # 0x1118f88
jmp 0x13adc
movq 0x8(%r12), %r14
decl (%r12)
jne 0x139a0
movq %r12, %rdi
callq 0x5030
leaq 0x1105571(%rip), %rdi   # 0x1118f18
jmp 0x13adc
movq 0x8(%r12), %r14
decl (%r12)
jne 0x139bf
movq %r12, %rdi
callq 0x5030
leaq 0x1104b1a(%rip), %rdi   # 0x11184e0
jmp 0x13adc
movq 0x8(%r12), %r14
decl (%r12)
jne 0x139de
movq %r12, %rdi
callq 0x5030
leaq 0x1105543(%rip), %rdi   # 0x1118f28
jmp 0x13adc
movl 0x4(%r12), %r14d
decl (%r12)
jne 0x139fd
movq %r12, %rdi
callq 0x5030
leaq -0x38(%rbp), %r13
movl %r14d, %edi
movq %r13, %rsi
callq 0x15f0e
movq %rax, %r14
movq (%r13), %rdi
movq %rdi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x13a37
decl (%rax)
jne 0x13a37
leaq 0x1019f7(%rip), %rsi    # 0x115429
callq 0xd4e3
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x13236
movq %rax, %r14
movq (%r13), %rdi
jmp 0x13af3
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13a65
movq %r12, %rdi
callq 0x5030
leaq 0x1104ac4(%rip), %rdi   # 0x1118530
jmp 0x13adc
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13a81
movq %r12, %rdi
callq 0x5030
leaq 0x11054c0(%rip), %rdi   # 0x1118f48
jmp 0x13adc
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13a9d
movq %r12, %rdi
callq 0x5030
leaq 0x110514c(%rip), %rdi   # 0x1118bf0
jmp 0x13adc
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13ab9
movq %r12, %rdi
callq 0x5030
leaq 0x1105498(%rip), %rdi   # 0x1118f58
jmp 0x13adc
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13ad5
movq %r12, %rdi
callq 0x5030
leaq 0x110548c(%rip), %rdi   # 0x1118f68
movq %r14, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
movq %rax, %r14
movq -0x30(%rbp), %rdi
shlq $0x30, %r15
orq %r12, %r15
leaq 0x101c88(%rip), %r12    # 0x115789
leaq -0x38(%rbp), %r13
movq %r14, %rsi
movq %r13, %rdx
callq 0x1503c
movq %rdx, %rcx
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0xd592
movq %rdx, %r15
movq (%r13), %r12
leaq 0x110546a(%rip), %rdi   # 0x1118f98
movq %r14, %rsi
callq 0x13ff0
addq $0x4, %rbx
orq %r15, %rbx
leaq 0x101735(%rip), %rsi    # 0x115279
movq %rbx, %rdi
movq %rax, %rdx
callq 0x14ab5
movq -0x48(%rbp), %rax
movq %r12, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xd0bcf(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xd0bd4(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5
cmpq $0x0, 0x1104963(%rip)   # 0x1118500
jne 0x13bb5
xorl %edi, %edi
callq 0xf9f7
movq $0x0, 0x10(%rax)
movq %rax, 0x110494b(%rip)   # 0x1118500
movq 0x1104944(%rip), %r15   # 0x1118500
movq %r15, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x13bd2
incl (%rax)
cmpq $0x0, 0x110492e(%rip)   # 0x1118508
jne 0x13c04
movl $0x11, %edi
callq 0xf9f7
movq $0x11, 0x10(%rax)
movups 0xd2a35(%rip), %xmm0    # 0xe662a
movups %xmm0, 0x18(%rax)
movb $0x20, 0x28(%rax)
movq %rax, 0x1104904(%rip)   # 0x1118508
movq 0x11048fd(%rip), %rsi   # 0x1118508
andq %rsi, %rbx
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x13c1e
incl (%rbx)
movq %r15, %rdi
callq 0xe43c
movq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rbx
leaq -0x50(%rbp), %r15
movq %rax, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %r15, %r8
callq 0x14ddb
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x15000