// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_for_2_sp3
static void mw_std_list_List_1_for_2_sp3 (struct mirth_mirth_zaMirth* in_zaMirth_1, VAL in_zux1_2, STR* in_zaStr_3, struct std_list_List_1 in_List_4, struct mirth_mirth_zaMirth* *out_zaMirth_5, VAL *out_zux1_6, STR* *out_zaStr_7) {
	struct std_list_List_1 v8;
	struct std_maybe_Maybe_1 v9 = mw_std_list_List_1_uncons(in_List_4, &v8);
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	VAL branch_zux1_11;
	STR* branch_zaStr_12;
	switch ((v9).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v13 = mtp_std_maybe_Maybe_1_Some(v9);
			struct mirth_mirth_zaMirth* v14;
			STR* v15;
			mw_mirth_name_Namespace_namezj(in_zaMirth_1, in_zaStr_3, V_mirth_name_Namespace(v13), &v14, &v15);
			branch_zaStr_12 = v15;
			branch_zux1_11 = in_zux1_2;
			branch_zaMirth_10 = v14;
		} break;
		case std_maybe_Maybe_1_None: {
			branch_zaStr_12 = in_zaStr_3;
			branch_zux1_11 = in_zux1_2;
			branch_zaMirth_10 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	bool v16 = true;
	struct mirth_mirth_zaMirth* r17 = branch_zaMirth_10;
	VAL r18 = branch_zux1_11;
	STR* r19 = branch_zaStr_12;
	struct std_list_List_1 v20 = v8;
	bool v21 = v16;
	bool v22 = v16;
	while (v22) {
		struct mirth_mirth_zaMirth* r23 = r17;
		VAL r24 = r18;
		STR* r25 = r19;
		struct std_list_List_1 v26 = v20;
		bool v27 = v21;
		struct mirth_mirth_zaMirth* branch_zaMirth_28;
		VAL branch_zux1_29;
		STR* branch_zaStr_30;
		struct std_list_List_1 branch_List_31;
		bool branch_Bool_32;
		switch ((v26).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v33;
				VAL v34 = mtp_std_list_List_1_Cons(v26, &v33);
				STR* v35;
				STRLIT(v35, " ", 1);
				STR* v36;
				mw_std_str_zaStr_pushzestrzx(v35, r25, &v36);
				struct mirth_mirth_zaMirth* v37;
				STR* v38;
				mw_mirth_name_Namespace_namezj(r23, v36, V_mirth_name_Namespace(v34), &v37, &v38);
				bool v39 = true;
				branch_Bool_32 = v39;
				branch_List_31 = v33;
				branch_zaStr_30 = v38;
				branch_zux1_29 = r24;
				branch_zaMirth_28 = v37;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v40 = { .tag=std_list_List_1_Nil };
				bool v41 = false;
				branch_Bool_32 = v41;
				branch_List_31 = v40;
				branch_zaStr_30 = r25;
				branch_zux1_29 = r24;
				branch_zaMirth_28 = r23;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v22 = branch_Bool_32;
		v21 = branch_Bool_32;
		v20 = branch_List_31;
		r19 = branch_zaStr_30;
		r18 = branch_zux1_29;
		r17 = branch_zaMirth_28;
	}
	decref(MK_std_list_List_1(v20));
	*out_zaStr_7 = r19;
	*out_zux1_6 = r18;
	*out_zaMirth_5 = r17;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %rbx
movq %rdx, %r12
movq %rsi, -0x48(%rbp)
movq %rdi, %r15
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x68(%rbp), %rdx
movl %ecx, %edi
movq %r8, %rsi
callq 0x1075d
testl %eax, %eax
movq %rbx, -0x50(%rbp)
je 0x2cc3b
cmpl $0x1, %eax
jne 0x2cd55
movq %rdx, %rdi
callq 0xd491
movq %rax, %rdx
shrq $0x30, %rdx
andq %r14, %rax
leaq -0x40(%rbp), %r13
leaq -0x30(%rbp), %rbx
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rcx
movq %r13, %r8
movq %rbx, %r9
callq 0x2cef9
movq (%rbx), %r12
movq (%r13), %r15
movq 0x18(%rbp), %r13
movq 0x10(%rbp), %rbx
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rcx
leaq -0x40(%rbp), %rsi
movb $0x1, %dl
movq %rcx, %rax
testb $0x1, %dl
je 0x2cd02
xorl %edx, %edx
movl $0x0, %ecx
testl %edi, %edi
je 0x2cc50
cmpl $0x1, %edi
jne 0x2cd55
movq %r15, %rbx
movq %r13, %r15
movq %rax, %rdi
callq 0xce01
movq %rax, %r13
movq 0x10df8d8(%rip), %rsi   # 0x110c560
testq %rsi, %rsi
jne 0x2cca6
leaq 0xa9173(%rip), %rdi     # 0xd5e07
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x10df8ba(%rip)   # 0x110c560
movq %rsi, %rax
andq %r14, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x2ccbc
incl (%rax)
movq %r12, %rdi
callq 0xd8b0
movq %r13, %rdx
shrq $0x30, %rdx
andq %r14, %r13
movq %rbx, %rdi
movq %rax, %rsi
movq %r13, %rcx
leaq -0x30(%rbp), %r8
leaq -0x58(%rbp), %r9
callq 0x2cef9
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rcx
movq -0x58(%rbp), %r12
movq -0x30(%rbp), %rax
movq %r15, %r13
movq %rax, %r15
movq 0x10(%rbp), %rbx
jmp 0x2cc4a
andq %rax, %r14
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
jne 0x2cd29
decl (%r14)
jne 0x2cd29
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xdb555(%rip), %rsi     # 0x108279
callq 0xce94
movq %r12, (%r13)
movq -0x48(%rbp), %rax
movq %rax, (%rbx)
leaq 0xdc22d(%rip), %rax     # 0x108f68
movq %rax, 0x8(%rbx)
movq -0x50(%rbp), %rax
movq %r15, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa7ab1(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6