// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_pushzestackzepartzenamezx
static void mw_mirth_c99_pushzestackzepartzenamezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, STR* in_Str_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);
			struct mirth_mirth_zaMirth* v11;
			struct mirth_c99_zaC99Branch* v12;
			struct mirth_c99_C99ReprType v13 = mw_mirth_c99_zaC99Branch_typezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v10, &v11, &v12);
			incref(MK_mirth_c99_C99ReprType(v13));
			struct mirth_mirth_zaMirth* v14;
			STR* v15 = mw_mirth_c99_C99ReprType_cast(v11, in_Str_3, v13, &v14);
			struct mirth_c99_zaC99Value* v16;
			mtw_mirth_c99_zaC99Value_zaC99Value(v13, v15, &v16);
			struct mirth_mirth_zaMirth* v17;
			struct mirth_c99_zaC99Branch* v18;
			mw_mirth_c99_pushzevaluezelabelzx(v14, v12, v9, v16, &v17, &v18);
			branch_zaC99Branch_8 = v18;
			branch_zaMirth_7 = v17;
		} break;
		case mirth_type_StackTypePart_WithLabel: {
			uint64_t v19;
			struct mirth_type_Type v20 = mtp_mirth_type_StackTypePart_WithLabel(in_StackTypePart_4, &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);
			incref(MK_mirth_c99_C99ReprType(v23));
			struct mirth_mirth_zaMirth* v24;
			STR* v25 = mw_mirth_c99_C99ReprType_cast(v21, in_Str_3, v23, &v24);
			struct mirth_c99_zaC99Resource* v26;
			mtw_mirth_c99_zaC99Resource_zaC99Resource(v23, v25, &v26);
			struct mirth_mirth_zaMirth* v27;
			struct mirth_c99_zaC99Branch* v28;
			mw_mirth_c99_pushzeresourcezelabelzx(v24, v22, v19, v26, &v27, &v28);
			branch_zaC99Branch_8 = v28;
			branch_zaMirth_7 = v27;
		} break;
		case mirth_type_StackTypePart_Cons: {
			struct mirth_type_Type v29 = mtp_mirth_type_StackTypePart_Cons(in_StackTypePart_4);
			struct mirth_mirth_zaMirth* v30;
			struct mirth_c99_zaC99Branch* v31;
			struct mirth_c99_C99ReprType v32 = mw_mirth_c99_zaC99Branch_typezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v29, &v30, &v31);
			incref(MK_mirth_c99_C99ReprType(v32));
			struct mirth_mirth_zaMirth* v33;
			STR* v34 = mw_mirth_c99_C99ReprType_cast(v30, in_Str_3, v32, &v33);
			struct mirth_c99_zaC99Value* v35;
			mtw_mirth_c99_zaC99Value_zaC99Value(v32, v34, &v35);
			struct mirth_mirth_zaMirth* v36;
			struct mirth_c99_zaC99Branch* v37;
			mw_mirth_c99_zaC99Value_pushzevaluezx(v33, v31, v35, &v36, &v37);
			branch_zaC99Branch_8 = v37;
			branch_zaMirth_7 = v36;
		} break;
		case mirth_type_StackTypePart_With: {
			struct mirth_type_Type v38 = mtp_mirth_type_StackTypePart_With(in_StackTypePart_4);
			struct mirth_mirth_zaMirth* v39;
			struct mirth_c99_zaC99Branch* v40;
			struct mirth_c99_C99ReprType v41 = mw_mirth_c99_zaC99Branch_resourcezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v38, &v39, &v40);
			incref(MK_mirth_c99_C99ReprType(v41));
			struct mirth_mirth_zaMirth* v42;
			STR* v43 = mw_mirth_c99_C99ReprType_cast(v39, in_Str_3, v41, &v42);
			struct mirth_c99_zaC99Resource* v44;
			mtw_mirth_c99_zaC99Resource_zaC99Resource(v41, v43, &v44);
			struct mirth_mirth_zaMirth* v45;
			struct mirth_c99_zaC99Branch* v46;
			mw_mirth_c99_zaC99Resource_pushzeresourcezx(v42, v40, v44, &v45, &v46);
			branch_zaC99Branch_8 = v46;
			branch_zaMirth_7 = v45;
		} 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 $0x38, %rsp
cmpl $0x3, %ecx
ja 0xb91d7
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
movq %r9, -0x50(%rbp)
movl %ecx, %eax
leaq 0x2b0a6(%rip), %rcx     # 0xe4024
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r8, %rdi
callq 0x3f453
leaq -0x48(%rbp), %rbx
movq %r12, %rdi
movl %eax, %esi
movq %rbx, %rcx
callq 0x9e91b
movl %eax, %r12d
movq %rdx, %r13
movq (%rbx), %rdi
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xb8fc6
incl (%rax)
leaq -0x30(%rbp), %rbx
movq %r15, %rsi
movl %r12d, %edx
movq %r13, %rcx
movq %rbx, %r8
callq 0xb9207
leaq -0x38(%rbp), %r15
movl %r12d, %edi
movq %r13, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0xb13d2
movq (%rbx), %r12
movq (%r15), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x48(%rbp), %rbx
movq %rbx, %rcx
callq 0xb1439
jmp 0xb91b2
movq %r8, %rdi
callq 0x3f4e7
leaq -0x48(%rbp), %rbx
movq %r12, %rdi
movl %eax, %esi
movq %rbx, %rcx
callq 0x9e91b
movl %eax, %r12d
movq %rdx, %r13
movq (%rbx), %rdi
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xb904e
incl (%rax)
leaq -0x30(%rbp), %rbx
movq %r15, %rsi
movl %r12d, %edx
movq %r13, %rcx
movq %rbx, %r8
callq 0xb9207
leaq -0x38(%rbp), %r15
movl %r12d, %edi
movq %r13, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0xb1525
movq (%rbx), %r12
movq (%r15), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x48(%rbp), %rbx
movq %rbx, %rcx
callq 0xb158c
jmp 0xb91b2
leaq -0x30(%rbp), %rsi
movq %r8, %rdi
callq 0x3f527
leaq -0x48(%rbp), %rbx
movq %r12, %rdi
movl %eax, %esi
movq %rbx, %rcx
callq 0x9e91b
movl %eax, %r12d
movq %rdx, %r13
movq (%rbx), %rdi
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xb90da
incl (%rax)
leaq -0x38(%rbp), %rbx
movq %r15, %rsi
movl %r12d, %edx
movq %r13, %rcx
movq %rbx, %r8
callq 0xb9207
leaq -0x58(%rbp), %r15
movl %r12d, %edi
movq %r13, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0xb1525
movq (%rbx), %r12
movq -0x30(%rbp), %rcx
movq (%r15), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x48(%rbp), %rbx
movq %rbx, %r8
callq 0xb15fa
jmp 0xb91b2
leaq -0x30(%rbp), %rsi
movq %r8, %rdi
callq 0x3f493
leaq -0x48(%rbp), %rbx
movq %r12, %rdi
movl %eax, %esi
movq %rbx, %rcx
callq 0x9e91b
movl %eax, %r12d
movq %rdx, %r13
movq (%rbx), %rdi
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xb916a
incl (%rax)
leaq -0x38(%rbp), %rbx
movq %r15, %rsi
movl %r12d, %edx
movq %r13, %rcx
movq %rbx, %r8
callq 0xb9207
leaq -0x58(%rbp), %r15
movl %r12d, %edi
movq %r13, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0xb13d2
movq (%rbx), %r12
movq -0x30(%rbp), %rcx
movq (%r15), %rdx
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
leaq -0x48(%rbp), %rbx
movq %rbx, %r8
callq 0xb14a7
movups (%rbx), %xmm0
movups %xmm0, 0x8(%r14)
movq 0x10(%rbp), %rax
movq %r14, (%rax)
movq -0x50(%rbp), %rax
movq %r12, (%rax)
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 0x2b55d(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x2b562(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5