	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xo_open_log_unlocked
_xo_open_log_unlocked:                  ## @xo_open_log_unlocked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_xo_logtag@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
LBB0_2:
	movq	_xo_logstat@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	testl	%edx, %edx
	je	LBB0_5
## %bb.3:
	movq	_LOG_FACMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%edx, %eax
	jne	LBB0_5
## %bb.4:
	movq	_xo_logfacility@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
LBB0_5:
	movq	_LOG_NDELAY@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_xo_connect_log
LBB0_7:
	movq	_xo_opened@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xo_logtag,8,3                  ## @xo_logtag
	.comm	_xo_logstat,4,2                 ## @xo_logstat
	.comm	_LOG_FACMASK,4,2                ## @LOG_FACMASK
	.comm	_xo_logfacility,4,2             ## @xo_logfacility
	.comm	_LOG_NDELAY,4,2                 ## @LOG_NDELAY
	.comm	_xo_opened,4,2                  ## @xo_opened
	.no_dead_strip	_xo_open_log_unlocked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xo_open_log_unlocked
_xo_open_log_unlocked:                  ; @xo_open_log_unlocked
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _xo_logtag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xo_logtag@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
LBB0_2:
Lloh3:
	adrp	x8, _xo_logstat@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xo_logstat@GOTPAGEOFF]
Lloh5:
	str	w1, [x8]
	cbz	w2, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _LOG_FACMASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOG_FACMASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bics	wzr, w2, w8
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _xo_logfacility@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xo_logfacility@GOTPAGEOFF]
Lloh11:
	str	w2, [x8]
LBB0_5:
Lloh12:
	adrp	x8, _LOG_NDELAY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_NDELAY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_7
; %bb.6:
	bl	_xo_connect_log
LBB0_7:
Lloh15:
	adrp	x8, _xo_opened@GOTPAGE
Lloh16:
	ldr	x8, [x8, _xo_opened@GOTPAGEOFF]
	mov	w9, #1
Lloh17:
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_xo_logtag,8,3                  ; @xo_logtag
	.comm	_xo_logstat,4,2                 ; @xo_logstat
	.comm	_LOG_FACMASK,4,2                ; @LOG_FACMASK
	.comm	_xo_logfacility,4,2             ; @xo_logfacility
	.comm	_LOG_NDELAY,4,2                 ; @LOG_NDELAY
	.comm	_xo_opened,4,2                  ; @xo_opened
	.no_dead_strip	_xo_open_log_unlocked
.subsections_via_symbols
