// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_def_Def_resolve
static struct mirth_def_Def mw_mirth_def_Def_resolve (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_def_Def in_Def_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	bool v5 = true;
	struct mirth_mirth_zaMirth* r6 = in_zaMirth_1;
	struct mirth_def_Def v7 = in_Def_2;
	bool v8 = v5;
	bool v9 = v5;
	while (v9) {
		struct mirth_mirth_zaMirth* r10 = r6;
		struct mirth_def_Def v11 = v7;
		bool v12 = v8;
		incref(MK_mirth_def_Def(v11));
		struct std_maybe_Maybe_1 v13 = mw_mirth_def_Def_aliaszy(v11);
		struct mirth_mirth_zaMirth* branch_zaMirth_14;
		struct std_maybe_Maybe_1 branch_Maybe_15;
		switch ((v13).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v16 = mtp_std_maybe_Maybe_1_Some(v13);
				void* v17 = field_mut(&mfld_mirth_alias_Alias_zttarget, V_mirth_alias_Alias(v16));
				struct mirth_mirth_zaMirth* v18;
				struct std_maybe_Maybe_1 v19 = mw_mirth_mirth_Prop_1_tryzeforcezx(r10, v17, &v18);
				branch_Maybe_15 = v19;
				branch_zaMirth_14 = v18;
			} break;
			case std_maybe_Maybe_1_None: {
				struct std_maybe_Maybe_1 v20 = { .tag=std_maybe_Maybe_1_None };
				branch_Maybe_15 = v20;
				branch_zaMirth_14 = r10;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		VAL branch_zux1_21;
		bool branch_Bool_22;
		switch ((branch_Maybe_15).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v23 = mtp_std_maybe_Maybe_1_Some(branch_Maybe_15);
				decref(MK_mirth_def_Def(v11));
				bool v24 = true;
				branch_Bool_22 = v24;
				branch_zux1_21 = v23;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v25 = false;
				branch_Bool_22 = v25;
				branch_zux1_21 = MK_mirth_def_Def(v11);
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v9 = branch_Bool_22;
		v8 = branch_Bool_22;
		v7 = V_mirth_def_Def(branch_zux1_21);
		r6 = branch_zaMirth_14;
	}
	*out_zaMirth_3 = r6;
	return v7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1c0, %rsp            # imm = 0x1C0
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movb $0x1, -0x31(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x42(%rbp)
testb $0x1, -0x42(%rbp)
je 0x99535
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
movb -0x41(%rbp), %al
andb $0x1, %al
movb %al, -0x61(%rbp)
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x70(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x991e1
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
cmpq $0x0, %rax
je 0x991e1
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x991e1
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x43ec0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x991e3
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x9c420
movl %eax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movl -0xb8(%rbp), %eax
movl %eax, -0x1b4(%rbp)
testl %eax, %eax
je 0x992ad
jmp 0x99212
movl -0x1b4(%rbp), %eax
subl $0x1, %eax
jne 0x992e9
jmp 0x99223
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x174a0
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0xe0(%rbp), %rsi
leaq 0x12fc307(%rip), %rdi   # 0x1395558
callq 0x40d30
movq %rax, -0xe8(%rbp)
movq -0x50(%rbp), %rdi
movq -0xe8(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0x472c0
movl %eax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xc0(%rbp)
jmp 0x99302
leaq -0x110(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x110(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0xc0(%rbp)
jmp 0x99302
leaq 0x2bab91(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movl -0xd0(%rbp), %eax
movl %eax, -0x1b8(%rbp)
testl %eax, %eax
je 0x99473
jmp 0x99318
movl -0x1b8(%rbp), %eax
subl $0x1, %eax
jne 0x994c0
jmp 0x99329
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x174a0
movq %rax, -0x138(%rbp)
movq %rdx, -0x130(%rbp)
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movq -0x140(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x9943e
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x158(%rbp)
movq %rdx, -0x150(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
cmpq $0x0, %rax
je 0x9943e
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movq -0x168(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x9943e
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x178(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x9943c
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x188(%rbp)
movq %rdx, -0x180(%rbp)
movq -0x188(%rbp), %rdi
movq -0x180(%rbp), %rsi
callq 0x127c0
jmp 0x9943e
jmp 0x99440
movb $0x1, -0x189(%rbp)
movb -0x189(%rbp), %al
andb $0x1, %al
movb %al, -0x121(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x118(%rbp)
jmp 0x994d9
movb $0x0, -0x18a(%rbp)
movb -0x18a(%rbp), %al
andb $0x1, %al
movb %al, -0x121(%rbp)
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x118(%rbp)
jmp 0x994d9
leaq 0x2ba9ba(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x121(%rbp), %al
andb $0x1, %al
movb %al, -0x42(%rbp)
movb -0x121(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0x452c0
movl %eax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x99106
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbp
retq