// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_len
static INT mw_std_list_List_1_len (struct std_list_List_1 in_List_1) {
	INT v3 = WRAP_I63(0LL);
	bool v4 = true;
	INT v5 = v3;
	struct std_list_List_1 v6 = in_List_1;
	bool v7 = v4;
	bool v8 = v4;
	while (v8) {
		INT v9 = v5;
		struct std_list_List_1 v10 = v6;
		bool v11 = v7;
		INT branch_Nat_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);
				decref(v16);
				INT v17 = WRAP_I63(1LL);
				INT v18 = v9;
				INT v19 = v17;
				INT v20 = int_add(v18, v19);
				INT v21 = v20;
				bool v22 = true;
				branch_Bool_14 = v22;
				branch_List_13 = v15;
				branch_Nat_12 = v21;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v23 = { .tag=std_list_List_1_Nil };
				bool v24 = false;
				branch_Bool_14 = v24;
				branch_List_13 = v23;
				branch_Nat_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_Nat_12;
	}
	decref(MK_std_list_List_1(v6));
	return v5;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movl %edi, -0x18(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x33b937(%rip), %rax    # 0x36ea50
movq %rax, -0x20(%rbp)
movb $0x1, -0x21(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movb -0x21(%rbp), %al
andb $0x1, %al
movb %al, -0x39(%rbp)
movb -0x21(%rbp), %al
andb $0x1, %al
movb %al, -0x3a(%rbp)
testb $0x1, -0x3a(%rbp)
je 0x33338
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
movups -0x38(%rbp), %xmm0
movaps %xmm0, -0x60(%rbp)
movb -0x39(%rbp), %al
andb $0x1, %al
movb %al, -0x61(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x144(%rbp)
testl %eax, %eax
je 0x332a4
jmp 0x3317e
movl -0x144(%rbp), %eax
subl $0x1, %eax
jne 0x332ec
jmp 0x3318f
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0x125e0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3321b
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0x3321b
movq -0xa8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3321b
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x33219
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x127c0
jmp 0x3321b
jmp 0x3321d
movq 0x33b834(%rip), %rax    # 0x36ea58
movq %rax, -0xb0(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0x1b780
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movb $0x1, -0xd1(%rbp)
movb -0xd1(%rbp), %al
andb $0x1, %al
movb %al, -0x81(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x70(%rbp)
jmp 0x33305
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, -0x81(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x70(%rbp)
jmp 0x33305
leaq 0x320b8e(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x81(%rbp), %al
andb $0x1, %al
movb %al, -0x3a(%rbp)
movb -0x81(%rbp), %al
andb $0x1, %al
movb %al, -0x39(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33149
jmp 0x3333a
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3342f
movl -0x38(%rbp), %edi
movq -0x30(%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 0x3342f
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x120(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3342f
movl -0x38(%rbp), %edi
movq -0x30(%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 0x3342d
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0x127c0
jmp 0x3342f
jmp 0x33431
movq -0x8(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nop