// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_c99zeendzx
static void mw_mirth_c99_c99zeendzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99* in_zaC99_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_c99_C99zuOptions* v6;
	INT v7;
	INT v8;
	bool v9;
	struct mirth_need_zaNeeds* v10;
	struct std_output_zaOutput* v11;
	mtp_mirth_c99_zaC99_zaC99(in_zaC99_2, &v6, &v7, &v8, &v9, &v10, &v11);
	struct std_file_zaFile* v12;
	mw_std_output_zaOutput_endzx(v11, &v12);
	struct std_maybe_Maybe_1 v13 = mw_std_file_zaFile_closezefilezx(v12);
	struct mirth_mirth_zaMirth* branch_zaMirth_14;
	switch ((v13).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v15 = mtp_std_maybe_Maybe_1_Some(v13);
			mw_mirth_mirth_zaMirth_iozeerrorzx(V_std_file_IOError(v15), in_zaMirth_1);
		} break;
		case std_maybe_Maybe_1_None: {
			branch_zaMirth_14 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	decref(MK_mirth_c99_C99zuOptions(v6));
	decref(MKNAT(v7));
	decref(MKNAT(v8));
	mw_mirth_need_zaNeeds_rdrop(v10);
	*out_zaMirth_3 = branch_zaMirth_14;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rsp, %rax
leaq -0x48(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x20(%rbp), %rsi
leaq -0x28(%rbp), %rdx
leaq -0x30(%rbp), %rcx
leaq -0x31(%rbp), %r8
leaq -0x40(%rbp), %r9
callq 0x34f920
movq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x34f9b0
movq -0x50(%rbp), %rdi
callq 0x1b0d50
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x17c(%rbp)
testl %eax, %eax
je 0x217757
jmp 0x21770a
movl -0x17c(%rbp), %eax
subl $0x1, %eax
jne 0x217761
jmp 0x217717
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x174a0
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x1b0cb0
movl %eax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x8(%rbp), %rdx
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x1b0c70
jmp 0x21777a
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x21777a
leaq 0x13c719(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
jmp 0x21777c
movq -0x20(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x17b6c2(%rip), %rax    # 0x392e50
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x217880
movq -0x20(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x17b690(%rip), %rax    # 0x392e50
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0x217880
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x17b658(%rip), %rax    # 0x392e50
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x217880
movq -0x20(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x17b62a(%rip), %rax    # 0x392e50
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x21787e
movq -0x20(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x17b5f0(%rip), %rax    # 0x392e50
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
callq 0x127c0
jmp 0x217880
jmp 0x217882
jmp 0x217884
movq -0x28(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq 0x17987a(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x217988
movq -0x28(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq 0x179848(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf8(%rbp), %rax
cmpq $0x0, %rax
je 0x217988
movq -0x28(%rbp), %rax
movq %rax, -0x108(%rbp)
leaq 0x179810(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x100(%rbp)
movq -0x108(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x217988
movq -0x28(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq 0x1797e2(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x110(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x118(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x217986
movq -0x28(%rbp), %rax
movq %rax, -0x128(%rbp)
leaq 0x1797a8(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x120(%rbp)
movq -0x128(%rbp), %rdi
movq -0x120(%rbp), %rsi
callq 0x127c0
jmp 0x217988
jmp 0x21798a
jmp 0x21798c
movq -0x30(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq 0x179772(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x217a90
movq -0x30(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq 0x179740(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x140(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x148(%rbp), %rax
cmpq $0x0, %rax
je 0x217a90
movq -0x30(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq 0x179708(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x150(%rbp)
movq -0x158(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x217a90
movq -0x30(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq 0x1796da(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x160(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x168(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x217a8e
movq -0x30(%rbp), %rax
movq %rax, -0x178(%rbp)
leaq 0x1796a0(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x170(%rbp)
movq -0x178(%rbp), %rdi
movq -0x170(%rbp), %rsi
callq 0x127c0
jmp 0x217a90
jmp 0x217a92
movq -0x40(%rbp), %rdi
callq 0x34fae0
movq -0x68(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
nop