	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_host_and_port
_parse_host_and_port:                   ## @parse_host_and_port
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpb	$91, (%rdi)
	jne	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	movl	$93, %esi
	callq	_strchr
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_3:
	movb	$0, (%r12)
	incq	%rbx
	movq	%rbx, (%r15)
	movb	1(%r12), %al
	cmpb	$58, %al
	je	LBB0_6
## %bb.4:
	testb	%al, %al
	jne	LBB0_7
## %bb.5:
	movq	$0, (%r14)
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strrchr
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movb	$0, (%rax)
	incq	(%r14)
	jmp	LBB0_10
LBB0_6:
	addq	$2, %r12
	movq	%r12, (%r14)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_die                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid request ('[' without ']')"

L_.str.1:                               ## @.str.1
	.asciz	"Garbage after end of host part"

	.no_dead_strip	_parse_host_and_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_host_and_port
_parse_host_and_port:                   ; @parse_host_and_port
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldrb	w8, [x0]
	cmp	w8, #91
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x20
	mov	w1, #93
	bl	_strchr
	mov	x22, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_3:
	strb	wzr, [x22]
	add	x8, x20, #1
	str	x8, [x21]
	ldrb	w8, [x22, #1]
	cmp	w8, #58
	b.eq	LBB0_8
; %bb.4:
	cbnz	w8, LBB0_11
; %bb.5:
	str	xzr, [x19]
	b	LBB0_10
LBB0_6:
	str	x20, [x21]
	mov	x0, x20
	mov	w1, #58
	bl	_strrchr
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.7:
	strb	wzr, [x0]
	ldr	x8, [x19]
	add	x8, x8, #1
	b	LBB0_9
LBB0_8:
	add	x8, x22, #2
LBB0_9:
	str	x8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_die
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid request ('[' without ']')"

l_.str.1:                               ; @.str.1
	.asciz	"Garbage after end of host part"

	.no_dead_strip	_parse_host_and_port
.subsections_via_symbols
