// File: /workspace/github_c_makefile_star2_O2/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
movl %edx, %edi
movq %rcx, %rsi
callq 0xcd32
xorl %r8d, %r8d
leaq -0x78(%rbp), %rsi
xorl %r14d, %r14d
xorl %r12d, %r12d
movb $0x1, %cl
movq %rdx, %rdi
testb $0x1, %cl
je 0xc9647
xorl %ecx, %ecx
movl $0x0, %edx
testl %eax, %eax
je 0xc946c
cmpl $0x1, %eax
jne 0xc96ae
movq %r8, %r14
movq %rsi, %r13
callq 0xce01
movq %rax, %rcx
shrq $0x30, %rcx
cmpw $0x3, %cx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
ja 0xc96ae
andq %rdx, %rax
leaq 0xb044(%rip), %rdx      # 0xd4500
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %rax, %rdi
callq 0x3aac9
movq %rbx, %rdi
movl %eax, %esi
leaq -0x50(%rbp), %rbx
movq %rbx, %rcx
callq 0x93a82
movq %rdx, %rcx
movq -0x50(%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 0xa638d
popq %rax
popq %rcx
movq -0x38(%rbp), %rdx
movl %r14d, %edi
movq %r12, %rsi
movq %rbx, %rcx
callq 0xa4b7d
jmp 0xc9565
movq %rax, %rdi
callq 0x3ab5d
movq %rbx, %rdi
movl %eax, %esi
leaq -0x50(%rbp), %rbx
movq %rbx, %rcx
callq 0x93f7e
movq %rdx, %rcx
movq -0x50(%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 0xa68c2
popq %rax
popq %rcx
movq -0x38(%rbp), %rdx
movl %r14d, %edi
movq %r12, %rsi
movq %rbx, %rcx
callq 0xa4ceb
movq -0x40(%rbp), %r15
movq -0x30(%rbp), %rbx
jmp 0xc962c
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0x3ab9d
movq %rbx, %rdi
movl %eax, %esi
leaq -0x50(%rbp), %rbx
movq %rbx, %rcx
callq 0x93f7e
movq %rdx, %rcx
movq -0x50(%rbp), %rdi
movq -0x30(%rbp), %r8
movq %r15, %rsi
movl %eax, %edx
leaq -0x40(%rbp), %r9
leaq -0x58(%rbp), %rax
pushq %rax
leaq -0x38(%rbp), %rax
pushq %rax
callq 0xa5f3e
popq %rax
popq %rcx
movq -0x58(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl %r14d, %edi
movq %r12, %rsi
movq %rbx, %r8
callq 0xa4d4f
jmp 0xc9624
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0x3ab09
movq %rbx, %rdi
movl %eax, %esi
leaq -0x50(%rbp), %rbx
movq %rbx, %rcx
callq 0x93a82
movq %rdx, %rcx
movq -0x50(%rbp), %rdi
movq -0x30(%rbp), %r8
movq %r15, %rsi
movl %eax, %edx
leaq -0x40(%rbp), %r9
leaq -0x58(%rbp), %rax
pushq %rax
leaq -0x38(%rbp), %rax
pushq %rax
callq 0xa5b19
popq %rax
popq %rcx
movq -0x58(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl %r14d, %edi
movq %r12, %rsi
movq %rbx, %r8
callq 0xa4be1
movq -0x38(%rbp), %r15
movq -0x40(%rbp), %rbx
movl -0x50(%rbp), %r8d
movl -0x4c(%rbp), %r14d
movq -0x48(%rbp), %r12
movl -0x78(%rbp), %eax
movq -0x70(%rbp), %rdx
movq %r13, %rsi
jmp 0xc946a
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rsi
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xc9682
decl (%rsi)
jne 0xc9682
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x3ec05(%rip), %rsi     # 0x108279
movq %rax, %rdi
movq %r8, %r13
callq 0xce94
movq %r13, %r8
movq 0x10(%rbp), %rax
movl %r8d, (%rax)
movl %r14d, 0x4(%rax)
movq %r12, 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
leaq 0xb158(%rip), %rdi      # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6