// File: /workspace/github_c_makefile_star2_O3/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, -0x50(%rbp)
movq %r8, %r14
movq %rcx, %r13
movl %edx, %r15d
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %r15, %r12
shlq $0x30, %r12
orq %rcx, %r12
movq %rcx, %rbx
andq %rax, %rbx
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x9181e
incl (%rbx)
leaq -0x38(%rbp), %r8
leaq -0x30(%rbp), %r9
movl %r15d, %edx
movq %r13, %rcx
callq 0x91986
movl (%rbx), %ecx
testb %al, %al
je 0x91842
decl %ecx
movl %ecx, (%rbx)
jne 0x91835
movq %r12, %rdi
leaq 0x81562(%rip), %rsi     # 0x112d79
callq 0xd13d
jmp 0x91835
leaq -0x38(%rbp), %r8
leaq -0x30(%rbp), %r9
movl %r15d, %edx
movq %r13, %rcx
callq 0x91986
testb %al, %al
je 0x91846
movq -0x30(%rbp), %r13
movq -0x38(%rbp), %rax
jmp 0x9196d
incl %ecx
movl %ecx, (%rbx)
movq %r14, -0x48(%rbp)
movq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rcx
movl %r15d, %esi
movq %r13, %rdx
callq 0x91a45
movq -0x30(%rbp), %r13
movq 0x10(%r13), %rcx
movq %rcx, -0x40(%rbp)
leaq -0x60(%rbp), %rbx
movl $0x11, %esi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x13e71
movq %rax, %r15
movq (%rbx), %rdi
callq 0xe445
movq %r15, %rcx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %dl
testb $0x3, %r15b
setne %sil
orb %dl, %sil
jne 0x918aa
incl (%rcx)
movzbl %al, %edx
movl $0x1, %r14d
movl %eax, %ecx
shlq %cl, %r14
xorl %eax, %eax
cmpl $0x40, %edx
cmovael %eax, %r14d
movq -0x40(%rbp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x91bbd
orb %r14b, %al
movq (%rbx), %rdi
movzbl %al, %esi
leaq -0x68(%rbp), %rbx
movq %r15, %rdx
movq %rbx, %rcx
callq 0x117b0
movq (%rbx), %rax
movq %rax, 0x10(%r13)
movl (%r13), %edx
movq 0x8(%r13), %rcx
movq %rcx, %rax
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
sete %sil
testb $0x3, %cl
setne %dil
orb %sil, %dil
jne 0x91919
incl (%rax)
movq %r12, %rdi
leaq 0x81456(%rip), %rsi     # 0x112d79
callq 0xd1ec
movq %rdx, %r15
movq 0x8(%r13), %rax
andq %rax, %rbx
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
movq -0x48(%rbp), %r14
jne 0x9195d
movl (%r13), %edi
decl (%rbx)
jne 0x9195d
leaq 0x7f928(%rip), %rsi     # 0x111279
shlq $0x30, %rdi
orq %rax, %rdi
callq 0xd13d
movl $0x1, (%r13)
movq %r15, 0x8(%r13)
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %r13, (%rcx)
movq %rax, (%r14)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq