// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Branch_popzedatazx
static void mw_mirth_c99_zaC99Branch_popzedatazx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, uint64_t in_Data_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5, struct std_either_zaEither_2 *out_zaC99ValuezfResource_6) {
	struct mirth_mirth_zaMirth* v7;
	bool v8 = mw_mirth_data_Data_iszeresourcezy(in_zaMirth_1, in_Data_3, &v7);
	struct mirth_mirth_zaMirth* branch_zaMirth_9;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_10;
	struct std_either_zaEither_2 branch_zaC99ValuezfResource_11;
	if (v8) {
		struct mirth_c99_C99ReprType v12 = mtw_mirth_c99_C99ReprType_Data(in_Data_3);
		incref(MK_mirth_c99_C99ReprType(v12));
		struct mirth_mirth_zaMirth* v13;
		struct mirth_c99_zaC99Branch* v14;
		struct mirth_c99_zaC99Resource* v15;
		mw_mirth_c99_zaC99Branch_popzeresourcezx(v7, in_zaC99Branch_2, v12, &v13, &v14, &v15);
		struct mirth_mirth_zaMirth* v16;
		struct mirth_c99_zaC99Branch* v17;
		struct mirth_c99_zaC99Resource* v18;
		mw_mirth_c99_zaC99Resource_convertzeresourcezx(v13, v14, v15, v12, &v16, &v17, &v18);
		struct std_either_zaEither_2 v19;
		mtw_std_either_zaEither_2_zaRight(MK_mirth_c99_zaC99Resource(v18), &v19);
		branch_zaC99ValuezfResource_11 = v19;
		branch_zaC99Branch_10 = v17;
		branch_zaMirth_9 = v16;
	} else {
		struct mirth_c99_C99ReprType v20 = mtw_mirth_c99_C99ReprType_Data(in_Data_3);
		incref(MK_mirth_c99_C99ReprType(v20));
		struct mirth_mirth_zaMirth* v21;
		struct mirth_c99_zaC99Branch* v22;
		struct mirth_c99_zaC99Value* v23;
		mw_mirth_c99_zaC99Branch_popzevaluezx(v7, in_zaC99Branch_2, v20, &v21, &v22, &v23);
		struct mirth_mirth_zaMirth* v24;
		struct mirth_c99_zaC99Branch* v25;
		struct mirth_c99_zaC99Value* v26;
		mw_mirth_c99_zaC99Value_convertzevaluezx(v21, v22, v23, v20, &v24, &v25, &v26);
		struct std_either_zaEither_2 v27;
		mtw_std_either_zaEither_2_zaLeft(MK_mirth_c99_zaC99Value(v26), &v27);
		branch_zaC99ValuezfResource_11 = v27;
		branch_zaC99Branch_10 = v25;
		branch_zaMirth_9 = v24;
	}
	*out_zaC99ValuezfResource_6 = branch_zaC99ValuezfResource_11;
	*out_zaC99Branch_5 = branch_zaC99Branch_10;
	*out_zaMirth_4 = branch_zaMirth_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r9, -0x38(%rbp)
movq %r8, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %rdx, %r12
movq %rsi, %r13
leaq -0x30(%rbp), %rdx
movq %r12, %rsi
callq 0x207b0
movl %eax, %ebx
movq %r12, %rdi
callq 0x9c4cb
movq %rax, %r12
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r12, %rax
setne %dl
testb $0x3, %r12b
sete %cl
andb %dl, %cl
testb %bl, %bl
je 0xb5d5a
testb %cl, %cl
je 0xb5cec
incl (%rax)
movq -0x30(%rbp), %rdi
subq $0x8, %rsp
leaq -0x68(%rbp), %r15
leaq -0x78(%rbp), %rbx
leaq -0x70(%rbp), %r14
movq %r13, %rsi
movl $0x15, %edx
movq %r12, %rcx
movq %rbx, %r8
movq %r14, %r9
pushq %r15
callq 0xb0549
addq $0x10, %rsp
movq (%rbx), %rdi
movq (%r14), %rsi
movq (%r15), %rdx
leaq -0x50(%rbp), %r14
leaq -0x58(%rbp), %r15
leaq -0x60(%rbp), %rbx
movl $0x15, %ecx
movq %r12, %r8
movq %rbx, %r9
pushq %r14
pushq %r15
callq 0xb3248
addq $0x10, %rsp
movq (%r14), %rdi
leaq -0x88(%rbp), %rsi
callq 0xb2a4b
jmp 0xb5dcc
testb %cl, %cl
je 0xb5d60
incl (%rax)
movq -0x30(%rbp), %rdi
subq $0x8, %rsp
leaq -0x68(%rbp), %r15
leaq -0x78(%rbp), %rbx
leaq -0x70(%rbp), %r14
movq %r13, %rsi
movl $0x15, %edx
movq %r12, %rcx
movq %rbx, %r8
movq %r14, %r9
pushq %r15
callq 0xaff57
addq $0x10, %rsp
movq (%rbx), %rdi
movq (%r14), %rsi
movq (%r15), %rdx
leaq -0x50(%rbp), %r14
leaq -0x58(%rbp), %r15
leaq -0x60(%rbp), %rbx
movl $0x15, %ecx
movq %r12, %r8
movq %rbx, %r9
pushq %r14
pushq %r15
callq 0xb31b6
addq $0x10, %rsp
movq (%r14), %rdi
leaq -0x88(%rbp), %rsi
callq 0xb2efb
movq (%r15), %rax
movq (%rbx), %rcx
movups -0x88(%rbp), %xmm0
movq -0x38(%rbp), %rdx
movups %xmm0, (%rdx)
movq -0x40(%rbp), %rdx
movq %rax, (%rdx)
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq