	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pjdlog_mode_set                ## -- Begin function pjdlog_mode_set
	.p2align	4, 0x90
_pjdlog_mode_set:                       ## @pjdlog_mode_set
	.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
	movl	%edi, %ebx
	movq	_pjdlog_initialized@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PJDLOG_INITIALIZED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	_PJDLOG_MODE_STD@GOTPCREL(%rip), %r13
	cmpl	%ebx, (%r13)
	sete	%al
	movq	_PJDLOG_MODE_SYSLOG@GOTPCREL(%rip), %r15
	cmpl	%ebx, (%r15)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_pjdlog_mode@GOTPCREL(%rip), %r14
	cmpl	%ebx, (%r14)
	je	LBB0_9
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmpl	%ebx, (%r15)
	jne	LBB0_3
## %bb.2:
	movq	_LOG_PID@GOTPCREL(%rip), %rax
	movq	%rcx, %r15
	movq	_LOG_NDELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_LOG_DAEMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_openlog
	jmp	LBB0_5
LBB0_3:
	cmpl	%ebx, (%r13)
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	movq	%rcx, %r15
	callq	_closelog
LBB0_5:
	movq	%r15, %rcx
LBB0_6:
	movq	_PJDLOG_MODE_SOCK@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_pjdlog_sock@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_8:
	movl	%ebx, (%r14)
	movl	%r12d, (%rcx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pjdlog_initialized,8,3         ## @pjdlog_initialized
	.comm	_PJDLOG_INITIALIZED,8,3         ## @PJDLOG_INITIALIZED
	.comm	_PJDLOG_MODE_STD,4,2            ## @PJDLOG_MODE_STD
	.comm	_PJDLOG_MODE_SYSLOG,4,2         ## @PJDLOG_MODE_SYSLOG
	.comm	_pjdlog_mode,4,2                ## @pjdlog_mode
	.comm	_errno,4,2                      ## @errno
	.comm	_LOG_PID,4,2                    ## @LOG_PID
	.comm	_LOG_NDELAY,4,2                 ## @LOG_NDELAY
	.comm	_LOG_DAEMON,4,2                 ## @LOG_DAEMON
	.comm	_PJDLOG_MODE_SOCK,4,2           ## @PJDLOG_MODE_SOCK
	.comm	_pjdlog_sock,4,2                ## @pjdlog_sock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pjdlog_mode_set                ; -- Begin function pjdlog_mode_set
	.p2align	2
_pjdlog_mode_set:                       ; @pjdlog_mode_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, _pjdlog_initialized@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pjdlog_initialized@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _PJDLOG_INITIALIZED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PJDLOG_INITIALIZED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x23, _PJDLOG_MODE_STD@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PJDLOG_MODE_STD@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w19
Lloh8:
	adrp	x24, _PJDLOG_MODE_SYSLOG@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PJDLOG_MODE_SYSLOG@GOTPAGEOFF]
	ldr	w8, [x24]
	ccmp	w8, w19, #4, ne
	cset	w0, eq
	bl	_assert
Lloh10:
	adrp	x20, _pjdlog_mode@GOTPAGE
Lloh11:
	ldr	x20, [x20, _pjdlog_mode@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, w19
	b.eq	LBB0_8
; %bb.1:
Lloh12:
	adrp	x21, _errno@GOTPAGE
Lloh13:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w22, [x21]
	ldr	w8, [x24]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.2:
Lloh14:
	adrp	x8, _LOG_PID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOG_PID@GOTPAGEOFF]
Lloh16:
	adrp	x9, _LOG_NDELAY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _LOG_NDELAY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh20:
	adrp	x8, _LOG_DAEMON@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOG_DAEMON@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, #0
	bl	_openlog
	b	LBB0_5
LBB0_3:
	ldr	w8, [x23]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
	bl	_closelog
LBB0_5:
Lloh23:
	adrp	x8, _PJDLOG_MODE_SOCK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PJDLOG_MODE_SOCK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_7
; %bb.6:
Lloh26:
	adrp	x8, _pjdlog_sock@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pjdlog_sock@GOTPAGEOFF]
	mov	w9, #-1
Lloh28:
	str	w9, [x8]
LBB0_7:
	str	w19, [x20]
	str	w22, [x21]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_pjdlog_initialized,8,3         ; @pjdlog_initialized
	.comm	_PJDLOG_INITIALIZED,8,3         ; @PJDLOG_INITIALIZED
	.comm	_PJDLOG_MODE_STD,4,2            ; @PJDLOG_MODE_STD
	.comm	_PJDLOG_MODE_SYSLOG,4,2         ; @PJDLOG_MODE_SYSLOG
	.comm	_pjdlog_mode,4,2                ; @pjdlog_mode
	.comm	_errno,4,2                      ; @errno
	.comm	_LOG_PID,4,2                    ; @LOG_PID
	.comm	_LOG_NDELAY,4,2                 ; @LOG_NDELAY
	.comm	_LOG_DAEMON,4,2                 ; @LOG_DAEMON
	.comm	_PJDLOG_MODE_SOCK,4,2           ; @PJDLOG_MODE_SOCK
	.comm	_pjdlog_sock,4,2                ; @pjdlog_sock
.subsections_via_symbols
