// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_output_zaOutput_put
static void mw_std_output_zaOutput_put (STR* in_Str_1, struct std_output_zaOutput* in_zaOutput_2, struct std_output_zaOutput* *out_zaOutput_3) {
	incref(MKSTR(in_Str_1));
	uint64_t v4 = str_size(in_Str_1);
	INT v5 = u64_to_int(v4);
	struct std_output_zaOutput* v6;
	INT v7 = mw_std_output_zaOutput_capacityzeremaining(in_zaOutput_2, &v6);
	bool v8 = int_lt(v7, v5);
	struct std_output_zaOutput* branch_zaOutput_9;
	if (v8) {
		struct std_output_zaOutput* v10;
		mw_std_output_zaOutput_flushzx(v6, &v10);
		incref(MKSTR(in_Str_1));
		uint64_t v11 = str_size(in_Str_1);
		INT v12 = u64_to_int(v11);
		struct std_output_zaOutput* v13;
		INT v14 = mw_std_output_zaOutput_capacityzetotal(v10, &v13);
		bool v15 = int_le(v14, v12);
		struct std_output_zaOutput* branch_zaOutput_16;
		if (v15) {
			incref(MKSTR(in_Str_1));
			incref(MKSTR(in_Str_1));
			void* v17 = str_base(in_Str_1);
			uint64_t v18 = str_size(in_Str_1);
			INT v19 = u64_to_int(v18);
			struct std_file_zaFile* r20 = v13->mzafile;
			struct std_file_zaFile* v21;
			struct std_result_Result_2 v22 = mw_std_prelude_unsafe_1_sp2(r20, v17, v19, &v21);
			v13->mzafile = v21;
			decref(MK_std_result_Result_2(v22));
			decref(MKSTR(in_Str_1));
			branch_zaOutput_16 = v13;
		} else {
			struct std_output_zaOutput* v23;
			mw_std_output_zaOutput_put(in_Str_1, v13, &v23);
			branch_zaOutput_16 = v23;
		}
		branch_zaOutput_9 = branch_zaOutput_16;
	} else {
		incref(MKSTR(in_Str_1));
		struct std_output_zaOutput* v24;
		INT v25 = mw_std_output_zaOutput_offset(v6, &v24);
		ARR* r26 = v24->mzabuffer;
		ARR* v27;
		mw_std_buffer_zaBuffer_strzx(r26, in_Str_1, v25, &v27);
		v24->mzabuffer = v27;
		uint64_t v28 = str_size(in_Str_1);
		INT v29 = u64_to_int(v28);
		INT v30 = v24->msizze;
		incref(MKINT(v30));
		INT v31 = int_add(v29, v30);
		INT v32 = v24->msizze;
		decref(MKINT(v32));
		v24->msizze = v31;
		branch_zaOutput_9 = v24;
	}
	*out_zaOutput_3 = branch_zaOutput_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x380, %rsp            # imm = 0x380
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq 0x170de2(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x220408
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0x170dbd(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x30(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x38(%rbp), %rax
cmpq $0x0, %rax
je 0x220408
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0x170d92(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x48(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x220408
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x170d6d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x22040a
movq -0x8(%rbp), %rdi
callq 0x1b3f0
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
callq 0x1b520
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x220dc0
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0xae20
andb $0x1, %al
movb %al, -0x79(%rbp)
testb $0x1, -0x79(%rbp)
je 0x220a15
movq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x220ec0
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq 0x170ce5(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x22052a
movq -0x8(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq 0x170cb3(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
cmpq $0x0, %rax
je 0x22052a
movq -0x8(%rbp), %rax
movq %rax, -0xc0(%rbp)
leaq 0x170c7f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x22052a
movq -0x8(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x170c51(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x22052c
movq -0x8(%rbp), %rdi
callq 0x1b3f0
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rdi
callq 0x1b520
movq %rax, -0xe0(%rbp)
movq -0x90(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x221250
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0x1c1b0
andb $0x1, %al
movb %al, -0xf1(%rbp)
testb $0x1, -0xf1(%rbp)
je 0x2209dd
jmp 0x220593
movq -0x8(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x170bb3(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x22065c
movq -0x8(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq 0x170b81(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
cmpq $0x0, %rax
je 0x22065c
movq -0x8(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq 0x170b4d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x128(%rbp)
movq -0x130(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x22065c
movq -0x8(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq 0x170b1f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x138(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x22065e
jmp 0x220660
movq -0x8(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq 0x170ae6(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x220729
movq -0x8(%rbp), %rax
movq %rax, -0x160(%rbp)
leaq 0x170ab4(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x158(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x160(%rbp), %rax
cmpq $0x0, %rax
je 0x220729
movq -0x8(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq 0x170a80(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x168(%rbp)
movq -0x170(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x220729
movq -0x8(%rbp), %rax
movq %rax, -0x180(%rbp)
leaq 0x170a52(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x178(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x180(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x22072b
movq -0x8(%rbp), %rdi
callq 0x1be20
movq %rax, -0x188(%rbp)
movq -0x8(%rbp), %rdi
callq 0x1b3f0
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rdi
callq 0x1b520
movq %rax, -0x198(%rbp)
movq -0xe8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rdi
movq -0x188(%rbp), %rsi
movq -0x198(%rbp), %rdx
leaq -0x1a8(%rbp), %rcx
callq 0x2212a0
movl %eax, -0x1b8(%rbp)
movq %rdx, -0x1b0(%rbp)
movq -0x1a8(%rbp), %rcx
movq -0xe8(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x1b8(%rbp), %edi
movq -0x1b0(%rbp), %rsi
callq 0x1d1540
movq %rax, -0x1c8(%rbp)
movq %rdx, -0x1c0(%rbp)
movq -0x1c0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2208c3
movl -0x1b8(%rbp), %edi
movq -0x1b0(%rbp), %rsi
callq 0x1d1540
movq %rax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1d8(%rbp), %rax
cmpq $0x0, %rax
je 0x2208c3
movl -0x1b8(%rbp), %edi
movq -0x1b0(%rbp), %rsi
callq 0x1d1540
movq %rax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movq -0x1e8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2208c3
movl -0x1b8(%rbp), %edi
movq -0x1b0(%rbp), %rsi
callq 0x1d1540
movq %rax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1f8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2208c1
movl -0x1b8(%rbp), %edi
movq -0x1b0(%rbp), %rsi
callq 0x1d1540
movq %rax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movq -0x208(%rbp), %rdi
movq -0x200(%rbp), %rsi
callq 0x127c0
jmp 0x2208c3
jmp 0x2208c5
jmp 0x2208c7
movq -0x8(%rbp), %rax
movq %rax, -0x218(%rbp)
leaq 0x17087f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x210(%rbp)
movq -0x210(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2209cb
movq -0x8(%rbp), %rax
movq %rax, -0x228(%rbp)
leaq 0x17084d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x220(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x228(%rbp), %rax
cmpq $0x0, %rax
je 0x2209cb
movq -0x8(%rbp), %rax
movq %rax, -0x238(%rbp)
leaq 0x170815(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x230(%rbp)
movq -0x238(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2209cb
movq -0x8(%rbp), %rax
movq %rax, -0x248(%rbp)
leaq 0x1707e7(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x240(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x248(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2209c9
movq -0x8(%rbp), %rax
movq %rax, -0x258(%rbp)
leaq 0x1707ad(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x250(%rbp)
movq -0x258(%rbp), %rdi
movq -0x250(%rbp), %rsi
callq 0x127c0
jmp 0x2209cb
jmp 0x2209cd
movq -0xe8(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0x220a02
movq -0x8(%rbp), %rdi
movq -0xe8(%rbp), %rsi
leaq -0x260(%rbp), %rdx
callq 0x220350
movq -0x260(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x220da5
jmp 0x220a17
movq -0x8(%rbp), %rax
movq %rax, -0x270(%rbp)
leaq 0x17072f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x268(%rbp)
movq -0x268(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x220ae0
movq -0x8(%rbp), %rax
movq %rax, -0x280(%rbp)
leaq 0x1706fd(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x278(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x280(%rbp), %rax
cmpq $0x0, %rax
je 0x220ae0
movq -0x8(%rbp), %rax
movq %rax, -0x290(%rbp)
leaq 0x1706c9(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x288(%rbp)
movq -0x290(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x220ae0
movq -0x8(%rbp), %rax
movq %rax, -0x2a0(%rbp)
leaq 0x17069b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x298(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2a0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x220ae2
movq -0x70(%rbp), %rdi
leaq -0x2a8(%rbp), %rsi
callq 0x2212f0
movq %rax, -0x2b0(%rbp)
movq -0x2a8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x2b8(%rbp)
movq -0x2b8(%rbp), %rdi
movq -0x8(%rbp), %rsi
movq -0x2b0(%rbp), %rdx
leaq -0x2c0(%rbp), %rcx
callq 0x2213c0
movq -0x2c0(%rbp), %rcx
movq -0x2a8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rdi
callq 0x1b3f0
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rdi
callq 0x1b520
movq %rax, -0x2d0(%rbp)
movq -0x2a8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x2d8(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x2e8(%rbp)
leaq 0x1708a4(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x2e0(%rbp)
movq -0x2e0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x220c44
movq -0x2d8(%rbp), %rax
movq %rax, -0x2f8(%rbp)
leaq 0x17086f(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x2f0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2f8(%rbp), %rax
cmpq $0x0, %rax
je 0x220c44
movq -0x2d8(%rbp), %rax
movq %rax, -0x308(%rbp)
leaq 0x170838(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x300(%rbp)
movq -0x308(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x220c44
movq -0x2d8(%rbp), %rax
movq %rax, -0x318(%rbp)
leaq 0x170807(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x310(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x318(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x220c46
movq -0x2d0(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
callq 0x1b780
movq %rax, -0x320(%rbp)
movq -0x2a8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x328(%rbp)
movq -0x328(%rbp), %rax
movq %rax, -0x338(%rbp)
leaq 0x1707a2(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x330(%rbp)
movq -0x330(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x220d84
movq -0x328(%rbp), %rax
movq %rax, -0x348(%rbp)
leaq 0x17076d(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x340(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x348(%rbp), %rax
cmpq $0x0, %rax
je 0x220d84
movq -0x328(%rbp), %rax
movq %rax, -0x358(%rbp)
leaq 0x170732(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x350(%rbp)
movq -0x358(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x220d84
movq -0x328(%rbp), %rax
movq %rax, -0x368(%rbp)
leaq 0x170701(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x360(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x368(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x220d82
movq -0x328(%rbp), %rax
movq %rax, -0x378(%rbp)
leaq 0x1706c4(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x370(%rbp)
movq -0x378(%rbp), %rdi
movq -0x370(%rbp), %rsi
callq 0x127c0
jmp 0x220d84
jmp 0x220d86
movq -0x2a8(%rbp), %rax
movq -0x320(%rbp), %rcx
movq %rcx, (%rax)
movq -0x2a8(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
addq $0x380, %rsp            # imm = 0x380
popq %rbp
retq
nopl (%rax)