	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_client_referral
_check_client_referral:                 ## @check_client_referral
	.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, %r15
	movq	%rdx, %r12
	movl	%edi, %r14d
	movl	$0, -64(%rbp)
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r8, %r13
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_KRB5_PADATA_CLIENT_CANONICALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	callq	_krb5_find_padata
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%rax), %esi
	movl	4(%rax), %edi
	leaq	-56(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_decode_PA_ClientCanonicalized
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	(%r12), %ecx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	jmp	LBB0_13
LBB0_4:
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_krb5_principal_compare
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.5:
	movq	_KRB5KRB_AP_ERR_MODIFIED@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	leaq	L_.str.6(%rip), %rdi
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movq	(%r15), %rbx
	jmp	LBB0_13
LBB0_8:
	movq	_PA_ClientCanonicalizedNames@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rcx
	leaq	-72(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_ASN1_MALLOC_ENCODE
	leaq	-60(%rbp), %rcx
	movl	%r14d, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_krb5_crypto_init
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	callq	_free
	jmp	LBB0_12
LBB0_10:
	movl	-60(%rbp), %esi
	movq	_KRB5_KU_CANONICALIZED_NAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r9
	movl	%r14d, %edi
	callq	_krb5_verify_checksum
	movq	%rax, %rbx
	movl	-60(%rbp), %esi
	movl	%r14d, %edi
	callq	_krb5_crypto_destroy
	callq	_free
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	(%r12), %ecx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
LBB0_12:
	leaq	-56(%rbp), %rdi
	callq	_free_PA_ClientCanonicalized
	jmp	LBB0_13
LBB0_14:
	leaq	-52(%rbp), %rdx
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__krb5_principal_compare_PrincipalName
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	leaq	-56(%rbp), %rdx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	__krb5_principal_compare_PrincipalName
	testl	%eax, %eax
	je	LBB0_18
LBB0_16:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	-56(%rbp), %rdi
	callq	_free_PA_ClientCanonicalized
	movq	_KRB5_PRINC_NOMATCH@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_6
LBB0_18:
	leaq	-56(%rbp), %rdi
	callq	_free_PA_ClientCanonicalized
	movq	_KRB5_PRINC_NOMATCH@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_PADATA_CLIENT_CANONICALIZED,4,2 ## @KRB5_PADATA_CLIENT_CANONICALIZED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to decode ClientCanonicalized from realm %s"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_PA_ClientCanonicalizedNames,4,2 ## @PA_ClientCanonicalizedNames
	.comm	_KRB5_KU_CANONICALIZED_NAMES,4,2 ## @KRB5_KU_CANONICALIZED_NAMES
L_.str.3:                               ## @.str.3
	.asciz	"Failed to verify client canonicalized data from realm %s"

	.comm	_KRB5_PRINC_NOMATCH,8,3         ## @KRB5_PRINC_NOMATCH
L_.str.4:                               ## @.str.4
	.asciz	"Requested name doesn't match in client referral"

L_.str.5:                               ## @.str.5
	.asciz	"Mapped name doesn't match in client referral"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_KRB5KRB_AP_ERR_MODIFIED,8,3    ## @KRB5KRB_AP_ERR_MODIFIED
L_.str.6:                               ## @.str.6
	.asciz	"Not same client principal returned as requested"

	.no_dead_strip	_check_client_referral
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_client_referral
_check_client_referral:                 ; @check_client_referral
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x20, x2
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x23, x4
	ldp	w1, w0, [x8]
Lloh0:
	adrp	x8, _KRB5_PADATA_CLIENT_CANONICALIZED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KRB5_PADATA_CLIENT_CANONICALIZED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_krb5_find_padata
	cbz	x0, LBB0_4
; %bb.2:
	ldp	w1, w8, [x0]
	add	x2, sp, #32
	add	x3, sp, #16
	mov	x0, x8
	bl	_decode_PA_ClientCanonicalized
	cbz	x0, LBB0_7
; %bb.3:
	mov	x22, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	ldr	w8, [x20]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_krb5_set_error_message
	b	LBB0_15
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_krb5_principal_compare
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.5:
Lloh10:
	adrp	x21, _KRB5KRB_AP_ERR_MODIFIED@GOTPAGE
Lloh11:
	ldr	x21, [x21, _KRB5KRB_AP_ERR_MODIFIED@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_6:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_set_error_message
	ldr	x22, [x21]
	b	LBB0_15
LBB0_7:
Lloh16:
	adrp	x8, _PA_ClientCanonicalizedNames@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PA_ClientCanonicalizedNames@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x24, sp, #32
	add	x3, sp, #32
	add	x4, sp, #16
	mov	x5, #0
	bl	_ASN1_MALLOC_ENCODE
	add	x3, sp, #28
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_krb5_crypto_init
	cbz	x0, LBB0_9
; %bb.8:
	mov	x22, x0
	bl	_free
	b	LBB0_11
LBB0_9:
	ldr	w1, [sp, #28]
Lloh19:
	adrp	x8, _KRB5_KU_CANONICALIZED_NAMES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KRB5_KU_CANONICALIZED_NAMES@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	add	x5, x24, #8
	mov	x0, x19
	bl	_krb5_verify_checksum
	mov	x22, x0
	ldr	w1, [sp, #28]
	mov	x0, x19
	bl	_krb5_crypto_destroy
	bl	_free
	cbz	x22, LBB0_12
; %bb.10:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	ldr	w8, [x20]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_krb5_set_error_message
LBB0_11:
	add	x0, sp, #32
	bl	_free_PA_ClientCanonicalized
	b	LBB0_15
LBB0_12:
	add	x8, sp, #32
	orr	x2, x8, #0x4
	mov	x0, x19
	mov	x1, x20
	bl	__krb5_principal_compare_PrincipalName
	cbz	w0, LBB0_16
; %bb.13:
	add	x2, sp, #32
	mov	x0, x19
	mov	x1, x21
	bl	__krb5_principal_compare_PrincipalName
	cbz	w0, LBB0_17
LBB0_14:
	mov	x22, #0
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	add	x0, sp, #32
	bl	_free_PA_ClientCanonicalized
Lloh26:
	adrp	x21, _KRB5_PRINC_NOMATCH@GOTPAGE
Lloh27:
	ldr	x21, [x21, _KRB5_PRINC_NOMATCH@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_17:
	add	x0, sp, #32
	bl	_free_PA_ClientCanonicalized
Lloh30:
	adrp	x21, _KRB5_PRINC_NOMATCH@GOTPAGE
Lloh31:
	ldr	x21, [x21, _KRB5_PRINC_NOMATCH@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_PADATA_CLIENT_CANONICALIZED,4,2 ; @KRB5_PADATA_CLIENT_CANONICALIZED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to decode ClientCanonicalized from realm %s"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_PA_ClientCanonicalizedNames,4,2 ; @PA_ClientCanonicalizedNames
	.comm	_KRB5_KU_CANONICALIZED_NAMES,4,2 ; @KRB5_KU_CANONICALIZED_NAMES
l_.str.3:                               ; @.str.3
	.asciz	"Failed to verify client canonicalized data from realm %s"

	.comm	_KRB5_PRINC_NOMATCH,8,3         ; @KRB5_PRINC_NOMATCH
l_.str.4:                               ; @.str.4
	.asciz	"Requested name doesn't match in client referral"

l_.str.5:                               ; @.str.5
	.asciz	"Mapped name doesn't match in client referral"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_KRB5KRB_AP_ERR_MODIFIED,8,3    ; @KRB5KRB_AP_ERR_MODIFIED
l_.str.6:                               ; @.str.6
	.asciz	"Not same client principal returned as requested"

	.no_dead_strip	_check_client_referral
.subsections_via_symbols
