// File: /workspace/github_c_makefile_star2_O3/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 0xb65c1
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %r14
movq 0x10(%rbp), %rbx
movl %r8d, %eax
leaq 0x29cae(%rip), %rcx     # 0xe007c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq %rdi, -0x38(%rbp)
jmpq *%rax
movq %r9, %rdi
callq 0x3e10c
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xb641a
decl (%rcx)
jne 0xb641a
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5b6d7(%rip), %rsi     # 0x111ae9
movq %rax, %rdi
callq 0xd13d
leaq -0x30(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xb3117
movq (%r13), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x50(%rbp), %r15
movq %r15, %rcx
callq 0xae64a
jmp 0xb659b
movq %r9, %rdi
callq 0x3e1a0
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xb6488
decl (%rcx)
jne 0xb6488
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5b669(%rip), %rsi     # 0x111ae9
movq %rax, %rdi
callq 0xd13d
leaq -0x30(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xb3078
movq (%r13), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x50(%rbp), %r15
movq %r15, %rcx
callq 0xae79d
jmp 0xb659b
leaq -0x30(%rbp), %rsi
movq %r9, %rdi
callq 0x3e1e0
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xb64fa
decl (%rcx)
jne 0xb64fa
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5b5f7(%rip), %rsi     # 0x111ae9
movq %rax, %rdi
callq 0xd13d
leaq -0x40(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xb3078
movq -0x30(%rbp), %rcx
movq (%r13), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x50(%rbp), %r15
movq %r15, %r8
callq 0xae80b
jmp 0xb659b
leaq -0x30(%rbp), %rsi
movq %r9, %rdi
callq 0x3e14c
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xb656d
decl (%rcx)
jne 0xb656d
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5b584(%rip), %rsi     # 0x111ae9
movq %rax, %rdi
callq 0xd13d
leaq -0x40(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xb3117
movq -0x30(%rbp), %rcx
movq (%r13), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x50(%rbp), %r15
movq %r15, %r8
callq 0xae6b8
movups (%r15), %xmm0
movups %xmm0, 0x8(%r14)
movq 0x18(%rbp), %rax
movq %r14, (%rax)
movq -0x38(%rbp), %rax
movq %rax, (%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x2a0f3(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x2a0f8(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302