// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_popzestackzepartzx
static void mw_mirth_c99_popzestackzepartzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_type_StackTypePart in_StackTypePart_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5, struct std_either_zaEither_2 *out_zaC99ValuezfResource_6) {
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_8;
	struct std_either_zaEither_2 branch_zaC99ValuezfResource_9;
	switch ((in_StackTypePart_3).tag) {
		case mirth_type_StackTypePart_ConsLabel: {
			uint64_t v10;
			struct mirth_type_Type v11 = mtp_mirth_type_StackTypePart_ConsLabel(in_StackTypePart_3, &v10);
			struct mirth_mirth_zaMirth* v12;
			struct mirth_c99_zaC99Branch* v13;
			struct mirth_c99_C99ReprType v14 = mw_mirth_c99_zaC99Branch_typezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v11, &v12, &v13);
			struct mirth_mirth_zaMirth* v15;
			struct mirth_c99_zaC99Branch* v16;
			struct mirth_c99_zaC99Value* v17;
			mw_mirth_c99_zaC99Branch_popzevaluezelabelzx(v12, v13, v14, v10, &v15, &v16, &v17);
			struct std_either_zaEither_2 v18;
			mw_mirth_c99_zaC99ValuezfResource_zaLeft(v17, &v18);
			branch_zaC99ValuezfResource_9 = v18;
			branch_zaC99Branch_8 = v16;
			branch_zaMirth_7 = v15;
		} break;
		case mirth_type_StackTypePart_WithLabel: {
			uint64_t v19;
			struct mirth_type_Type v20 = mtp_mirth_type_StackTypePart_WithLabel(in_StackTypePart_3, &v19);
			struct mirth_mirth_zaMirth* v21;
			struct mirth_c99_zaC99Branch* v22;
			struct mirth_c99_C99ReprType v23 = mw_mirth_c99_zaC99Branch_resourcezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v20, &v21, &v22);
			struct mirth_mirth_zaMirth* v24;
			struct mirth_c99_zaC99Branch* v25;
			struct mirth_c99_zaC99Resource* v26;
			mw_mirth_c99_zaC99Branch_popzeresourcezelabelzx(v21, v22, v23, v19, &v24, &v25, &v26);
			struct std_either_zaEither_2 v27;
			mw_mirth_c99_zaC99ValuezfResource_zaRight(v26, &v27);
			branch_zaC99ValuezfResource_9 = v27;
			branch_zaC99Branch_8 = v25;
			branch_zaMirth_7 = v24;
		} break;
		case mirth_type_StackTypePart_Cons: {
			struct mirth_type_Type v28 = mtp_mirth_type_StackTypePart_Cons(in_StackTypePart_3);
			struct mirth_mirth_zaMirth* v29;
			struct mirth_c99_zaC99Branch* v30;
			struct mirth_c99_C99ReprType v31 = mw_mirth_c99_zaC99Branch_typezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v28, &v29, &v30);
			struct mirth_mirth_zaMirth* v32;
			struct mirth_c99_zaC99Branch* v33;
			struct mirth_c99_zaC99Value* v34;
			mw_mirth_c99_zaC99Branch_popzevaluezx(v29, v30, v31, &v32, &v33, &v34);
			struct std_either_zaEither_2 v35;
			mw_mirth_c99_zaC99ValuezfResource_zaLeft(v34, &v35);
			branch_zaC99ValuezfResource_9 = v35;
			branch_zaC99Branch_8 = v33;
			branch_zaMirth_7 = v32;
		} break;
		case mirth_type_StackTypePart_With: {
			struct mirth_type_Type v36 = mtp_mirth_type_StackTypePart_With(in_StackTypePart_3);
			struct mirth_mirth_zaMirth* v37;
			struct mirth_c99_zaC99Branch* v38;
			struct mirth_c99_C99ReprType v39 = mw_mirth_c99_zaC99Branch_resourcezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v36, &v37, &v38);
			struct mirth_mirth_zaMirth* v40;
			struct mirth_c99_zaC99Branch* v41;
			struct mirth_c99_zaC99Resource* v42;
			mw_mirth_c99_zaC99Branch_popzeresourcezx(v37, v38, v39, &v40, &v41, &v42);
			struct std_either_zaEither_2 v43;
			mw_mirth_c99_zaC99ValuezfResource_zaRight(v42, &v43);
			branch_zaC99ValuezfResource_9 = v43;
			branch_zaC99Branch_8 = v41;
			branch_zaMirth_7 = v40;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99ValuezfResource_6 = branch_zaC99ValuezfResource_9;
	*out_zaC99Branch_5 = branch_zaC99Branch_8;
	*out_zaMirth_4 = branch_zaMirth_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpl $0x3, %edx
ja 0xb2416
movq %r9, %r14
movq %r8, %rbx
movq %rsi, %r15
movq %rdi, %r12
movl %edx, %eax
leaq 0x31c3c(%rip), %rdx     # 0xe3eb4
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq %rcx, %rdi
callq 0x3f453
leaq -0x40(%rbp), %r13
movq %r12, %rdi
movl %eax, %esi
movq %r13, %rcx
callq 0x9e91b
movq %rdx, %rcx
movq (%r13), %rdi
subq $0x8, %rsp
leaq -0x48(%rbp), %r12
leaq -0x30(%rbp), %r8
leaq -0x50(%rbp), %r13
movq %r15, %rsi
movl %eax, %edx
movq %r8, %r15
movq %r13, %r9
pushq %r12
callq 0xb2d9d
addq $0x10, %rsp
movq (%r12), %rdi
leaq -0x40(%rbp), %rsi
callq 0xb5d67
jmp 0xb2329
movq %rcx, %rdi
callq 0x3f4e7
leaq -0x40(%rbp), %r13
movq %r12, %rdi
movl %eax, %esi
movq %r13, %rcx
callq 0x9e91b
movq %rdx, %rcx
movq (%r13), %rdi
subq $0x8, %rsp
leaq -0x48(%rbp), %r12
leaq -0x30(%rbp), %r8
leaq -0x50(%rbp), %r13
movq %r15, %rsi
movl %eax, %edx
movq %r8, %r15
movq %r13, %r9
pushq %r12
callq 0xb33a1
addq $0x10, %rsp
movq (%r12), %rdi
leaq -0x40(%rbp), %rsi
callq 0xb58b7
movq (%r13), %rax
movq (%r15), %rcx
jmp 0xb23f6
leaq -0x30(%rbp), %rsi
movq %rcx, %rdi
callq 0x3f527
leaq -0x40(%rbp), %r13
movq %r12, %rdi
movl %eax, %esi
movq %r13, %rcx
callq 0x9e91b
movq %rdx, %rcx
movq (%r13), %rdi
leaq -0x30(%rbp), %rdx
movq (%rdx), %r8
leaq -0x58(%rbp), %r13
leaq -0x48(%rbp), %r10
leaq -0x50(%rbp), %r12
movq %r15, %rsi
movl %eax, %edx
movq %r12, %r9
pushq %r13
pushq %r10
movq %r10, %r15
callq 0xb292a
addq $0x10, %rsp
movq (%r13), %rdi
leaq -0x40(%rbp), %rsi
callq 0xb58b7
jmp 0xb23ef
leaq -0x30(%rbp), %rsi
movq %rcx, %rdi
callq 0x3f493
leaq -0x40(%rbp), %r13
movq %r12, %rdi
movl %eax, %esi
movq %r13, %rcx
callq 0x9e91b
movq %rdx, %rcx
movq (%r13), %rdi
leaq -0x30(%rbp), %rdx
movq (%rdx), %r8
leaq -0x58(%rbp), %r13
leaq -0x48(%rbp), %r10
leaq -0x50(%rbp), %r12
movq %r15, %rsi
movl %eax, %edx
movq %r12, %r9
pushq %r13
pushq %r10
movq %r10, %r15
callq 0xb24b7
addq $0x10, %rsp
movq (%r13), %rdi
leaq -0x40(%rbp), %rsi
callq 0xb5d67
movq (%r15), %rax
movq (%r12), %rcx
movups -0x40(%rbp), %xmm0
movq 0x10(%rbp), %rdx
movups %xmm0, (%rdx)
movq %rax, (%r14)
movq %rcx, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x3231e(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x32323(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5