	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_dacl_2_nfs4acl
_map_dacl_2_nfs4acl:                    ## @map_dacl_2_nfs4acl
	.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	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.7:
	movq	%rdi, %r14
	movq	_ACLLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dprintf
	movl	4(%r14), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edi
	movq	%r14, %rdx
	callq	_print_hexbuf_no_asci
	movl	(%r14), %ebx
	movl	%ebx, (%r15)
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_20
## %bb.8:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%r15)
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.9:
	movl	$8, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	leaq	-48(%rbp), %rdx
	callq	_GetAce
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %r12
	movl	8(%r12), %ecx
	movl	$3, %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	callq	_print_hexbuf_no_asci
	movq	_ACLLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dprintf
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	movq	_ACE4_ACCESS_ALLOWED_ACE_TYPE@GOTPCREL(%rip), %rax
	movq	_ACCESS_ALLOWED_ACE_TYPE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_ACE4_ACCESS_DENIED_ACE_TYPE@GOTPCREL(%rip), %rax
	movq	_ACCESS_DENIED_ACE_TYPE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rax), %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rsi
	movq	%rax, 8(%rsi,%r13)
	addq	%r13, %rsi
	movq	-48(%rbp), %rax
	movl	4(%rax), %edi
	callq	_map_aceflags
	movq	-48(%rbp), %rax
	movl	12(%rax), %edi
	movq	8(%rbx), %rax
	leaq	(%rax,%r13), %rdx
	addq	$-4, %rdx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_map_acemask
	addq	$8, %r12
	movq	8(%rbx), %rax
	movl	-8(%rax,%r13), %ecx
	movq	%r12, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_map_nfs4ace_who
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	movslq	(%r14), %rax
	addq	$24, %r13
	cmpq	%rax, %r15
	jl	LBB0_11
	jmp	LBB0_6
LBB0_1:
	movq	_ACLLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, (%r15)
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_20
## %bb.2:
	movq	$0, 16(%r15)
	movq	_ACE4_EVERYONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	leaq	1(%rax), %rdx
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_memcpy
	movq	_ACE4_ACCESS_ALLOWED_ACE_TYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%r15), %rax
	movq	%rcx, 16(%rax)
	movq	_NF4DIR@GOTPCREL(%rip), %rcx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_ACE4_ALL_DIR@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_20:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GetLastError                   ## TAILCALL
LBB0_3:
	movq	_ACE4_ALL_FILE@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	$0, 8(%rax)
LBB0_6:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_12:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_eprintf
	jmp	LBB0_18
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str.6(%rip), %rdi
	callq	_eprintf
	movq	_ERROR_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_18:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_free
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACLLVL,4,2                     ## @ACLLVL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"this is a NULL dacl: all access to an object\n"

	.comm	_ACE4_EVERYONE,4,2              ## @ACE4_EVERYONE
	.comm	_ACE4_ACCESS_ALLOWED_ACE_TYPE,8,3 ## @ACE4_ACCESS_ALLOWED_ACE_TYPE
	.comm	_NF4DIR,4,2                     ## @NF4DIR
	.comm	_ACE4_ALL_DIR,4,2               ## @ACE4_ALL_DIR
	.comm	_ACE4_ALL_FILE,4,2              ## @ACE4_ALL_FILE
L_.str.1:                               ## @.str.1
	.asciz	"NON-NULL dacl with %d ACEs\n"

L_.str.2:                               ## @.str.2
	.asciz	"ACL\n"

L_.str.3:                               ## @.str.3
	.asciz	"map_dacl_2_nfs4acl: GetAce failed with %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"ACE\n"

L_.str.5:                               ## @.str.5
	.asciz	"ACE TYPE: %x\n"

	.comm	_ACCESS_ALLOWED_ACE_TYPE,4,2    ## @ACCESS_ALLOWED_ACE_TYPE
	.comm	_ACCESS_DENIED_ACE_TYPE,4,2     ## @ACCESS_DENIED_ACE_TYPE
	.comm	_ACE4_ACCESS_DENIED_ACE_TYPE,8,3 ## @ACE4_ACCESS_DENIED_ACE_TYPE
L_.str.6:                               ## @.str.6
	.asciz	"map_dacl_2_nfs4acl: unsupported ACE type %d\n"

	.comm	_ERROR_NOT_SUPPORTED,4,2        ## @ERROR_NOT_SUPPORTED
	.comm	_ERROR_SUCCESS,4,2              ## @ERROR_SUCCESS
	.no_dead_strip	_map_dacl_2_nfs4acl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_dacl_2_nfs4acl
_map_dacl_2_nfs4acl:                    ; @map_dacl_2_nfs4acl
	.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	x20, x4
	mov	x19, x3
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x5
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _ACLLVL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACLLVL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w8, [x24]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dprintf
	ldr	w3, [x24, #4]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #3
	mov	x2, x24
	bl	_print_hexbuf_no_asci
	ldr	w25, [x24]
	str	w25, [x19]
	mov	x0, x25
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.2:
	str	xzr, [x19, #16]
	cmp	w25, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x26, #0
	mov	x25, #0
Lloh7:
	adrp	x27, l_.str.5@PAGE
Lloh8:
	add	x27, x27, l_.str.5@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x24
	mov	x1, x25
	bl	_GetAce
	cbz	w0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [sp, #8]
	ldr	w3, [x28, #8]
	mov	w0, #3
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x28
	bl	_print_hexbuf_no_asci
Lloh11:
	adrp	x8, _ACLLVL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACLLVL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x1, x27
	bl	_dprintf
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _ACCESS_ALLOWED_ACE_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACCESS_ALLOWED_ACE_TYPE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x8]
Lloh17:
	adrp	x8, _ACE4_ACCESS_ALLOWED_ACE_TYPE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ACE4_ACCESS_ALLOWED_ACE_TYPE@GOTPAGEOFF]
	cmp	w1, w9
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x8, _ACCESS_DENIED_ACE_TYPE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ACCESS_DENIED_ACE_TYPE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x8]
Lloh22:
	adrp	x8, _ACE4_ACCESS_DENIED_ACE_TYPE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ACE4_ACCESS_DENIED_ACE_TYPE@GOTPAGEOFF]
	cmp	w1, w9
	b.ne	LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	add	x9, x9, x26
	str	x8, [x9, #16]
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #4]
	add	x1, x9, #8
	bl	_map_aceflags
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #12]
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	add	x2, x8, #4
	mov	x1, x20
	bl	_map_acemask
	add	x0, x28, #8
	ldr	x8, [x19, #8]
	ldr	w3, [x8, x26]
	mov	x1, x23
	mov	x2, x22
	mov	x4, x21
	bl	_map_nfs4ace_who
	cbnz	w0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	add	x26, x26, #24
	cmp	x25, x8
	b.lt	LBB0_4
	b	LBB0_11
LBB0_9:
Lloh24:
	adrp	x8, _ACLLVL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ACLLVL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dprintf
	mov	w8, #1
	str	w8, [x19]
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.10:
	str	xzr, [x19, #16]
Lloh29:
	adrp	x8, _ACE4_EVERYONE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ACE4_EVERYONE@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_strlen
	add	x2, x0, #1
	mov	w0, #0
	mov	x1, x21
	bl	_memcpy
Lloh32:
	adrp	x8, _ACE4_ACCESS_ALLOWED_ACE_TYPE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ACE4_ACCESS_ALLOWED_ACE_TYPE@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9, #16]
Lloh35:
	adrp	x8, _NF4DIR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NF4DIR@GOTPAGEOFF]
Lloh37:
	adrp	x10, _ACE4_ALL_DIR@GOTPAGE
Lloh38:
	ldr	x10, [x10, _ACE4_ALL_DIR@GOTPAGEOFF]
Lloh39:
	adrp	x11, _ACE4_ALL_FILE@GOTPAGE
Lloh40:
	ldr	x11, [x11, _ACE4_ALL_FILE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w8, w20
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x9, #4]
	str	xzr, [x9, #8]
LBB0_11:
Lloh42:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh44:
	ldr	w28, [x8]
	b	LBB0_17
LBB0_12:
	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
	b	_GetLastError
LBB0_13:
	bl	_GetLastError
	mov	x28, x0
Lloh45:
	adrp	x0, l_.str.3@PAGE
Lloh46:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x28
	bl	_eprintf
	b	LBB0_16
LBB0_14:
	mov	x28, x0
	b	LBB0_16
LBB0_15:
Lloh47:
	adrp	x0, l_.str.6@PAGE
Lloh48:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_eprintf
Lloh49:
	adrp	x8, _ERROR_NOT_SUPPORTED@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ERROR_NOT_SUPPORTED@GOTPAGEOFF]
Lloh51:
	ldr	w28, [x8]
LBB0_16:
	ldr	x0, [x19, #8]
	bl	_free
LBB0_17:
	mov	x0, x28
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh41
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_ACLLVL,4,2                     ; @ACLLVL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"this is a NULL dacl: all access to an object\n"

	.comm	_ACE4_EVERYONE,4,2              ; @ACE4_EVERYONE
	.comm	_ACE4_ACCESS_ALLOWED_ACE_TYPE,8,3 ; @ACE4_ACCESS_ALLOWED_ACE_TYPE
	.comm	_NF4DIR,4,2                     ; @NF4DIR
	.comm	_ACE4_ALL_DIR,4,2               ; @ACE4_ALL_DIR
	.comm	_ACE4_ALL_FILE,4,2              ; @ACE4_ALL_FILE
l_.str.1:                               ; @.str.1
	.asciz	"NON-NULL dacl with %d ACEs\n"

l_.str.2:                               ; @.str.2
	.asciz	"ACL\n"

l_.str.3:                               ; @.str.3
	.asciz	"map_dacl_2_nfs4acl: GetAce failed with %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"ACE\n"

l_.str.5:                               ; @.str.5
	.asciz	"ACE TYPE: %x\n"

	.comm	_ACCESS_ALLOWED_ACE_TYPE,4,2    ; @ACCESS_ALLOWED_ACE_TYPE
	.comm	_ACCESS_DENIED_ACE_TYPE,4,2     ; @ACCESS_DENIED_ACE_TYPE
	.comm	_ACE4_ACCESS_DENIED_ACE_TYPE,8,3 ; @ACE4_ACCESS_DENIED_ACE_TYPE
l_.str.6:                               ; @.str.6
	.asciz	"map_dacl_2_nfs4acl: unsupported ACE type %d\n"

	.comm	_ERROR_NOT_SUPPORTED,4,2        ; @ERROR_NOT_SUPPORTED
	.comm	_ERROR_SUCCESS,4,2              ; @ERROR_SUCCESS
	.no_dead_strip	_map_dacl_2_nfs4acl
.subsections_via_symbols
