// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Stack_popzevaluezelabelzy
static uint64_t mw_mirth_c99_zaC99Stack_popzevaluezelabelzy (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Stack in_zaC99Stack_2, uint64_t in_Label_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Stack *out_zaC99Stack_5, struct std_maybe_zaMaybe_1 *out_zaMaybe_7) {
	struct mirth_mirth_zaMirth* branch_zaMirth_8;
	struct mirth_c99_zaC99Stack branch_zaC99Stack_9;
	uint64_t branch_Label_10;
	struct std_maybe_zaMaybe_1 branch_zaMaybe_11;
	switch ((in_zaC99Stack_2).tag) {
		case mirth_c99_zaC99Stack_zaNil: {
			struct std_maybe_zaMaybe_1 v12 = { .tag=std_maybe_zaMaybe_1_zaNone };
			struct mirth_c99_zaC99Stack v13 = { .tag=mirth_c99_zaC99Stack_zaNil };
			branch_zaMaybe_11 = v12;
			branch_Label_10 = in_Label_3;
			branch_zaC99Stack_9 = v13;
			branch_zaMirth_8 = in_zaMirth_1;
		} break;
		case mirth_c99_zaC99Stack_zaCons: {
			struct mirth_c99_zaC99Stack v14;
			struct mirth_c99_zaC99Value* v15;
			mtp_mirth_c99_zaC99Stack_zaCons(in_zaC99Stack_2, &v14, &v15);
			struct mirth_mirth_zaMirth* v16;
			struct mirth_c99_zaC99Stack v17;
			struct std_maybe_zaMaybe_1 v18;
			uint64_t v19 = mw_mirth_c99_zaC99Stack_popzevaluezelabelzy(in_zaMirth_1, v14, in_Label_3, &v16, &v17, &v18);
			struct mirth_c99_zaC99Stack v20;
			mtw_mirth_c99_zaC99Stack_zaCons(v17, v15, &v20);
			branch_zaMaybe_11 = v18;
			branch_Label_10 = v19;
			branch_zaC99Stack_9 = v20;
			branch_zaMirth_8 = v16;
		} break;
		case mirth_c99_zaC99Stack_zaWith: {
			struct mirth_c99_zaC99Stack v21;
			struct mirth_c99_zaC99Resource* v22;
			mtp_mirth_c99_zaC99Stack_zaWith(in_zaC99Stack_2, &v21, &v22);
			struct mirth_mirth_zaMirth* v23;
			struct mirth_c99_zaC99Stack v24;
			struct std_maybe_zaMaybe_1 v25;
			uint64_t v26 = mw_mirth_c99_zaC99Stack_popzevaluezelabelzy(in_zaMirth_1, v21, in_Label_3, &v23, &v24, &v25);
			struct mirth_c99_zaC99Stack v27;
			mtw_mirth_c99_zaC99Stack_zaWith(v24, v22, &v27);
			branch_zaMaybe_11 = v25;
			branch_Label_10 = v26;
			branch_zaC99Stack_9 = v27;
			branch_zaMirth_8 = v23;
		} break;
		case mirth_c99_zaC99Stack_zaWithLabel: {
			struct mirth_c99_zaC99Stack v28;
			struct mirth_c99_zaC99Resource* v29;
			uint64_t v30 = mtp_mirth_c99_zaC99Stack_zaWithLabel(in_zaC99Stack_2, &v28, &v29);
			struct mirth_mirth_zaMirth* v31;
			struct mirth_c99_zaC99Stack v32;
			struct std_maybe_zaMaybe_1 v33;
			uint64_t v34 = mw_mirth_c99_zaC99Stack_popzevaluezelabelzy(in_zaMirth_1, v28, in_Label_3, &v31, &v32, &v33);
			struct mirth_c99_zaC99Stack v35;
			mtw_mirth_c99_zaC99Stack_zaWithLabel(v32, v29, v30, &v35);
			branch_zaMaybe_11 = v33;
			branch_Label_10 = v34;
			branch_zaC99Stack_9 = v35;
			branch_zaMirth_8 = v31;
		} break;
		case mirth_c99_zaC99Stack_zaConsLabel: {
			struct mirth_c99_zaC99Stack v36;
			struct mirth_c99_zaC99Value* v37;
			uint64_t v38 = mtp_mirth_c99_zaC99Stack_zaConsLabel(in_zaC99Stack_2, &v36, &v37);
			uint64_t v39 = v38;
			uint64_t v40 = in_Label_3;
			bool v41 = (v39 == v40);
			struct mirth_mirth_zaMirth* branch_zaMirth_42;
			struct mirth_c99_zaC99Stack branch_zaC99Stack_43;
			uint64_t branch_Label_44;
			struct std_maybe_zaMaybe_1 branch_zaMaybe_45;
			if (v41) {
				struct std_maybe_zaMaybe_1 v46;
				mtw_std_maybe_zaMaybe_1_zaSome(MK_mirth_c99_zaC99Value(v37), &v46);
				branch_zaMaybe_45 = v46;
				branch_Label_44 = in_Label_3;
				branch_zaC99Stack_43 = v36;
				branch_zaMirth_42 = in_zaMirth_1;
			} else {
				struct mirth_mirth_zaMirth* v47;
				struct mirth_c99_zaC99Stack v48;
				struct std_maybe_zaMaybe_1 v49;
				uint64_t v50 = mw_mirth_c99_zaC99Stack_popzevaluezelabelzy(in_zaMirth_1, v36, in_Label_3, &v47, &v48, &v49);
				struct mirth_c99_zaC99Stack v51;
				mtw_mirth_c99_zaC99Stack_zaConsLabel(v48, v37, v38, &v51);
				branch_zaMaybe_45 = v49;
				branch_Label_44 = v50;
				branch_zaC99Stack_43 = v51;
				branch_zaMirth_42 = v47;
			}
			branch_zaMaybe_11 = branch_zaMaybe_45;
			branch_Label_10 = branch_Label_44;
			branch_zaC99Stack_9 = branch_zaC99Stack_43;
			branch_zaMirth_8 = branch_zaMirth_42;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMaybe_7 = branch_zaMaybe_11;
	*out_zaC99Stack_5 = branch_zaC99Stack_9;
	*out_zaMirth_4 = branch_zaMirth_8;
	return branch_Label_10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
cmpl $0x4, %esi
ja 0xb3c3c
movq %r9, %r14
movq %rdi, %r12
movq 0x10(%rbp), %rdi
movl %esi, %eax
leaq 0x304e4(%rip), %rsi     # 0xe3ec4
movslq (%rsi,%rax,4), %rax
addq %rsi, %rax
jmpq *%rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
xorl %r13d, %r13d
xorl %r15d, %r15d
xorl %ebx, %ebx
jmp 0xb3c15
movl (%rdx), %eax
movl %eax, -0x48(%rbp)
movq 0x8(%rdx), %r13
movq 0x10(%rdx), %rax
movq %rax, -0x38(%rbp)
movq 0x18(%rdx), %rax
movq %rax, -0x30(%rbp)
movq %rdx, %rdi
movq %r8, -0x40(%rbp)
movq %rcx, %r15
callq 0x5030
leaq -0x60(%rbp), %rax
movq %rax, (%rsp)
leaq -0x50(%rbp), %r8
leaq -0x88(%rbp), %rbx
movq %r12, %rdi
movl -0x48(%rbp), %esi
movq %r13, %rdx
movq %r15, %rcx
movq %r8, %r12
movq %rbx, %r9
callq 0xb39b3
movq %rax, %r15
movl (%rbx), %edi
movq 0x8(%rbx), %rsi
leaq -0x78(%rbp), %rbx
movq -0x38(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq %rbx, %r8
callq 0xb15fa
jmp 0xb3b95
movl (%rdx), %eax
movl %eax, -0x30(%rbp)
movq 0x8(%rdx), %r13
movq 0x10(%rdx), %rax
movq %rax, -0x38(%rbp)
movq %rdx, %rdi
movq %r8, -0x40(%rbp)
movq %rcx, %r15
callq 0x5030
leaq -0x60(%rbp), %rax
movq %rax, (%rsp)
leaq -0x50(%rbp), %r8
leaq -0x88(%rbp), %rbx
movq %r12, %rdi
movl -0x30(%rbp), %esi
movq %r13, %rdx
movq %r15, %rcx
movq %r8, %r12
movq %rbx, %r9
callq 0xb39b3
movq %rax, %r15
movl (%rbx), %edi
movq 0x8(%rbx), %rsi
leaq -0x78(%rbp), %rbx
movq -0x38(%rbp), %rdx
movq %rbx, %rcx
callq 0xb158c
jmp 0xb3b95
movq %r14, -0x48(%rbp)
movq %r8, -0x40(%rbp)
movl (%rdx), %r13d
movl 0x4(%rdx), %r15d
movq 0x8(%rdx), %rbx
movq 0x10(%rdx), %rax
movq %rax, -0x30(%rbp)
movq 0x18(%rdx), %r14
movq %rdx, %rdi
movq %rcx, -0x38(%rbp)
callq 0x5030
movq -0x38(%rbp), %rcx
movq %r14, -0x68(%rbp)
cmpq %rcx, %r14
jne 0xb3bb1
leaq 0x63694(%rip), %rsi     # 0x1171b0
leaq -0x60(%rbp), %rdx
movq -0x30(%rbp), %rdi
callq 0x7afd9
movq -0x38(%rbp), %rcx
jmp 0xb3c09
movl (%rdx), %eax
movl %eax, -0x30(%rbp)
movq 0x8(%rdx), %r13
movq 0x10(%rdx), %rax
movq %rax, -0x38(%rbp)
movq %rdx, %rdi
movq %r8, -0x40(%rbp)
movq %rcx, %r15
callq 0x5030
leaq -0x60(%rbp), %rax
movq %rax, (%rsp)
leaq -0x50(%rbp), %r8
leaq -0x88(%rbp), %rbx
movq %r12, %rdi
movl -0x30(%rbp), %esi
movq %r13, %rdx
movq %r15, %rcx
movq %r8, %r12
movq %rbx, %r9
callq 0xb39b3
movq %rax, %r15
movl (%rbx), %edi
movq 0x8(%rbx), %rsi
leaq -0x78(%rbp), %rbx
movq -0x38(%rbp), %rdx
movq %rbx, %rcx
callq 0xb1439
movq %r15, %rcx
movq 0x10(%rbp), %rdi
movq -0x40(%rbp), %r8
movl (%rbx), %r13d
movl 0x4(%rbx), %r15d
movq 0x8(%rbx), %rbx
movq (%r12), %r12
jmp 0xb3c15
leaq -0x60(%rbp), %rax
movq %rax, (%rsp)
leaq -0x50(%rbp), %r14
leaq -0x88(%rbp), %rax
movq %r12, %rdi
movl %r13d, %esi
movq %rbx, %rdx
movq %r14, %r8
movq %rax, %rbx
movq %rax, %r9
callq 0xb39b3
movq %rax, %r15
movl (%rbx), %edi
movq 0x8(%rbx), %rsi
leaq -0x78(%rbp), %rbx
movq -0x30(%rbp), %rdx
movq -0x68(%rbp), %rcx
movq %rbx, %r8
callq 0xb14a7
movq %r15, %rcx
movl (%rbx), %r13d
movl 0x4(%rbx), %r15d
movq 0x8(%rbx), %rbx
movq (%r14), %r12
movq -0x40(%rbp), %r8
movq 0x10(%rbp), %rdi
movq -0x48(%rbp), %r14
movaps -0x60(%rbp), %xmm0
movups %xmm0, (%rdi)
movl %r13d, (%r14)
movl %r15d, 0x4(%r14)
movq %rbx, 0x8(%r14)
movq %r12, (%r8)
movq %rcx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x30af8(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x30afd(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5