// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_need_zaNeeds_needzx
static void mw_mirth_need_zaNeeds_needzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_need_zaNeeds* in_zaNeeds_2, struct mirth_need_Need in_Need_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_need_zaNeeds* *out_zaNeeds_5) {
	incref(MK_mirth_need_Need(in_Need_3));
	struct mirth_mirth_zaMirth* v6;
	struct mirth_need_zaNeeds* v7;
	bool v8 = mw_mirth_need_Need_neededzy(in_zaMirth_1, in_zaNeeds_2, in_Need_3, &v6, &v7);
	struct mirth_mirth_zaMirth* branch_zaMirth_9;
	struct mirth_need_zaNeeds* branch_zaNeeds_10;
	if (v8) {
		decref(MK_mirth_need_Need(in_Need_3));
		branch_zaNeeds_10 = v7;
		branch_zaMirth_9 = v6;
	} else {
		incref(MK_mirth_need_Need(in_Need_3));
		struct mirth_mirth_zaMirth* v11;
		INT v12 = mw_mirth_need_Need_zgNat(v6, in_Need_3, &v11);
		ARR* r13 = v7->mzaset;
		ARR* v14;
		mw_std_set_zaSet_insertzx(v12, r13, &v14);
		v7->mzaset = v14;
		struct std_list_List_1 v15 = v7->mstack;
		incref(MK_std_list_List_1(v15));
		struct std_list_List_1 v16 = mtw_std_list_List_1_Cons(MK_mirth_need_Need(in_Need_3), v15);
		struct std_list_List_1 v17 = v7->mstack;
		decref(MK_std_list_List_1(v17));
		v7->mstack = v16;
		branch_zaNeeds_10 = v7;
		branch_zaMirth_9 = v11;
	}
	*out_zaNeeds_5 = branch_zaNeeds_10;
	*out_zaMirth_4 = branch_zaMirth_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movq %rcx, %r13
movl %edx, %r15d
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %r15, %r12
shlq $0x30, %r12
movq %rcx, %r14
andq %rax, %r14
setne %al
testb $0x3, %r13b
sete %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0x89e7c
incl (%r14)
orq %r13, %r12
leaq -0x40(%rbp), %r8
leaq -0x38(%rbp), %r9
movl %r15d, %edx
movq %r13, %rcx
callq 0x89fcb
testb %al, %al
je 0x89ebb
testb %bl, %bl
je 0x89eae
decl (%r14)
jne 0x89eae
movq %r12, %rdi
leaq 0x7fed0(%rip), %rsi     # 0x109d79
callq 0xce94
movq -0x38(%rbp), %r14
movq -0x40(%rbp), %rax
jmp 0x89fae
testb %bl, %bl
je 0x89ec2
incl (%r14)
movq -0x40(%rbp), %rdi
leaq -0x58(%rbp), %rcx
movl %r15d, %esi
movq %r13, %rdx
callq 0x8a060
movq -0x38(%rbp), %r14
movq 0x10(%r14), %rsi
leaq -0x29(%rbp), %rdx
leaq -0x60(%rbp), %rcx
movq %rax, %rdi
callq 0x8a19e
movq %rax, %r15
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x89f0d
incl (%rax)
movq -0x60(%rbp), %rdi
leaq -0x70(%rbp), %r13
movq %r15, %rsi
movq %r13, %rdx
callq 0x8a1fb
orb -0x29(%rbp), %al
movq (%r13), %rdi
movzbl %al, %esi
leaq -0x68(%rbp), %r13
movq %r15, %rdx
movq %r13, %rcx
callq 0x10d3b
movq (%r13), %rax
movq %rax, 0x10(%r14)
movl (%r14), %edx
movq 0x8(%r14), %rcx
movq %rcx, %rax
andq %rbx, %rax
sete %sil
testb $0x3, %cl
setne %dil
orb %sil, %dil
jne 0x89f60
incl (%rax)
movq %r12, %rdi
leaq 0x7fe0f(%rip), %rsi     # 0x109d79
callq 0xcf39
movq %rdx, %r15
movq 0x8(%r14), %rax
andq %rax, %rbx
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
jne 0x89f9f
movl (%r14), %edi
decl (%rbx)
jne 0x89f9f
leaq 0x7e2e6(%rip), %rsi     # 0x108279
shlq $0x30, %rdi
orq %rax, %rdi
callq 0xce94
movl $0x1, (%r14)
movq %r15, 0x8(%r14)
movq -0x58(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %r14, (%rcx)
movq -0x50(%rbp), %rcx
movq %rax, (%rcx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq