// File: /workspace/github_c_makefile_star2_O1/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 0x1c27f
movl %eax, %r14d
movq %rdx, %r15
cmpq $0x0, 0x10fd158(%rip)   # 0x1118ec8
jne 0x1bd88
xorl %edi, %edi
callq 0xf9f7
movq $0x0, 0x10(%rax)
movq %rax, 0x10fd140(%rip)   # 0x1118ec8
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movq 0x10fd12f(%rip), %rbx   # 0x1118ec8
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x1bdae
incl (%rax)
movq -0x50(%rbp), %r12
testl %r14d, %r14d
je 0x1be47
cmpl $0x1, %r14d
jne 0x1bf0a
movq %r15, %rdi
leaq -0x40(%rbp), %rsi
callq 0xd450
movq %r12, %rdi
movq %rbx, %rsi
movq %rax, %rdx
leaq -0x30(%rbp), %rcx
leaq -0x48(%rbp), %r8
callq 0x1c2fe
cmpq $0x0, 0x10fd0e1(%rip)   # 0x1118ed0
jne 0x1be0e
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0xa, 0x18(%rax)
movq %rax, 0x10fd0c2(%rip)   # 0x1118ed0
movq 0x10fd0bb(%rip), %rsi   # 0x1118ed0
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x1be2b
incl (%rax)
movq -0x48(%rbp), %rdi
callq 0xe43c
movq %rax, %rbx
movl -0x40(%rbp), %r14d
movq -0x38(%rbp), %r15
movq -0x30(%rbp), %r12
movb $0x1, %al
jmp 0x1be4c
xorl %eax, %eax
xorl %r15d, %r15d
testb %al, %al
jne 0x1bdb2
movq %r15, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x1be82
decl (%rax)
jne 0x1be82
shlq $0x30, %r14
orq %r15, %r14
leaq 0xf93ff(%rip), %rsi     # 0x115279
movq %r14, %rdi
callq 0xd4e3
leaq -0x40(%rbp), %rdx
movl $0x1f, %edi
movq %rbx, %rsi
callq 0x117af
cmpq $0x0, 0x10fd03d(%rip)   # 0x1118ed8
jne 0x1becc
movl $0x1c, %edi
callq 0xf9f7
movq $0x1c, 0x10(%rax)
movups 0xcb829(%rip), %xmm0    # 0xe76df
movups %xmm0, 0x18(%rax)
movups 0xcb82a(%rip), %xmm0    # 0xe76eb
movups %xmm0, 0x24(%rax)
movq %rax, 0x10fd00c(%rip)   # 0x1118ed8
movq 0x10fd005(%rip), %rsi   # 0x1118ed8
andq %rsi, %r13
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x1bee8
incl (%r13)
movq -0x40(%rbp), %rdi
callq 0xe43c
leaq -0x30(%rbp), %rbx
xorl %edi, %edi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x117af
movq (%rbx), %rdi
callq 0x95a5
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xc882a(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xc882f(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5