// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_terminal_Sgr_emitzj
static void mw_std_terminal_Sgr_emitzj (struct std_terminal_Sgr in_Sgr_1, STR* in_zaStr_2, STR* *out_zaStr_3) {
	STR* v4;
	mw_std_str_zaStr_csizj(in_zaStr_2, &v4);
	incref(MK_std_terminal_Sgr(in_Sgr_1));
	int64_t v5 = (in_Sgr_1).tag;
	decref(MK_std_terminal_Sgr(in_Sgr_1));
	INT v6 = i64_to_int(v5);
	STR* v7 = int_to_str(v6);
	STR* v8;
	mw_std_str_zaStr_pushzestrzx(v7, v4, &v8);
	STR* branch_zaStr_9;
	switch ((in_Sgr_1).tag) {
		case std_terminal_Sgr_FGColor: {
			struct std_terminal_SGRColor v10 = mtp_std_terminal_Sgr_FGColor(in_Sgr_1);
			STR* v11;
			mw_std_terminal_SGRColor_emitzj(v10, v8, &v11);
			branch_zaStr_9 = v11;
		} break;
		case std_terminal_Sgr_BGColor: {
			struct std_terminal_SGRColor v12 = mtp_std_terminal_Sgr_BGColor(in_Sgr_1);
			STR* v13;
			mw_std_terminal_SGRColor_emitzj(v12, v8, &v13);
			branch_zaStr_9 = v13;
		} break;
		default: {
			decref(MK_std_terminal_Sgr(in_Sgr_1));
			branch_zaStr_9 = v8;
		} break;
	}
	STR* v14;
	STRLIT(v14, "m", 1);
	STR* v15;
	mw_std_str_zaStr_pushzestrzx(v14, branch_zaStr_9, &v15);
	*out_zaStr_3 = v15;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1c0, %rsp            # imm = 0x1C0
movl %edi, -0x10(%rbp)
movq %rsi, -0x8(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x32020
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movq -0x30(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2e45c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x48(%rbp), %rax
cmpq $0x0, %rax
je 0x2e45c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movq -0x58(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2e45c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2e45e
movl -0x10(%rbp), %eax
movq %rax, -0x70(%rbp)
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x78(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2e551
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x90(%rbp), %rax
cmpq $0x0, %rax
je 0x2e551
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0xa0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2e551
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2e54f
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
callq 0x127c0
jmp 0x2e551
jmp 0x2e553
movq -0x70(%rbp), %rdi
callq 0x1a290
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rdi
callq 0x211e0
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0xd8(%rbp), %rdx
callq 0xb940
movl -0x10(%rbp), %eax
movl %eax, -0x1b4(%rbp)
subl $0x26, %eax
je 0x2e5ad
jmp 0x2e59d
movl -0x1b4(%rbp), %eax
subl $0x30, %eax
je 0x2e5f9
jmp 0x2e645
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x320b0
movl %eax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0xd8(%rbp), %rdx
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
leaq -0xf8(%rbp), %rcx
callq 0x321b0
movq -0xf8(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x2e74c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32770
movl %eax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0xd8(%rbp), %rdx
movl -0x108(%rbp), %edi
movq -0x100(%rbp), %rsi
leaq -0x110(%rbp), %rcx
callq 0x321b0
movq -0x110(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x2e74c
jmp 0x2e647
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x118(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2e73c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x130(%rbp), %rax
cmpq $0x0, %rax
je 0x2e73c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movq -0x140(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2e73c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x150(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2e73a
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x32070
movq %rax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rsi
callq 0x127c0
jmp 0x2e73c
jmp 0x2e73e
movq -0xd8(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x2e74e
cmpq $0x0, 0x1365e1a(%rip)   # 0x1394570
jne 0x2e770
leaq 0x34007c(%rip), %rdi    # 0x36e7db
movl $0x1, %esi
callq 0xb6c0
movq %rax, 0x1365e00(%rip)   # 0x1394570
jmp 0x2e772
movq 0x1365df7(%rip), %rax   # 0x1394570
movq %rax, -0x178(%rbp)
leaq 0x3629d1(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2e847
movq 0x1365dc2(%rip), %rax   # 0x1394570
movq %rax, -0x188(%rbp)
leaq 0x36299c(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x180(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x188(%rbp), %rax
cmpq $0x0, %rax
je 0x2e847
movq 0x1365d8b(%rip), %rax   # 0x1394570
movq %rax, -0x198(%rbp)
leaq 0x362965(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x190(%rbp)
movq -0x198(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2e847
movq 0x1365d5a(%rip), %rax   # 0x1394570
movq %rax, -0x1a8(%rbp)
leaq 0x362934(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1a0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1a8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2e849
movq 0x1365d20(%rip), %rax   # 0x1394570
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rdi
movq -0xe0(%rbp), %rsi
leaq -0x1b0(%rbp), %rdx
callq 0xb940
movq -0x1b0(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbp
retq
nopl (%rax,%rax)