// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_for_1_sp105
static STR* mw_std_list_List_1_for_1_sp105 (struct mirth_mirth_zaMirth* in_zaMirth_1, VAL in_zux1_2, STR* in_zaStr_3, STR* in_Str_4, struct std_list_List_1 in_List_5, struct mirth_mirth_zaMirth* *out_zaMirth_6, VAL *out_zux1_7, STR* *out_zaStr_8) {
	bool v10 = true;
	struct mirth_mirth_zaMirth* r11 = in_zaMirth_1;
	VAL r12 = in_zux1_2;
	STR* r13 = in_zaStr_3;
	STR* v14 = in_Str_4;
	struct std_list_List_1 v15 = in_List_5;
	bool v16 = v10;
	bool v17 = v10;
	while (v17) {
		struct mirth_mirth_zaMirth* r18 = r11;
		VAL r19 = r12;
		STR* r20 = r13;
		STR* v21 = v14;
		struct std_list_List_1 v22 = v15;
		bool v23 = v16;
		struct mirth_mirth_zaMirth* branch_zaMirth_24;
		VAL branch_zux1_25;
		STR* branch_zaStr_26;
		VAL branch__27;
		struct std_list_List_1 branch_List_28;
		bool branch_Bool_29;
		switch ((v22).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v30;
				VAL v31 = mtp_std_list_List_1_Cons(v22, &v30);
				STR* v32;
				mw_std_str_zaStr_pushzestrzx(v21, r20, &v32);
				struct mirth_mirth_zaMirth* v33;
				STR* v34;
				mw_mirth_def_Def_qnamezj(r18, v32, V_mirth_def_Def(v31), &v33, &v34);
				STR* v35;
				STRLIT(v35, ", ", 2);
				bool v36 = true;
				branch_Bool_29 = v36;
				branch_List_28 = v30;
				branch__27 = MKSTR(v35);
				branch_zaStr_26 = v34;
				branch_zux1_25 = r19;
				branch_zaMirth_24 = v33;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v37 = { .tag=std_list_List_1_Nil };
				bool v38 = false;
				branch_Bool_29 = v38;
				branch_List_28 = v37;
				branch__27 = MKSTR(v21);
				branch_zaStr_26 = r20;
				branch_zux1_25 = r19;
				branch_zaMirth_24 = r18;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v17 = branch_Bool_29;
		v16 = branch_Bool_29;
		v15 = branch_List_28;
		v14 = value_str(branch__27);
		r13 = branch_zaStr_26;
		r12 = branch_zux1_25;
		r11 = branch_zaMirth_24;
	}
	decref(MK_std_list_List_1(v15));
	*out_zaStr_8 = r13;
	*out_zux1_7 = r12;
	*out_zaMirth_6 = r11;
	return v14;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, -0x40(%rbp)
movq %r8, -0x48(%rbp)
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
movl 0x10(%rbp), %ebx
movq 0x18(%rbp), %r13
testl %ebx, %ebx
je 0x3103b
cmpl $0x1, %ebx
jne 0x310cd
movq %r13, %rdi
leaq -0x68(%rbp), %rsi
callq 0xd450
movq %rax, %rbx
movq %r14, %rdi
movq %r12, %rsi
callq 0xe43c
movq %rbx, %rdx
shrq $0x30, %rdx
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
andq %r14, %rbx
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %rbx, %rcx
leaq -0x58(%rbp), %r8
leaq -0x50(%rbp), %r9
callq 0x30017
cmpq $0x0, 0x10e85d3(%rip)   # 0x11195b8
jne 0x31006
movl $0x2, %edi
callq 0xf9f7
movq $0x2, 0x10(%rax)
movw $0x202c, 0x18(%rax)     # imm = 0x202C
movq %rax, 0x10e85b2(%rip)   # 0x11195b8
movq 0x10e85ab(%rip), %r12   # 0x11195b8
movq %r12, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x31023
incl (%rax)
movl -0x68(%rbp), %ebx
movq -0x60(%rbp), %r13
movq -0x50(%rbp), %r14
movq -0x58(%rbp), %rax
movq %rax, -0x30(%rbp)
movb $0x1, %r15b
jmp 0x31043
xorl %r15d, %r15d
xorl %ebx, %ebx
xorl %r13d, %r13d
movq %r12, %rdi
leaq 0xe410c(%rip), %rsi     # 0x115159
callq 0x942c
movq %rax, %r12
testb %r15b, %r15b
jne 0x30f87
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %r13, %rdx
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x31093
decl (%rdx)
jne 0x31093
shlq $0x30, %rbx
orq %r13, %rbx
leaq 0xe41ee(%rip), %rsi     # 0x115279
movq %rbx, %rdi
callq 0xd4e3
movq 0x20(%rbp), %rax
movq %r14, (%rax)
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rax, (%rcx)
leaq 0xe4ebc(%rip), %rax     # 0x115f68
movq %rax, 0x8(%rcx)
movq -0x48(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq %r12, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xb3667(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xb366c(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5