	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_vfs_clearsugid_write      ## -- Begin function priv_vfs_clearsugid_write
	.p2align	4, 0x90
_priv_vfs_clearsugid_write:             ## @priv_vfs_clearsugid_write
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_fpath@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	testl	%r14d, %r14d
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_2:
	movq	_EA_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_write
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	testl	%r14d, %r14d
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.5(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_4:
	movl	%ebx, %edi
	callq	_close
	leaq	L_.str.6(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_confirm_sugid                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fpath,4,2                      ## @fpath
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"priv_vfs_clearsugid_write(%s, %s): open"

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

L_.str.2:                               ## @.str.2
	.asciz	"!root"

L_.str.3:                               ## @.str.3
	.asciz	"jail"

L_.str.4:                               ## @.str.4
	.asciz	"!jail"

	.comm	_EA_DATA,4,2                    ## @EA_DATA
	.comm	_EA_SIZE,4,2                    ## @EA_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"priv_vfs_clearsugid_write(%s, %s): write"

L_.str.6:                               ## @.str.6
	.asciz	"priv_vfs_clearsugid_write"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_vfs_clearsugid_write      ; -- Begin function priv_vfs_clearsugid_write
	.p2align	2
_priv_vfs_clearsugid_write:             ; @priv_vfs_clearsugid_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _fpath@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fpath@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
Lloh10:
	adrp	x8, l_.str.3@PAGE
Lloh11:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh12:
	adrp	x9, l_.str.4@PAGE
Lloh13:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w19, #0
	csel	x3, x9, x8, eq
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
Lloh16:
	adrp	x8, _EA_DATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EA_DATA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _EA_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EA_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_write
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh22:
	adrp	x8, l_.str.1@PAGE
Lloh23:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh24:
	adrp	x9, l_.str.2@PAGE
Lloh25:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
Lloh26:
	adrp	x8, l_.str.3@PAGE
Lloh27:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh28:
	adrp	x9, l_.str.4@PAGE
Lloh29:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w19, #0
	csel	x3, x9, x8, eq
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_4:
	mov	x0, x21
	bl	_close
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_confirm_sugid
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_fpath,4,2                      ; @fpath
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"priv_vfs_clearsugid_write(%s, %s): open"

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

l_.str.2:                               ; @.str.2
	.asciz	"!root"

l_.str.3:                               ; @.str.3
	.asciz	"jail"

l_.str.4:                               ; @.str.4
	.asciz	"!jail"

	.comm	_EA_DATA,4,2                    ; @EA_DATA
	.comm	_EA_SIZE,4,2                    ; @EA_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"priv_vfs_clearsugid_write(%s, %s): write"

l_.str.6:                               ; @.str.6
	.asciz	"priv_vfs_clearsugid_write"

.subsections_via_symbols
