	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function import_hostbased_name
_import_hostbased_name:                 ## @import_hostbased_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	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movl	(%rdx), %edi
	incl	%edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rax, %rdi
	callq	_memcpy
	movslq	(%rbx), %rax
	movb	$0, (%r13,%rax)
	movq	%r13, %rdi
	movl	$64, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movb	$0, (%rax)
	incq	%rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	xorl	%edx, %edx
	movq	%r13, %rcx
	movq	%rax, %r8
	xorl	%r9d, %r9d
	callq	_krb5_make_principal
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_free
	movq	%rbx, (%r12)
	movq	_KRB5_PARSE_ILLCHAR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.6:
	movq	_KRB5_PARSE_MALFORMED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.8:
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_9:
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_GSS_S_BAD_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_10:
	movq	-48(%rbp), %rsi
	movq	_MAGIC_HOSTBASED_NAME_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_krb5_principal_set_type
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_KRB5_PARSE_ILLCHAR,8,3         ## @KRB5_PARSE_ILLCHAR
	.comm	_KRB5_PARSE_MALFORMED,8,3       ## @KRB5_PARSE_MALFORMED
	.comm	_GSS_S_BAD_NAME,8,3             ## @GSS_S_BAD_NAME
	.comm	_MAGIC_HOSTBASED_NAME_TYPE,4,2  ## @MAGIC_HOSTBASED_NAME_TYPE
	.no_dead_strip	_import_hostbased_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function import_hostbased_name
_import_hostbased_name:                 ; @import_hostbased_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	ldr	w8, [x2]
	add	w0, w8, #1
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldp	w2, w1, [x23]
	bl	_memcpy
	ldrsw	x8, [x23]
	strb	wzr, [x22, x8]
	mov	x0, x22
	mov	w1, #64
	bl	_strchr
	mov	x4, x0
	cbz	x0, LBB0_3
; %bb.2:
	strb	wzr, [x4], #1
LBB0_3:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, #0
	mov	x3, x22
	mov	x5, #0
	bl	_krb5_make_principal
	mov	x23, x0
	mov	x0, x22
	bl	_free
	str	x23, [x21]
Lloh0:
	adrp	x8, _KRB5_PARSE_ILLCHAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KRB5_PARSE_ILLCHAR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _KRB5_PARSE_MALFORMED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KRB5_PARSE_MALFORMED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x23, x8
	ccmp	x23, x9, #4, ne
	b.ne	LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _GSS_S_BAD_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GSS_S_BAD_NAME@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_7
LBB0_6:
	cbz	x23, LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	x1, [sp, #8]
Lloh13:
	adrp	x8, _MAGIC_HOSTBASED_NAME_TYPE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAGIC_HOSTBASED_NAME_TYPE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_krb5_principal_set_type
	mov	x0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_KRB5_PARSE_ILLCHAR,8,3         ; @KRB5_PARSE_ILLCHAR
	.comm	_KRB5_PARSE_MALFORMED,8,3       ; @KRB5_PARSE_MALFORMED
	.comm	_GSS_S_BAD_NAME,8,3             ; @GSS_S_BAD_NAME
	.comm	_MAGIC_HOSTBASED_NAME_TYPE,4,2  ; @MAGIC_HOSTBASED_NAME_TYPE
	.no_dead_strip	_import_hostbased_name
.subsections_via_symbols
