	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_nfs4ace_who
_map_nfs4ace_who:                       ## @map_nfs4ace_who
	.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, %r14
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rdi, %r13
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%r13, %rdi
	callq	_EqualSid
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_ACLLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dprintf
	movq	_ACE4_OWNER@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_EqualSid
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ACLLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dprintf
	movq	_ACE4_GROUP@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
LBB0_22:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_is_well_known_sid
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	_ACE4_NOBODY@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_22
## %bb.9:
	movq	(%r12), %rdi
	callq	_strlen
	movl	%eax, -44(%rbp)
	xorl	%r12d, %r12d
LBB0_20:
	movslq	%eax, %rdi
	addq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edx
	callq	_memcpy
	movslq	-44(%rbp), %rax
	leaq	(%r15,%rax), %rbx
	incq	%rbx
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movq	_ACLLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dprintf
	testq	%r12, %r12
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_22
LBB0_10:
	leaq	-52(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r9
	xorl	%edi, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_LookupAccountSid
	movl	%eax, %ebx
	movq	_ACLLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_GetLastError
	movl	-44(%rbp), %r8d
	movl	-48(%rbp), %r9d
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintf
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_INSUFFICIENT_BUFFER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.13:
	movl	-44(%rbp), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%rax, %r12
	movl	-48(%rbp), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%rax, %rbx
	leaq	-52(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r9
	xorl	%edi, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%rbx, %r8
	callq	_LookupAccountSid
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_free
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.19:
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	movl	-44(%rbp), %eax
	jmp	LBB0_20
LBB0_11:
	movq	_ERROR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_16:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_eprintf
LBB0_17:
	movq	%r12, %rdi
	callq	_free
LBB0_18:
	xorl	%eax, %eax
	callq	_GetLastError
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_INTERNAL_ERROR,4,2       ## @ERROR_INTERNAL_ERROR
	.comm	_ACLLVL,4,2                     ## @ACLLVL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"map_nfs4ace_who: this is owner's sid\n"

	.comm	_ACE4_OWNER,8,3                 ## @ACE4_OWNER
	.comm	_ERROR_SUCCESS,4,2              ## @ERROR_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"map_nfs4ace_who: this is group's sid\n"

	.comm	_ACE4_GROUP,8,3                 ## @ACE4_GROUP
	.comm	_ACE4_NOBODY,8,3                ## @ACE4_NOBODY
L_.str.2:                               ## @.str.2
	.asciz	"map_nfs4ace_who: LookupAccountSid returned %d GetLastError %d name len %d domain len %d\n"

	.comm	_ERROR_INSUFFICIENT_BUFFER,4,2  ## @ERROR_INSUFFICIENT_BUFFER
L_.str.3:                               ## @.str.3
	.asciz	"map_nfs4ace_who: LookupAccountSid failed with %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"@"

L_.str.5:                               ## @.str.5
	.asciz	"map_nfs4ace_who: who=%s\n"

	.no_dead_strip	_map_nfs4ace_who
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_nfs4ace_who
_map_nfs4ace_who:                       ; @map_nfs4ace_who
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x0
	str	xzr, [sp, #40]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_EqualSid
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ACLLVL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACLLVL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dprintf
Lloh5:
	adrp	x8, _ACE4_OWNER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACE4_OWNER@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	cbz	x22, LBB0_10
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	bl	_EqualSid
	cbz	x0, LBB0_10
; %bb.5:
Lloh7:
	adrp	x8, _ACLLVL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ACLLVL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dprintf
Lloh12:
	adrp	x8, _ACE4_GROUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACE4_GROUP@GOTPAGEOFF]
LBB0_6:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_memcpy
LBB0_7:
Lloh14:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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
	add	sp, sp, #112
	ret
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	bl	_is_well_known_sid
	cbz	w0, LBB0_15
; %bb.11:
Lloh16:
	adrp	x22, _ACE4_NOBODY@GOTPAGE
Lloh17:
	ldr	x22, [x22, _ACE4_NOBODY@GOTPAGEOFF]
	ldr	x21, [x22]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_strncmp
	cbnz	w0, LBB0_7
; %bb.12:
	ldr	x0, [x22]
	bl	_strlen
	mov	x22, #0
	str	w0, [sp, #44]
LBB0_13:
	add	x0, x19, w0, sxtw
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #1
	bl	_memcpy
	ldrsw	x8, [sp, #44]
	add	x8, x19, x8
	add	x21, x8, #1
	mov	x0, x20
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x21
	mov	x1, x20
	bl	_memcpy
Lloh20:
	adrp	x8, _ACLLVL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ACLLVL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dprintf
	cbz	x22, LBB0_7
; %bb.14:
	mov	x0, x22
	bl	_free
	b	LBB0_7
LBB0_15:
	add	x3, sp, #44
	add	x5, sp, #40
	add	x6, sp, #36
	mov	x0, #0
	mov	x1, x21
	mov	x2, #0
	mov	x4, #0
	bl	_LookupAccountSid
	mov	x22, x0
Lloh25:
	adrp	x8, _ACLLVL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ACLLVL@GOTPAGEOFF]
Lloh27:
	ldr	w23, [x8]
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	ldp	w9, w8, [sp, #40]
	stp	x8, x9, [sp, #16]
	stp	x22, x0, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_dprintf
	cbnz	w22, LBB0_21
; %bb.16:
	bl	_GetLastError
Lloh30:
	adrp	x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.17:
	ldr	w0, [sp, #44]
	bl	_malloc
	cbz	x0, LBB0_24
; %bb.18:
	mov	x22, x0
	ldr	w0, [sp, #40]
	bl	_malloc
	cbz	x0, LBB0_23
; %bb.19:
	mov	x23, x0
	add	x3, sp, #44
	add	x5, sp, #40
	add	x6, sp, #36
	mov	x0, #0
	mov	x1, x21
	mov	x2, x22
	mov	x4, x23
	bl	_LookupAccountSid
	mov	x21, x0
	mov	x0, x23
	bl	_free
	cbz	w21, LBB0_22
; %bb.20:
	ldr	w2, [sp, #44]
	mov	x0, x19
	mov	x1, x22
	bl	_memcpy
	ldr	w0, [sp, #44]
	b	LBB0_13
LBB0_21:
Lloh33:
	adrp	x8, _ERROR_INTERNAL_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERROR_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_8
LBB0_22:
	bl	_GetLastError
	mov	x1, x0
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintf
LBB0_23:
	mov	x0, x22
	bl	_free
LBB0_24:
	bl	_GetLastError
	b	LBB0_9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_INTERNAL_ERROR,4,2       ; @ERROR_INTERNAL_ERROR
	.comm	_ACLLVL,4,2                     ; @ACLLVL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"map_nfs4ace_who: this is owner's sid\n"

	.comm	_ACE4_OWNER,8,3                 ; @ACE4_OWNER
	.comm	_ERROR_SUCCESS,4,2              ; @ERROR_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"map_nfs4ace_who: this is group's sid\n"

	.comm	_ACE4_GROUP,8,3                 ; @ACE4_GROUP
	.comm	_ACE4_NOBODY,8,3                ; @ACE4_NOBODY
l_.str.2:                               ; @.str.2
	.asciz	"map_nfs4ace_who: LookupAccountSid returned %d GetLastError %d name len %d domain len %d\n"

	.comm	_ERROR_INSUFFICIENT_BUFFER,4,2  ; @ERROR_INSUFFICIENT_BUFFER
l_.str.3:                               ; @.str.3
	.asciz	"map_nfs4ace_who: LookupAccountSid failed with %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"@"

l_.str.5:                               ; @.str.5
	.asciz	"map_nfs4ace_who: who=%s\n"

	.no_dead_strip	_map_nfs4ace_who
.subsections_via_symbols
