// File: /workspace/github_c_makefile_star2_O0/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
subq $0x240, %rsp            # imm = 0x240
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movl %r8d, -0x20(%rbp)
movq %r9, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movl -0x20(%rbp), %eax
movq %rax, -0x238(%rbp)
subq $0x3, %rax
ja 0x2ae047
movq -0x238(%rbp), %rax
leaq 0xa5df4(%rip), %rcx     # 0x353860
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0xcf210
movl %eax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x6e780
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movq -0x60(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2adb6c
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x6e780
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x78(%rbp), %rax
cmpq $0x0, %rax
je 0x2adb6c
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x6e780
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x88(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2adb6c
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x6e780
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x98(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2adb6a
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x6e780
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x127c0
jmp 0x2adb6c
jmp 0x2adb6e
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
callq 0x29e8d0
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0xb0(%rbp), %rcx
leaq -0xb8(%rbp), %r8
leaq -0xc0(%rbp), %r9
callq 0x28cbd0
movq -0xc0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x2ae060
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
callq 0xcf430
movl %eax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x6e780
movq %rax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2adcf5
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x6e780
movq %rax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf8(%rbp), %rax
cmpq $0x0, %rax
je 0x2adcf5
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x108(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2adcf5
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x118(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2adcf3
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movq -0x128(%rbp), %rdi
movq -0x120(%rbp), %rsi
callq 0x127c0
jmp 0x2adcf5
jmp 0x2adcf7
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0x29e830
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0xc8(%rbp), %rdx
movq -0x130(%rbp), %rcx
leaq -0x138(%rbp), %r8
leaq -0x140(%rbp), %r9
callq 0x28cd70
movq -0x140(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x2ae060
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xcf110
movl %eax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x6e780
movq %rax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movq -0x158(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2ade7a
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x6e780
movq %rax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x170(%rbp), %rax
cmpq $0x0, %rax
je 0x2ade7a
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x6e780
movq %rax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x180(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2ade7a
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x6e780
movq %rax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2ade78
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x1a0(%rbp), %rdi
movq -0x198(%rbp), %rsi
callq 0x127c0
jmp 0x2ade7a
jmp 0x2ade7c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x1a8(%rbp), %rdx
callq 0x29e8d0
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x1a8(%rbp), %rdx
leaq -0x1b0(%rbp), %rcx
leaq -0x1b8(%rbp), %r8
callq 0x28cb50
movq -0x1b8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x2ae060
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xcf330
movl %eax, -0x1c8(%rbp)
movq %rdx, -0x1c0(%rbp)
movl -0x1c8(%rbp), %edi
movq -0x1c0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movq -0x1d0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2adff8
movl -0x1c8(%rbp), %edi
movq -0x1c0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1e8(%rbp), %rax
cmpq $0x0, %rax
je 0x2adff8
movl -0x1c8(%rbp), %edi
movq -0x1c0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movq -0x1f8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2adff8
movl -0x1c8(%rbp), %edi
movq -0x1c0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x208(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2adff6
movl -0x1c8(%rbp), %edi
movq -0x1c0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movq -0x218(%rbp), %rdi
movq -0x210(%rbp), %rsi
callq 0x127c0
jmp 0x2adff8
jmp 0x2adffa
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x220(%rbp), %rdx
callq 0x29e830
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x220(%rbp), %rdx
leaq -0x228(%rbp), %rcx
leaq -0x230(%rbp), %r8
callq 0x28cca0
movq -0x230(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x2ae060
leaq 0xa5e33(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x40(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
addq $0x240, %rsp            # imm = 0x240
popq %rbp
retq
nop