// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_mirth_zaMirth_errorzelocation
static struct mirth_location_Location* mw_mirth_mirth_zaMirth_errorzelocation (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_mirth_zaMirth* *out_zaMirth_2) {
	struct mirth_mirth_LexicalState* v4 = in_zaMirth_1->mlexicalzestate;
	incref(MK_mirth_mirth_LexicalState(v4));
	struct std_maybe_Maybe_1 v5 = v4->merrorzetoken;
	incref(MK_std_maybe_Maybe_1(v5));
	decref(MK_mirth_mirth_LexicalState(v4));
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	struct mirth_location_Location* branch_Location_7;
	switch ((v5).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v8 = mtp_std_maybe_Maybe_1_Some(v5);
			struct mirth_mirth_zaMirth* v9;
			struct mirth_location_Location* v10 = mw_mirth_token_Token_location(in_zaMirth_1, V_mirth_token_Token(v8), &v9);
			branch_Location_7 = v10;
			branch_zaMirth_6 = v9;
		} break;
		case std_maybe_Maybe_1_None: {
			struct mirth_mirth_zaMirth* v11;
			struct mirth_location_Location* v12 = mw_mirth_mirth_zaMirth_defaultzeerrorzelocation(in_zaMirth_1, &v11);
			branch_Location_7 = v12;
			branch_zaMirth_6 = v11;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_2 = branch_zaMirth_6;
	return branch_Location_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq 0x32fd12(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x61c70
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0x32fced(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x30(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x38(%rbp), %rax
cmpq $0x0, %rax
je 0x61c70
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0x32fcc2(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x48(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x61c70
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x32fc9d(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x61c72
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x68(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x60(%rbp)
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x133a0
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x70(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x61d37
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x133a0
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
cmpq $0x0, %rax
je 0x61d37
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x133a0
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x61d37
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x133a0
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 0x61d39
jmp 0x61d3b
movq -0x18(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x32fba3(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x61e3f
movq -0x18(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x32fb71(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
cmpq $0x0, %rax
je 0x61e3f
movq -0x18(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x32fb39(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movq -0xd8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x61e3f
movq -0x18(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq 0x32fb0b(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x61e3d
movq -0x18(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq 0x32fad1(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0x127c0
jmp 0x61e3f
jmp 0x61e41
movl -0x68(%rbp), %eax
movl %eax, -0x13c(%rbp)
testl %eax, %eax
je 0x61eb7
jmp 0x61e50
movl -0x13c(%rbp), %eax
subl $0x1, %eax
jne 0x61eec
jmp 0x61e61
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x174a0
movq %rax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movq -0x8(%rbp), %rdi
movq -0x118(%rbp), %rsi
leaq -0x120(%rbp), %rdx
callq 0x61160
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0x61f05
movq -0x8(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x61f70
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0x61f05
leaq 0x2f1f8e(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x100(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x108(%rbp), %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopw %cs:(%rax,%rax)