// File: /workspace/github_c_makefile_star2_O0/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
subq $0x240, %rsp            # imm = 0x240
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x28(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3f3af
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x40(%rbp), %rax
cmpq $0x0, %rax
je 0x3f3af
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x50(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3f3af
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x60(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x3f3b1
movq -0x18(%rbp), %rdi
movl -0x10(%rbp), %esi
movq -0x8(%rbp), %rdx
leaq -0x68(%rbp), %rcx
callq 0x43f00
movl %eax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movl -0x78(%rbp), %eax
movl %eax, -0x23c(%rbp)
testl %eax, %eax
je 0x3f834
jmp 0x3f3df
movl -0x23c(%rbp), %eax
subl $0x1, %eax
jne 0x3f83e
jmp 0x3f3f0
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x174a0
movq %rax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movq -0x88(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3f45b
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x90(%rbp), %rax
cmpq $0x0, %rax
je 0x3f45b
movq -0x90(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3f45b
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x90(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x3f45d
movq -0x68(%rbp), %rdi
movq -0x90(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0x444e0
andb $0x1, %al
movb %al, -0x99(%rbp)
testb $0x1, -0x99(%rbp)
je 0x3f4a6
movq -0x90(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x3f710
jmp 0x3f4a8
cmpq $0x0, 0x1355190(%rip)   # 0x1394640
jne 0x3f4c9
leaq 0x31caff(%rip), %rdi    # 0x35bfb8
xorl %eax, %eax
movl %eax, %esi
callq 0xb6c0
movq %rax, 0x1355177(%rip)   # 0x1394640
jmp 0x3f4cb
movq 0x135516e(%rip), %rax   # 0x1394640
movq %rax, -0xc8(%rbp)
leaq 0x351c78(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3f5a0
movq 0x1355139(%rip), %rax   # 0x1394640
movq %rax, -0xd8(%rbp)
leaq 0x351c43(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd8(%rbp), %rax
cmpq $0x0, %rax
je 0x3f5a0
movq 0x1355102(%rip), %rax   # 0x1394640
movq %rax, -0xe8(%rbp)
leaq 0x351c0c(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3f5a0
movq 0x13550d1(%rip), %rax   # 0x1394640
movq %rax, -0xf8(%rbp)
leaq 0x351bdb(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x3f5a2
movq 0x1355097(%rip), %rax   # 0x1394640
movq %rax, -0xb8(%rbp)
jmp 0x3f5b2
cmpq $0x0, 0x135508e(%rip)   # 0x1394648
jne 0x3f5d4
leaq 0x316938(%rip), %rdi    # 0x355efb
movl $0x11, %esi
callq 0xb6c0
movq %rax, 0x1355074(%rip)   # 0x1394648
jmp 0x3f5d6
movq 0x135506b(%rip), %rax   # 0x1394648
movq %rax, -0x110(%rbp)
leaq 0x351b6d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3f6ab
movq 0x1355036(%rip), %rax   # 0x1394648
movq %rax, -0x120(%rbp)
leaq 0x351b38(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
cmpq $0x0, %rax
je 0x3f6ab
movq 0x1354fff(%rip), %rax   # 0x1394648
movq %rax, -0x130(%rbp)
leaq 0x351b01(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x128(%rbp)
movq -0x130(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3f6ab
movq 0x1354fce(%rip), %rax   # 0x1394648
movq %rax, -0x140(%rbp)
leaq 0x351ad0(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x138(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x3f6ad
movq 0x1354f94(%rip), %rax   # 0x1394648
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rdi
movq -0xb8(%rbp), %rsi
leaq -0x148(%rbp), %rdx
callq 0xb940
movq -0x98(%rbp), %rdi
movq -0x148(%rbp), %rsi
movq -0x90(%rbp), %rdx
leaq -0x150(%rbp), %rcx
leaq -0x158(%rbp), %r8
callq 0x44650
movq -0x150(%rbp), %rdi
movq -0x158(%rbp), %rsi
callq 0x44a80
jmp 0x3f712
movq -0xb0(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq 0x3520a9(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3f825
movq -0xb0(%rbp), %rax
movq %rax, -0x178(%rbp)
leaq 0x352074(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x170(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x178(%rbp), %rax
cmpq $0x0, %rax
je 0x3f825
movq -0xb0(%rbp), %rax
movq %rax, -0x188(%rbp)
leaq 0x352039(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x180(%rbp)
movq -0x188(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3f825
movq -0xb0(%rbp), %rax
movq %rax, -0x198(%rbp)
leaq 0x352008(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x190(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x198(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x3f823
movq -0xb0(%rbp), %rax
movq %rax, -0x1a8(%rbp)
leaq 0x351fcb(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a8(%rbp), %rdi
movq -0x1a0(%rbp), %rsi
callq 0x127c0
jmp 0x3f825
jmp 0x3f827
movq -0xa8(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x3f857
movq -0x68(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x3f857
leaq 0x31463c(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
jmp 0x3f859
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x1b8(%rbp)
movq %rdx, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3f916
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x1c8(%rbp)
movq %rdx, -0x1c0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1c8(%rbp), %rax
cmpq $0x0, %rax
je 0x3f916
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movq -0x1d8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3f916
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1e8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x3f918
movq -0x80(%rbp), %rdi
movl -0x10(%rbp), %esi
movq -0x8(%rbp), %rdx
leaq -0x1f0(%rbp), %rcx
callq 0x44ac0
movq %rax, -0x1f8(%rbp)
movq -0x1f0(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
leaq -0x200(%rbp), %rdx
callq 0x44ed0
movl %eax, -0x210(%rbp)
movq %rdx, -0x208(%rbp)
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x230(%rbp)
movq %rdx, -0x228(%rbp)
movq -0x230(%rbp), %rdi
movq -0x228(%rbp), %rsi
movl -0x210(%rbp), %edx
movq -0x208(%rbp), %rcx
callq 0x12740
movl %eax, -0x220(%rbp)
movq %rdx, -0x218(%rbp)
movq -0x200(%rbp), %rdi
movq -0x1f8(%rbp), %rcx
movl -0x220(%rbp), %esi
movq -0x218(%rbp), %rdx
leaq -0x238(%rbp), %r8
callq 0x45080
movq -0x238(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
addq $0x240, %rsp            # imm = 0x240
popq %rbp
retq
nopw %cs:(%rax,%rax)