	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_by_number               ## -- Begin function remove_by_number
	.p2align	4, 0x90
_remove_by_number:                      ## @remove_by_number
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rdi
	callq	_acl_dup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_err
LBB0_2:
	movq	_ACL_UNDEFINED_TAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_ACL_FIRST_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_acl_get_entry
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.3:
	movq	_ACL_NEXT_ENTRY@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_acl_get_entry
	cmpl	$1, %eax
	jne	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r15d
	testq	%r12, %r12
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %edi
	leaq	-64(%rbp), %rsi
	callq	_acl_get_tag_type
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_err
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax
	movq	_ACL_MASK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_have_mask@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_acl_delete_entry_np
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_warn
LBB0_12:
	xorl	%r15d, %r15d
	cmpl	$-1, %r14d
	sete	%r15b
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	callq	_acl_free
	movq	%rbx, (%r14)
	negl	%r15d
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: acl_dup() failed"

	.comm	_ACL_UNDEFINED_TAG,8,3          ## @ACL_UNDEFINED_TAG
	.comm	_ACL_FIRST_ENTRY,4,2            ## @ACL_FIRST_ENTRY
	.comm	_ACL_NEXT_ENTRY,4,2             ## @ACL_NEXT_ENTRY
L_.str.1:                               ## @.str.1
	.asciz	"%s: acl_get_tag_type() failed"

	.comm	_ACL_MASK,8,3                   ## @ACL_MASK
	.comm	_have_mask,4,2                  ## @have_mask
L_.str.2:                               ## @.str.2
	.asciz	"%s: acl_delete_entry_np() failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_by_number               ; -- Begin function remove_by_number
	.p2align	2
_remove_by_number:                      ; @remove_by_number
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x0, [x1]
	bl	_acl_dup
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_err
LBB0_2:
Lloh2:
	adrp	x8, _ACL_UNDEFINED_TAG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ACL_UNDEFINED_TAG@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh5:
	adrp	x8, _ACL_FIRST_ENTRY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACL_FIRST_ENTRY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_acl_get_entry
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.3:
Lloh8:
	adrp	x25, _ACL_NEXT_ENTRY@GOTPAGE
Lloh9:
	ldr	x25, [x25, _ACL_NEXT_ENTRY@GOTPAGEOFF]
	mov	w26, #1
Lloh10:
	adrp	x27, _ACL_MASK@GOTPAGE
Lloh11:
	ldr	x27, [x27, _ACL_MASK@GOTPAGEOFF]
Lloh12:
	adrp	x23, l_.str.1@PAGE
Lloh13:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh14:
	adrp	x28, _have_mask@GOTPAGE
Lloh15:
	ldr	x28, [x28, _have_mask@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x24
	bl	_acl_get_entry
	cmp	w0, #1
	b.ne	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x25]
	cbnz	x22, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #12]
	mov	x1, sp
	bl	_acl_get_tag_type
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	mov	x1, x23
	mov	x2, x21
	bl	_err
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w26, [x28]
	b	LBB0_4
LBB0_10:
	mov	x0, x20
	mov	x1, x22
	bl	_acl_delete_entry_np
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_warn
LBB0_12:
	ldr	x0, [x19]
	bl	_acl_free
	str	x20, [x19]
	cmn	w22, #1
	csetm	w0, eq
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: acl_dup() failed"

	.comm	_ACL_UNDEFINED_TAG,8,3          ; @ACL_UNDEFINED_TAG
	.comm	_ACL_FIRST_ENTRY,4,2            ; @ACL_FIRST_ENTRY
	.comm	_ACL_NEXT_ENTRY,4,2             ; @ACL_NEXT_ENTRY
l_.str.1:                               ; @.str.1
	.asciz	"%s: acl_get_tag_type() failed"

	.comm	_ACL_MASK,8,3                   ; @ACL_MASK
	.comm	_have_mask,4,2                  ; @have_mask
l_.str.2:                               ; @.str.2
	.asciz	"%s: acl_delete_entry_np() failed"

.subsections_via_symbols
