// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_main_main
static void mw_mirth_main_main (void) {
	struct std_result_Result_2 v3 = mw_mirth_options_parsezeoptionszx();
	bool branch_Bool_4;
	switch ((v3).tag) {
		case std_result_Result_2_Ok: {
			VAL v5 = mtp_std_result_Result_2_Ok(v3);
			struct mirth_mirth_zaMirth* v6;
			mw_mirth_mirth_zaMirth_Initzx(&v6);
			struct mirth_mirth_zaMirth* v7;
			mw_mirth_main_compilezx(v6, V_mirth_options_Options(v5), &v7);
			INT v8 = v7->mnumzeerrors;
			incref(MKNAT(v8));
			INT v9 = WRAP_I63(0LL);
			INT v10 = v8;
			INT v11 = v9;
			bool v12 = int_lt(v11, v10);
			mw_mirth_mirth_zaMirth_quitzx(v7);
			branch_Bool_4 = v12;
		} break;
		case std_result_Result_2_Err: {
			VAL v13 = mtp_std_result_Result_2_Err(v3);
			STR* v14;
			STRLIT(v14, "", 0);
			VAL v15 = ((TUP*)PTRPTR(value_tup(v13)))->cells[0];
			VAL v16 = ((TUP*)PTRPTR(value_tup(v13)))->cells[1];
			tup_decref_outer(value_tup(v13));
			STR* v17;
			mw_std_str_zaStr_pushzestrzx(value_str(v16), v14, &v17);
			STR* v18;
			mw_argzeparser_types_ArgumentParsingError_emitzj(V_argzeparser_types_ArgumentParsingError(v15), v17, &v18);
			STR* v19;
			STRLIT(v19, "\n", 1);
			STR* v20;
			mw_std_str_zaStr_pushzestrzx(v19, v18, &v20);
			mw_std_prim_zaWorld_traceze(v20);
			bool v21 = true;
			branch_Bool_4 = v21;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	if (branch_Bool_4) {
		INT v22 = WRAP_I63(1LL);
		int64_t v23 = int_to_i64(v22);
		mext_std_prim_zaWorld_rawzeposixzeexitzx(v23);
	} else {
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1b0, %rsp            # imm = 0x1B0
callq 0x5dd0
movl %eax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x1a4(%rbp)
testl %eax, %eax
je 0x5792
jmp 0x564a
movl -0x1a4(%rbp), %eax
subl $0x1, %eax
jne 0x5ae7
jmp 0x565b
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x7bf0
movq %rax, -0x28(%rbp)
movq %rdx, -0x20(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x7ca0
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0x7ee0
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq 0x38ba6d(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x5735
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq 0x38ba48(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x58(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x60(%rbp), %rax
cmpq $0x0, %rax
je 0x5735
movq -0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x38ba1d(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x68(%rbp)
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x5735
movq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x38b9f8(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x78(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x80(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x5737
movq 0x369312(%rip), %rax    # 0x36ea50
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0xae20
andb $0x1, %al
movb %al, -0x99(%rbp)
movq -0x38(%rbp), %rdi
callq 0xae50
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0x11(%rbp)
jmp 0x5b00
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0xb610
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
cmpq $0x0, 0x138dcac(%rip)   # 0x1393460
jne 0x57cd
leaq 0x3567fb(%rip), %rdi    # 0x35bfb8
xorl %eax, %eax
movl %eax, %esi
callq 0xb6c0
movq %rax, 0x138dc93(%rip)   # 0x1393460
jmp 0x57cf
movq 0x138dc8a(%rip), %rax   # 0x1393460
movq %rax, -0xc8(%rbp)
leaq 0x38b974(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x58a4
movq 0x138dc55(%rip), %rax   # 0x1393460
movq %rax, -0xd8(%rbp)
leaq 0x38b93f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd8(%rbp), %rax
cmpq $0x0, %rax
je 0x58a4
movq 0x138dc1e(%rip), %rax   # 0x1393460
movq %rax, -0xe8(%rbp)
leaq 0x38b908(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x58a4
movq 0x138dbed(%rip), %rax   # 0x1393460
movq %rax, -0xf8(%rbp)
leaq 0x38b8d7(%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 0x58a6
movq 0x138dbb3(%rip), %rax   # 0x1393460
movq %rax, -0xb8(%rbp)
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0xb770
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x108(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x100(%rbp)
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0xb770
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
movq 0x18(%rax), %rcx
movq %rcx, -0x118(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0x110(%rbp)
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0xb770
movq %rax, %rdi
callq 0xb7e0
movq -0x118(%rbp), %rdi
movq -0x110(%rbp), %rsi
callq 0xb980
movq %rax, %rdi
movq -0xb8(%rbp), %rsi
leaq -0x120(%rbp), %rdx
callq 0xb940
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0xc0c0
movl %eax, -0x138(%rbp)
movq %rdx, -0x130(%rbp)
movq -0x120(%rbp), %rdx
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
leaq -0x128(%rbp), %rcx
callq 0xb9f0
cmpq $0x0, 0x138dabc(%rip)   # 0x1393468
jne 0x59c6
leaq 0x34f778(%rip), %rdi    # 0x35512d
movl $0x1, %esi
callq 0xb6c0
movq %rax, 0x138daa2(%rip)   # 0x1393468
jmp 0x59c8
movq 0x138da99(%rip), %rax   # 0x1393468
movq %rax, -0x150(%rbp)
leaq 0x38b77b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x5a9d
movq 0x138da64(%rip), %rax   # 0x1393468
movq %rax, -0x160(%rbp)
leaq 0x38b746(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x158(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x160(%rbp), %rax
cmpq $0x0, %rax
je 0x5a9d
movq 0x138da2d(%rip), %rax   # 0x1393468
movq %rax, -0x170(%rbp)
leaq 0x38b70f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x168(%rbp)
movq -0x170(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x5a9d
movq 0x138d9fc(%rip), %rax   # 0x1393468
movq %rax, -0x180(%rbp)
leaq 0x38b6de(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x178(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x180(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x5a9f
movq 0x138d9c2(%rip), %rax   # 0x1393468
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rdi
movq -0x128(%rbp), %rsi
leaq -0x188(%rbp), %rdx
callq 0xb940
movq -0x188(%rbp), %rdi
callq 0xc100
movb $0x1, -0x189(%rbp)
movb -0x189(%rbp), %al
andb $0x1, %al
movb %al, -0x11(%rbp)
jmp 0x5b00
leaq 0x34e393(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
testb $0x1, -0x11(%rbp)
je 0x5b35
movq 0x368f4b(%rip), %rax    # 0x36ea58
movq %rax, -0x198(%rbp)
movq -0x198(%rbp), %rdi
callq 0xc6c0
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rdi
callq 0xc6e0
jmp 0x5b37
jmp 0x5b37
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbp
retq