	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aclmask                        ## -- Begin function aclmask
	.p2align	4, 0x90
_aclmask:                               ## @aclmask
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	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	%ebx, %ebx
	je	LBB0_8
## %bb.3:
	movq	_ACLITEM_ALL_GOPTION_BITS@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	testl	%ebx, (%r15)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_10
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_has_privs_of_role
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	(%r15), %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %eax
	movq	_ACLMASK_ALL@GOTPCREL(%rip), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, (%rcx)
	jne	LBB0_9
## %bb.6:
	movl	%eax, %r14d
	cmpl	%edx, %eax
	jne	LBB0_10
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_35
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_35
LBB0_10:
	movq	%r12, %rdi
	callq	_ACL_NUM
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_ACL_DAT
	testl	%r13d, %r13d
	jle	LBB0_34
## %bb.11:
	movq	%rax, %rbx
	movq	_ACL_ID_PUBLIC@GOTPCREL(%rip), %r9
	movq	(%r9), %rcx
	movq	_ACLMASK_ALL@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	%r13d, %r13d
	shlq	$4, %r13
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_35
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %r13
	je	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rsi), %rax
	cmpq	%rdi, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_13
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	8(%rbx,%rsi), %eax
	andl	%edx, %eax
	orl	%r14d, %eax
	cmpq	-64(%rbp), %r8                  ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %r14d
	cmpl	%edx, %eax
	jne	LBB0_13
LBB0_7:
	movl	%edx, %eax
	jmp	LBB0_35
LBB0_19:
	movl	%r14d, %r12d
	notl	%r12d
	andl	%edx, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%r14d, %eax
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=1
	addq	$16, %r15
	movl	%eax, %r14d
	cmpq	%r15, %r13
	je	LBB0_35
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r15), %rsi
	cmpq	%rdi, %rsi
	je	LBB0_20
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpq	(%r9), %rsi
	je	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	testl	%r12d, 8(%rbx,%r15)
	je	LBB0_20
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	callq	_has_privs_of_role
	testq	%rax, %rax
	je	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	8(%rbx,%r15), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	andl	%ecx, %eax
	orl	%r14d, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	_ACLMASK_ALL@GOTPCREL(%rip), %rsi
	cmpq	%rdx, (%rsi)
	jne	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpl	%ecx, %eax
	jne	LBB0_32
	jmp	LBB0_36
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%r14d, %eax
	jmp	LBB0_33
LBB0_31:                                ##   in Loop: Header=BB0_22 Depth=1
	testl	%eax, %eax
	jne	LBB0_35
LBB0_32:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%eax, %r12d
	notl	%r12d
	andl	%ecx, %r12d
LBB0_33:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_ACL_ID_PUBLIC@GOTPCREL(%rip), %r9
	jmp	LBB0_21
LBB0_34:
	movl	%r14d, %eax
LBB0_35:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movl	%ecx, %eax
	jmp	LBB0_35
	.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
	.comm	_ACL_ID_PUBLIC,8,3              ## @ACL_ID_PUBLIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aclmask                        ; -- Begin function aclmask
	.p2align	2
_aclmask:                               ; @aclmask
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, 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, x23
	bl	_check_acl
	cbz	w19, LBB0_15
; %bb.3:
Lloh5:
	adrp	x24, _ACLITEM_ALL_GOPTION_BITS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ACLITEM_ALL_GOPTION_BITS@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	bl	_has_privs_of_role
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x24]
	and	w22, w8, w19
Lloh7:
	adrp	x8, _ACLMASK_ALL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ACLMASK_ALL@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_26
; %bb.6:
	cmp	w22, w19
	b.ne	LBB0_8
	b	LBB0_25
LBB0_7:
	mov	w22, #0
LBB0_8:
	mov	x0, x23
	bl	_ACL_NUM
	mov	x24, x0
	mov	x0, x23
	bl	_ACL_DAT
	cmp	w24, #1
	b.lt	LBB0_27
; %bb.9:
Lloh10:
	adrp	x23, _ACL_ID_PUBLIC@GOTPAGE
Lloh11:
	ldr	x23, [x23, _ACL_ID_PUBLIC@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh12:
	adrp	x25, _ACLMASK_ALL@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ACLMASK_ALL@GOTPAGEOFF]
	ldr	x9, [x25]
	mov	w24, w24
	add	x10, x0, #8
	mov	x11, x24
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w22, LBB0_27
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x10, x10, #16
	subs	x11, x11, #1
	b.eq	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x10, #-8]
	cmp	x12, x21
	ccmp	x12, x8, #4, ne
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w12, [x10]
	and	w12, w12, w19
	orr	w22, w12, w22
	cmp	x9, x20
	b.ne	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w22, w19
	b.ne	LBB0_11
	b	LBB0_25
LBB0_15:
	mov	w22, #0
	b	LBB0_27
LBB0_16:
	bic	w27, w19, w22
	add	x26, x0, #8
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_20 Depth=1
	cbnz	w22, LBB0_27
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	bic	w27, w19, w22
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x26, x26, #16
	subs	x24, x24, #1
	b.eq	LBB0_27
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldur	x1, [x26, #-8]
	ldr	x8, [x23]
	cmp	x1, x21
	ccmp	x1, x8, #4, ne
	b.eq	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x26]
	tst	w8, w27
	b.eq	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x21
	bl	_has_privs_of_role
	cbz	x0, LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x26]
	and	w8, w8, w19
	orr	w22, w8, w22
	ldr	x8, [x25]
	cmp	x8, x20
	b.ne	LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	w22, w19
	b.ne	LBB0_18
LBB0_25:
	mov	x22, x19
	b	LBB0_27
LBB0_26:
	cbz	w22, LBB0_8
LBB0_27:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.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
	.comm	_ACL_ID_PUBLIC,8,3              ; @ACL_ID_PUBLIC
.subsections_via_symbols
