	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SdbDeletePermLayerKeys         ## -- Begin function SdbDeletePermLayerKeys
	.p2align	4, 0x90
_SdbDeletePermLayerKeys:                ## @SdbDeletePermLayerKeys
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	%edi, %esi
	leaq	-16(%rbp), %rdi
	callq	_SdbpResolvePath
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_KEY_SET_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_SdbpOpenKey
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	-28(%rbp), %edi
	leaq	-16(%rbp), %rsi
	callq	_NtDeleteValueKey
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	leaq	-24(%rbp), %rsi
	movl	%ebx, %edx
	callq	_SHIM_INFO
	movq	_STATUS_OBJECT_NAME_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.5:
	movq	_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	-28(%rbp), %edi
	callq	_NtClose
	movl	-24(%rbp), %edi
	callq	_SdbFree
LBB0_7:
	leaq	-16(%rbp), %rdi
	callq	_SdbpFreeTempStr
	movl	%ebx, %edi
	callq	_NT_SUCCESS
	jmp	LBB0_8
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_KEY_SET_VALUE,4,2              ## @KEY_SET_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to delete value from Key \"%wZ\" Status 0x%lx\n"

	.comm	_STATUS_OBJECT_NAME_NOT_FOUND,4,2 ## @STATUS_OBJECT_NAME_NOT_FOUND
	.comm	_STATUS_SUCCESS,4,2             ## @STATUS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SdbDeletePermLayerKeys         ; -- Begin function SdbDeletePermLayerKeys
	.p2align	2
_SdbDeletePermLayerKeys:                ; @SdbDeletePermLayerKeys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x1, x0
	add	x0, sp, #16
	bl	_SdbpResolvePath
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _KEY_SET_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_SET_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #24
	add	x3, sp, #12
	mov	x1, x19
	bl	_SdbpOpenKey
	mov	x19, x0
	bl	_NT_SUCCESS
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [sp, #12]
	add	x1, sp, #16
	bl	_NtDeleteValueKey
	mov	x19, x0
	bl	_NT_SUCCESS
	cbnz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #24
	mov	x2, x19
	bl	_SHIM_INFO
Lloh5:
	adrp	x8, _STATUS_OBJECT_NAME_NOT_FOUND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATUS_OBJECT_NAME_NOT_FOUND@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _STATUS_SUCCESS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _STATUS_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w19, w8
	csel	w19, w9, w19, eq
LBB0_4:
	ldr	w0, [sp, #12]
	bl	_NtClose
	ldr	w0, [sp, #24]
	bl	_SdbFree
LBB0_5:
	add	x0, sp, #16
	bl	_SdbpFreeTempStr
	mov	x0, x19
	bl	_NT_SUCCESS
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_KEY_SET_VALUE,4,2              ; @KEY_SET_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to delete value from Key \"%wZ\" Status 0x%lx\n"

	.comm	_STATUS_OBJECT_NAME_NOT_FOUND,4,2 ; @STATUS_OBJECT_NAME_NOT_FOUND
	.comm	_STATUS_SUCCESS,4,2             ; @STATUS_SUCCESS
.subsections_via_symbols
