	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SdbpGetPermLayersInternal      ## -- Begin function SdbpGetPermLayersInternal
	.p2align	4, 0x90
_SdbpGetPermLayersInternal:             ## @SdbpGetPermLayersInternal
	.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, %rbx
	movq	%rdx, %r15
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movl	%edi, %r13d
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_LAYER_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	leaq	4(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	$0, -68(%rbp)
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	leaq	-60(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_SdbpOpenKey
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	incq	%r14
	movl	-60(%rbp), %edi
	movq	_KeyValuePartialInformation@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %r14d
	leaq	-68(%rbp), %r9
	movl	%r13d, %esi
	movq	%r12, %rcx
	movl	%r14d, %r8d
	callq	_NtQueryValueKey
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r15), %esi
	movl	(%r12), %ecx
	movl	8(%r12), %edx
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_StringCbCopyNW
	movl	(%r12), %eax
	movl	%eax, (%r15)
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edx
	callq	_SHIM_INFO
LBB0_4:
	movl	-60(%rbp), %edi
	callq	_NtClose
	movl	-56(%rbp), %edi
	callq	_SdbFree
LBB0_5:
	movl	%ebx, %edi
	callq	_NT_SUCCESS
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LAYER_LENGTH,4,2           ## @MAX_LAYER_LENGTH
	.comm	_KEY_QUERY_VALUE,4,2            ## @KEY_QUERY_VALUE
	.comm	_KeyValuePartialInformation,4,2 ## @KeyValuePartialInformation
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read value info from Key \"%wZ\" Status 0x%lx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SdbpGetPermLayersInternal      ; -- Begin function SdbpGetPermLayersInternal
	.p2align	2
_SdbpGetPermLayersInternal:             ; @SdbpGetPermLayersInternal
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x8, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	mov	x24, sp
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-72]
Lloh3:
	adrp	x9, _MAX_LAYER_LENGTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_LAYER_LENGTH@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	add	x25, x9, #1
	lsl	x12, x25, #2
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0xfffffffffffffff0
	sub	x21, x9, x10
	mov	sp, x21
	stur	wzr, [x29, #-84]
Lloh8:
	adrp	x9, _KEY_QUERY_VALUE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _KEY_QUERY_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x9]
	sub	x0, x29, #80
	sub	x3, x29, #88
	mov	x1, x8
	bl	_SdbpOpenKey
	mov	x22, x0
	bl	_NT_SUCCESS
	cbz	x0, LBB0_5
; %bb.1:
	ldur	w0, [x29, #-88]
Lloh11:
	adrp	x8, _KeyValuePartialInformation@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KeyValuePartialInformation@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	lsl	w4, w25, #2
	sub	x5, x29, #84
	mov	x1, x23
	mov	x3, x21
	bl	_NtQueryValueKey
	mov	x22, x0
	bl	_NT_SUCCESS
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x19]
	ldr	w2, [x21, #8]
	ldr	w3, [x21]
	mov	x0, x20
	bl	_StringCbCopyNW
	ldr	w8, [x21]
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	sub	x1, x29, #80
	mov	x2, x22
	bl	_SHIM_INFO
LBB0_4:
	ldur	w0, [x29, #-88]
	bl	_NtClose
	ldur	w0, [x29, #-80]
	bl	_SdbFree
LBB0_5:
	mov	x0, x22
	bl	_NT_SUCCESS
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LAYER_LENGTH,4,2           ; @MAX_LAYER_LENGTH
	.comm	_KEY_QUERY_VALUE,4,2            ; @KEY_QUERY_VALUE
	.comm	_KeyValuePartialInformation,4,2 ; @KeyValuePartialInformation
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read value info from Key \"%wZ\" Status 0x%lx\n"

.subsections_via_symbols
