	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_switch_to_logfile              ## -- Begin function switch_to_logfile
	.p2align	4, 0x90
_switch_to_logfile:                     ## @switch_to_logfile
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_stderr@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movl	%esi, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_STREQ
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	jne	LBB0_10
	jmp	LBB0_18
LBB0_1:
	movq	%rbx, %rax
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_strlen
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_NSTREQ
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_XLOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_plog
	testq	%rbx, %rbx
	je	LBB0_18
LBB0_10:
	movq	(%r13), %rax
LBB0_11:
	movq	_logfp@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:
	cmpq	%rax, %rdi
	je	LBB0_14
## %bb.13:
	callq	_fclose
LBB0_14:
	movq	%rbx, (%r15)
	movq	_XLOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_plog
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_plog
	jmp	LBB0_17
LBB0_6:
	movl	%r12d, %edi
	callq	_umask
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_truncate
	movl	%eax, %edi
	callq	___IGNORE
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_umask
	testq	%rbx, %rbx
	jne	LBB0_10
LBB0_18:
	movq	_XLOG_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_plog
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,8,3                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/stderr"

L_.str.1:                               ## @.str.1
	.asciz	"syslog"

	.comm	_XLOG_WARNING,4,2               ## @XLOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"syslog option not supported, logging unchanged"

L_.str.3:                               ## @.str.3
	.asciz	"a"

	.comm	_XLOG_USER,4,2                  ## @XLOG_USER
L_.str.4:                               ## @.str.4
	.asciz	"%s: Can't open logfile: %m"

	.comm	_logfp,8,3                      ## @logfp
	.comm	_XLOG_INFO,4,2                  ## @XLOG_INFO
L_.str.5:                               ## @.str.5
	.asciz	"switched to logfile \"%s\""

L_.str.6:                               ## @.str.6
	.asciz	"no logfile defined; using stderr"

	.comm	_LOG_NOWAIT,4,2                 ## @LOG_NOWAIT
	.comm	_LOG_PID,4,2                    ## @LOG_PID
	.comm	_syslogging,4,2                 ## @syslogging
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_switch_to_logfile              ; -- Begin function switch_to_logfile
	.p2align	2
_switch_to_logfile:                     ; @switch_to_logfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _stderr@GOTPAGE
Lloh1:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
	ldr	x20, [x24]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x22, x1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_STREQ
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x20, [x24]
	cbnz	x20, LBB0_6
	b	LBB0_16
LBB0_3:
	mov	x8, x20
	b	LBB0_7
LBB0_4:
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_NSTREQ
	cbz	x0, LBB0_13
; %bb.5:
Lloh6:
	adrp	x8, _XLOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XLOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_plog
	cbz	x20, LBB0_16
LBB0_6:
	ldr	x8, [x24]
LBB0_7:
Lloh11:
	adrp	x21, _logfp@GOTPAGE
Lloh12:
	ldr	x21, [x21, _logfp@GOTPAGEOFF]
	ldr	x0, [x21]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	b.eq	LBB0_9
; %bb.8:
	bl	_fclose
LBB0_9:
	str	x20, [x21]
Lloh13:
	adrp	x8, _XLOG_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XLOG_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	cbz	x19, LBB0_11
; %bb.10:
	str	x19, [sp]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_12:
	bl	_plog
	mov	w0, #0
	b	LBB0_17
LBB0_13:
	mov	x0, x22
	bl	_umask
	cbz	w21, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #0
	bl	_truncate
	bl	___IGNORE
LBB0_15:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fopen
	mov	x20, x0
	mov	w0, #0
	bl	_umask
	cbnz	x20, LBB0_6
LBB0_16:
Lloh22:
	adrp	x8, _XLOG_USER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _XLOG_USER@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_plog
	mov	w0, #1
LBB0_17:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,8,3                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/stderr"

l_.str.1:                               ; @.str.1
	.asciz	"syslog"

	.comm	_XLOG_WARNING,4,2               ; @XLOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"syslog option not supported, logging unchanged"

l_.str.3:                               ; @.str.3
	.asciz	"a"

	.comm	_XLOG_USER,4,2                  ; @XLOG_USER
l_.str.4:                               ; @.str.4
	.asciz	"%s: Can't open logfile: %m"

	.comm	_logfp,8,3                      ; @logfp
	.comm	_XLOG_INFO,4,2                  ; @XLOG_INFO
l_.str.5:                               ; @.str.5
	.asciz	"switched to logfile \"%s\""

l_.str.6:                               ; @.str.6
	.asciz	"no logfile defined; using stderr"

	.comm	_LOG_NOWAIT,4,2                 ; @LOG_NOWAIT
	.comm	_LOG_PID,4,2                    ; @LOG_PID
	.comm	_syslogging,4,2                 ; @syslogging
.subsections_via_symbols
