	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ParseStringAclToAcl
_ParseStringAclToAcl:                   ## @ParseStringAclToAcl
	.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	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)
	movq	_ERROR_INVALID_ACL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_FALSE@GOTPCREL(%rip), %r14
	testq	%rbx, %rbx
	je	LBB0_36
## %bb.1:
	leaq	-48(%rbp), %rdi
	callq	_ParseAclStringFlags
	movl	%eax, (%r12)
	movq	-48(%rbp), %rcx
	cmpb	$40, (%rcx)
	jne	LBB0_30
## %bb.2:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	leaq	32(%r13), %r15
	testq	%r13, %r13
	cmoveq	%r13, %r15
	movl	$4, %edx
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %rdi
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	incq	%rcx
	movq	%rcx, -48(%rbp)
	movq	%rdi, %rbx
	callq	_ParseAceStringType
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cltq
	movq	%rax, 24(%r15)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	cmpb	$59, (%rax)
	jne	LBB0_37
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	movq	%rax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_ParseAceStringFlags
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cltq
	movq	%rax, 16(%r15)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	cmpb	$59, (%rax)
	jne	LBB0_34
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	movq	%rax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_ParseAceStringRights
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, (%r15)
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx
	cmpb	$59, (%rcx)
	jne	LBB0_34
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rcx), %rax
	addq	$2, %rcx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rdi
	movq	%rax, -48(%rbp)
	movzbl	(%rax), %edx
	incq	%rax
	incq	%rcx
	cmpb	$32, %dl
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$59, %dl
	jne	LBB0_33
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rdi, -48(%rbp)
	movzbl	(%rdi), %eax
	incq	%rdi
	cmpb	$32, %al
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$59, %al
	jne	LBB0_33
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	32(%r15), %rsi
	testq	%r15, %r15
	movq	%rdi, -48(%rbp)
	cmoveq	%r15, %rsi
	leaq	-60(%rbp), %rdx
	callq	_ParseStringSidToSid
	movq	-48(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rcx), %eax
	testb	%al, %al
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	cmpb	$41, %al
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	incq	%rcx
	movq	%rcx, -48(%rbp)
	jmp	LBB0_19
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	(%rcx), %al
	movl	-56(%rbp), %edx                 ## 4-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$41, %al
	jne	LBB0_34
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	movl	-60(%rbp), %eax
	movq	%rcx, -48(%rbp)
	testq	%r15, %r15
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, 8(%r15)
	addl	%eax, %r15d
	movslq	%r15d, %r15
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %edx
	incl	%r12d
	cmpb	$40, (%rcx)
	movq	%rbx, %rdi
	je	LBB0_3
## %bb.28:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	cmpl	$65536, %edx                    ## imm = 0x10000
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jl	LBB0_31
## %bb.29:
	leaq	L_.str.2(%rip), %rdi
	callq	_ERR
	jmp	LBB0_35
LBB0_30:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$4, (%rax)
	movl	$4, %edx
	xorl	%r12d, %r12d
LBB0_31:
	movq	_TRUE@GOTPCREL(%rip), %r14
	testq	%r13, %r13
	je	LBB0_36
## %bb.32:
	movq	_ACL_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movl	%edx, (%r13)
	movl	%r12d, 4(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	jmp	LBB0_36
LBB0_33:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
LBB0_34:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_35:
	movl	%ebx, %edi
	callq	_SetLastError
	leaq	L_.str.3(%rip), %rdi
	callq	_WARN
LBB0_36:
	movl	(%r14), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	movq	_RPC_S_INVALID_STRING_UUID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_INVALID_ACL,4,2          ## @ERROR_INVALID_ACL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_RPC_S_INVALID_STRING_UUID,4,2  ## @RPC_S_INVALID_STRING_UUID
L_.str.1:                               ## @.str.1
	.asciz	"Support for *_OBJECT_ACE_TYPE not implemented\n"

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

	.comm	_ACL_REVISION,4,2               ## @ACL_REVISION
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.3:                               ## @.str.3
	.asciz	"Invalid ACE string format\n"

	.no_dead_strip	_ParseStringAclToAcl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ParseStringAclToAcl
_ParseStringAclToAcl:                   ; @ParseStringAclToAcl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _ERROR_INVALID_ACL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR_INVALID_ACL@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_debugstr_w
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x23, LBB0_34
; %bb.1:
	add	x0, sp, #8
	bl	_ParseAclStringFlags
	str	w0, [x22]
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	cmp	w9, #40
	b.ne	LBB0_28
; %bb.2:
	mov	w22, #0
	add	x9, x20, #32
	cmp	x20, #0
	csel	x24, xzr, x9, eq
	mov	w23, #4
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	add	x8, x8, #1
	str	x8, [sp, #8]
	add	x0, sp, #8
	bl	_ParseAceStringType
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	x24, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w0
	str	x8, [x24, #24]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	cmp	w9, #59
	b.ne	LBB0_36
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	str	x8, [sp, #8]
	add	x0, sp, #8
	bl	_ParseAceStringFlags
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	x24, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w0
	str	x8, [x24, #16]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	cmp	w9, #59
	b.ne	LBB0_33
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	str	x8, [sp, #8]
	add	x0, sp, #8
	bl	_ParseAceStringRights
	cbz	x24, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w0, [x24]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #8]
	ldrb	w8, [x9]
	cmp	w8, #59
	b.ne	LBB0_33
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, #1
	add	x9, x9, #2
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x9
	str	x8, [sp, #8]
	ldrb	w10, [x8], #1
	add	x9, x9, #1
	cmp	w10, #32
	b.eq	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w10, #59
	b.ne	LBB0_32
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x0, [sp, #8]
	ldrb	w8, [x0], #1
	cmp	w8, #32
	b.eq	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #59
	b.ne	LBB0_32
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [sp, #8]
	add	x8, x24, #32
	cmp	x24, #0
	csel	x1, xzr, x8, eq
	add	x2, sp, #4
	bl	_ParseStringSidToSid
	ldr	x8, [sp, #8]
	cbz	x0, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w9, [x8]
	cbz	w9, LBB0_22
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w9, #41
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x8, x8, #1
	str	x8, [sp, #8]
	ldrb	w9, [x8]
	cbnz	w9, LBB0_19
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w9, [x8]
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #41
	b.ne	LBB0_33
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	str	x8, [sp, #8]
	ldr	w9, [sp, #4]
	cbz	x24, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w9, [x24, #8]
	add	w10, w9, w24
	sxtw	x24, w10
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w9, w23
	add	w22, w22, #1
	ldrb	w9, [x8]
	cmp	w9, #40
	b.eq	LBB0_3
; %bb.26:
	str	w23, [x21]
	cmp	w23, #16, lsl #12               ; =65536
	b.lt	LBB0_29
; %bb.27:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
	b	LBB0_33
LBB0_28:
	mov	w22, #0
	mov	w23, #4
	str	w23, [x21]
LBB0_29:
	cbz	x20, LBB0_31
; %bb.30:
Lloh7:
	adrp	x8, _ACL_REVISION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ACL_REVISION@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	stp	w23, w22, [x20]
	stp	xzr, xzr, [x20, #8]
LBB0_31:
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_35
LBB0_32:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_33:
	mov	x0, x19
	bl	_SetLastError
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_WARN
LBB0_34:
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_35:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_36:
Lloh18:
	adrp	x8, _RPC_S_INVALID_STRING_UUID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RPC_S_INVALID_STRING_UUID@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
	b	LBB0_33
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_INVALID_ACL,4,2          ; @ERROR_INVALID_ACL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_RPC_S_INVALID_STRING_UUID,4,2  ; @RPC_S_INVALID_STRING_UUID
l_.str.1:                               ; @.str.1
	.asciz	"Support for *_OBJECT_ACE_TYPE not implemented\n"

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

	.comm	_ACL_REVISION,4,2               ; @ACL_REVISION
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.3:                               ; @.str.3
	.asciz	"Invalid ACE string format\n"

	.no_dead_strip	_ParseStringAclToAcl
.subsections_via_symbols
