// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_Nest_1_last
static VAL mw_std_list_Nest_1_last (struct std_list_Nest_1* in_Nest_1) {
	struct std_list_List_1 v3;
	VAL v4 = mw_std_list_Nest_1_uncons(in_Nest_1, &v3);
	bool v5 = true;
	VAL v6 = v4;
	struct std_list_List_1 v7 = v3;
	bool v8 = v5;
	bool v9 = v5;
	while (v9) {
		VAL v10 = v6;
		struct std_list_List_1 v11 = v7;
		bool v12 = v8;
		VAL branch_zux1_13;
		struct std_list_List_1 branch_List_14;
		bool branch_Bool_15;
		switch ((v11).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v16;
				VAL v17 = mtp_std_list_List_1_Cons(v11, &v16);
				decref(v10);
				bool v18 = true;
				branch_Bool_15 = v18;
				branch_List_14 = v16;
				branch_zux1_13 = v17;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v19 = { .tag=std_list_List_1_Nil };
				bool v20 = false;
				branch_Bool_15 = v20;
				branch_List_14 = v19;
				branch_zux1_13 = v10;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v9 = branch_Bool_15;
		v8 = branch_Bool_15;
		v7 = branch_List_14;
		v6 = branch_zux1_13;
	}
	decref(MK_std_list_List_1(v7));
	return v6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x18(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1f210
movq %rax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movb $0x1, -0x39(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movb -0x39(%rbp), %al
andb $0x1, %al
movb %al, -0x51(%rbp)
movb -0x39(%rbp), %al
andb $0x1, %al
movb %al, -0x52(%rbp)
testb $0x1, -0x52(%rbp)
je 0x857e8
movups -0x10(%rbp), %xmm0
movaps %xmm0, -0x70(%rbp)
movups -0x50(%rbp), %xmm0
movaps %xmm0, -0x80(%rbp)
movb -0x51(%rbp), %al
andb $0x1, %al
movb %al, -0x81(%rbp)
movl -0x80(%rbp), %eax
movl %eax, -0x144(%rbp)
testl %eax, %eax
je 0x8572c
jmp 0x85650
movl -0x144(%rbp), %eax
subl $0x1, %eax
jne 0x85788
jmp 0x85661
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
callq 0x125e0
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movq -0x68(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x856db
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0x856db
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x856db
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x856d9
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x127c0
jmp 0x856db
jmp 0x856dd
movb $0x1, -0xd1(%rbp)
movb -0xd1(%rbp), %al
andb $0x1, %al
movb %al, -0xa9(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x857a1
leaq -0xe8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0xe9(%rbp)
movb -0xe9(%rbp), %al
andb $0x1, %al
movb %al, -0xa9(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x857a1
leaq 0x2ce6f2(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0xa9(%rbp), %al
andb $0x1, %al
movb %al, -0x52(%rbp)
movb -0xa9(%rbp), %al
andb $0x1, %al
movb %al, -0x51(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x85618
jmp 0x857ea
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x12780
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x858df
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x12780
movq %rax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x110(%rbp), %rax
cmpq $0x0, %rax
je 0x858df
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x12780
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x120(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x858df
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x12780
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x130(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x858dd
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x12780
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0x127c0
jmp 0x858df
jmp 0x858e1
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rdx
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nopw %cs:(%rax,%rax)