// File: /workspace/github_c_makefile_star2_O1/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, -0x58(%rbp)
movq %r8, -0x60(%rbp)
movq %rcx, %r14
movl %edx, %r13d
movq %rsi, -0x30(%rbp)
movq %rdi, %rbx
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd37c
movl %eax, %r12d
movq %rdx, %r15
testl %r13d, %r13d
je 0xd99ad
movl %r12d, -0x34(%rbp)
movq %r15, -0x40(%rbp)
cmpl $0x1, %r13d
jne 0xd9aa9
movq %r14, %rdi
leaq -0x90(%rbp), %rsi
callq 0xd450
movq %rax, %r12
movq %rax, %r13
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
andq %r14, %r13
setne %al
testb $0x3, %r12b
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0xd98de
incl (%r13)
movq %rbx, %rdi
movq %r12, %rsi
leaq -0x50(%rbp), %rdx
callq 0xaf87a
testb %al, %al
je 0xd99b7
testb %r15b, %r15b
je 0xd98fe
incl (%r13)
movl 0x18(%r12), %edx
movq 0x20(%r12), %rcx
movq %rcx, %r14
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r14
setne %al
testb $0x3, %cl
sete %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0xd992b
incl (%r14)
testb %r15b, %r15b
je 0xd9951
decl (%r13)
jne 0xd9951
movq %r12, %rdi
leaq 0x3d751(%rip), %rsi     # 0x117091
movl %edx, %r15d
movq %rcx, %r13
callq 0xd4e3
movq %r13, %rcx
movl %r15d, %edx
testb %bl, %bl
movq -0x40(%rbp), %r15
je 0xd995c
incl (%r14)
movq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rax
movq %rax, (%rsp)
movq -0x30(%rbp), %rsi
movl %edx, %ebx
movq %rcx, %r14
leaq -0x80(%rbp), %r8
leaq -0x78(%rbp), %r9
callq 0xd6dcb
movq -0x80(%rbp), %rdi
movq -0x70(%rbp), %rcx
movl %ebx, %esi
movq %r14, %rdx
leaq -0x68(%rbp), %r8
callq 0xb6146
movq %r12, %rdi
movq %rax, %rsi
callq 0xd9ad9
movq -0x68(%rbp), %rbx
movq -0x78(%rbp), %rcx
movq %rcx, -0x30(%rbp)
jmp 0xd9a0b
xorl %eax, %eax
xorl %r14d, %r14d
jmp 0xd9a3c
cmpq $0x0, 0x1042af1(%rip)   # 0x111c4b0
jne 0xd99de
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x30, 0x18(%rax)
movq %rax, 0x1042ad2(%rip)   # 0x111c4b0
movq 0x1042acb(%rip), %rsi   # 0x111c4b0
movq %rsi, %rax
andq %r14, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
movq -0x40(%rbp), %r15
jne 0xd99ff
incl (%rax)
movq %r12, %rdi
callq 0xd9ad9
movq -0x50(%rbp), %rbx
movq %rax, %rdi
leaq 0x3d67c(%rip), %rsi     # 0x117091
movl -0x34(%rbp), %edx
movq %r15, %rcx
leaq -0x50(%rbp), %r8
callq 0x9741
movl -0x90(%rbp), %r13d
movq -0x88(%rbp), %r14
movl -0x50(%rbp), %r12d
movq -0x48(%rbp), %r15
movb $0x1, %al
testb %al, %al
jne 0xd9889
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %r14, %rdx
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0xd9a79
decl (%rdx)
jne 0xd9a79
shlq $0x30, %r13
orq %r14, %r13
leaq 0x3b808(%rip), %rsi     # 0x115279
movq %r13, %rdi
callq 0xd4e3
xorl %edi, %edi
xorl %esi, %esi
movl %r12d, %edx
movq %r15, %rcx
callq 0xd37c
movq -0x58(%rbp), %rcx
movq -0x30(%rbp), %rsi
movq %rsi, (%rcx)
movq -0x60(%rbp), %rcx
movq %rbx, (%rcx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xac8b(%rip), %xmm0     # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xac90(%rip), %xmm0     # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5