// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Branch_popzestackzx
static void mw_mirth_c99_zaC99Branch_popzestackzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct std_list_List_1 in_List_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5, struct mirth_c99_zaC99Stack *out_zaC99Stack_6) {
	struct mirth_c99_zaC99Stack v7 = { .tag=mirth_c99_zaC99Stack_zaNil };
	struct std_list_List_1 v8 = mw_std_list_List_1_reverse(in_List_3);
	bool v9 = true;
	struct mirth_mirth_zaMirth* r10 = in_zaMirth_1;
	struct mirth_c99_zaC99Branch* r11 = in_zaC99Branch_2;
	struct mirth_c99_zaC99Stack r12 = v7;
	struct std_list_List_1 v13 = v8;
	bool v14 = v9;
	bool v15 = v9;
	while (v15) {
		struct mirth_mirth_zaMirth* r16 = r10;
		struct mirth_c99_zaC99Branch* r17 = r11;
		struct mirth_c99_zaC99Stack r18 = r12;
		struct std_list_List_1 v19 = v13;
		bool v20 = v14;
		struct mirth_mirth_zaMirth* branch_zaMirth_21;
		struct mirth_c99_zaC99Branch* branch_zaC99Branch_22;
		struct mirth_c99_zaC99Stack branch_zaC99Stack_23;
		struct std_list_List_1 branch_List_24;
		bool branch_Bool_25;
		switch ((v19).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v26;
				VAL v27 = mtp_std_list_List_1_Cons(v19, &v26);
				struct mirth_mirth_zaMirth* v28;
				struct mirth_c99_zaC99Branch* v29;
				struct mirth_c99_zaC99Stack v30;
				mw_mirth_c99_zaC99Stack_popzestackzepartzetozestackzx(r16, r17, r18, V_mirth_type_StackTypePart(v27), &v28, &v29, &v30);
				bool v31 = true;
				branch_Bool_25 = v31;
				branch_List_24 = v26;
				branch_zaC99Stack_23 = v30;
				branch_zaC99Branch_22 = v29;
				branch_zaMirth_21 = v28;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v32 = { .tag=std_list_List_1_Nil };
				bool v33 = false;
				branch_Bool_25 = v33;
				branch_List_24 = v32;
				branch_zaC99Stack_23 = r18;
				branch_zaC99Branch_22 = r17;
				branch_zaMirth_21 = r16;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v15 = branch_Bool_25;
		v14 = branch_Bool_25;
		v13 = branch_List_24;
		r12 = branch_zaC99Stack_23;
		r11 = branch_zaC99Branch_22;
		r10 = branch_zaMirth_21;
	}
	decref(MK_std_list_List_1(v13));
	*out_zaC99Stack_6 = r12;
	*out_zaC99Branch_5 = r11;
	*out_zaMirth_4 = r10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movq 0x10(%rbp), %rax
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x122b0
movl %eax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movb $0x1, -0x51(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x80(%rbp)
movb -0x51(%rbp), %al
andb $0x1, %al
movb %al, -0x89(%rbp)
movb -0x51(%rbp), %al
andb $0x1, %al
movb %al, -0x8a(%rbp)
testb $0x1, -0x8a(%rbp)
je 0x328b86
movq -0x60(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0xa0(%rbp)
movups -0x78(%rbp), %xmm0
movaps %xmm0, -0xb0(%rbp)
movups -0x88(%rbp), %xmm0
movaps %xmm0, -0xc0(%rbp)
movb -0x89(%rbp), %al
andb $0x1, %al
movb %al, -0xc1(%rbp)
movl -0xc0(%rbp), %eax
movl %eax, -0x1c4(%rbp)
testl %eax, %eax
je 0x328a89
jmp 0x328956
movl -0x1c4(%rbp), %eax
subl $0x1, %eax
jne 0x328b07
jmp 0x328967
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x125e0
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0x73d70
movq -0x1d8(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
movl %eax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movl -0xb0(%rbp), %edx
movq -0xa8(%rbp), %rcx
movl -0x150(%rbp), %r8d
movq -0x148(%rbp), %r9
leaq -0x128(%rbp), %r11
leaq -0x130(%rbp), %r10
leaq -0x140(%rbp), %rax
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x328d50
movb $0x1, -0x151(%rbp)
movb -0x151(%rbp), %al
andb $0x1, %al
movb %al, -0xf9(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x328b20
leaq -0x168(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x169(%rbp)
movb -0x169(%rbp), %al
andb $0x1, %al
movb %al, -0xf9(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x328b20
leaq 0x2b373(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0xf9(%rbp), %al
andb $0x1, %al
movb %al, -0x8a(%rbp)
movb -0xf9(%rbp), %al
andb $0x1, %al
movb %al, -0x89(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x3288f6
jmp 0x328b88
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x12780
movq %rax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x178(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x328c8c
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x12780
movq %rax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rax
cmpq $0x0, %rax
je 0x328c8c
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x12780
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x328c8c
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x12780
movq %rax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1b0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x328c8a
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x12780
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
callq 0x127c0
jmp 0x328c8c
jmp 0x328c8e
movq 0x10(%rbp), %rax
movq -0x78(%rbp), %rcx
movq %rcx, (%rax)
movq -0x70(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x68(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x60(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq