// File: /workspace/github_c_makefile_star2_O1/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, -0x58(%rbp)
movq %r8, %rbx
movq %rcx, %r13
movl %edx, %r15d
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq %r15, %r12
shlq $0x30, %r12
movq %rcx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x93f09
incl (%rax)
orq %r13, %r12
leaq -0x38(%rbp), %r8
leaq -0x30(%rbp), %r9
movl %r15d, %edx
movq %r13, %rcx
callq 0x94090
movq %r13, %rcx
andq %r14, %rcx
setne %sil
testb $0x3, %r13b
sete %dl
andb %sil, %dl
testb %al, %al
je 0x93f5b
testb %dl, %dl
je 0x93f4e
decl (%rcx)
jne 0x93f4e
movq %r12, %rdi
leaq 0x82e30(%rip), %rsi     # 0x116d79
callq 0xd4e3
movq -0x30(%rbp), %r13
movq -0x38(%rbp), %rax
jmp 0x94077
movq %rbx, -0x50(%rbp)
testb %dl, %dl
je 0x93f65
incl (%rcx)
movq -0x38(%rbp), %rdi
leaq -0x60(%rbp), %rcx
movl %r15d, %esi
movq %r13, %rdx
callq 0x9414f
movq -0x30(%rbp), %r13
movq 0x10(%r13), %rcx
movq %rcx, -0x48(%rbp)
leaq -0x40(%rbp), %rbx
movl $0x11, %esi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x141df
movq %rax, %r15
movq (%rbx), %rdi
callq 0xe818
movq %r15, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %r15b
setne %sil
orb %dl, %sil
jne 0x93fbb
incl (%rcx)
movzbl %al, %edx
movl $0x1, %ebx
movl %eax, %ecx
shlq %cl, %rbx
xorl %eax, %eax
cmpl $0x40, %edx
cmovael %eax, %ebx
leaq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x942c7
orb %bl, %al
leaq -0x40(%rbp), %rcx
movq (%rcx), %rdi
movzbl %al, %esi
leaq -0x68(%rbp), %rbx
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0c
movq (%rbx), %rax
movq %rax, 0x10(%r13)
movl (%r13), %edx
movq 0x8(%r13), %rcx
movq %rcx, %rax
andq %r14, %rax
sete %sil
testb $0x3, %cl
setne %dil
orb %sil, %dil
jne 0x94022
incl (%rax)
movq %r12, %rdi
leaq 0x82d4d(%rip), %rsi     # 0x116d79
callq 0xd592
movq %rdx, %r15
movq 0x8(%r13), %rax
andq %rax, %r14
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
movq -0x50(%rbp), %rbx
jne 0x94067
movl (%r13), %edi
decl (%r14)
jne 0x94067
leaq 0x8121e(%rip), %rsi     # 0x115279
shlq $0x30, %rdi
orq %rax, %rdi
callq 0xd4e3
movl $0x1, (%r13)
movq %r15, 0x8(%r13)
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %r13, (%rcx)
movq %rax, (%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq