// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_pairzy
static struct std_maybe_Maybe_1 mw_std_list_List_1_pairzy (struct std_list_List_1 in_List_1) {
	struct std_maybe_Maybe_1 branch_Maybe_3;
	switch ((in_List_1).tag) {
		case std_list_List_1_Nil: {
			struct std_maybe_Maybe_1 v4 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_3 = v4;
		} break;
		case std_list_List_1_Cons: {
			struct std_list_List_1 v5;
			VAL v6 = mtp_std_list_List_1_Cons(in_List_1, &v5);
			struct std_maybe_Maybe_1 branch_Maybe_7;
			switch ((v5).tag) {
				case std_list_List_1_Nil: {
					decref(v6);
					struct std_maybe_Maybe_1 v8 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_7 = v8;
				} break;
				case std_list_List_1_Cons: {
					struct std_list_List_1 v9;
					VAL v10 = mtp_std_list_List_1_Cons(v5, &v9);
					struct std_maybe_Maybe_1 branch_Maybe_11;
					switch ((v9).tag) {
						case std_list_List_1_Nil: {
							PTUP r12 = PTRMK(0,tup_new(2),0);
							((TUP*)PTRPTR(r12))->size = 2;
							((TUP*)PTRPTR(r12))->cells[1] = v10;
							((TUP*)PTRPTR(r12))->cells[0] = v6;
							struct std_maybe_Maybe_1 v13 = mtw_std_maybe_Maybe_1_Some(MKTUP(r12));
							branch_Maybe_11 = v13;
						} break;
						default: {
							decref(MK_std_list_List_1(v9));
							decref(v10);
							decref(v6);
							struct std_maybe_Maybe_1 v14 = { .tag=std_maybe_Maybe_1_None };
							branch_Maybe_11 = v14;
						} break;
					}
					branch_Maybe_7 = branch_Maybe_11;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Maybe_3 = branch_Maybe_7;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	return branch_Maybe_3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testl %edi, %edi
je 0x8a5a4
cmpl $0x1, %edi
jne 0x8a5f0
leaq -0x48(%rbp), %r15
movq %rsi, %rdi
movq %r15, %rsi
callq 0xce01
movq %rax, %r14
movq %rdx, %rbx
movl (%r15), %eax
cmpl $0x1, %eax
je 0x8a4f0
testl %eax, %eax
jne 0x8a5f0
testb $0x1, %bl
je 0x8a5a2
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movq %r14, %rax
andq %rcx, %rax
jmp 0x8a585
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq -0x40(%rbp), %rdi
leaq -0x38(%rbp), %r13
movq %r13, %rsi
callq 0xce01
movq %rax, %r12
movl (%r13), %edi
testq %rdi, %rdi
je 0x8a5b7
movq -0x30(%rbp), %rax
movq %rax, %rcx
andq %r15, %rcx
sete %r8b
testb $0x3, %al
setne %sil
orb %r8b, %sil
jne 0x8a550
decl (%rcx)
jne 0x8a550
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x7dd34(%rip), %rsi     # 0x108279
movq %rdx, %r13
callq 0xce94
movq %r13, %rdx
testb $0x1, %dl
je 0x8a57a
movq %r12, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r12b
setne %sil
orb %cl, %sil
jne 0x8a57a
decl (%rax)
jne 0x8a57a
movq %r12, %rdi
movq %rdx, %rsi
callq 0xce94
testb $0x1, %bl
je 0x8a5a2
movq %r14, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x8a5a2
decl (%rax)
jne 0x8a5a2
movq %r14, %rdi
movq %rbx, %rsi
callq 0xce94
xorl %edi, %edi
xorl %edx, %edx
movl %edi, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x2
popq %rdi
movq %rdx, %r13
callq 0xd928
andq %rax, %r15
movw $0x2, 0x6(%r15)
movq %r12, 0x18(%r15)
movq %r13, 0x20(%r15)
movq %r14, 0x8(%r15)
movq %rbx, 0x10(%r15)
leaq 0x7ddb6(%rip), %rsi     # 0x108399
movq %rax, %rdi
callq 0x8d0c
pushq $0x1
popq %rdi
jmp 0x8a5a6
leaq 0x4a216(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6