	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aclnewowner                    ## -- Begin function aclnewowner
	.p2align	4, 0x90
_aclnewowner:                           ## @aclnewowner
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_check_acl
	movq	%r14, %rdi
	callq	_ACL_NUM
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_ACL_DAT
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_allocacl
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ACL_DAT
	movl	%r15d, %edx
	shll	$4, %edx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	testl	%r15d, %r15d
	jle	LBB0_24
## %bb.1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rcx
	xorl	%eax, %eax
	movl	$1, %edx
	movl	%r15d, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, %rdi
	cmovel	%edx, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rcx
	decl	%esi
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx), %rdi
	cmpq	%rbx, %rdi
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, -8(%rcx)
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, %rdi
	cmovel	%edx, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rdi
	cmpq	%rbx, %rdi
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, (%rcx)
	jmp	LBB0_8
LBB0_9:
	testl	%eax, %eax
	je	LBB0_24
## %bb.10:
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.12:
	leal	-1(%r15), %r12d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rax
	addq	$16, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movslq	%edx, %rdx
	movq	%rdx, %rax
	shlq	$4, %rax
	movups	(%r13), %xmm0
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movups	%xmm0, (%rcx,%rax)
	incl	%edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$16, %r13
	decl	%r12d
	addq	$16, -88(%rbp)                  ## 8-byte Folded Spill
	cmpl	%r15d, %ecx
	je	LBB0_23
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	%r15, %r14
	movq	(%r13), %rdi
	movq	8(%r13), %rsi
	movl	%ecx, %r15d
	callq	_ACLITEM_GET_RIGHTS
	movl	%r15d, %ecx
	incl	%ecx
	movq	_ACL_NO_RIGHTS@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %r15
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	cmpl	%r14d, %ecx
	jge	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=2
	addq	$16, %r14
	decl	%r12d
	je	LBB0_21
LBB0_17:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	callq	_ACLITEM_GET_RIGHTS
	cmpl	(%rbx), %eax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_aclitem_match
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	(%r13), %rdi
	movq	8(%r13), %rsi
	callq	_ACLITEM_GET_RIGHTS
	movl	%eax, %r15d
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	callq	_ACLITEM_GET_RIGHTS
	orl	%eax, %r15d
	movq	(%r13), %rdi
	movq	8(%r13), %rsi
	movl	%r15d, %edx
	movq	_ACL_NO_RIGHTS@GOTPCREL(%rip), %rbx
	callq	_ACLITEM_SET_RIGHTS
	movl	(%rbx), %edx
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	callq	_ACLITEM_SET_RIGHTS
	jmp	LBB0_20
LBB0_11:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_23:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ARR_DIMS
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%edi, (%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACL_N_SIZE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SET_VARSIZE
LBB0_24:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACL_NO_RIGHTS,4,2              ## @ACL_NO_RIGHTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aclnewowner                    ; -- Begin function aclnewowner
	.p2align	2
_aclnewowner:                           ; @aclnewowner
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_check_acl
	mov	x0, x19
	bl	_ACL_NUM
	mov	x20, x0
	mov	x0, x19
	bl	_ACL_DAT
	mov	x24, x0
	mov	x0, x20
	bl	_allocacl
	mov	x19, x0
	bl	_ACL_DAT
	lsl	w2, w20, #4
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x1, x24
	bl	_memcpy
	cmp	w20, #1
	b.lt	LBB0_23
; %bb.1:
	mov	w8, #0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x9, x9, #8
	mov	x10, x20
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, x22
	csinc	w8, w8, wzr, ne
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #16
	subs	w10, w10, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	cmp	x11, x23
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	stur	x22, [x9, #-8]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, x22
	csinc	w8, w8, wzr, ne
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x9]
	cmp	x11, x23
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x22, [x9]
	b	LBB0_3
LBB0_9:
	cbz	w8, LBB0_23
; %bb.10:
	str	x19, [sp]                       ; 8-byte Folded Spill
	subs	w21, w20, #1
	b.lt	LBB0_21
; %bb.11:
	mov	w27, #0
	mov	w22, #0
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	add	x28, x23, #16
Lloh0:
	adrp	x19, _ACL_NO_RIGHTS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ACL_NO_RIGHTS@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	q0, [x23]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	q0, [x8, w22, sxtw #4]
	add	w22, w22, #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #16
	sub	w21, w21, #1
	add	x28, x28, #16
	cmp	w27, w20
	b.eq	LBB0_22
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldp	x0, x1, [x23]
	bl	_ACLITEM_GET_RIGHTS
	ldr	w8, [x19]
	add	w27, w27, #1
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w27, w20
	b.ge	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x24, x28
	mov	x26, x21
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x24, x24, #16
	subs	w26, w26, #1
	b.eq	LBB0_12
LBB0_18:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x0, x1, [x24]
	bl	_ACLITEM_GET_RIGHTS
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x23
	mov	x1, x24
	bl	_aclitem_match
	cbz	x0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	ldp	x0, x1, [x23]
	bl	_ACLITEM_GET_RIGHTS
	mov	x25, x0
	ldp	x0, x1, [x24]
	bl	_ACLITEM_GET_RIGHTS
	orr	w2, w0, w25
	ldp	x0, x1, [x23]
	bl	_ACLITEM_SET_RIGHTS
	ldr	w2, [x19]
	ldp	x0, x1, [x24]
	bl	_ACLITEM_SET_RIGHTS
	b	LBB0_17
LBB0_21:
	mov	w22, #0
LBB0_22:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	mov	x0, x19
	bl	_ARR_DIMS
	str	w22, [x0]
	mov	x0, x22
	bl	_ACL_N_SIZE
	mov	x1, x0
	mov	x0, x19
	bl	_SET_VARSIZE
LBB0_23:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ACL_NO_RIGHTS,4,2              ; @ACL_NO_RIGHTS
.subsections_via_symbols
