	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_hostspec
_parse_hostspec:                        ## @parse_hostspec
	.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
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	%rdx, -48(%rbp)
	movq	%rdx, %rdi
	callq	_strlen
	leaq	24(%rax), %rsi
	movl	$1, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_krbhst_get_default_proto
	movq	%rax, 16(%r12)
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r13, %rbx
	cmpb	$91, (%rbx)
	je	LBB0_11
	jmp	LBB0_14
LBB0_6:
	movq	_KRB5_KRBHST_HTTP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	leaq	7(%r13), %rbx
	jmp	LBB0_10
LBB0_7:
	movq	_KRB5_KRBHST_HTTP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	leaq	5(%r13), %rbx
	movq	%rbx, -48(%rbp)
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movl	%r14d, %edi
	movl	$80, %ecx
	callq	_krb5_getportbyname
	movl	%eax, %edi
	callq	_ntohs
	movl	%eax, %r15d
	cmpb	$91, (%rbx)
	je	LBB0_11
	jmp	LBB0_14
LBB0_8:
	movq	_KRB5_KRBHST_TCP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
LBB0_9:
	leaq	4(%r13), %rbx
LBB0_10:
	movq	%rbx, -48(%rbp)
	cmpb	$91, (%rbx)
	jne	LBB0_14
LBB0_11:
	movq	%rbx, %rdi
	movl	$93, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, %r14
	movq	(%r12), %rdi
	leaq	1(%rbx), %rsi
	notq	%rbx
	addq	%rax, %rbx
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r12), %rax
	movb	$0, (%rax,%rbx)
	leaq	1(%r14), %rax
	movq	%rax, -48(%rbp)
	cmpb	$58, 1(%r14)
	jne	LBB0_15
## %bb.13:
	addq	$2, %r14
	movq	%r14, -48(%rbp)
	jmp	LBB0_15
LBB0_14:
	movq	(%r12), %rbx
	movq	%r13, %rdi
	callq	_strlen
	leaq	1(%rax), %rcx
	leaq	L_.str.6(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_strsep_copy
	testq	%rax, %rax
	js	LBB0_20
LBB0_15:
	movq	(%r12), %rbx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcspn
	movb	$0, (%rbx,%rax)
	movq	(%r12), %rdi
	callq	_strlwr
	movl	%r15d, 12(%r12)
	movl	%r15d, 8(%r12)
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.16:
	cmpb	$0, (%rdi)
	je	LBB0_18
## %bb.17:
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, 8(%r12)
	movq	-64(%rbp), %rax
	cmpq	-48(%rbp), %rax
	je	LBB0_20
LBB0_18:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movl	%eax, 8(%r12)
	jmp	LBB0_22
LBB0_20:
	movq	%r12, %rdi
	callq	_free
LBB0_21:
	xorl	%r12d, %r12d
LBB0_22:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http://"

	.comm	_KRB5_KRBHST_HTTP,8,3           ## @KRB5_KRBHST_HTTP
L_.str.1:                               ## @.str.1
	.asciz	"http/"

L_.str.2:                               ## @.str.2
	.asciz	"http"

L_.str.3:                               ## @.str.3
	.asciz	"tcp"

L_.str.4:                               ## @.str.4
	.asciz	"tcp/"

	.comm	_KRB5_KRBHST_TCP,8,3            ## @KRB5_KRBHST_TCP
L_.str.5:                               ## @.str.5
	.asciz	"udp/"

L_.str.6:                               ## @.str.6
	.asciz	":"

L_.str.7:                               ## @.str.7
	.asciz	"/"

	.no_dead_strip	_parse_hostspec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_hostspec
_parse_hostspec:                        ; @parse_hostspec
	.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, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	str	x2, [sp, #8]
	mov	x0, x2
	bl	_strlen
	add	x1, x0, #24
	mov	w0, #1
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_22
; %bb.1:
	mov	x0, x23
	bl	_krbhst_get_default_proto
	str	x0, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_7
; %bb.3:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_8
; %bb.4:
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_9
; %bb.5:
	mov	x23, x22
	b	LBB0_11
LBB0_6:
Lloh8:
	adrp	x8, _KRB5_KRBHST_HTTP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KRB5_KRBHST_HTTP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	add	x23, x22, #7
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _KRB5_KRBHST_HTTP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KRB5_KRBHST_HTTP@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	add	x23, x22, #5
	str	x23, [sp, #8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x24
	mov	w3, #80
	bl	_krb5_getportbyname
	bl	_ntohs
	mov	x21, x0
	b	LBB0_11
LBB0_8:
Lloh18:
	adrp	x8, _KRB5_KRBHST_TCP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KRB5_KRBHST_TCP@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x20, #16]
LBB0_9:
	add	x23, x22, #4
LBB0_10:
	str	x23, [sp, #8]
LBB0_11:
	ldrb	w8, [x23]
	cmp	w8, #91
	b.ne	LBB0_15
; %bb.12:
	mov	x0, x23
	mov	w1, #93
	bl	_strchr
	cbz	x0, LBB0_15
; %bb.13:
	mov	x24, x0
	ldr	x0, [x20]
	add	x1, x23, #1
	mvn	x8, x23
	add	x22, x24, x8
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x20]
	strb	wzr, [x8, x22]
	add	x8, x24, #1
	str	x8, [sp, #8]
	ldrb	w8, [x24, #1]
	cmp	w8, #58
	b.ne	LBB0_16
; %bb.14:
	add	x8, x24, #2
	str	x8, [sp, #8]
	b	LBB0_16
LBB0_15:
	ldr	x23, [x20]
	mov	x0, x22
	bl	_strlen
	add	x3, x0, #1
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #8
	mov	x2, x23
	bl	_strsep_copy
	tbnz	x0, #63, LBB0_21
LBB0_16:
	ldr	x22, [x20]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_strcspn
	strb	wzr, [x22, x0]
	ldr	x0, [x20]
	bl	_strlwr
	stp	w21, w21, [x20, #8]
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_19
; %bb.17:
	ldrb	w8, [x0]
	cbz	w8, LBB0_19
; %bb.18:
	mov	x1, sp
	mov	w2, #0
	bl	_strtol
	str	w0, [x20, #8]
	ldp	x8, x9, [sp]
	cmp	x8, x9
	b.eq	LBB0_21
LBB0_19:
	cbz	w19, LBB0_22
; %bb.20:
	str	w19, [x20, #8]
	b	LBB0_22
LBB0_21:
	mov	x0, x20
	bl	_free
	mov	x20, #0
LBB0_22:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http://"

	.comm	_KRB5_KRBHST_HTTP,8,3           ; @KRB5_KRBHST_HTTP
l_.str.1:                               ; @.str.1
	.asciz	"http/"

l_.str.2:                               ; @.str.2
	.asciz	"http"

l_.str.3:                               ; @.str.3
	.asciz	"tcp"

l_.str.4:                               ; @.str.4
	.asciz	"tcp/"

	.comm	_KRB5_KRBHST_TCP,8,3            ; @KRB5_KRBHST_TCP
l_.str.5:                               ; @.str.5
	.asciz	"udp/"

l_.str.6:                               ; @.str.6
	.asciz	":"

l_.str.7:                               ; @.str.7
	.asciz	"/"

	.no_dead_strip	_parse_hostspec
.subsections_via_symbols
