	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_acl                        ## -- Begin function add_acl
	.p2align	4, 0x90
_add_acl:                               ## @add_acl
	.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	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	leaq	-44(%rbp), %rsi
	callq	_acl_get_brand_np
	movq	(%r15), %rdi
	leaq	-60(%rbp), %rsi
	callq	_acl_get_brand_np
	movl	-60(%rbp), %esi
	movq	_ACL_BRAND_NFS4@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_3
## %bb.1:
	movl	-44(%rbp), %edi
	callq	_branding_mismatch
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	-44(%rbp), %edi
	callq	_brand_name
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_14
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warnx
LBB0_14:
	movl	$-1, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r15), %rdi
	callq	_acl_dup
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_6:
	movq	_ACL_FIRST_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_acl_get_entry
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	leaq	-48(%rbp), %rdx
	callq	_acl_get_entry
	incl	%ebx
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_ACL_NEXT_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	-56(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edx
	callq	_acl_create_entry_np
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-64(%rbp), %edi
	movl	-48(%rbp), %esi
	callq	_acl_copy_entry
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	callq	_err
	jmp	LBB0_7
LBB0_12:
	movq	(%r15), %rdi
	callq	_acl_free
	movq	-56(%rbp), %rax
	movq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
	movq	-56(%rbp), %rdi
	callq	_acl_free
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ACL_BRAND_NFS4,4,2             ## @ACL_BRAND_NFS4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: the '-a' option is only applicable to NFSv4 ACLs"

L_.str.1:                               ## @.str.1
	.asciz	"%s: branding mismatch; existing ACL is NFSv4, entry to be added is %s"

L_.str.2:                               ## @.str.2
	.asciz	"%s: acl_dup() failed"

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

L_.str.4:                               ## @.str.4
	.asciz	"%s: acl_copy_entry() failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_acl                        ; -- Begin function add_acl
	.p2align	2
_add_acl:                               ; @add_acl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x1, sp, #12
	bl	_acl_get_brand_np
	ldr	x0, [x20]
	add	x1, sp, #8
	bl	_acl_get_brand_np
	ldr	w1, [sp, #8]
Lloh0:
	adrp	x8, _ACL_BRAND_NFS4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACL_BRAND_NFS4@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_branding_mismatch
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w0, [sp, #12]
	bl	_brand_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	mov	x1, x19
	bl	_warnx
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	add	sp, sp, #112
	ret
LBB0_7:
	ldr	x0, [x20]
	bl	_acl_dup
	str	x0, [sp, #16]
	cbnz	x0, LBB0_9
; %bb.8:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_9:
Lloh9:
	adrp	x8, _ACL_FIRST_ENTRY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACL_FIRST_ENTRY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #28
	mov	x0, x22
	bl	_acl_get_entry
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.10:
Lloh12:
	adrp	x25, _ACL_NEXT_ENTRY@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ACL_NEXT_ENTRY@GOTPAGEOFF]
Lloh14:
	adrp	x23, l_.str.4@PAGE
Lloh15:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x2, sp, #28
	mov	x0, x22
	mov	x1, x24
	bl	_acl_get_entry
	add	w21, w21, #1
	cmp	w0, #1
	b.ne	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x25]
	add	x0, sp, #16
	add	x1, sp, #24
	mov	x2, x21
	bl	_acl_create_entry_np
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	w0, w1, [sp, #24]
	bl	_acl_copy_entry
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #1
	mov	x1, x23
	mov	x2, x19
	bl	_err
	b	LBB0_11
LBB0_15:
	ldr	x0, [x20]
	bl	_acl_free
	mov	w0, #0
	ldr	x8, [sp, #16]
	str	x8, [x20]
	b	LBB0_6
LBB0_16:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_warn
	ldr	x0, [sp, #16]
	bl	_acl_free
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ACL_BRAND_NFS4,4,2             ; @ACL_BRAND_NFS4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: the '-a' option is only applicable to NFSv4 ACLs"

l_.str.1:                               ; @.str.1
	.asciz	"%s: branding mismatch; existing ACL is NFSv4, entry to be added is %s"

l_.str.2:                               ; @.str.2
	.asciz	"%s: acl_dup() failed"

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

l_.str.4:                               ; @.str.4
	.asciz	"%s: acl_copy_entry() failed"

.subsections_via_symbols
