// File: /workspace/github_c_makefile_star2_O1/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, %r14
xorl %ebx, %ebx
xorl %edi, %edi
xorl %esi, %esi
callq 0xd37c
movq %rdx, %rdi
xorl %r12d, %r12d
xorl %r13d, %r13d
testl %eax, %eax
je 0xd946c
cmpl $0x1, %eax
jne 0xd960f
leaq -0x78(%rbp), %rsi
callq 0xd450
movq %rax, %rcx
shrq $0x30, %rcx
cmpw $0x3, %cx
ja 0xd960f
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rax
leaq 0xb04c(%rip), %rdx      # 0xe445c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %rax, %rdi
callq 0x3f453
movq %r14, %rdi
movl %eax, %esi
leaq -0x50(%rbp), %r14
movq %r14, %rcx
callq 0x9e91b
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 0xb2d9d
addq $0x10, %rsp
movq -0x38(%rbp), %rdx
movl %r13d, %edi
movq %rbx, %rsi
movq %r14, %rcx
callq 0xb1439
jmp 0xd94c6
xorl %ecx, %ecx
xorl %edi, %edi
jmp 0xd95a6
movq %rax, %rdi
callq 0x3f4e7
movq %r14, %rdi
movl %eax, %esi
leaq -0x50(%rbp), %r14
movq %r14, %rcx
callq 0x9e91b
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 0xb33a1
addq $0x10, %rsp
movq -0x38(%rbp), %rdx
movl %r13d, %edi
movq %rbx, %rsi
movq %r14, %rcx
callq 0xb158c
movq -0x40(%rbp), %r15
movq -0x30(%rbp), %r14
jmp 0xd9591
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0x3f527
movq %r14, %rdi
movl %eax, %esi
leaq -0x50(%rbp), %r14
movq %r14, %rcx
callq 0x9e91b
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 0xb292a
addq $0x10, %rsp
movq -0x58(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl %r13d, %edi
movq %rbx, %rsi
movq %r14, %r8
callq 0xb15fa
jmp 0xd9589
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0x3f493
movq %r14, %rdi
movl %eax, %esi
leaq -0x50(%rbp), %r14
movq %r14, %rcx
callq 0x9e91b
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 0xb24b7
addq $0x10, %rsp
movq -0x58(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl %r13d, %edi
movq %rbx, %rsi
movq %r14, %r8
callq 0xb14a7
movq -0x38(%rbp), %r15
movq -0x40(%rbp), %r14
movl -0x50(%rbp), %r13d
movl -0x4c(%rbp), %r12d
movq -0x48(%rbp), %rbx
movl -0x78(%rbp), %eax
movq -0x70(%rbp), %rdi
movb $0x1, %cl
testb %cl, %cl
jne 0xd93d1
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rsi
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xd95e3
decl (%rsi)
jne 0xd95e3
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x3bc9e(%rip), %rsi     # 0x115279
movq %rax, %rdi
callq 0xd4e3
movq 0x10(%rbp), %rax
movl %r13d, (%rax)
movl %r12d, 0x4(%rax)
movq %rbx, 0x8(%rax)
movq -0x60(%rbp), %rax
movq %r15, (%rax)
movq -0x68(%rbp), %rax
movq %r14, (%rax)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xb125(%rip), %xmm0     # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xb12a(%rip), %xmm0     # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5