	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acl_delete_entry_np            ## -- Begin function acl_delete_entry_np
	.p2align	4, 0x90
_acl_delete_entry_np:                   ## @acl_delete_entry_np
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	testl	%esi, %esi
	js	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	cmpl	%esi, %eax
	jle	LBB0_1
## %bb.4:
	movq	_ACL_MAX_ENTRIES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	decl	%eax
	movq	16(%rbx), %rcx
	cmpl	%esi, %eax
	jle	LBB0_8
## %bb.6:
	movl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx,%rsi,4), %eax
	movl	%eax, (%rcx,%rsi,4)
	incq	%rsi
	movslq	8(%rbx), %rax
	decq	%rax
	cmpq	%rax, %rsi
	jl	LBB0_7
LBB0_8:
	movl	%eax, 8(%rbx)
	movslq	%esi, %rax
	leaq	(%rcx,%rax,4), %rdi
	movl	$4, %esi
	callq	_bzero
	movq	$0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ACL_MAX_ENTRIES,4,2            ## @ACL_MAX_ENTRIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acl_delete_entry_np            ; -- Begin function acl_delete_entry_np
	.p2align	2
_acl_delete_entry_np:                   ; @acl_delete_entry_np
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w1 killed $w1 def $x1
	cbz	x0, LBB0_4
; %bb.1:
	tbnz	w1, #31, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0, #8]
	cmp	w8, w1
	b.le	LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, _ACL_MAX_ENTRIES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACL_MAX_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	sub	w9, w8, #1
	ldr	x8, [x19, #16]
	cmp	w9, w1
	b.le	LBB0_9
; %bb.7:
	mov	w1, w1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x8, x1, lsl #2
	add	x1, x1, #1
	ldr	w10, [x9, #4]
	str	w10, [x9]
	ldrsw	x9, [x19, #8]
	sub	x9, x9, #1
	cmp	x1, x9
	b.lt	LBB0_8
LBB0_9:
	str	w9, [x19, #8]
	add	x0, x8, w1, sxtw #2
	mov	w1, #4
	bl	_bzero
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ACL_MAX_ENTRIES,4,2            ; @ACL_MAX_ENTRIES
.subsections_via_symbols
