// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_terminal_SGRColor_emitzj
static void mw_std_terminal_SGRColor_emitzj (struct std_terminal_SGRColor in_SGRColor_1, STR* in_zaStr_2, STR* *out_zaStr_3) {
	STR* branch_zaStr_4;
	switch ((in_SGRColor_1).tag) {
		case std_terminal_SGRColor_Numbered: {
			INT v5 = mtp_std_terminal_SGRColor_Numbered(in_SGRColor_1);
			STR* v6;
			STRLIT(v6, ";5;", 3);
			STR* v7;
			mw_std_str_zaStr_pushzestrzx(v6, in_zaStr_2, &v7);
			STR* v8 = int_to_str(v5);
			STR* v9;
			mw_std_str_zaStr_pushzestrzx(v8, v7, &v9);
			branch_zaStr_4 = v9;
		} break;
		case std_terminal_SGRColor_RGB: {
			INT v10;
			INT v11;
			INT v12 = mtp_std_terminal_SGRColor_RGB(in_SGRColor_1, &v10, &v11);
			STR* v13;
			STRLIT(v13, ";2;", 3);
			STR* v14;
			mw_std_str_zaStr_pushzestrzx(v13, in_zaStr_2, &v14);
			STR* v15 = int_to_str(v11);
			STR* v16;
			mw_std_str_zaStr_pushzestrzx(v15, v14, &v16);
			STR* v17;
			STRLIT(v17, ";", 1);
			STR* v18;
			mw_std_str_zaStr_pushzestrzx(v17, v16, &v18);
			STR* v19 = int_to_str(v10);
			STR* v20;
			mw_std_str_zaStr_pushzestrzx(v19, v18, &v20);
			STR* v21;
			STRLIT(v21, ";", 1);
			STR* v22;
			mw_std_str_zaStr_pushzestrzx(v21, v20, &v22);
			STR* v23 = int_to_str(v12);
			STR* v24;
			mw_std_str_zaStr_pushzestrzx(v23, v22, &v24);
			branch_zaStr_4 = v24;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaStr_3 = branch_zaStr_4;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp            # imm = 0x1D0
movl %edi, -0x10(%rbp)
movq %rsi, -0x8(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x1cc(%rbp)
testl %eax, %eax
je 0x321ed
jmp 0x321d9
movl -0x1cc(%rbp), %eax
subl $0x1, %eax
je 0x32327
jmp 0x32742
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x395f0
movq %rax, -0x30(%rbp)
cmpq $0x0, 0x1362373(%rip)   # 0x1394578
jne 0x3221f
leaq 0x32338a(%rip), %rdi    # 0x355598
movl $0x3, %esi
callq 0xb6c0
movq %rax, 0x1362359(%rip)   # 0x1394578
jmp 0x32221
movq 0x1362350(%rip), %rax   # 0x1394578
movq %rax, -0x48(%rbp)
leaq 0x35ef25(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x322d2
movq 0x1362324(%rip), %rax   # 0x1394578
movq %rax, -0x58(%rbp)
leaq 0x35eef9(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
cmpq $0x0, %rax
je 0x322d2
movq 0x13622f6(%rip), %rax   # 0x1394578
movq %rax, -0x68(%rbp)
leaq 0x35eecb(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x322d2
movq 0x13622ce(%rip), %rax   # 0x1394578
movq %rax, -0x78(%rbp)
leaq 0x35eea3(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x78(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x322d4
movq 0x136229d(%rip), %rax   # 0x1394578
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0xb940
movq -0x30(%rbp), %rdi
callq 0x211e0
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0xb940
movq -0x90(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x3275b
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x98(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
callq 0x396f0
movq %rax, -0xa8(%rbp)
cmpq $0x0, 0x1362230(%rip)   # 0x1394580
jne 0x3236a
leaq 0x323243(%rip), %rdi    # 0x35559c
movl $0x3, %esi
callq 0xb6c0
movq %rax, 0x1362216(%rip)   # 0x1394580
jmp 0x3236c
movq 0x136220d(%rip), %rax   # 0x1394580
movq %rax, -0xc0(%rbp)
leaq 0x35edd7(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x32441
movq 0x13621d8(%rip), %rax   # 0x1394580
movq %rax, -0xd0(%rbp)
leaq 0x35eda2(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
cmpq $0x0, %rax
je 0x32441
movq 0x13621a1(%rip), %rax   # 0x1394580
movq %rax, -0xe0(%rbp)
leaq 0x35ed6b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movq -0xe0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x32441
movq 0x1362170(%rip), %rax   # 0x1394580
movq %rax, -0xf0(%rbp)
leaq 0x35ed3a(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x32443
movq 0x1362136(%rip), %rax   # 0x1394580
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0xf8(%rbp), %rdx
callq 0xb940
movq -0xa0(%rbp), %rdi
callq 0x211e0
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rdi
movq -0xf8(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0xb940
cmpq $0x0, 0x13620eb(%rip)   # 0x1394588
jne 0x324b7
leaq 0x33b60e(%rip), %rdi    # 0x36dab4
movl $0x1, %esi
callq 0xb6c0
movq %rax, 0x13620d1(%rip)   # 0x1394588
jmp 0x324b9
movq 0x13620c8(%rip), %rax   # 0x1394588
movq %rax, -0x120(%rbp)
leaq 0x35ec8a(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3258e
movq 0x1362093(%rip), %rax   # 0x1394588
movq %rax, -0x130(%rbp)
leaq 0x35ec55(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x128(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x130(%rbp), %rax
cmpq $0x0, %rax
je 0x3258e
movq 0x136205c(%rip), %rax   # 0x1394588
movq %rax, -0x140(%rbp)
leaq 0x35ec1e(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x138(%rbp)
movq -0x140(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3258e
movq 0x136202b(%rip), %rax   # 0x1394588
movq %rax, -0x150(%rbp)
leaq 0x35ebed(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x148(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x150(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x32590
movq 0x1361ff1(%rip), %rax   # 0x1394588
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rdi
movq -0x108(%rbp), %rsi
leaq -0x158(%rbp), %rdx
callq 0xb940
movq -0x98(%rbp), %rdi
callq 0x211e0
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rsi
leaq -0x168(%rbp), %rdx
callq 0xb940
cmpq $0x0, 0x1361fa3(%rip)   # 0x1394590
jne 0x32607
leaq 0x33b4be(%rip), %rdi    # 0x36dab4
movl $0x1, %esi
callq 0xb6c0
movq %rax, 0x1361f89(%rip)   # 0x1394590
jmp 0x32609
movq 0x1361f80(%rip), %rax   # 0x1394590
movq %rax, -0x180(%rbp)
leaq 0x35eb3a(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x326de
movq 0x1361f4b(%rip), %rax   # 0x1394590
movq %rax, -0x190(%rbp)
leaq 0x35eb05(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x188(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rax
cmpq $0x0, %rax
je 0x326de
movq 0x1361f14(%rip), %rax   # 0x1394590
movq %rax, -0x1a0(%rbp)
leaq 0x35eace(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x326de
movq 0x1361ee3(%rip), %rax   # 0x1394590
movq %rax, -0x1b0(%rbp)
leaq 0x35ea9d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1a8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1b0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x326e0
movq 0x1361ea9(%rip), %rax   # 0x1394590
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rdi
movq -0x168(%rbp), %rsi
leaq -0x1b8(%rbp), %rdx
callq 0xb940
movq -0xa8(%rbp), %rdi
callq 0x211e0
movq %rax, -0x1c0(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
leaq -0x1c8(%rbp), %rdx
callq 0xb940
movq -0x1c8(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x3275b
leaq 0x321738(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
nop