// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_mirth_zaMirth_paniczediagnosticszx
static void mw_mirth_mirth_zaMirth_paniczediagnosticszx (struct mirth_mirth_zaMirth* in_zaMirth_1) {
	struct mirth_mirth_zaMirth* v2;
	struct std_list_List_1 v3 = mw_mirth_mirth_zaMirth_popzediagnosticszx(in_zaMirth_1, &v2);
	STR* v4;
	STRLIT(v4, "", 0);
	bool v5 = true;
	struct mirth_mirth_zaMirth* r6 = v2;
	STR* r7 = v4;
	struct std_list_List_1 v8 = v3;
	bool v9 = v5;
	bool v10 = v5;
	while (v10) {
		struct mirth_mirth_zaMirth* r11 = r6;
		STR* r12 = r7;
		struct std_list_List_1 v13 = v8;
		bool v14 = v9;
		struct mirth_mirth_zaMirth* branch_zaMirth_15;
		STR* branch_zaStr_16;
		struct std_list_List_1 branch_List_17;
		bool branch_Bool_18;
		switch ((v13).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v19;
				VAL v20 = mtp_std_list_List_1_Cons(v13, &v19);
				struct mirth_mirth_zaMirth* v21;
				STR* v22;
				mw_mirth_mirth_Diagnostic_diagnosticzj(r11, r12, V_mirth_mirth_Diagnostic(v20), &v21, &v22);
				STR* v23;
				STRLIT(v23, "\n", 1);
				STR* v24;
				mw_std_str_zaStr_pushzestrzx(v23, v22, &v24);
				bool v25 = true;
				branch_Bool_18 = v25;
				branch_List_17 = v19;
				branch_zaStr_16 = v24;
				branch_zaMirth_15 = v21;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v26 = { .tag=std_list_List_1_Nil };
				bool v27 = false;
				branch_Bool_18 = v27;
				branch_List_17 = v26;
				branch_zaStr_16 = r12;
				branch_zaMirth_15 = r11;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v10 = branch_Bool_18;
		v9 = branch_Bool_18;
		v8 = branch_List_17;
		r7 = branch_zaStr_16;
		r6 = branch_zaMirth_15;
	}
	decref(MK_std_list_List_1(v8));
	struct std_terminal_Sgr v28 = { .tag=std_terminal_Sgr_FGRed };
	STR* v29;
	mw_std_terminal_Sgr_emitzj(v28, r7, &v29);
	STR* v30;
	STRLIT(v30, "Fatal error. Stopping early.", 28);
	STR* v31;
	mw_std_str_zaStr_pushzestrzx(v30, v29, &v31);
	struct std_terminal_Sgr v32 = { .tag=std_terminal_Sgr_Reset };
	STR* v33;
	mw_std_terminal_Sgr_emitzj(v32, v31, &v33);
	do_panic(v33);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq -0x50(%rbp), %rsi
callq 0x1bf77
movl %eax, %r13d
movq %rdx, %rbx
movq 0x10f9421(%rip), %r12   # 0x1114ec8
testq %r12, %r12
jne 0x1bac5
xorl %edi, %edi
callq 0xf5e4
movq %rax, %r12
movq $0x0, 0x10(%rax)
movq %rax, 0x10f9403(%rip)   # 0x1114ec8
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %r12, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x1bae5
incl (%rax)
movq -0x50(%rbp), %r14
cmpl $0x1, %r13d
jne 0x1bb74
movq %rbx, %rdi
leaq -0x40(%rbp), %rsi
callq 0xd0aa
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rdx
leaq -0x30(%rbp), %rcx
leaq -0x48(%rbp), %r8
callq 0x1c007
movq 0x10f93b4(%rip), %rsi   # 0x1114ed0
testq %rsi, %rsi
jne 0x1bb41
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x1, 0x10(%rax)
movb $0xa, 0x18(%rax)
movq %rax, 0x10f938f(%rip)   # 0x1114ed0
movq %rsi, %rax
andq %r15, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x1bb57
incl (%rax)
movq -0x48(%rbp), %rdi
callq 0xe069
movq %rax, %r12
movl -0x40(%rbp), %r13d
movq -0x38(%rbp), %rbx
movq -0x30(%rbp), %r14
jmp 0x1bae9
testl %r13d, %r13d
jne 0x1bc02
leaq -0x40(%rbp), %rdx
movl $0x1f, %edi
movq %r12, %rsi
callq 0x113bd
movq 0x10f9343(%rip), %rsi   # 0x1114ed8
testq %rsi, %rsi
jne 0x1bbcc
movl $0x1c, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x1c, 0x10(%rax)
movups 0xc7a2a(%rip), %xmm0    # 0xe35e0
movups %xmm0, 0x18(%rax)
movups 0xc7a2b(%rip), %xmm0    # 0xe35ec
movups %xmm0, 0x24(%rax)
movq %rax, 0x10f930c(%rip)   # 0x1114ed8
andq %rsi, %r15
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x1bbe0
incl (%r15)
movq -0x40(%rbp), %rdi
callq 0xe069
leaq -0x30(%rbp), %rbx
xorl %edi, %edi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x113bd
movq (%rbx), %rdi
callq 0x9302
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xc4ab2(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xc4ab7(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302