// File: /workspace/github_c_makefile_star2_O2/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 0xabd68
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
movq %r9, -0x50(%rbp)
movl %ecx, %eax
leaq 0x285af(%rip), %rcx     # 0xd40c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r8, %rdi
callq 0x3aac9
leaq -0x30(%rbp), %rbx
movq %r12, %rdi
movl %eax, %esi
movq %rbx, %rcx
callq 0x93a82
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 0xabb61
incl (%rax)
movq %r15, %rsi
movl %r12d, %edx
movq %r13, %rcx
movq %rbx, %r8
callq 0xabd7f
leaq -0x38(%rbp), %r15
movl %r12d, %edi
movq %r13, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0xa496b
movq (%rbx), %rdi
movq (%r15), %rdx
leaq -0x48(%rbp), %rbx
leaq -0x40(%rbp), %r15
movq %r14, %rsi
movq %rbx, %rcx
movq %r15, %r8
callq 0xa49c8
jmp 0xabd45
movq %r8, %rdi
callq 0x3ab5d
leaq -0x30(%rbp), %rbx
movq %r12, %rdi
movl %eax, %esi
movq %rbx, %rcx
callq 0x93f7e
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 0xabbe7
incl (%rax)
movq %r15, %rsi
movl %r12d, %edx
movq %r13, %rcx
movq %rbx, %r8
callq 0xabd7f
leaq -0x38(%rbp), %r15
movl %r12d, %edi
movq %r13, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0xa4c8e
movq (%rbx), %rdi
movq (%r15), %rdx
leaq -0x48(%rbp), %rbx
leaq -0x40(%rbp), %r15
movq %r14, %rsi
movq %rbx, %rcx
movq %r15, %r8
callq 0xa4ab9
jmp 0xabd45
leaq -0x38(%rbp), %rsi
movq %r8, %rdi
callq 0x3ab9d
leaq -0x30(%rbp), %rbx
movq %r12, %rdi
movl %eax, %esi
movq %rbx, %rcx
callq 0x93f7e
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 0xabc71
incl (%rax)
movq %r15, %rsi
movl %r12d, %edx
movq %r13, %rcx
movq %rbx, %r8
callq 0xabd7f
leaq -0x48(%rbp), %r15
movl %r12d, %edi
movq %r13, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0xa4c8e
movq (%rbx), %rdi
movq -0x38(%rbp), %rdx
movq (%r15), %rcx
leaq -0x40(%rbp), %rbx
leaq -0x58(%rbp), %r15
movq %r14, %rsi
movq %rbx, %r8
movq %r15, %r9
callq 0xa4b25
jmp 0xabd45
leaq -0x38(%rbp), %rsi
movq %r8, %rdi
callq 0x3ab09
leaq -0x30(%rbp), %rbx
movq %r12, %rdi
movl %eax, %esi
movq %rbx, %rcx
callq 0x93a82
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 0xabcff
incl (%rax)
movq %r15, %rsi
movl %r12d, %edx
movq %r13, %rcx
movq %rbx, %r8
callq 0xabd7f
leaq -0x48(%rbp), %r15
movl %r12d, %edi
movq %r13, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0xa496b
movq (%rbx), %rdi
movq -0x38(%rbp), %rdx
movq (%r15), %rcx
leaq -0x40(%rbp), %rbx
leaq -0x58(%rbp), %r15
movq %r14, %rsi
movq %rbx, %r8
movq %r15, %r9
callq 0xa4a17
movq (%r15), %rax
movq (%rbx), %rcx
movq 0x10(%rbp), %rdx
movq %rax, (%rdx)
movq -0x50(%rbp), %rax
movq %rcx, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28a9e(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6