	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aclmask_direct
_aclmask_direct:                        ## @aclmask_direct
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	%r12, %rdi
	callq	_check_acl
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	cmpq	%r13, %rbx
	jne	LBB0_8
## %bb.5:
	movq	_ACLITEM_ALL_GOPTION_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%r15d, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	movq	_ACLMASK_ALL@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_17
## %bb.7:
	movl	%ecx, %r14d
	cmpl	%r15d, %ecx
	je	LBB0_17
LBB0_8:
	movq	%r12, %rdi
	callq	_ACL_NUM
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_ACL_DAT
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.10:
	movq	_ACLMASK_ALL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	%r13d, %esi
	shlq	$4, %rsi
	xorl	%edi, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r14d, %r14d
	testl	%ecx, %ecx
	jne	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$16, %rdi
	movl	%r14d, %ecx
	cmpq	%rdi, %rsi
	je	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rax,%rdi)
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	8(%rax,%rdi), %ecx
	andl	%r15d, %ecx
	orl	%r14d, %ecx
	cmpq	%rdx, %r8
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ecx, %r14d
	cmpl	%r15d, %ecx
	jne	LBB0_16
## %bb.14:
	movl	%r15d, %ecx
	jmp	LBB0_17
LBB0_3:
	xorl	%ecx, %ecx
	jmp	LBB0_17
LBB0_9:
	movl	%r14d, %ecx
LBB0_17:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"null ACL"

	.comm	_ACLITEM_ALL_GOPTION_BITS,4,2   ## @ACLITEM_ALL_GOPTION_BITS
	.comm	_ACLMASK_ALL,8,3                ## @ACLMASK_ALL
	.no_dead_strip	_aclmask_direct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aclmask_direct
_aclmask_direct:                        ; @aclmask_direct
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	mov	x0, x22
	bl	_check_acl
	cbz	w19, LBB0_14
; %bb.3:
	mov	w24, #0
	cmp	x21, x23
	b.ne	LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _ACLITEM_ALL_GOPTION_BITS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACLITEM_ALL_GOPTION_BITS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w0, w8, w19
	cbz	w0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _ACLMASK_ALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACLMASK_ALL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x20
	ccmp	w0, w19, #4, eq
	mov	x24, x0
	b.eq	LBB0_16
LBB0_6:
	mov	x0, x22
	bl	_ACL_NUM
	mov	x23, x0
	mov	x0, x22
	bl	_ACL_DAT
	cmp	w23, #1
	b.lt	LBB0_15
; %bb.7:
Lloh11:
	adrp	x8, _ACLMASK_ALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACLMASK_ALL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	mov	w9, w23
	add	x10, x0, #8
	mov	x0, x24
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	cbnz	w0, LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.eq	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x21
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w11, [x10]
	and	w11, w11, w19
	orr	w0, w11, w0
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w0, w19
	b.ne	LBB0_9
; %bb.13:
	mov	x0, x19
	b	LBB0_16
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	mov	x0, x24
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"null ACL"

	.comm	_ACLITEM_ALL_GOPTION_BITS,4,2   ; @ACLITEM_ALL_GOPTION_BITS
	.comm	_ACLMASK_ALL,8,3                ; @ACLMASK_ALL
	.no_dead_strip	_aclmask_direct
.subsections_via_symbols
