// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_for_1_sp84
static struct mirth_type_Type mw_std_list_List_1_for_1_sp84 (struct mirth_type_Type in_Type_1, struct std_list_List_1 in_List_2) {
	bool v4 = true;
	struct mirth_type_Type v5 = in_Type_1;
	struct std_list_List_1 v6 = in_List_2;
	bool v7 = v4;
	bool v8 = v4;
	while (v8) {
		struct mirth_type_Type v9 = v5;
		struct std_list_List_1 v10 = v6;
		bool v11 = v7;
		struct mirth_type_Type branch_Type_12;
		struct std_list_List_1 branch_List_13;
		bool branch_Bool_14;
		switch ((v10).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v15;
				VAL v16 = mtp_std_list_List_1_Cons(v10, &v15);
				struct mirth_type_Type v17 = mtw_mirth_type_Type_Var(V_mirth_var_Var(v16));
				struct mirth_type_Type v18 = mtw_mirth_type_Type_App(v9, v17);
				bool v19 = true;
				branch_Bool_14 = v19;
				branch_List_13 = v15;
				branch_Type_12 = v18;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v20 = { .tag=std_list_List_1_Nil };
				bool v21 = false;
				branch_Bool_14 = v21;
				branch_List_13 = v20;
				branch_Type_12 = v9;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v8 = branch_Bool_14;
		v7 = branch_Bool_14;
		v6 = branch_List_13;
		v5 = branch_Type_12;
	}
	decref(MK_std_list_List_1(v6));
	return v5;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movl %edi, -0x20(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x30(%rbp)
movq %rcx, -0x28(%rbp)
movb $0x1, -0x31(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x49(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x4a(%rbp)
testb $0x1, -0x4a(%rbp)
je 0x6dfc5
movups -0x10(%rbp), %xmm0
movaps %xmm0, -0x60(%rbp)
movups -0x48(%rbp), %xmm0
movaps %xmm0, -0x70(%rbp)
movb -0x49(%rbp), %al
andb $0x1, %al
movb %al, -0x71(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0x154(%rbp)
testl %eax, %eax
je 0x6df0f
jmp 0x6de52
movl -0x154(%rbp), %eax
subl $0x1, %eax
jne 0x6df68
jmp 0x6de63
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
callq 0x125e0
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0xc0(%rbp), %rdi
callq 0x70570
movl %eax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
movl -0xd0(%rbp), %edx
movq -0xc8(%rbp), %rcx
callq 0x70600
movl %eax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movb $0x1, -0xe1(%rbp)
movb -0xe1(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x6df81
leaq -0xf8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0xf9(%rbp)
movb -0xf9(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x6df81
leaq 0x2e5f12(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0x4a(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0x49(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x6de1d
jmp 0x6dfc7
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x12780
movq %rax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movq -0x108(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x6e0bc
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x12780
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
cmpq $0x0, %rax
je 0x6e0bc
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x12780
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movq -0x130(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x6e0bc
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x12780
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x6e0ba
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x12780
movq %rax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movq -0x150(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x127c0
jmp 0x6e0bc
jmp 0x6e0be
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
nop