	.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), %rax
	cmpl	%ebx, (%rax)
	sete	%al
	movq	_PJDLOG_MODE_SYSLOG@GOTPCREL(%rip), %r13
	cmpl	%ebx, (%r13)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_pjdlog_mode@GOTPCREL(%rip), %r14
	cmpl	%ebx, (%r14)
	je	LBB0_5
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	cmpl	%ebx, (%r13)
	jne	LBB0_3
## %bb.2:
	movq	_LOG_PID@GOTPCREL(%rip), %rax
	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_4
LBB0_3:
	xorl	%eax, %eax
	callq	_closelog
LBB0_4:
	movl	%ebx, (%r14)
	movl	%r12d, (%r15)
LBB0_5:
	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
.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	x8, _PJDLOG_MODE_STD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PJDLOG_MODE_STD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w19
Lloh9:
	adrp	x23, _PJDLOG_MODE_SYSLOG@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PJDLOG_MODE_SYSLOG@GOTPAGEOFF]
	ldr	w8, [x23]
	ccmp	w8, w19, #4, ne
	cset	w0, eq
	bl	_assert
Lloh11:
	adrp	x20, _pjdlog_mode@GOTPAGE
Lloh12:
	ldr	x20, [x20, _pjdlog_mode@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, w19
	b.eq	LBB0_5
; %bb.1:
Lloh13:
	adrp	x21, _errno@GOTPAGE
Lloh14:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w22, [x21]
	ldr	w8, [x23]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _LOG_PID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOG_PID@GOTPAGEOFF]
Lloh17:
	adrp	x9, _LOG_NDELAY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LOG_NDELAY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh21:
	adrp	x8, _LOG_DAEMON@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LOG_DAEMON@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, #0
	bl	_openlog
	b	LBB0_4
LBB0_3:
	bl	_closelog
LBB0_4:
	str	w19, [x20]
	str	w22, [x21]
LBB0_5:
	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	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.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
.subsections_via_symbols
