	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_acl_mask                   ## -- Begin function set_acl_mask
	.p2align	4, 0x90
_set_acl_mask:                          ## @set_acl_mask
	.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	$0, -64(%rbp)
	movq	_have_mask@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_acl_dup
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_3:
	movq	_n_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_ACL_FIRST_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	-64(%rbp), %r15
	leaq	-72(%rbp), %r12
	movq	_ACL_MASK@GOTPCREL(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rax
	cmpq	(%r14), %rax
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_acl_get_entry
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_ACL_NEXT_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-64(%rbp), %rdi
	movq	%r12, %rsi
	callq	_acl_get_tag_type
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_err
	jmp	LBB0_5
LBB0_9:
	leaq	-48(%rbp), %rdi
	callq	_acl_calc_mask
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
	movl	$-1, %r12d
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_warnx
LBB0_12:
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_13:
	movq	(%r15), %rdi
	callq	_acl_free
	movq	-48(%rbp), %rdi
	callq	_acl_dup
	movq	%rax, (%r15)
	xorl	%r12d, %r12d
LBB0_14:
	movq	-48(%rbp), %rbx
LBB0_15:
	movq	%rbx, %rdi
	callq	_acl_free
LBB0_16:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_have_mask,8,3                  ## @have_mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: acl_dup() failed"

	.comm	_n_flag,4,2                     ## @n_flag
L_.str.1:                               ## @.str.1
	.asciz	"%s: acl_calc_mask() failed"

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

	.comm	_ACL_MASK,8,3                   ## @ACL_MASK
L_.str.3:                               ## @.str.3
	.asciz	"%s: warning: no mask entry"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_acl_mask                   ; -- Begin function set_acl_mask
	.p2align	2
_set_acl_mask:                          ; @set_acl_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _have_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _have_mask@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_17
LBB0_2:
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_acl_dup
	mov	x19, x0
	str	x0, [sp, #16]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_err
LBB0_4:
Lloh5:
	adrp	x8, _n_flag@GOTPAGE
Lloh6:
	ldr	x8, [x8, _n_flag@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.5:
Lloh8:
	adrp	x8, _ACL_FIRST_ENTRY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACL_FIRST_ENTRY@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x23, _ACL_NEXT_ENTRY@GOTPAGE
Lloh12:
	ldr	x23, [x23, _ACL_NEXT_ENTRY@GOTPAGEOFF]
Lloh13:
	adrp	x21, l_.str.2@PAGE
Lloh14:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh15:
	adrp	x24, _ACL_MASK@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ACL_MASK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x22
	bl	_acl_get_entry
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w22, [x23]
	ldr	x0, [sp, #24]
	add	x1, sp, #8
	bl	_acl_get_tag_type
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	mov	x1, x21
	mov	x2, x20
	bl	_err
	b	LBB0_6
LBB0_10:
	add	x0, sp, #16
	bl	_acl_calc_mask
	cbz	x0, LBB0_14
; %bb.11:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_warn
	mov	w20, #-1
	b	LBB0_15
LBB0_12:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_warnx
LBB0_13:
	mov	w20, #0
	b	LBB0_16
LBB0_14:
	ldr	x0, [x21]
	bl	_acl_free
	ldr	x0, [sp, #16]
	bl	_acl_dup
	mov	w20, #0
	str	x0, [x21]
LBB0_15:
	ldr	x19, [sp, #16]
LBB0_16:
	mov	x0, x19
	bl	_acl_free
LBB0_17:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_have_mask,8,3                  ; @have_mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: acl_dup() failed"

	.comm	_n_flag,4,2                     ; @n_flag
l_.str.1:                               ; @.str.1
	.asciz	"%s: acl_calc_mask() failed"

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

	.comm	_ACL_MASK,8,3                   ; @ACL_MASK
l_.str.3:                               ; @.str.3
	.asciz	"%s: warning: no mask entry"

.subsections_via_symbols
