	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_syslogger_file           ## -- Begin function write_syslogger_file
	.p2align	4, 0x90
_write_syslogger_file:                  ## @write_syslogger_file
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	_LOG_DESTINATION_CSVLOG@GOTPCREL(%rip), %rax
	movq	_csvlogFile@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	movq	_syslogFile@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmoveq	%rsi, %rcx
	cmpl	%edx, (%rax)
	cmovneq	%rsi, %rcx
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_fwrite
	cmpl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_write_stderr                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_DESTINATION_CSVLOG,4,2     ## @LOG_DESTINATION_CSVLOG
	.comm	_csvlogFile,8,3                 ## @csvlogFile
	.comm	_syslogFile,8,3                 ## @syslogFile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not write to log file: %s\n"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_syslogger_file           ; -- Begin function write_syslogger_file
	.p2align	2
_write_syslogger_file:                  ; @write_syslogger_file
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _LOG_DESTINATION_CSVLOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_DESTINATION_CSVLOG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _csvlogFile@GOTPAGE
Lloh4:
	ldr	x9, [x9, _csvlogFile@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	w8, w2, #0, ne
Lloh6:
	adrp	x8, _syslogFile@GOTPAGE
Lloh7:
	ldr	x8, [x8, _syslogFile@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	csel	x3, x9, x8, eq
	mov	w1, #1
	mov	x2, x19
	bl	_fwrite
	cmp	w0, w19
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_stderr
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_DESTINATION_CSVLOG,4,2     ; @LOG_DESTINATION_CSVLOG
	.comm	_csvlogFile,8,3                 ; @csvlogFile
	.comm	_syslogFile,8,3                 ; @syslogFile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not write to log file: %s\n"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
