// File: /workspace/github_c_makefile_star2_O2/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, %r15
movq %rsi, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
movl 0x10(%rbp), %r14d
movq 0x18(%rbp), %r13
movb $0x1, %bl
testb $0x1, %bl
je 0x2d881
testl %r14d, %r14d
je 0x2d862
cmpl $0x1, %r14d
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
jne 0x2d8f0
movq %r13, %rdi
leaq -0x68(%rbp), %rsi
callq 0xce01
movq %rax, %r14
movq %r15, %rdi
movq %r12, %rsi
callq 0xd8b0
movq %r14, %rdx
shrq $0x30, %rdx
andq %rbx, %r14
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rcx
leaq -0x58(%rbp), %r8
leaq -0x50(%rbp), %r9
callq 0x2c993
movq 0x10deda2(%rip), %r12   # 0x110c5b8
testq %r12, %r12
jne 0x2d834
leaq 0xc0af2(%rip), %rdi     # 0xee314
pushq $0x2
popq %rsi
callq 0x8a21
movq %rax, %r12
movq %rax, 0x10ded84(%rip)   # 0x110c5b8
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x2d84a
incl (%rax)
movl -0x68(%rbp), %r14d
movq -0x60(%rbp), %r13
movq -0x50(%rbp), %r15
movq -0x58(%rbp), %rax
movq %rax, -0x30(%rbp)
movb $0x1, %bl
jmp 0x2d86a
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r13d, %r13d
movq %r12, %rdi
leaq 0xda8e5(%rip), %rsi     # 0x108159
callq 0x8b55
movq %rax, %r12
jmp 0x2d7ae
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %r13, %rdx
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x2d8b6
decl (%rdx)
jne 0x2d8b6
shlq $0x30, %r14
orq %r13, %r14
leaq 0xda9cb(%rip), %rsi     # 0x108279
movq %r14, %rdi
callq 0xce94
movq 0x20(%rbp), %rax
movq %r15, (%rax)
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rax, (%rcx)
leaq 0xdb699(%rip), %rax     # 0x108f68
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
leaq 0xa6f16(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6