// File: /workspace/github_c_makefile_star2_O1/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 0x945fa
cmpl $0x1, %edi
jne 0x9464a
leaq -0x48(%rbp), %r15
movq %rsi, %rdi
movq %r15, %rsi
callq 0xd450
movq %rax, %r14
movq %rdx, %rbx
movl (%r15), %eax
cmpl $0x1, %eax
je 0x94546
testl %eax, %eax
jne 0x9464a
testb $0x1, %bl
je 0x945f8
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movq %r14, %rax
andq %rcx, %rax
jmp 0x945db
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq -0x40(%rbp), %rdi
leaq -0x38(%rbp), %r13
movq %r13, %rsi
callq 0xd450
movq %rax, %r12
movl (%r13), %edi
testq %rdi, %rdi
je 0x9460d
movq -0x30(%rbp), %rax
movq %rax, %rcx
andq %r15, %rcx
sete %r8b
testb $0x3, %al
setne %sil
orb %r8b, %sil
jne 0x945a6
decl (%rcx)
jne 0x945a6
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x80cde(%rip), %rsi     # 0x115279
movq %rdx, %r13
callq 0xd4e3
movq %r13, %rdx
testb $0x1, %dl
je 0x945d0
movq %r12, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r12b
setne %sil
orb %cl, %sil
jne 0x945d0
decl (%rax)
jne 0x945d0
movq %r12, %rdi
movq %rdx, %rsi
callq 0xd4e3
testb $0x1, %bl
je 0x945f8
movq %r14, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x945f8
decl (%rax)
jne 0x945f8
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd4e3
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
movl $0x2, %edi
movq %rdx, %r13
callq 0xe4ba
andq %rax, %r15
movw $0x2, 0x6(%r15)
movq %r12, 0x18(%r15)
movq %r13, 0x20(%r15)
movq %r14, 0x8(%r15)
movq %rbx, 0x10(%r15)
leaq 0x80d5e(%rip), %rsi     # 0x115399
movq %rax, %rdi
callq 0x95f6
movl $0x1, %edi
jmp 0x945fc
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x500ea(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x500ef(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5