	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdb_remove_aliases
_hdb_remove_aliases:                    ## @hdb_remove_aliases
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movl	(%rdx), %edx
	leaq	-52(%rbp), %rcx
	callq	*(%rsi)
	movq	%rax, %rbx
	movq	_HDB_ERR_NOENTRY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_1
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_1:
	testq	%rbx, %rbx
	jne	LBB0_12
## %bb.2:
	leaq	-52(%rbp), %r12
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_hdb_value2entry
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_krb5_data_free
	testq	%rbx, %rbx
	jne	LBB0_12
## %bb.3:
	leaq	-44(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_hdb_entry_get_aliases
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.6:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rsi
	addq	%r13, %rsi
	movl	%r14d, %edi
	leaq	-48(%rbp), %rdx
	callq	_hdb_principal2key
	movl	-48(%rbp), %edx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	*8(%r15)
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	callq	_krb5_data_free
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movq	-64(%rbp), %rax
	addq	$4, %r13
	cmpq	(%rax), %r12
	jb	LBB0_7
LBB0_10:
	leaq	-44(%rbp), %rdi
	callq	_free_hdb_entry
	jmp	LBB0_11
LBB0_8:
	leaq	-44(%rbp), %rdi
	callq	_free_hdb_entry
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDB_ERR_NOENTRY,8,3            ## @HDB_ERR_NOENTRY
	.no_dead_strip	_hdb_remove_aliases
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdb_remove_aliases
_hdb_remove_aliases:                    ; @hdb_remove_aliases
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	ldr	w2, [x2]
	add	x3, sp, #16
	blr	x8
Lloh0:
	adrp	x8, _HDB_ERR_NOENTRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDB_ERR_NOENTRY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	mov	x21, #0
	b	LBB0_12
LBB0_2:
	mov	x21, x0
	cbnz	x0, LBB0_12
; %bb.3:
	add	x1, sp, #16
	add	x2, sp, #20
	mov	x0, x20
	bl	_hdb_value2entry
	mov	x21, x0
	add	x0, sp, #16
	bl	_krb5_data_free
	cbnz	x21, LBB0_12
; %bb.4:
	add	x0, sp, #20
	add	x1, sp, #24
	bl	_hdb_entry_get_aliases
	mov	x21, x0
	cbnz	x0, LBB0_11
; %bb.5:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_11
; %bb.6:
	ldr	x9, [x8]
	cbz	x9, LBB0_10
; %bb.7:
	mov	x22, #0
	mov	x23, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	add	x1, x8, x22
	add	x2, sp, #12
	mov	x0, x20
	bl	_hdb_principal2key
	ldr	x8, [x19, #8]
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x21, x0
	add	x0, sp, #12
	bl	_krb5_data_free
	cbnz	x21, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldr	x8, [sp, #24]
	ldr	x9, [x8]
	add	x22, x22, #4
	cmp	x23, x9
	b.lo	LBB0_8
LBB0_10:
	add	x0, sp, #20
	bl	_free_hdb_entry
	b	LBB0_1
LBB0_11:
	add	x0, sp, #20
	bl	_free_hdb_entry
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDB_ERR_NOENTRY,8,3            ; @HDB_ERR_NOENTRY
	.no_dead_strip	_hdb_remove_aliases
.subsections_via_symbols
