	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_s_delete_principal       ## -- Begin function kadm5_s_delete_principal
	.p2align	4, 0x90
_kadm5_s_delete_principal:              ## @kadm5_s_delete_principal
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rsi
	movl	8(%r12), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	*(%rsi)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rsi
	callq	_krb5_warn
	jmp	LBB0_10
LBB0_2:
	movq	(%r12), %rsi
	movq	_HDB_F_DECRYPT@GOTPCREL(%rip), %rax
	movq	_HDB_F_GET_ANY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	8(%r12), %edi
	movq	_HDB_F_ADMIN_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	-40(%rbp), %r9
	movl	%r14d, %edx
	xorl	%r8d, %r8d
	callq	*8(%rsi)
	movq	%rax, %r15
	movq	_HDB_ERR_NOENTRY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_9
## %bb.3:
	cmpq	$0, -40(%rbp)
	je	LBB0_5
## %bb.4:
	movq	_KADM5_PROTECT_PRINCIPAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_8
LBB0_5:
	movl	8(%r12), %edi
	movq	(%r12), %rsi
	leaq	-40(%rbp), %rdx
	callq	_hdb_seal_keys
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	(%r12), %rsi
	movl	8(%r12), %edi
	movl	%r14d, %edx
	callq	*16(%rsi)
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_kadm5_log_delete
	xorl	%r15d, %r15d
LBB0_8:
	movl	8(%r12), %edi
	leaq	-40(%rbp), %rsi
	callq	_hdb_free_entry
LBB0_9:
	movq	(%r12), %rsi
	movl	8(%r12), %edi
	callq	*24(%rsi)
	movq	%r15, %rdi
	callq	__kadm5_error_code
	movq	%rax, %rbx
LBB0_10:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opening database"

	.comm	_HDB_F_DECRYPT,4,2              ## @HDB_F_DECRYPT
	.comm	_HDB_F_GET_ANY,4,2              ## @HDB_F_GET_ANY
	.comm	_HDB_F_ADMIN_DATA,4,2           ## @HDB_F_ADMIN_DATA
	.comm	_HDB_ERR_NOENTRY,8,3            ## @HDB_ERR_NOENTRY
	.comm	_KADM5_PROTECT_PRINCIPAL,8,3    ## @KADM5_PROTECT_PRINCIPAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_s_delete_principal       ; -- Begin function kadm5_s_delete_principal
	.p2align	2
_kadm5_s_delete_principal:              ; @kadm5_s_delete_principal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x1, [x19]
	ldr	x8, [x1]
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	w3, #0
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	bl	_krb5_warn
	b	LBB0_10
LBB0_2:
	ldr	x1, [x19]
	ldr	x8, [x1, #8]
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x9, _HDB_F_DECRYPT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDB_F_DECRYPT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _HDB_F_GET_ANY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _HDB_F_GET_ANY@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh11:
	adrp	x10, _HDB_F_ADMIN_DATA@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HDB_F_ADMIN_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w3, w9, w10
	add	x5, sp, #8
	mov	x2, x20
	mov	w4, #0
	blr	x8
	mov	x21, x0
Lloh14:
	adrp	x8, _HDB_ERR_NOENTRY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDB_ERR_NOENTRY@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.3:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh17:
	adrp	x8, _KADM5_PROTECT_PRINCIPAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KADM5_PROTECT_PRINCIPAL@GOTPAGEOFF]
Lloh19:
	ldr	x21, [x8]
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19, #8]
	ldr	x1, [x19]
	add	x2, sp, #8
	bl	_hdb_seal_keys
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.6:
	ldr	x1, [x19]
	ldr	x8, [x1, #16]
	ldr	w0, [x19, #8]
	mov	x2, x20
	blr	x8
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_kadm5_log_delete
LBB0_8:
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	bl	_hdb_free_entry
LBB0_9:
	ldr	x1, [x19]
	ldr	x8, [x1, #24]
	ldr	w0, [x19, #8]
	blr	x8
	mov	x0, x21
	bl	__kadm5_error_code
	mov	x21, x0
LBB0_10:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opening database"

	.comm	_HDB_F_DECRYPT,4,2              ; @HDB_F_DECRYPT
	.comm	_HDB_F_GET_ANY,4,2              ; @HDB_F_GET_ANY
	.comm	_HDB_F_ADMIN_DATA,4,2           ; @HDB_F_ADMIN_DATA
	.comm	_HDB_ERR_NOENTRY,8,3            ; @HDB_ERR_NOENTRY
	.comm	_KADM5_PROTECT_PRINCIPAL,8,3    ; @KADM5_PROTECT_PRINCIPAL
.subsections_via_symbols
