// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_need_zaNeeds_determinezetransitivezeneedszx
static void mw_mirth_need_zaNeeds_determinezetransitivezeneedszx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_need_zaNeeds* in_zaNeeds_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct mirth_need_zaNeeds* *out_zaNeeds_4) {
	bool v5 = true;
	struct mirth_mirth_zaMirth* r6 = in_zaMirth_1;
	struct mirth_need_zaNeeds* r7 = in_zaNeeds_2;
	bool v8 = v5;
	bool v9 = v5;
	while (v9) {
		struct mirth_mirth_zaMirth* r10 = r6;
		struct mirth_need_zaNeeds* r11 = r7;
		bool v12 = v8;
		struct std_list_List_1 v13 = r11->mstack;
		incref(MK_std_list_List_1(v13));
		struct std_list_List_1 v14;
		struct std_maybe_Maybe_1 v15 = mw_std_list_List_1_uncons(v13, &v14);
		struct std_list_List_1 v16 = r11->mstack;
		decref(MK_std_list_List_1(v16));
		r11->mstack = v14;
		struct mirth_mirth_zaMirth* branch_zaMirth_17;
		struct mirth_need_zaNeeds* branch_zaNeeds_18;
		bool branch_Bool_19;
		switch ((v15).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v20 = mtp_std_maybe_Maybe_1_Some(v15);
				struct mirth_mirth_zaMirth* v21;
				struct mirth_need_zaNeeds* v22;
				mw_mirth_need_zaNeeds_runzeneedzx(r10, r11, V_mirth_need_Need(v20), &v21, &v22);
				bool v23 = true;
				branch_Bool_19 = v23;
				branch_zaNeeds_18 = v22;
				branch_zaMirth_17 = v21;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v24 = false;
				branch_Bool_19 = v24;
				branch_zaNeeds_18 = r11;
				branch_zaMirth_17 = r10;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v9 = branch_Bool_19;
		v8 = branch_Bool_19;
		r7 = branch_zaNeeds_18;
		r6 = branch_zaMirth_17;
	}
	*out_zaNeeds_4 = r7;
	*out_zaMirth_3 = r6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movb $0x1, -0x21(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movb -0x21(%rbp), %al
andb $0x1, %al
movb %al, -0x39(%rbp)
movb -0x21(%rbp), %al
andb $0x1, %al
movb %al, -0x3a(%rbp)
testb $0x1, -0x3a(%rbp)
je 0x2192b8
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
movb -0x39(%rbp), %al
andb $0x1, %al
movb %al, -0x51(%rbp)
movq -0x50(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x68(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x60(%rbp)
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x70(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x219005
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
cmpq $0x0, %rax
je 0x219005
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x219005
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x219007
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
callq 0x2c490
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0x50(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0xd8(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0xd0(%rbp)
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x12780
movq %rax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x219153
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x12780
movq %rax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf8(%rbp), %rax
cmpq $0x0, %rax
je 0x219153
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x12780
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x108(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x219153
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x12780
movq %rax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x118(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x219151
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x12780
movq %rax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movq -0x128(%rbp), %rdi
movq -0x120(%rbp), %rsi
callq 0x127c0
jmp 0x219153
jmp 0x219155
movq -0x50(%rbp), %rax
movups -0xb8(%rbp), %xmm0
movups %xmm0, (%rax)
movl -0xc8(%rbp), %eax
movl %eax, -0x178(%rbp)
testl %eax, %eax
je 0x219241
jmp 0x219179
movl -0x178(%rbp), %eax
subl $0x1, %eax
jne 0x21926e
jmp 0x21918a
movl -0xc8(%rbp), %edi
movq -0xc0(%rbp), %rsi
callq 0x174a0
movq %rax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x150(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x21d410
movq -0x188(%rbp), %rdi
movq -0x180(%rbp), %rsi
movl %eax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movl -0x170(%rbp), %edx
movq -0x168(%rbp), %rcx
leaq -0x158(%rbp), %r8
leaq -0x160(%rbp), %r9
callq 0x21fb20
movb $0x1, -0x171(%rbp)
movb -0x171(%rbp), %al
andb $0x1, %al
movb %al, -0x139(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x130(%rbp)
jmp 0x219287
movb $0x0, -0x172(%rbp)
movb -0x172(%rbp), %al
andb $0x1, %al
movb %al, -0x139(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x130(%rbp)
jmp 0x219287
leaq 0x13ac0c(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x139(%rbp), %al
andb $0x1, %al
movb %al, -0x3a(%rbp)
movb -0x139(%rbp), %al
andb $0x1, %al
movb %al, -0x39(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x218f1f
movq -0x38(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
nopw (%rax,%rax)