// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_elabzematchzeexhaustivezx
static void mw_mirth_elab_elabzematchzeexhaustivezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_match_zaMatch* in_zaMatch_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct mirth_match_zaMatch* *out_zaMatch_4) {
	struct mirth_match_Match* v5 = mw_mirth_match_zaMatch_freezze(in_zaMatch_2);
	incref(MK_mirth_match_Match(v5));
	struct mirth_mirth_zaMirth* v6;
	bool v7 = mw_mirth_match_Match_iszeexhaustivezy(in_zaMirth_1, v5, &v6);
	struct mirth_mirth_zaMirth* branch_zaMirth_8;
	struct mirth_match_Match* branch_Match_9;
	if (v7) {
		branch_Match_9 = v5;
		branch_zaMirth_8 = v6;
	} else {
		incref(MK_mirth_match_Match(v5));
		uint64_t v10 = v5->mtoken;
		decref(MK_mirth_match_Match(v5));
		STR* v11;
		STRLIT(v11, "Pattern match not exhaustive.", 29);
		struct mirth_mirth_zaMirth* v12;
		mw_mirth_mirth_zaMirth_emitzeerrorzx(v6, v10, v11, &v12);
		branch_Match_9 = v5;
		branch_zaMirth_8 = v12;
	}
	struct mirth_match_zaMatch* v13;
	mw_mirth_match_Match_thaw(branch_Match_9, &v13);
	*out_zaMatch_4 = v13;
	*out_zaMirth_3 = branch_zaMirth_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0xf50b0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0x29dac1(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xf4d19
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0x29da9c(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0x40(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x48(%rbp), %rax
cmpq $0x0, %rax
je 0xf4d19
movq -0x28(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x29da71(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xf4d19
movq -0x28(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x29da4c(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xf4d1b
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0x108fb0
andb $0x1, %al
movb %al, -0x71(%rbp)
testb $0x1, -0x71(%rbp)
je 0xf4d4f
movq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0xf5070
jmp 0xf4d51
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x29d9e5(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xf4e1a
movq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x29d9b3(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0xf4e1a
movq -0x28(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x29d97f(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xf4e1a
movq -0x28(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x29d951(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xf4e1c
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xd0(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x29d90b(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xf4f2f
movq -0x28(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq 0x29d8d9(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf0(%rbp), %rax
cmpq $0x0, %rax
je 0xf4f2f
movq -0x28(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq 0x29d8a1(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0xf8(%rbp)
movq -0x100(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xf4f2f
movq -0x28(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x29d873(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x110(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xf4f2d
movq -0x28(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq 0x29d839(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0x127c0
jmp 0xf4f2f
jmp 0xf4f31
jmp 0xf4f33
cmpq $0x0, 0x12a0c5d(%rip)   # 0x1395b98
jne 0xf4f55
leaq 0x264728(%rip), %rdi    # 0x35966c
movl $0x1d, %esi
callq 0xb6c0
movq %rax, 0x12a0c43(%rip)   # 0x1395b98
jmp 0xf4f57
movq 0x12a0c3a(%rip), %rax   # 0x1395b98
movq %rax, -0x138(%rbp)
leaq 0x29c1ec(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xf502c
movq 0x12a0c05(%rip), %rax   # 0x1395b98
movq %rax, -0x148(%rbp)
leaq 0x29c1b7(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x140(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x148(%rbp), %rax
cmpq $0x0, %rax
je 0xf502c
movq 0x12a0bce(%rip), %rax   # 0x1395b98
movq %rax, -0x158(%rbp)
leaq 0x29c180(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x150(%rbp)
movq -0x158(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xf502c
movq 0x12a0b9d(%rip), %rax   # 0x1395b98
movq %rax, -0x168(%rbp)
leaq 0x29c14f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x160(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x168(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xf502e
movq 0x12a0b63(%rip), %rax   # 0x1395b98
movq %rax, -0x128(%rbp)
movq -0x70(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movq -0x128(%rbp), %rdx
leaq -0x170(%rbp), %rcx
callq 0x98c50
movq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x88(%rbp), %rdi
leaq -0x178(%rbp), %rsi
callq 0x1099f0
movq -0x178(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x80(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
nopw %cs:(%rax,%rax)