	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdb_check_aliases
_hdb_check_aliases:                     ## @hdb_check_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	leaq	-72(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_hdb_entry_get_aliases
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	$-1, %r15
	xorl	%r12d, %r12d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r12
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r15
	cmpq	(%rax), %r15
	jae	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %rsi
	addq	%r12, %rsi
	movl	%ebx, %edi
	leaq	-60(%rbp), %r14
	movq	%r14, %rdx
	callq	_hdb_principal2key
	movl	-60(%rbp), %edx
	movl	%ebx, %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	leaq	-56(%rbp), %rcx
	callq	*(%rsi)
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_krb5_data_free
	movq	_HDB_ERR_NOENTRY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	leaq	-56(%rbp), %r13
	movq	%r13, %rsi
	leaq	-48(%rbp), %rdx
	callq	_hdb_value2entry_alias
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_krb5_data_free
	movq	_ASN1_BAD_ID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %esi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_krb5_principal_compare
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_free_hdb_entry_alias
	testl	%ebx, %ebx
	jne	LBB0_12
LBB0_11:
	movq	_HDB_ERR_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r13d, %eax
	jmp	LBB0_14
LBB0_9:
	movl	%ebx, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_HDB_ERR_NOENTRY,4,2            ## @HDB_ERR_NOENTRY
	.comm	_ASN1_BAD_ID,4,2                ## @ASN1_BAD_ID
	.comm	_HDB_ERR_EXISTS,4,2             ## @HDB_ERR_EXISTS
	.no_dead_strip	_hdb_check_aliases
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdb_check_aliases
_hdb_check_aliases:                     ; @hdb_check_aliases
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #24
	mov	x0, x2
	bl	_hdb_entry_get_aliases
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.1:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_11
; %bb.2:
	mov	x23, #0
	mov	x24, #-1
Lloh0:
	adrp	x25, _HDB_ERR_NOENTRY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HDB_ERR_NOENTRY@GOTPAGEOFF]
Lloh2:
	adrp	x27, _ASN1_BAD_ID@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ASN1_BAD_ID@GOTPAGEOFF]
Lloh4:
	adrp	x26, _HDB_ERR_EXISTS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _HDB_ERR_EXISTS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #4
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	add	x24, x24, #1
	cmp	x24, x9
	b.hs	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, #8]
	add	x1, x8, x23
	add	x2, sp, #12
	mov	x0, x21
	bl	_hdb_principal2key
	ldr	x8, [x20]
	ldr	w2, [sp, #12]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	blr	x8
	mov	x22, x0
	add	x0, sp, #12
	bl	_krb5_data_free
	ldr	w8, [x25]
	cmp	w22, w8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w22, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	add	x2, sp, #16
	mov	x0, x21
	bl	_hdb_value2entry_alias
	mov	x22, x0
	add	x0, sp, #8
	bl	_krb5_data_free
	ldr	w8, [x27]
	cmp	w22, w8
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w22, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #16]
	ldr	w2, [x19]
	mov	x0, x21
	bl	_krb5_principal_compare
	mov	x22, x0
	add	x0, sp, #16
	bl	_free_hdb_entry_alias
	cbnz	w22, LBB0_3
LBB0_10:
	ldr	w22, [x26]
	b	LBB0_12
LBB0_11:
	mov	w22, #0
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HDB_ERR_NOENTRY,4,2            ; @HDB_ERR_NOENTRY
	.comm	_ASN1_BAD_ID,4,2                ; @ASN1_BAD_ID
	.comm	_HDB_ERR_EXISTS,4,2             ; @HDB_ERR_EXISTS
	.no_dead_strip	_hdb_check_aliases
.subsections_via_symbols
