// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_mirth_zaMirth_emitzediagnosticzeatzx
static void mw_mirth_mirth_zaMirth_emitzediagnosticzeatzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_location_Location* in_Location_2, STR* in_Str_3, enum mirth_mirth_Severity in_Severity_4, struct mirth_mirth_zaMirth* *out_zaMirth_5) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	STR* branch_Str_7;
	struct mirth_location_Location* branch_Location_8;
	enum mirth_mirth_Severity branch_Severity_9;
	switch (in_Severity_4) {
		case mirth_mirth_Severity_Info: {
			branch_Severity_9 = in_Severity_4;
			branch_Location_8 = in_Location_2;
			branch_Str_7 = in_Str_3;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_mirth_Severity_Warning: {
			INT v10 = in_zaMirth_1->mnumzewarnings;
			incref(MKNAT(v10));
			INT v11 = WRAP_I63(1LL);
			INT v12 = v10;
			INT v13 = v11;
			INT v14 = int_add(v12, v13);
			INT v15 = v14;
			INT v16 = in_zaMirth_1->mnumzewarnings;
			decref(MKNAT(v16));
			in_zaMirth_1->mnumzewarnings = v15;
			branch_Severity_9 = in_Severity_4;
			branch_Location_8 = in_Location_2;
			branch_Str_7 = in_Str_3;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_mirth_Severity_Error: {
			INT v17 = in_zaMirth_1->mnumzeerrors;
			incref(MKNAT(v17));
			INT v18 = WRAP_I63(1LL);
			INT v19 = v17;
			INT v20 = v18;
			INT v21 = int_add(v19, v20);
			INT v22 = v21;
			INT v23 = in_zaMirth_1->mnumzeerrors;
			decref(MKNAT(v23));
			in_zaMirth_1->mnumzeerrors = v22;
			branch_Severity_9 = in_Severity_4;
			branch_Location_8 = in_Location_2;
			branch_Str_7 = in_Str_3;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	struct mirth_mirth_Diagnostic* v24 = mtw_mirth_mirth_Diagnostic_Diagnostic(branch_Severity_9, branch_Location_8, branch_Str_7);
	struct std_list_List_1 r25 = branch_zaMirth_6->mzadiagnostics;
	struct std_list_List_1 v26;
	mw_std_list_zaLister_1_pushzx(MK_mirth_mirth_Diagnostic(v24), r25, &v26);
	branch_zaMirth_6->mzadiagnostics = v26;
	*out_zaMirth_5 = branch_zaMirth_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x214(%rbp)
testl %eax, %eax
je 0x6286e
jmp 0x6284d
movl -0x214(%rbp), %eax
subl $0x1, %eax
je 0x62891
jmp 0x6285a
movl -0x214(%rbp), %eax
subl $0x2, %eax
je 0x62af2
jmp 0x62d7a
movl -0x1c(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x62d93
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq 0x32e864(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x6294b
movq -0x50(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x32e83b(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x68(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0x6294b
movq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x32e810(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x80(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x6294b
movq -0x50(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x32e7e8(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x88(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x90(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x6294d
movq 0x30c104(%rip), %rax    # 0x36ea58
movq %rax, -0x98(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x1b780
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x32e750(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x62abe
movq -0xc0(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x32e71b(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe0(%rbp), %rax
cmpq $0x0, %rax
je 0x62abe
movq -0xc0(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq 0x32e6e0(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movq -0xf0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x62abe
movq -0xc0(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq 0x32e6af(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xf8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x100(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x62abc
movq -0xc0(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x32e672(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x110(%rbp), %rdi
movq -0x108(%rbp), %rsi
callq 0x127c0
jmp 0x62abe
jmp 0x62ac0
movq -0x8(%rbp), %rax
movq -0xb8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl -0x1c(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x62d93
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x128(%rbp)
leaq 0x32e5fb(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x62bd5
movq -0x118(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq 0x32e5c6(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x130(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x138(%rbp), %rax
cmpq $0x0, %rax
je 0x62bd5
movq -0x118(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq 0x32e58f(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x140(%rbp)
movq -0x148(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x62bd5
movq -0x118(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq 0x32e55e(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x150(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x62bd7
movq 0x30be7a(%rip), %rax    # 0x36ea58
movq %rax, -0x160(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x168(%rbp), %rdi
movq -0x170(%rbp), %rsi
callq 0x1b780
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x198(%rbp)
leaq 0x32e4c4(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x62d4a
movq -0x188(%rbp), %rax
movq %rax, -0x1a8(%rbp)
leaq 0x32e48f(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x1a0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1a8(%rbp), %rax
cmpq $0x0, %rax
je 0x62d4a
movq -0x188(%rbp), %rax
movq %rax, -0x1b8(%rbp)
leaq 0x32e454(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x62d4a
movq -0x188(%rbp), %rax
movq %rax, -0x1c8(%rbp)
leaq 0x32e423(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x1c0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1c8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x62d48
movq -0x188(%rbp), %rax
movq %rax, -0x1d8(%rbp)
leaq 0x32e3e6(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x1d0(%rbp)
movq -0x1d8(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
callq 0x127c0
jmp 0x62d4a
jmp 0x62d4c
movq -0x8(%rbp), %rax
movq -0x180(%rbp), %rcx
movq %rcx, (%rax)
movl -0x1c(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x62d93
leaq 0x2f1100(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movl -0x44(%rbp), %edi
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x62e40
movq %rax, -0x1e0(%rbp)
movq -0x30(%rbp), %rax
movq 0x58(%rax), %rcx
movq %rcx, -0x1f0(%rbp)
movq 0x60(%rax), %rax
movq %rax, -0x1e8(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x210(%rbp)
leaq 0x32ec7f(%rip), %rax    # 0x391a58
orq $0x1, %rax
movq %rax, -0x208(%rbp)
movq -0x210(%rbp), %rdi
movq -0x208(%rbp), %rsi
movl -0x1f0(%rbp), %edx
movq -0x1e8(%rbp), %rcx
leaq -0x200(%rbp), %r8
callq 0xcc30
movq -0x30(%rbp), %rax
movq -0x200(%rbp), %rcx
movq %rcx, 0x58(%rax)
movq -0x1f8(%rbp), %rcx
movq %rcx, 0x60(%rax)
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
nopl (%rax)