	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_init                      ## -- Begin function priv_init
	.p2align	4, 0x90
_priv_init:                             ## @priv_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__NSIG@GOTPCREL(%rip), %r14
	cmpl	$2, (%r14)
	jl	LBB0_3
## %bb.1:
	movl	$1, %ebx
	movq	_SIG_DFL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_signal
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_2
LBB0_3:
	movq	_AF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	callq	_socketpair
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_getpwnam
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_7:
	xorl	%eax, %eax
	callq	_endpwent
	xorl	%eax, %eax
	callq	_fork
	movq	_child_pid@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movq	(%r14), %rax
LBB0_9:
	testq	%rax, %rax
	jne	LBB0_22
## %bb.10:
	movl	8(%rbx), %edi
	callq	_chroot
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_12:
	leaq	L_.str.5(%rip), %rdi
	callq	_chdir
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_14:
	movl	4(%rbx), %edi
	movl	%edi, -60(%rbp)
	movl	%edi, %esi
	movl	%edi, %edx
	callq	_setresgid
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_16:
	leaq	-60(%rbp), %rsi
	movl	$1, %edi
	callq	_setgroups
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_18:
	movl	(%rbx), %edi
	movl	%edi, %esi
	movl	%edi, %edx
	callq	_setresuid
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_20:
	movl	-56(%rbp), %edi
	callq	_close
	movl	-52(%rbp), %eax
	movq	_priv_fd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.21:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sig_pass_to_chld@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sig_chld@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	leaq	L_.str.10(%rip), %rdi
	callq	_setproctitle
	movl	-52(%rbp), %edi
	callq	_close
	movq	_gotsig_chld@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_37
## %bb.23:
	leaq	-60(%rbp), %r14
	movq	_filename@GOTPCREL(%rip), %rbx
	leaq	-64(%rbp), %r15
	jmp	LBB0_24
LBB0_33:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	movl	(%rbx), %edi
	callq	_move_log
	movl	%eax, -64(%rbp)
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	-56(%rbp), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_must_write
LBB0_36:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_gotsig_chld@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_37
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	-56(%rbp), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_may_read
	testq	%rax, %rax
	jne	LBB0_37
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	-60(%rbp), %edx
	cmpl	$130, %edx
	je	LBB0_33
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$129, %edx
	je	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$128, %edx
	jne	LBB0_34
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	movl	-56(%rbp), %edi
	leaq	-68(%rbp), %rsi
	movl	$4, %edx
	callq	_must_read
	movl	-68(%rbp), %edi
	callq	_set_snaplen
	movl	%eax, -64(%rbp)
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-68(%rbp), %edx
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	jmp	LBB0_30
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	movl	(%rbx), %edi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_APPEND@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_NOFOLLOW@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, %r13d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	-56(%rbp), %edi
	movl	%r13d, %esi
	callq	_send_fd
	testl	%r13d, %r13d
	js	LBB0_32
## %bb.35:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	%r13d, %edi
	callq	_close
	jmp	LBB0_36
LBB0_32:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %r13d
	movl	%r12d, %edi
	callq	_strerror
	movl	%r14d, %edi
	leaq	-60(%rbp), %r14
	leaq	L_.str.14(%rip), %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_logmsg
	jmp	LBB0_36
LBB0_38:
	callq	___stack_chk_fail
LBB0_37:
	movl	$1, %edi
	callq	__exit
LBB0_34:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.16(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	__NSIG,4,2                      ## @_NSIG
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socketpair() failed"

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

L_.str.2:                               ## @.str.2
	.asciz	"unknown user _pflogd"

	.comm	_child_pid,8,3                  ## @child_pid
L_.str.3:                               ## @.str.3
	.asciz	"fork() failed"

L_.str.4:                               ## @.str.4
	.asciz	"unable to chroot"

L_.str.5:                               ## @.str.5
	.asciz	"/"

L_.str.6:                               ## @.str.6
	.asciz	"unable to chdir"

L_.str.7:                               ## @.str.7
	.asciz	"setresgid() failed"

L_.str.8:                               ## @.str.8
	.asciz	"setgroups() failed"

L_.str.9:                               ## @.str.9
	.asciz	"setresuid() failed"

	.comm	_priv_fd,4,2                    ## @priv_fd
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_sig_pass_to_chld,4,2           ## @sig_pass_to_chld
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_sig_chld,4,2                   ## @sig_chld
L_.str.10:                              ## @.str.10
	.asciz	"[priv]"

	.comm	_gotsig_chld,4,2                ## @gotsig_chld
	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
L_.str.11:                              ## @.str.11
	.asciz	"[priv]: msg PRIV_SET_SNAPLENGTH received"

	.comm	_LOG_NOTICE,4,2                 ## @LOG_NOTICE
L_.str.12:                              ## @.str.12
	.asciz	"[priv]: set_snaplen failed for snaplen %d"

L_.str.13:                              ## @.str.13
	.asciz	"[priv]: msg PRIV_OPEN_LOG received"

	.comm	_filename,4,2                   ## @filename
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_O_NOFOLLOW,4,2                 ## @O_NOFOLLOW
	.comm	_errno,4,2                      ## @errno
L_.str.14:                              ## @.str.14
	.asciz	"[priv]: failed to open %s: %s"

L_.str.15:                              ## @.str.15
	.asciz	"[priv]: msg PRIV_MOVE_LOG received"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.16:                              ## @.str.16
	.asciz	"[priv]: unknown command %d"

	.comm	_NSIG,4,2                       ## @NSIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_init                      ; -- Begin function priv_init
	.p2align	2
_priv_init:                             ; @priv_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x20, __NSIG@GOTPAGE
Lloh4:
	ldr	x20, [x20, __NSIG@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	mov	w19, #1
Lloh5:
	adrp	x21, _SIG_DFL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SIG_DFL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_signal
	add	w19, w19, #1
	ldr	w8, [x20]
	cmp	w19, w8
	b.lt	LBB0_2
LBB0_3:
Lloh7:
	adrp	x8, _AF_LOCAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AF_LOCAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x3, sp, #32
	bl	_socketpair
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getpwnam
	mov	x19, x0
	cbnz	x0, LBB0_7
; %bb.6:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_7:
	bl	_endpwent
	bl	_fork
Lloh22:
	adrp	x20, _child_pid@GOTPAGE
Lloh23:
	ldr	x20, [x20, _child_pid@GOTPAGEOFF]
	str	x0, [x20]
	tbz	x0, #63, LBB0_9
; %bb.8:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x0, [x20]
LBB0_9:
	cbnz	x0, LBB0_22
; %bb.10:
	ldr	w0, [x19, #8]
	bl	_chroot
	cbz	x0, LBB0_12
; %bb.11:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_12:
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_chdir
	cbz	x0, LBB0_14
; %bb.13:
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_14:
	ldr	w0, [x19, #4]
	str	w0, [sp, #28]
	mov	x1, x0
	mov	x2, x0
	bl	_setresgid
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.15:
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_16:
	add	x1, sp, #28
	mov	w0, #1
	bl	_setgroups
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.17:
Lloh34:
	adrp	x1, l_.str.8@PAGE
Lloh35:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_18:
	ldr	w0, [x19]
	mov	x1, x0
	mov	x2, x0
	bl	_setresuid
	cmn	w0, #1
	b.ne	LBB0_20
; %bb.19:
Lloh36:
	adrp	x1, l_.str.9@PAGE
Lloh37:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_20:
	ldr	w0, [sp, #32]
	bl	_close
	ldr	w8, [sp, #36]
Lloh38:
	adrp	x9, _priv_fd@GOTPAGE
Lloh39:
	ldr	x9, [x9, _priv_fd@GOTPAGEOFF]
Lloh40:
	str	w8, [x9]
	ldr	x8, [sp, #40]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.21:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_22:
Lloh44:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x19, _sig_pass_to_chld@GOTPAGE
Lloh48:
	ldr	x19, [x19, _sig_pass_to_chld@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_signal
Lloh49:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_signal
Lloh52:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_signal
Lloh55:
	adrp	x8, _SIGINT@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_signal
Lloh58:
	adrp	x8, _SIGQUIT@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SIGQUIT@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_signal
Lloh61:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh62:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
Lloh64:
	adrp	x8, _sig_chld@GOTPAGE
Lloh65:
	ldr	x8, [x8, _sig_chld@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	bl	_signal
Lloh67:
	adrp	x0, l_.str.10@PAGE
Lloh68:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_setproctitle
	ldr	w0, [sp, #36]
	bl	_close
Lloh69:
	adrp	x26, _gotsig_chld@GOTPAGE
Lloh70:
	ldr	x26, [x26, _gotsig_chld@GOTPAGEOFF]
	ldr	w8, [x26]
	cbnz	w8, LBB0_37
; %bb.23:
Lloh71:
	adrp	x27, _LOG_DEBUG@GOTPAGE
Lloh72:
	ldr	x27, [x27, _LOG_DEBUG@GOTPAGEOFF]
Lloh73:
	adrp	x21, l_.str.15@PAGE
Lloh74:
	add	x21, x21, l_.str.15@PAGEOFF
Lloh75:
	adrp	x28, _filename@GOTPAGE
Lloh76:
	ldr	x28, [x28, _filename@GOTPAGEOFF]
Lloh77:
	adrp	x20, l_.str.13@PAGE
Lloh78:
	add	x20, x20, l_.str.13@PAGEOFF
Lloh79:
	adrp	x23, _O_RDWR@GOTPAGE
Lloh80:
	ldr	x23, [x23, _O_RDWR@GOTPAGEOFF]
Lloh81:
	adrp	x19, _O_CREAT@GOTPAGE
Lloh82:
	ldr	x19, [x19, _O_CREAT@GOTPAGEOFF]
Lloh83:
	adrp	x22, _O_APPEND@GOTPAGE
Lloh84:
	ldr	x22, [x22, _O_APPEND@GOTPAGEOFF]
	b	LBB0_27
LBB0_24:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w0, [x27]
	mov	x1, x21
	bl	_logmsg
	ldr	w0, [x28]
	bl	_move_log
	str	w0, [sp, #20]
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w0, [sp, #32]
	add	x1, sp, #20
	mov	w2, #4
	bl	_must_write
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [x26]
	cbnz	w8, LBB0_37
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #32]
	add	x1, sp, #28
	mov	w2, #4
	bl	_may_read
	cbnz	x0, LBB0_37
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [sp, #28]
	cmp	w8, #130
	b.eq	LBB0_24
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	cmp	w8, #129
	b.eq	LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=1
	cmp	w8, #128
	b.ne	LBB0_38
; %bb.31:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w0, [x27]
Lloh85:
	adrp	x1, l_.str.11@PAGE
Lloh86:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_logmsg
	ldr	w0, [sp, #32]
	add	x1, sp, #24
	mov	w2, #4
	bl	_must_read
	ldr	w0, [sp, #24]
	bl	_set_snaplen
	str	w0, [sp, #20]
	cbz	w0, LBB0_25
; %bb.32:                               ;   in Loop: Header=BB0_27 Depth=1
Lloh87:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh88:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
	ldr	w8, [sp, #24]
	str	x8, [sp]
Lloh90:
	adrp	x1, l_.str.12@PAGE
Lloh91:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_logmsg
	b	LBB0_25
LBB0_33:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w0, [x27]
	mov	x1, x20
	bl	_logmsg
	ldr	w0, [x28]
	ldr	w8, [x23]
	ldr	w9, [x19]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh92:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh93:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh94:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh95:
	adrp	x9, _O_NOFOLLOW@GOTPAGE
Lloh96:
	ldr	x9, [x9, _O_NOFOLLOW@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #384
	bl	_open
	mov	x25, x0
Lloh98:
	adrp	x8, _errno@GOTPAGE
Lloh99:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh100:
	ldr	w24, [x8]
	ldr	w0, [sp, #32]
	mov	x1, x25
	bl	_send_fd
	tbnz	w25, #31, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x25
	bl	_close
	b	LBB0_26
LBB0_35:                                ;   in Loop: Header=BB0_27 Depth=1
Lloh101:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh102:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh103:
	ldr	w25, [x8]
	mov	x27, x26
	mov	x26, x22
	mov	x22, x19
	mov	x19, x23
	mov	x23, x20
	mov	x20, x21
	ldr	w21, [x28]
	mov	x0, x24
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
	mov	x21, x20
	mov	x20, x23
	mov	x23, x19
	mov	x19, x22
	mov	x22, x26
	mov	x26, x27
Lloh104:
	adrp	x27, _LOG_DEBUG@GOTPAGE
Lloh105:
	ldr	x27, [x27, _LOG_DEBUG@GOTPAGEOFF]
	mov	x0, x25
Lloh106:
	adrp	x1, l_.str.14@PAGE
Lloh107:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_logmsg
	b	LBB0_26
LBB0_36:
	bl	___stack_chk_fail
LBB0_37:
	mov	w0, #1
	bl	__exit
LBB0_38:
Lloh108:
	adrp	x9, _LOG_ERR@GOTPAGE
Lloh109:
	ldr	x9, [x9, _LOG_ERR@GOTPAGEOFF]
Lloh110:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh111:
	adrp	x1, l_.str.16@PAGE
Lloh112:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_logmsg
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.cfi_endproc
                                        ; -- End function
	.comm	__NSIG,4,2                      ; @_NSIG
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socketpair() failed"

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

l_.str.2:                               ; @.str.2
	.asciz	"unknown user _pflogd"

	.comm	_child_pid,8,3                  ; @child_pid
l_.str.3:                               ; @.str.3
	.asciz	"fork() failed"

l_.str.4:                               ; @.str.4
	.asciz	"unable to chroot"

l_.str.5:                               ; @.str.5
	.asciz	"/"

l_.str.6:                               ; @.str.6
	.asciz	"unable to chdir"

l_.str.7:                               ; @.str.7
	.asciz	"setresgid() failed"

l_.str.8:                               ; @.str.8
	.asciz	"setgroups() failed"

l_.str.9:                               ; @.str.9
	.asciz	"setresuid() failed"

	.comm	_priv_fd,4,2                    ; @priv_fd
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_sig_pass_to_chld,4,2           ; @sig_pass_to_chld
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_sig_chld,4,2                   ; @sig_chld
l_.str.10:                              ; @.str.10
	.asciz	"[priv]"

	.comm	_gotsig_chld,4,2                ; @gotsig_chld
	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
l_.str.11:                              ; @.str.11
	.asciz	"[priv]: msg PRIV_SET_SNAPLENGTH received"

	.comm	_LOG_NOTICE,4,2                 ; @LOG_NOTICE
l_.str.12:                              ; @.str.12
	.asciz	"[priv]: set_snaplen failed for snaplen %d"

l_.str.13:                              ; @.str.13
	.asciz	"[priv]: msg PRIV_OPEN_LOG received"

	.comm	_filename,4,2                   ; @filename
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_O_NOFOLLOW,4,2                 ; @O_NOFOLLOW
	.comm	_errno,4,2                      ; @errno
l_.str.14:                              ; @.str.14
	.asciz	"[priv]: failed to open %s: %s"

l_.str.15:                              ; @.str.15
	.asciz	"[priv]: msg PRIV_MOVE_LOG received"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.16:                              ; @.str.16
	.asciz	"[priv]: unknown command %d"

	.comm	_NSIG,4,2                       ; @NSIG
.subsections_via_symbols
