	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preserve_fd_acls
_preserve_fd_acls:                      ## @preserve_fd_acls
	.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	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	__PC_ACL_NFS4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fpathconf
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	_ACL_TYPE_NFS4@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	jns	LBB0_8
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_8:
	movq	__PC_ACL_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_fpathconf
	testl	%eax, %eax
	jle	LBB0_10
## %bb.9:
	movq	_ACL_TYPE_ACCESS@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %r13d
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_acl_get_fd_np
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:
	movq	%rax, %rbx
	leaq	-44(%rbp), %rsi
	movq	%rax, %rdi
	callq	_acl_is_trivial_np
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
LBB0_15:
	callq	_warn
	jmp	LBB0_16
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warn                           ## TAILCALL
LBB0_18:
	cmpl	$0, -44(%rbp)
	jne	LBB0_16
## %bb.19:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_acl_set_fd_np
	testq	%rax, %rax
	js	LBB0_20
LBB0_16:
	movq	%rbx, %rdi
	callq	_acl_free
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	jns	LBB0_17
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_20:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	__PC_ACL_NFS4,4,2               ## @_PC_ACL_NFS4
	.comm	_ACL_TYPE_NFS4,4,2              ## @ACL_TYPE_NFS4
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fpathconf(..., _PC_ACL_NFS4) failed for %s"

	.comm	__PC_ACL_EXTENDED,4,2           ## @_PC_ACL_EXTENDED
	.comm	_ACL_TYPE_ACCESS,4,2            ## @ACL_TYPE_ACCESS
L_.str.1:                               ## @.str.1
	.asciz	"fpathconf(..., _PC_ACL_EXTENDED) failed for %s"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get acl entries for %s"

L_.str.3:                               ## @.str.3
	.asciz	"acl_is_trivial() failed for %s"

L_.str.4:                               ## @.str.4
	.asciz	"failed to set acl entries for %s"

	.no_dead_strip	_preserve_fd_acls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preserve_fd_acls
_preserve_fd_acls:                      ; @preserve_fd_acls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, __PC_ACL_NFS4@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PC_ACL_NFS4@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fpathconf
	cmp	w0, #0
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ACL_TYPE_NFS4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACL_TYPE_NFS4@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _EINVAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
LBB0_4:
Lloh11:
	adrp	x8, __PC_ACL_EXTENDED@GOTPAGE
Lloh12:
	ldr	x8, [x8, __PC_ACL_EXTENDED@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_fpathconf
	cmp	w0, #0
	b.le	LBB0_16
; %bb.5:
Lloh14:
	adrp	x8, _ACL_TYPE_ACCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACL_TYPE_ACCESS@GOTPAGEOFF]
LBB0_6:
	ldr	w23, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_acl_get_fd_np
	cbz	x0, LBB0_10
; %bb.7:
	mov	x22, x0
	add	x1, sp, #12
	bl	_acl_is_trivial_np
	cbz	x0, LBB0_12
; %bb.8:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
LBB0_9:
	bl	_warn
	b	LBB0_14
LBB0_10:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_warn
LBB0_12:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_14
; %bb.13:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_acl_set_fd_np
	tbnz	x0, #63, LBB0_20
LBB0_14:
	mov	x0, x22
	bl	_acl_free
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	tbz	w0, #31, LBB0_15
; %bb.17:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _EINVAL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.18:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_19:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_20:
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	__PC_ACL_NFS4,4,2               ; @_PC_ACL_NFS4
	.comm	_ACL_TYPE_NFS4,4,2              ; @ACL_TYPE_NFS4
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fpathconf(..., _PC_ACL_NFS4) failed for %s"

	.comm	__PC_ACL_EXTENDED,4,2           ; @_PC_ACL_EXTENDED
	.comm	_ACL_TYPE_ACCESS,4,2            ; @ACL_TYPE_ACCESS
l_.str.1:                               ; @.str.1
	.asciz	"fpathconf(..., _PC_ACL_EXTENDED) failed for %s"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get acl entries for %s"

l_.str.3:                               ; @.str.3
	.asciz	"acl_is_trivial() failed for %s"

l_.str.4:                               ; @.str.4
	.asciz	"failed to set acl entries for %s"

	.no_dead_strip	_preserve_fd_acls
.subsections_via_symbols
