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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x18(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0x1ef80
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x1f0e0
movq %rax, -0x30(%rbp)
movb $0x1, -0x31(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x51(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x52(%rbp)
testb $0x1, -0x52(%rbp)
je 0x1ee70
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movups -0x50(%rbp), %xmm0
movaps %xmm0, -0x70(%rbp)
movb -0x51(%rbp), %al
andb $0x1, %al
movb %al, -0x71(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0x134(%rbp)
testl %eax, %eax
je 0x1edd0
jmp 0x1ed42
movl -0x134(%rbp), %eax
subl $0x1, %eax
jne 0x1ee1e
jmp 0x1ed53
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x125e0
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0x60(%rbp), %rdx
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x1f130
movq %rax, -0xc0(%rbp)
movb $0x1, -0xc1(%rbp)
movb -0xc1(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x1ee37
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0xd9(%rbp)
movb -0xd9(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x1ee37
leaq 0x33505c(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x91(%rbp), %al
andb $0x1, %al
movb %al, -0x52(%rbp)
movb -0x91(%rbp), %al
andb $0x1, %al
movb %al, -0x51(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1ed0d
jmp 0x1ee72
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x12780
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1ef67
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x12780
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x100(%rbp), %rax
cmpq $0x0, %rax
je 0x1ef67
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x12780
movq %rax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movq -0x110(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1ef67
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x12780
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1ef65
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x12780
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movq -0x130(%rbp), %rdi
movq -0x128(%rbp), %rsi
callq 0x127c0
jmp 0x1ef67
jmp 0x1ef69
movq -0x40(%rbp), %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopw %cs:(%rax,%rax)