	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function privsep_preauth_child
_privsep_preauth_child:                 ## @privsep_preauth_child
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	xorl	%eax, %eax
	callq	_privsep_challenge_enable
	xorl	%eax, %eax
	callq	_reseed_prngs
	xorl	%eax, %eax
	callq	_demote_sensitive_data
	movq	_privsep_chroot@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	__PATH_PRIVSEP_CHROOT_DIR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_chroot
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fatal
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_chdir
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
LBB0_5:
	movq	_privsep_pw@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movl	8(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_debug3
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-24(%rbp), %rsi
	movl	$1, %edi
	callq	_setgroups
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
LBB0_7:
	movq	(%rbx), %rdi
	callq	_permanently_set_uid
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_privsep_chroot,8,3             ## @privsep_chroot
	.comm	__PATH_PRIVSEP_CHROOT_DIR,4,2   ## @_PATH_PRIVSEP_CHROOT_DIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chroot(\"%s\"): %s"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"/"

L_.str.2:                               ## @.str.2
	.asciz	"chdir(\"/\"): %s"

L_.str.3:                               ## @.str.3
	.asciz	"privsep user:group %u:%u"

	.comm	_privsep_pw,8,3                 ## @privsep_pw
L_.str.4:                               ## @.str.4
	.asciz	"setgroups: %.100s"

	.comm	_options,8,3                    ## @options
	.no_dead_strip	_privsep_preauth_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function privsep_preauth_child
_privsep_preauth_child:                 ; @privsep_preauth_child
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_privsep_challenge_enable
	bl	_reseed_prngs
	bl	_demote_sensitive_data
Lloh3:
	adrp	x8, _privsep_chroot@GOTPAGE
Lloh4:
	ldr	x8, [x8, _privsep_chroot@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.1:
Lloh6:
	adrp	x19, __PATH_PRIVSEP_CHROOT_DIR@GOTPAGE
Lloh7:
	ldr	x19, [x19, __PATH_PRIVSEP_CHROOT_DIR@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_chroot
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w19, [x19]
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_3:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_chdir
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_5:
Lloh20:
	adrp	x19, _privsep_pw@GOTPAGE
Lloh21:
	ldr	x19, [x19, _privsep_pw@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	ldr	w2, [x8]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_debug3
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x8, [sp, #16]
	add	x1, sp, #16
	mov	w0, #1
	bl	_setgroups
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_fatal
LBB0_7:
	ldr	x0, [x19]
	bl	_permanently_set_uid
LBB0_8:
	ldr	x8, [sp, #24]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_privsep_chroot,8,3             ; @privsep_chroot
	.comm	__PATH_PRIVSEP_CHROOT_DIR,4,2   ; @_PATH_PRIVSEP_CHROOT_DIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chroot(\"%s\"): %s"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"/"

l_.str.2:                               ; @.str.2
	.asciz	"chdir(\"/\"): %s"

l_.str.3:                               ; @.str.3
	.asciz	"privsep user:group %u:%u"

	.comm	_privsep_pw,8,3                 ; @privsep_pw
l_.str.4:                               ; @.str.4
	.asciz	"setgroups: %.100s"

	.comm	_options,8,3                    ; @options
	.no_dead_strip	_privsep_preauth_child
.subsections_via_symbols
