// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_map_1_sp4
static struct std_list_List_1 mw_std_list_List_1_map_1_sp4 (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct std_list_List_1 in_List_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5) {
	struct std_list_List_1 v7 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v8;
	mw_std_list_List_1_buildzx(v7, &v8);
	bool v9 = true;
	struct mirth_mirth_zaMirth* r10 = in_zaMirth_1;
	struct mirth_c99_zaC99Branch* r11 = in_zaC99Branch_2;
	struct std_list_List_1 r12 = v8;
	struct std_list_List_1 v13 = in_List_3;
	bool v14 = v9;
	bool v15 = v9;
	while (v15) {
		struct mirth_mirth_zaMirth* r16 = r10;
		struct mirth_c99_zaC99Branch* r17 = r11;
		struct std_list_List_1 r18 = r12;
		struct std_list_List_1 v19 = v13;
		bool v20 = v14;
		struct mirth_mirth_zaMirth* branch_zaMirth_21;
		struct mirth_c99_zaC99Branch* branch_zaC99Branch_22;
		struct std_list_List_1 branch_zaLister_23;
		struct std_list_List_1 branch_List_24;
		bool branch_Bool_25;
		switch ((v19).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v26;
				VAL v27 = mtp_std_list_List_1_Cons(v19, &v26);
				struct mirth_mirth_zaMirth* v28;
				struct mirth_c99_zaC99Branch* v29;
				struct mirth_c99_C99APIArg* v30 = mw_mirth_c99_C99APIArg_reservezeaszenewzevaluezx(r16, r17, V_mirth_c99_C99APIArg(v27), &v28, &v29);
				struct std_list_List_1 v31;
				mw_std_list_zaLister_1_pushzx(MK_mirth_c99_C99APIArg(v30), r18, &v31);
				bool v32 = true;
				branch_Bool_25 = v32;
				branch_List_24 = v26;
				branch_zaLister_23 = v31;
				branch_zaC99Branch_22 = v29;
				branch_zaMirth_21 = v28;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v33 = { .tag=std_list_List_1_Nil };
				bool v34 = false;
				branch_Bool_25 = v34;
				branch_List_24 = v33;
				branch_zaLister_23 = r18;
				branch_zaC99Branch_22 = r17;
				branch_zaMirth_21 = r16;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v15 = branch_Bool_25;
		v14 = branch_Bool_25;
		v13 = branch_List_24;
		r12 = branch_zaLister_23;
		r11 = branch_zaC99Branch_22;
		r10 = branch_zaMirth_21;
	}
	decref(MK_std_list_List_1(v13));
	struct std_list_List_1 v35 = mw_std_list_zaLister_1_donezx(r12);
	*out_zaC99Branch_5 = r11;
	*out_zaMirth_4 = r10;
	return v35;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %r12
movq %r8, %r15
movq %rcx, %r13
movl %edx, %r14d
movq %rsi, -0x38(%rbp)
movq %rdi, %rbx
xorl %edi, %edi
xorl %esi, %esi
callq 0xcd32
leaq -0x70(%rbp), %rsi
movb $0x1, %cl
movq %r13, %rdi
testb $0x1, %cl
je 0xc9a85
xorl %ecx, %ecx
movl $0x0, %r13d
testl %r14d, %r14d
je 0xc98cc
movq %rdx, -0x58(%rbp)
movl %eax, -0x2c(%rbp)
movq %r12, -0x60(%rbp)
movq %r15, -0x40(%rbp)
cmpl $0x1, %r14d
jne 0xc9aed
callq 0xce01
movq %rax, %r12
movq %rax, %r14
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
andq %r13, %r14
setne %al
testb $0x3, %r12b
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0xc992d
incl (%r14)
movq %rbx, %rdi
movq %r12, %rsi
leaq -0x50(%rbp), %rdx
callq 0xa2ec1
testb %al, %al
je 0xc9a08
testb %r15b, %r15b
je 0xc994c
incl (%r14)
movl 0x18(%r12), %edx
movq 0x20(%r12), %rcx
movq %rcx, %r13
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r13
setne %al
testb $0x3, %cl
sete %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0xc997a
incl (%r13)
testb %r15b, %r15b
je 0xc999f
decl (%r14)
jne 0xc999f
movq %r12, %rdi
leaq 0x40703(%rip), %rsi     # 0x10a091
movl %edx, %r14d
movq %rcx, %r15
callq 0xce94
movq %r15, %rcx
movl %r14d, %edx
testb %bl, %bl
movq -0x40(%rbp), %r15
je 0xc99ab
incl (%r13)
movq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rax
movq %rax, (%rsp)
movq -0x38(%rbp), %rsi
movl %edx, %ebx
movq %rcx, %r14
leaq -0x90(%rbp), %r8
leaq -0x88(%rbp), %r9
callq 0xc71b7
movq -0x90(%rbp), %rdi
movq -0x80(%rbp), %rcx
movl %ebx, %esi
movq %r14, %rdx
leaq -0x78(%rbp), %r8
callq 0xa906a
movq %r12, %rdi
movq %rax, %rsi
callq 0xc9b04
movq -0x78(%rbp), %rbx
movq -0x88(%rbp), %rcx
movq %rcx, -0x38(%rbp)
jmp 0xc9a53
movq 0x1045aa9(%rip), %rsi   # 0x110f4b8
testq %rsi, %rsi
jne 0xc9a2d
leaq 0x24b5a(%rip), %rdi     # 0xee575
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x1045a8b(%rip)   # 0x110f4b8
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
movq -0x40(%rbp), %r15
jne 0xc9a47
incl (%rax)
movq %r12, %rdi
callq 0xc9b04
movq -0x50(%rbp), %rbx
movq %rax, %rdi
leaq 0x40634(%rip), %rsi     # 0x10a091
movl -0x2c(%rbp), %edx
movq -0x58(%rbp), %rcx
leaq -0x50(%rbp), %r8
callq 0x8e35
movl -0x70(%rbp), %r14d
movq -0x68(%rbp), %r13
movl -0x50(%rbp), %eax
movq -0x48(%rbp), %rdx
movq -0x60(%rbp), %r12
jmp 0xc98c6
movabsq $0xfffffffffffc, %r8    # imm = 0xFFFFFFFFFFFC
andq %rdi, %r8
sete %sil
testb $0x3, %dil
setne %cl
orb %sil, %cl
jne 0xc9ac9
decl (%r8)
jne 0xc9ac9
shlq $0x30, %r14
orq %rdi, %r14
movl %eax, -0x2c(%rbp)
movq %rdx, %r13
leaq 0x3e7be(%rip), %rsi     # 0x108279
movq %r14, %rdi
callq 0xce94
movq %r13, %rdx
movl -0x2c(%rbp), %eax
movl %eax, %edi
movq %rdx, %rsi
callq 0xcd32
movq -0x38(%rbp), %rcx
movq %rcx, (%r12)
movq %rbx, (%r15)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xad19(%rip), %rdi      # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6