	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConsoleWriteOutFile            ## -- Begin function ConsoleWriteOutFile
	.p2align	4, 0x90
_ConsoleWriteOutFile:                   ## @ConsoleWriteOutFile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.2:
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_8
## %bb.3:
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.4:
	movl	%edx, %r15d
	movq	%rbx, %rdi
	callq	_UniNormalizeCrlf
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_CalcUniToUtf8
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	1(%rax), %r13
	movq	%r13, %rdi
	callq	_ZeroMalloc
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%rax, %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_UniToUtf8
	movq	(%r12), %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_FileWrite
	leaq	l_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_UniEndWith
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%r12), %rbx
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rdi
	callq	_StrLen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_FileWrite
LBB0_7:
	movq	%r13, %rdi
	callq	_Free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Free                           ## TAILCALL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConsoleWriteOutFile            ; -- Begin function ConsoleWriteOutFile
	.p2align	2
_ConsoleWriteOutFile:                   ; @ConsoleWriteOutFile
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_8
; %bb.2:
	ldr	x25, [x0]
	cbz	x25, LBB0_8
; %bb.3:
	ldr	x8, [x25]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x20, x2
	mov	x0, x21
	bl	_UniNormalizeCrlf
	mov	x19, x0
	bl	_CalcUniToUtf8
	mov	x23, x0
	add	x24, x0, #1
	mov	x0, x24
	bl	_ZeroMalloc
	mov	x22, x0
	mov	x1, x24
	mov	x2, x19
	bl	_UniToUtf8
	ldr	x0, [x25]
	mov	x1, x22
	mov	x2, x23
	bl	_FileWrite
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_UniEndWith
	cbz	w20, LBB0_7
; %bb.5:
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x20, [x25]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_StrLen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_FileWrite
LBB0_7:
	mov	x0, x22
	bl	_Free
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_Free
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"\r\n"

.subsections_via_symbols
