// File: /workspace/github_c_makefile_star2_O3/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, %r12
movl %esi, %r15d
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %rdx, %r13
movq %rax, -0x40(%rbp)
andq %rax, %r13
setne %al
testb $0x3, %r12b
sete %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0x134b2
incl (%r13)
leaq -0x48(%rbp), %rcx
movl %r15d, %esi
movq %r12, %rdx
callq 0x147d2
testl %eax, %eax
je 0x13555
cmpl $0x1, %eax
jne 0x137db
movq %rdx, %rdi
callq 0xd745
movq %rax, %r14
testb $0x1, %dl
je 0x13502
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x13502
incl (%rax)
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rdx
movq %r14, %rsi
callq 0x14a15
testb %al, %al
je 0x1380b
movq -0x38(%rbp), %rax
movq %rax, -0x30(%rbp)
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
setne %cl
testb $0x3, %r14b
sete %dl
testb %dl, %cl
je 0x1355d
decl (%rax)
jne 0x1355d
leaq 0xfe1f6(%rip), %rsi     # 0x111741
movq %r14, %rdi
callq 0xd13d
jmp 0x1355d
movq -0x48(%rbp), %rax
movq %rax, -0x30(%rbp)
testb %bl, %bl
je 0x13565
incl (%r13)
movl %r15d, %eax
leaq 0xcaabd(%rip), %rcx     # 0xde02c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r12), %r14
decl (%r12)
jne 0x1358b
movq %r12, %rdi
callq 0x5030
leaq 0x1101976(%rip), %rdi   # 0x1114f08
jmp 0x1374b
movq 0x8(%r12), %r14
decl (%r12)
jne 0x135aa
movq %r12, %rdi
callq 0x5030
leaq 0x11019c7(%rip), %rdi   # 0x1114f78
jmp 0x1374b
movq 0x8(%r12), %r14
decl (%r12)
jne 0x135c9
movq %r12, %rdi
callq 0x5030
leaq 0x1101968(%rip), %rdi   # 0x1114f38
jmp 0x1374b
movq 0x8(%r12), %r14
decl (%r12)
jne 0x135e8
movq %r12, %rdi
callq 0x5030
leaq 0x1101999(%rip), %rdi   # 0x1114f88
jmp 0x1374b
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13607
movq %r12, %rdi
callq 0x5030
leaq 0x110190a(%rip), %rdi   # 0x1114f18
jmp 0x1374b
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13626
movq %r12, %rdi
callq 0x5030
leaq 0x1100eb3(%rip), %rdi   # 0x11144e0
jmp 0x1374b
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13645
movq %r12, %rdi
callq 0x5030
leaq 0x11018dc(%rip), %rdi   # 0x1114f28
jmp 0x1374b
movl 0x4(%r12), %r14d
decl (%r12)
jne 0x13664
movq %r12, %rdi
callq 0x5030
leaq -0x38(%rbp), %rbx
movl %r14d, %edi
movq %rbx, %rsi
callq 0x15bd6
movq %rax, %r14
movq (%rbx), %rdi
movq %rdi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x136a7
decl (%rax)
jne 0x136a7
leaq 0xfdd87(%rip), %rsi     # 0x111429
callq 0xd13d
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12e7f
movq %rax, %r14
movq (%rbx), %rdi
jmp 0x13762
movq 0x8(%r12), %r14
decl (%r12)
jne 0x136d4
movq %r12, %rdi
callq 0x5030
leaq 0x1100e55(%rip), %rdi   # 0x1114530
jmp 0x1374b
movq 0x8(%r12), %r14
decl (%r12)
jne 0x136f0
movq %r12, %rdi
callq 0x5030
leaq 0x1101851(%rip), %rdi   # 0x1114f48
jmp 0x1374b
movq 0x8(%r12), %r14
decl (%r12)
jne 0x1370c
movq %r12, %rdi
callq 0x5030
leaq 0x11014dd(%rip), %rdi   # 0x1114bf0
jmp 0x1374b
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13728
movq %r12, %rdi
callq 0x5030
leaq 0x1101829(%rip), %rdi   # 0x1114f58
jmp 0x1374b
movq 0x8(%r12), %r14
decl (%r12)
jne 0x13744
movq %r12, %rdi
callq 0x5030
leaq 0x110181d(%rip), %rdi   # 0x1114f68
movq %r14, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %r14
movq -0x30(%rbp), %rdi
shlq $0x30, %r15
orq %r12, %r15
leaq 0xfe019(%rip), %r12     # 0x111789
leaq -0x38(%rbp), %r13
movq %r14, %rsi
movq %r13, %rdx
callq 0x14ce9
movq %rdx, %rcx
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0xd1ec
movq %rdx, %r15
movq (%r13), %rbx
leaq 0x11017fb(%rip), %rdi   # 0x1114f98
movq %r14, %rsi
callq 0x13c85
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
addq $0x4, %rdi
orq %r15, %rdi
leaq 0xfdabc(%rip), %rsi     # 0x111279
movq %rax, %rdx
callq 0x14766
movq -0x50(%rbp), %rax
movq %rbx, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xcced9(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xccede(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302
movq 0x1100cee(%rip), %r15   # 0x1114500
testq %r15, %r15
jne 0x13830
xorl %edi, %edi
callq 0xf5e4
movq %rax, %r15
movq $0x0, 0x10(%rax)
movq %rax, 0x1100cd0(%rip)   # 0x1114500
movq %r15, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x13850
incl (%rax)
movq 0x1100cb1(%rip), %rsi   # 0x1114508
testq %rsi, %rsi
jne 0x13887
movl $0x11, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x11, 0x10(%rax)
movups 0xcecb3(%rip), %xmm0    # 0xe252b
movups %xmm0, 0x18(%rax)
movb $0x20, 0x28(%rax)
movq %rax, 0x1100c81(%rip)   # 0x1114508
andq %rsi, -0x40(%rbp)
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x1389f
movq -0x40(%rbp), %rax
incl (%rax)
movq %r15, %rdi
callq 0xe069
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 0x14a8c
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x14cad