// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_pushzestackzepartzx
static void mw_mirth_c99_pushzestackzepartzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct std_either_zaEither_2 in_zaC99ValuezfResource_3, struct mirth_type_StackTypePart in_StackTypePart_4, struct mirth_mirth_zaMirth* *out_zaMirth_5, struct mirth_c99_zaC99Branch* *out_zaC99Branch_6) {
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_8;
	switch ((in_StackTypePart_4).tag) {
		case mirth_type_StackTypePart_ConsLabel: {
			uint64_t v9;
			struct mirth_type_Type v10 = mtp_mirth_type_StackTypePart_ConsLabel(in_StackTypePart_4, &v9);
			decref(MK_mirth_type_Type(v10));
			struct mirth_c99_zaC99Value* v11;
			mw_mirth_c99_zaC99ValuezfResource_turnzeintozevaluezx(in_zaC99ValuezfResource_3, &v11);
			struct mirth_mirth_zaMirth* v12;
			struct mirth_c99_zaC99Branch* v13;
			mw_mirth_c99_pushzevaluezelabelzx(in_zaMirth_1, in_zaC99Branch_2, v9, v11, &v12, &v13);
			branch_zaC99Branch_8 = v13;
			branch_zaMirth_7 = v12;
		} break;
		case mirth_type_StackTypePart_WithLabel: {
			uint64_t v14;
			struct mirth_type_Type v15 = mtp_mirth_type_StackTypePart_WithLabel(in_StackTypePart_4, &v14);
			decref(MK_mirth_type_Type(v15));
			struct mirth_c99_zaC99Resource* v16;
			mw_mirth_c99_zaC99ValuezfResource_turnzeintozeresourcezx(in_zaC99ValuezfResource_3, &v16);
			struct mirth_mirth_zaMirth* v17;
			struct mirth_c99_zaC99Branch* v18;
			mw_mirth_c99_pushzeresourcezelabelzx(in_zaMirth_1, in_zaC99Branch_2, v14, v16, &v17, &v18);
			branch_zaC99Branch_8 = v18;
			branch_zaMirth_7 = v17;
		} break;
		case mirth_type_StackTypePart_Cons: {
			struct mirth_type_Type v19 = mtp_mirth_type_StackTypePart_Cons(in_StackTypePart_4);
			decref(MK_mirth_type_Type(v19));
			struct mirth_c99_zaC99Value* v20;
			mw_mirth_c99_zaC99ValuezfResource_turnzeintozevaluezx(in_zaC99ValuezfResource_3, &v20);
			struct mirth_mirth_zaMirth* v21;
			struct mirth_c99_zaC99Branch* v22;
			mw_mirth_c99_zaC99Value_pushzevaluezx(in_zaMirth_1, in_zaC99Branch_2, v20, &v21, &v22);
			branch_zaC99Branch_8 = v22;
			branch_zaMirth_7 = v21;
		} break;
		case mirth_type_StackTypePart_With: {
			struct mirth_type_Type v23 = mtp_mirth_type_StackTypePart_With(in_StackTypePart_4);
			decref(MK_mirth_type_Type(v23));
			struct mirth_c99_zaC99Resource* v24;
			mw_mirth_c99_zaC99ValuezfResource_turnzeintozeresourcezx(in_zaC99ValuezfResource_3, &v24);
			struct mirth_mirth_zaMirth* v25;
			struct mirth_c99_zaC99Branch* v26;
			mw_mirth_c99_zaC99Resource_pushzeresourcezx(in_zaMirth_1, in_zaC99Branch_2, v24, &v25, &v26);
			branch_zaC99Branch_8 = v26;
			branch_zaMirth_7 = v25;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99Branch_6 = branch_zaC99Branch_8;
	*out_zaMirth_5 = branch_zaMirth_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x3, %r8d
ja 0xac129
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r14
movl %r8d, %eax
leaq 0x281b0(%rip), %rcx     # 0xd40d8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r9, %rdi
callq 0x3aac9
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xabf70
decl (%rcx)
jne 0xabf70
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5cb81(%rip), %rsi     # 0x108ae9
movq %rax, %rdi
callq 0xce94
leaq -0x30(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xa8eda
movq (%r13), %rdx
leaq -0x40(%rbp), %r15
leaq -0x38(%rbp), %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rcx
movq %r12, %r8
callq 0xa49c8
jmp 0xac105
movq %r9, %rdi
callq 0x3ab5d
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xabfe3
decl (%rcx)
jne 0xabfe3
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5cb0e(%rip), %rsi     # 0x108ae9
movq %rax, %rdi
callq 0xce94
leaq -0x30(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xa8e6e
movq (%r13), %rdx
leaq -0x40(%rbp), %r15
leaq -0x38(%rbp), %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rcx
movq %r12, %r8
callq 0xa4ab9
jmp 0xac105
leaq -0x30(%rbp), %rsi
movq %r9, %rdi
callq 0x3ab9d
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xac05a
decl (%rcx)
jne 0xac05a
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5ca97(%rip), %rsi     # 0x108ae9
movq %rax, %rdi
callq 0xce94
leaq -0x40(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xa8e6e
movq -0x30(%rbp), %rdx
movq (%r13), %rcx
leaq -0x38(%rbp), %r15
leaq -0x48(%rbp), %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %r8
movq %r12, %r9
callq 0xa4b25
jmp 0xac105
leaq -0x30(%rbp), %rsi
movq %r9, %rdi
callq 0x3ab09
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xac0d2
decl (%rcx)
jne 0xac0d2
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5ca1f(%rip), %rsi     # 0x108ae9
movq %rax, %rdi
callq 0xce94
leaq -0x40(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xa8eda
movq -0x30(%rbp), %rdx
movq (%r13), %rcx
leaq -0x38(%rbp), %r15
leaq -0x48(%rbp), %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %r8
movq %r12, %r9
callq 0xa4a17
movq (%r12), %rax
movq (%r15), %rcx
movq 0x18(%rbp), %rdx
movq %rax, (%rdx)
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x286dd(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6