	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_determine_protocol_version_client ## -- Begin function determine_protocol_version_client
	.p2align	4, 0x90
_determine_protocol_version_client:     ## @determine_protocol_version_client
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, -24(%rbp)
	movq	_protocol_v0@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	-24(%rbp), %rdi
	callq	_parse_protocol_version
	movl	%eax, %ebx
	movq	_protocol_unknown_version@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_die
LBB0_3:
	cmpl	(%r14), %ebx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_die
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_protocol_v0,4,2                ## @protocol_v0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version "

	.comm	_protocol_unknown_version,4,2   ## @protocol_unknown_version
L_.str.1:                               ## @.str.1
	.asciz	"server is speaking an unknown protocol"

L_.str.2:                               ## @.str.2
	.asciz	"protocol error: server explicitly said version 0"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_determine_protocol_version_client ; -- Begin function determine_protocol_version_client
	.p2align	2
_determine_protocol_version_client:     ; @determine_protocol_version_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	x0, [sp, #8]
Lloh0:
	adrp	x20, _protocol_v0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _protocol_v0@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_parse_protocol_version
	mov	x19, x0
Lloh4:
	adrp	x8, _protocol_unknown_version@GOTPAGE
Lloh5:
	ldr	x8, [x8, _protocol_unknown_version@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_3:
	ldr	w8, [x20]
	cmp	w19, w8
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_protocol_v0,4,2                ; @protocol_v0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version "

	.comm	_protocol_unknown_version,4,2   ; @protocol_unknown_version
l_.str.1:                               ; @.str.1
	.asciz	"server is speaking an unknown protocol"

l_.str.2:                               ; @.str.2
	.asciz	"protocol error: server explicitly said version 0"

.subsections_via_symbols
