	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function droproot
_droproot:                              ## @droproot
	.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	%rsi, %r15
	movq	%rdi, %r14
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.1:
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_program_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit_tcpdump
LBB0_3:
	movq	%r14, %rdi
	callq	_getpwnam
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	callq	_chroot
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_chdir
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_program_name@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pcap_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit_tcpdump
LBB0_8:
	movl	16(%rbx), %edi
	movq	(%rbx), %rsi
	callq	_initgroups
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	(%rbx), %rdi
	callq	_setgid
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	8(%rbx), %rdi
	callq	_setuid
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_program_name@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%rbx), %r13
	movq	8(%rbx), %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pcap_strerror
	movq	%rax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_14
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_program_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_14:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_exit_tcpdump                   ## TAILCALL
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Chroot without dropping root is insecure\n"

	.comm	_program_name,8,3               ## @program_name
L_.str.1:                               ## @.str.1
	.asciz	"/"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Couldn't chroot/chdir to '%.64s': %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"%s: Couldn't change to '%.32s' uid=%lu gid=%lu: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"dropped privs to %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s: Couldn't find user '%.32s'\n"

	.comm	_CAPNG_DROP,4,2                 ## @CAPNG_DROP
	.comm	_CAPNG_EFFECTIVE,4,2            ## @CAPNG_EFFECTIVE
	.comm	_CAPNG_NO_FLAG,4,2              ## @CAPNG_NO_FLAG
	.comm	_CAPNG_PERMITTED,4,2            ## @CAPNG_PERMITTED
	.comm	_CAPNG_SELECT_BOTH,4,2          ## @CAPNG_SELECT_BOTH
	.comm	_CAP_SETGID,4,2                 ## @CAP_SETGID
	.comm	_CAP_SETUID,4,2                 ## @CAP_SETUID
	.comm	_CAP_SYS_CHROOT,4,2             ## @CAP_SYS_CHROOT
	.no_dead_strip	_droproot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function droproot
_droproot:                              ; @droproot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _stderr@GOTPAGE
Lloh1:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
Lloh2:
	adrp	x24, _program_name@GOTPAGE
Lloh3:
	ldr	x24, [x24, _program_name@GOTPAGEOFF]
	cbnz	x0, LBB0_3
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
	ldr	w0, [x23]
	ldr	x8, [x24]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit_tcpdump
LBB0_3:
	mov	x0, x19
	bl	_getpwnam
	cbz	x0, LBB0_12
; %bb.4:
	mov	x20, x0
Lloh6:
	adrp	x25, _errno@GOTPAGE
Lloh7:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	cbz	x21, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_chroot
	cbnz	x0, LBB0_7
; %bb.6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_chdir
	cbz	x0, LBB0_8
LBB0_7:
	ldr	w22, [x23]
	ldr	x26, [x24]
	ldr	w0, [x25]
	bl	_pcap_strerror
	stp	x21, x0, [sp, #8]
	str	x26, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_fprintf
	mov	w0, #1
	bl	_exit_tcpdump
LBB0_8:
	ldr	w0, [x20, #16]
	ldr	x1, [x20]
	bl	_initgroups
	cbnz	x0, LBB0_11
; %bb.9:
	ldr	x0, [x20]
	bl	_setgid
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x20, #8]
	bl	_setuid
	cbz	x0, LBB0_14
LBB0_11:
	ldr	w21, [x23]
	ldr	x22, [x24]
	ldp	x20, x23, [x20]
	ldr	w0, [x25]
	bl	_pcap_strerror
	stp	x20, x0, [sp, #24]
	stp	x19, x23, [sp, #8]
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	b	LBB0_13
LBB0_12:
	ldr	w0, [x23]
	ldr	x8, [x24]
	stp	x8, x19, [sp]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_13:
	bl	_fprintf
	mov	w0, #1
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_exit_tcpdump
LBB0_14:
	ldr	w0, [x23]
	str	x19, [sp]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Chroot without dropping root is insecure\n"

	.comm	_program_name,8,3               ; @program_name
l_.str.1:                               ; @.str.1
	.asciz	"/"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Couldn't chroot/chdir to '%.64s': %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"%s: Couldn't change to '%.32s' uid=%lu gid=%lu: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"dropped privs to %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s: Couldn't find user '%.32s'\n"

	.comm	_CAPNG_DROP,4,2                 ; @CAPNG_DROP
	.comm	_CAPNG_EFFECTIVE,4,2            ; @CAPNG_EFFECTIVE
	.comm	_CAPNG_NO_FLAG,4,2              ; @CAPNG_NO_FLAG
	.comm	_CAPNG_PERMITTED,4,2            ; @CAPNG_PERMITTED
	.comm	_CAPNG_SELECT_BOTH,4,2          ; @CAPNG_SELECT_BOTH
	.comm	_CAP_SETGID,4,2                 ; @CAP_SETGID
	.comm	_CAP_SETUID,4,2                 ; @CAP_SETUID
	.comm	_CAP_SYS_CHROOT,4,2             ; @CAP_SYS_CHROOT
	.no_dead_strip	_droproot
.subsections_via_symbols
