// File: /workspace/github_c_makefile_star2_O1/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 0xb95c8
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %r14
movq 0x10(%rbp), %rbx
movl %r8d, %eax
leaq 0x2ac5f(%rip), %rcx     # 0xe4034
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq %rdi, -0x38(%rbp)
jmpq *%rax
movq %r9, %rdi
callq 0x3f453
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xb9421
decl (%rcx)
jne 0xb9421
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5c6d0(%rip), %rsi     # 0x115ae9
movq %rax, %rdi
callq 0xd4e3
leaq -0x30(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xb5f83
movq (%r13), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x50(%rbp), %r15
movq %r15, %rcx
callq 0xb1439
jmp 0xb95a2
movq %r9, %rdi
callq 0x3f4e7
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xb948f
decl (%rcx)
jne 0xb948f
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5c662(%rip), %rsi     # 0x115ae9
movq %rax, %rdi
callq 0xd4e3
leaq -0x30(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xb5ee4
movq (%r13), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x50(%rbp), %r15
movq %r15, %rcx
callq 0xb158c
jmp 0xb95a2
leaq -0x30(%rbp), %rsi
movq %r9, %rdi
callq 0x3f527
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xb9501
decl (%rcx)
jne 0xb9501
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5c5f0(%rip), %rsi     # 0x115ae9
movq %rax, %rdi
callq 0xd4e3
leaq -0x40(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xb5ee4
movq -0x30(%rbp), %rcx
movq (%r13), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x50(%rbp), %r15
movq %r15, %r8
callq 0xb15fa
jmp 0xb95a2
leaq -0x30(%rbp), %rsi
movq %r9, %rdi
callq 0x3f493
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xb9574
decl (%rcx)
jne 0xb9574
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x5c57d(%rip), %rsi     # 0x115ae9
movq %rax, %rdi
callq 0xd4e3
leaq -0x40(%rbp), %r13
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0xb5f83
movq -0x30(%rbp), %rcx
movq (%r13), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x50(%rbp), %r15
movq %r15, %r8
callq 0xb14a7
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 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x2b16c(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x2b171(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5