	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_name_2_sid
_map_name_2_sid:                        ## @map_name_2_sid
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-44(%rbp), %r9
	xorl	%edi, %edi
	movl	%edx, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_LookupAccountName
	movl	%eax, %ebx
	movq	_ACLLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%eax, %eax
	callq	_GetLastError
	movl	(%r12), %r9d
	movl	-44(%rbp), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dprintf
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movq	_ERROR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	cmpl	$128, %eax
	je	LBB0_10
## %bb.5:
	movl	%eax, %ebx
	cmpl	$129, %eax
	jne	LBB0_3
## %bb.6:
	movl	(%r12), %edi
	callq	_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	-44(%rbp), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	%rax, %rbx
	movq	(%r14), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-44(%rbp), %r9
	xorl	%edi, %edi
	movl	%r15d, %esi
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_LookupAccountName
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_free
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.9:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	_WinNullSid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_create_unknownsid
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_3
LBB0_11:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_12:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_eprintf
LBB0_13:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_free
	jmp	LBB0_3
	.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_name_2_sid: LookupAccountName for %s returned %d GetLastError %d name len %d domain len %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"map_name_2_sid: LookupAccountName for %s failed with %d\n"

	.comm	_ERROR_SUCCESS,4,2              ## @ERROR_SUCCESS
	.comm	_WinNullSid,4,2                 ## @WinNullSid
	.no_dead_strip	_map_name_2_sid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_name_2_sid
_map_name_2_sid:                        ; @map_name_2_sid
	.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, x2
	mov	x19, x1
	mov	x21, x0
	str	wzr, [sp, #40]
	add	x5, sp, #40
	add	x6, sp, #44
	mov	x0, #0
	mov	x1, x2
	mov	x2, #0
	mov	x3, x21
	mov	x4, #0
	bl	_LookupAccountName
	mov	x22, x0
Lloh0:
	adrp	x8, _ACLLVL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACLLVL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x21]
	ldr	w9, [sp, #40]
	stp	x8, x9, [sp, #24]
	stp	x22, x0, [sp, #8]
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dprintf
	cbz	w22, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _ERROR_INTERNAL_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_2:
	ldr	w22, [x8]
LBB0_3:
	mov	x0, x22
	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_4:
	bl	_GetLastError
	cmp	w0, #128
	b.eq	LBB0_10
; %bb.5:
	mov	x22, x0
	cmp	w0, #129
	b.ne	LBB0_3
; %bb.6:
	ldr	w0, [x21]
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.7:
	ldr	w0, [sp, #40]
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.8:
	mov	x22, x0
	ldr	x2, [x19]
	add	x5, sp, #40
	add	x6, sp, #44
	mov	x0, #0
	mov	x1, x20
	mov	x3, x21
	mov	x4, x22
	bl	_LookupAccountName
	mov	x21, x0
	mov	x0, x22
	bl	_free
	cbz	w21, LBB0_13
; %bb.9:
Lloh7:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
Lloh9:
	adrp	x8, _WinNullSid@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WinNullSid@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x21
	bl	_create_unknownsid
	cbnz	w0, LBB0_14
; %bb.11:
	mov	w22, #0
	b	LBB0_3
LBB0_12:
	bl	_GetLastError
	mov	x22, x0
	b	LBB0_3
LBB0_13:
	bl	_GetLastError
	mov	x2, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_eprintf
LBB0_14:
	bl	_GetLastError
	mov	x22, x0
	ldr	x0, [x19]
	bl	_free
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.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_name_2_sid: LookupAccountName for %s returned %d GetLastError %d name len %d domain len %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"map_name_2_sid: LookupAccountName for %s failed with %d\n"

	.comm	_ERROR_SUCCESS,4,2              ; @ERROR_SUCCESS
	.comm	_WinNullSid,4,2                 ; @WinNullSid
	.no_dead_strip	_map_name_2_sid
.subsections_via_symbols
