// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_mirth_zaMirth_tracezediagnosticszx
static void mw_mirth_mirth_zaMirth_tracezediagnosticszx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_mirth_zaMirth* *out_zaMirth_2) {
	struct mirth_mirth_zaMirth* v5;
	struct std_list_List_1 v6 = mw_mirth_mirth_zaMirth_popzediagnosticszx(in_zaMirth_1, &v5);
	bool v7 = true;
	struct mirth_mirth_zaMirth* r8 = v5;
	struct std_list_List_1 v9 = v6;
	bool v10 = v7;
	bool v11 = v7;
	while (v11) {
		struct mirth_mirth_zaMirth* r12 = r8;
		struct std_list_List_1 v13 = v9;
		bool v14 = v10;
		struct mirth_mirth_zaMirth* branch_zaMirth_15;
		struct std_list_List_1 branch_List_16;
		bool branch_Bool_17;
		switch ((v13).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v18;
				VAL v19 = mtp_std_list_List_1_Cons(v13, &v18);
				STR* v20;
				STRLIT(v20, "", 0);
				struct mirth_mirth_zaMirth* v21;
				STR* v22;
				mw_mirth_mirth_Diagnostic_diagnosticzj(r12, v20, V_mirth_mirth_Diagnostic(v19), &v21, &v22);
				mw_std_prim_zaWorld_trace(v22);
				bool v23 = true;
				branch_Bool_17 = v23;
				branch_List_16 = v18;
				branch_zaMirth_15 = v21;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v24 = { .tag=std_list_List_1_Nil };
				bool v25 = false;
				branch_Bool_17 = v25;
				branch_List_16 = v24;
				branch_zaMirth_15 = r12;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v11 = branch_Bool_17;
		v10 = branch_Bool_17;
		v9 = branch_List_16;
		r8 = branch_zaMirth_15;
	}
	decref(MK_std_list_List_1(v9));
	*out_zaMirth_2 = r8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, -0x30(%rbp)
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
leaq -0x58(%rbp), %rbx
movq %rbx, %rsi
callq 0x1c27f
movq %rdx, %rdi
movq (%rbx), %r14
leaq -0x40(%rbp), %r12
leaq -0x38(%rbp), %r13
testl %eax, %eax
je 0x7f99f
cmpl $0x1, %eax
jne 0x7f9ed
leaq -0x50(%rbp), %rsi
callq 0xd450
movq %rax, %rbx
cmpq $0x0, 0x109ae97(%rip)   # 0x111a7d8
jne 0x7f959
xorl %edi, %edi
callq 0xf9f7
movq $0x0, 0x10(%rax)
movq %rax, 0x109ae7f(%rip)   # 0x111a7d8
movq 0x109ae78(%rip), %rsi   # 0x111a7d8
movq %rsi, %rax
andq %r15, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x7f976
incl (%rax)
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
movq %r13, %r8
callq 0x1c2fe
movq -0x38(%rbp), %rdi
callq 0x7fa1d
movl -0x50(%rbp), %eax
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %r14
movb $0x1, %cl
jmp 0x7f9a3
xorl %ecx, %ecx
xorl %edi, %edi
testb %cl, %cl
jne 0x7f920
andq %rdi, %r15
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x7f9d7
decl (%r15)
jne 0x7f9d7
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x958aa(%rip), %rsi     # 0x115279
movq %rax, %rdi
callq 0xd4e3
movq -0x30(%rbp), %rax
movq %r14, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x64d47(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x64d4c(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5