	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gsskrb5_canon_name            ## -- Begin function _gsskrb5_canon_name
	.p2align	4, 0x90
__gsskrb5_canon_name:                   ## @_gsskrb5_canon_name
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r13d
	movslq	%r8d, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdi)
	movl	%esi, %edi
	movq	%rbx, %rsi
	callq	_krb5_principal_get_type
	movq	_MAGIC_HOSTBASED_NAME_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.2:
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.3:
	movq	8(%rbx), %rax
	cmpl	$2, %ecx
	jl	LBB0_10
## %bb.4:
	movq	8(%rax), %rsi
	jmp	LBB0_11
LBB0_5:
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_krb5_copy_principal
	jmp	LBB0_12
LBB0_6:
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_krb5_copy_principal
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:
	movq	(%r15), %rsi
	movq	_KRB5_NT_SRV_HST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	callq	_krb5_principal_set_type
	testq	%r14, %r14
	je	LBB0_15
## %bb.8:
	movq	(%r15), %rsi
	movl	(%r14), %edx
	movl	%r13d, %edi
	callq	_krb5_principal_set_realm
	jmp	LBB0_12
LBB0_9:
	movq	_GSS_S_BAD_NAME@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	xorl	%esi, %esi
LBB0_11:
	movq	%r15, %r8
	movq	(%rax), %rdx
	movq	_KRB5_NT_SRV_HST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	callq	_krb5_sname_to_principal
LBB0_12:
	testq	%rax, %rax
	je	LBB0_15
LBB0_13:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rax
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAGIC_HOSTBASED_NAME_TYPE,8,3  ## @MAGIC_HOSTBASED_NAME_TYPE
	.comm	_KRB5_NT_SRV_HST,4,2            ## @KRB5_NT_SRV_HST
	.comm	_GSS_S_BAD_NAME,8,3             ## @GSS_S_BAD_NAME
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gsskrb5_canon_name            ; -- Begin function _gsskrb5_canon_name
	.p2align	2
__gsskrb5_canon_name:                   ; @_gsskrb5_canon_name
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x5
                                        ; kill: def $w4 killed $w4 def $x4
	mov	x22, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	sxtw	x23, w4
	str	xzr, [x0]
	mov	x0, x1
	mov	x1, x23
	bl	_krb5_principal_get_type
Lloh0:
	adrp	x8, _MAGIC_HOSTBASED_NAME_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAGIC_HOSTBASED_NAME_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	cbz	w24, LBB0_6
; %bb.2:
	ldr	w9, [x23]
	cbz	w9, LBB0_9
; %bb.3:
	ldr	x8, [x23, #8]
	cmp	w9, #2
	b.lt	LBB0_10
; %bb.4:
	ldr	x1, [x8, #8]
	b	LBB0_11
LBB0_5:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_krb5_copy_principal
	b	LBB0_12
LBB0_6:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_krb5_copy_principal
	cbnz	x0, LBB0_13
; %bb.7:
	ldr	x1, [x20]
Lloh3:
	adrp	x8, _KRB5_NT_SRV_HST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KRB5_NT_SRV_HST@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_krb5_principal_set_type
	cbz	x22, LBB0_16
; %bb.8:
	ldr	x1, [x20]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_krb5_principal_set_realm
	b	LBB0_12
LBB0_9:
Lloh6:
	adrp	x8, _GSS_S_BAD_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GSS_S_BAD_NAME@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	mov	x1, #0
LBB0_11:
	ldr	x2, [x8]
Lloh8:
	adrp	x8, _KRB5_NT_SRV_HST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KRB5_NT_SRV_HST@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x4, x20
	bl	_krb5_sname_to_principal
LBB0_12:
	cbz	x0, LBB0_15
LBB0_13:
	str	x0, [x19]
Lloh11:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_14:
	ldr	x0, [x8]
LBB0_15:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAGIC_HOSTBASED_NAME_TYPE,8,3  ; @MAGIC_HOSTBASED_NAME_TYPE
	.comm	_KRB5_NT_SRV_HST,4,2            ; @KRB5_NT_SRV_HST
	.comm	_GSS_S_BAD_NAME,8,3             ; @GSS_S_BAD_NAME
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
.subsections_via_symbols
