	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_unknownsid
_create_unknownsid:                     ## @create_unknownsid
	.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
	pushq	%rax
	.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, %r14
	movl	%edi, %r15d
	movq	$0, (%rdx)
	movq	$0, (%rsi)
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_CreateWellKnownSid
	movl	%eax, %ebx
	movq	_ACLLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_GetLastError
	movq	(%r13), %r9
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_dprintf
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_ERROR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %r12d
	movq	_ERROR_INSUFFICIENT_BUFFER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_7
## %bb.3:
	movq	(%r13), %rdi
	callq	_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
	movq	%r13, %rcx
	callq	_CreateWellKnownSid
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_7
LBB0_6:
	movq	(%r14), %rdi
	callq	_free
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_eprintf
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %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	"create_unknownsid: CreateWellKnownSid type %d returned %d GetLastError %d sid len %d needed\n"

	.comm	_ERROR_INTERNAL_ERROR,4,2       ## @ERROR_INTERNAL_ERROR
	.comm	_ERROR_INSUFFICIENT_BUFFER,4,2  ## @ERROR_INSUFFICIENT_BUFFER
	.comm	_ERROR_SUCCESS,4,2              ## @ERROR_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"create_unknownsid: CreateWellKnownSid failed with %d\n"

	.no_dead_strip	_create_unknownsid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_unknownsid
_create_unknownsid:                     ; @create_unknownsid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	xzr, [x2]
	str	xzr, [x1]
	mov	x1, #0
	mov	x2, #0
	mov	x3, x20
	bl	_CreateWellKnownSid
	mov	x22, x0
Lloh0:
	adrp	x8, _ACLLVL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACLLVL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_GetLastError
	mov	x4, x0
	ldr	x5, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	mov	x3, x22
	bl	_dprintf
	cbz	w22, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ERROR_INTERNAL_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	b	LBB0_7
LBB0_2:
	bl	_GetLastError
	mov	x22, x0
Lloh8:
	adrp	x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.3:
	ldr	x0, [x20]
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.4:
	mov	x2, x0
	mov	x0, x21
	mov	x1, #0
	mov	x3, x20
	bl	_CreateWellKnownSid
	cbz	w0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_7
LBB0_6:
	ldr	x0, [x19]
	bl	_free
	bl	_GetLastError
	mov	x22, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_eprintf
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ACLLVL,4,2                     ; @ACLLVL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create_unknownsid: CreateWellKnownSid type %d returned %d GetLastError %d sid len %d needed\n"

	.comm	_ERROR_INTERNAL_ERROR,4,2       ; @ERROR_INTERNAL_ERROR
	.comm	_ERROR_INSUFFICIENT_BUFFER,4,2  ; @ERROR_INSUFFICIENT_BUFFER
	.comm	_ERROR_SUCCESS,4,2              ; @ERROR_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"create_unknownsid: CreateWellKnownSid failed with %d\n"

	.no_dead_strip	_create_unknownsid
.subsections_via_symbols
