// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, -0x60(%rbp)
movq %r8, -0x68(%rbp)
movq %rsi, %r15
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %edi, %edi
xorl %esi, %esi
callq 0xd01b
movq %rdx, %rdi
leaq -0x58(%rbp), %r12
xorl %ecx, %ecx
xorl %r13d, %r13d
cmpl $0x1, %eax
jne 0xd503c
leaq -0x78(%rbp), %rsi
callq 0xd0aa
movq %rax, %rcx
shrq $0x30, %rcx
cmpw $0x3, %cx
ja 0xd506b
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rax
leaq 0xb5e7(%rip), %rdx      # 0xe04a4
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %rax, %rdi
callq 0x3e10c
movq %rbx, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0x9beab
movq %rdx, %rcx
movq -0x58(%rbp), %rdi
subq $0x8, %rsp
movq %r15, %rsi
movl %eax, %edx
leaq -0x30(%rbp), %r8
leaq -0x40(%rbp), %r9
leaq -0x38(%rbp), %rax
pushq %rax
callq 0xaff57
addq $0x10, %rsp
movq -0x38(%rbp), %rdx
movl %r13d, %edi
movq %r14, %rsi
movq %r12, %rcx
callq 0xae64a
jmp 0xd4f62
movq %rax, %rdi
callq 0x3e1a0
movq %rbx, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0x9beab
movq %rdx, %rcx
movq -0x58(%rbp), %rdi
subq $0x8, %rsp
movq %r15, %rsi
movl %eax, %edx
leaq -0x30(%rbp), %r8
leaq -0x40(%rbp), %r9
leaq -0x38(%rbp), %rax
pushq %rax
callq 0xb0549
addq $0x10, %rsp
movq -0x38(%rbp), %rdx
movl %r13d, %edi
movq %r14, %rsi
movq %r12, %rcx
callq 0xae79d
movq -0x40(%rbp), %r15
movq -0x30(%rbp), %rbx
jmp 0xd5025
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0x3e1e0
movq %rbx, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0x9beab
movq %rdx, %rcx
movq -0x58(%rbp), %rdi
movq -0x30(%rbp), %r8
movq %r15, %rsi
movl %eax, %edx
leaq -0x40(%rbp), %r9
leaq -0x48(%rbp), %rax
pushq %rax
leaq -0x38(%rbp), %rax
pushq %rax
callq 0xafaf2
addq $0x10, %rsp
movq -0x48(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl %r13d, %edi
movq %r14, %rsi
movq %r12, %r8
callq 0xae80b
jmp 0xd501d
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0x3e14c
movq %rbx, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0x9beab
movq %rdx, %rcx
movq -0x58(%rbp), %rdi
movq -0x30(%rbp), %r8
movq %r15, %rsi
movl %eax, %edx
leaq -0x40(%rbp), %r9
leaq -0x48(%rbp), %rax
pushq %rax
leaq -0x38(%rbp), %rax
pushq %rax
callq 0xaf68d
addq $0x10, %rsp
movq -0x48(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl %r13d, %edi
movq %r14, %rsi
movq %r12, %r8
callq 0xae6b8
movq -0x38(%rbp), %r15
movq -0x40(%rbp), %rbx
movl -0x58(%rbp), %r13d
movl -0x54(%rbp), %ecx
movq -0x50(%rbp), %r14
movl -0x78(%rbp), %eax
movq -0x70(%rbp), %rdi
jmp 0xd4e86
testl %eax, %eax
jne 0xd506b
movq 0x10(%rbp), %rax
movl %r13d, (%rax)
movl %ecx, 0x4(%rax)
movq %r14, 0x8(%rax)
movq -0x60(%rbp), %rax
movq %r15, (%rax)
movq -0x68(%rbp), %rax
movq %rbx, (%rax)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xb649(%rip), %xmm0     # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xb64e(%rip), %xmm0     # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302