	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_refs_via_pack
_fetch_refs_via_pack:                   ## @fetch_refs_via_pack
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	leaq	-160(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$92, %edx
	callq	_memset
	movl	64(%r14), %eax
	movl	%eax, -72(%rbp)
	movl	$1, -160(%rbp)
	movl	(%rbx), %eax
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	setge	%cl
	movl	%ecx, -156(%rbp)
	shrl	$31, %eax
	movl	%eax, -152(%rbp)
	xorl	%eax, %eax
	cmpl	$0, 28(%rbx)
	sete	%al
	movl	%eax, -148(%rbp)
	movups	48(%r14), %xmm0
	movups	%xmm0, -88(%rbp)
	movups	32(%r14), %xmm0
	movups	%xmm0, -104(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -108(%rbp)
	movl	28(%r14), %eax
	movl	%eax, -112(%rbp)
	movl	24(%r14), %eax
	movl	%eax, -116(%rbp)
	movsd	16(%r14), %xmm0                 ## xmm0 = mem[0],zero
	movsd	16(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, -132(%rbp)
	movl	12(%r14), %eax
	movl	%eax, -136(%rbp)
	cmpq	$0, 72(%r14)
	jne	LBB0_8
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.2:
	movl	%r15d, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rcx,8), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.5:
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_6:
	movl	$1, %r13d
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_handshake
	movq	%rax, %r13
LBB0_8:
	leaq	72(%r14), %rdx
	movl	(%r14), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jb	LBB0_15
## %bb.9:
	cmpl	$131, %eax
	je	LBB0_18
## %bb.10:
	cmpl	$128, %eax
	jne	LBB0_19
## %bb.11:
	movq	88(%r14), %rsi
	movq	%r13, %rdx
	testq	%r13, %r13
	jne	LBB0_13
## %bb.12:
	movq	8(%rbx), %rdx
LBB0_13:
	leaq	96(%r14), %r9
	addq	$4, %rbx
	leaq	-160(%rbp), %rdi
	movq	%r12, %rcx
	movl	%r15d, %r8d
	pushq	$128
	jmp	LBB0_14
LBB0_15:
	movq	%rbx, %rdi
	callq	_die_if_server_options
	movq	88(%r14), %rsi
	movq	%r13, %rdx
	testq	%r13, %r13
	jne	LBB0_17
## %bb.16:
	movq	8(%rbx), %rdx
LBB0_17:
	leaq	96(%r14), %r9
	addq	$4, %rbx
	movl	(%r14), %eax
	leaq	-160(%rbp), %rdi
	movq	%r12, %rcx
	movl	%r15d, %r8d
	pushq	%rax
LBB0_14:
	pushq	%rbx
	callq	_fetch_pack
	addq	$16, %rsp
	movq	%rax, %r13
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_19:
	xorl	%r13d, %r13d
LBB0_20:
	movl	%r15d, %r12d
	movq	88(%r14), %rax
	movl	(%rax), %edi
	callq	_close
	movq	88(%r14), %rax
	movl	4(%rax), %edi
	callq	_close
	movq	80(%r14), %rdi
	callq	_finish_connect
	testq	%rax, %rax
	setne	%r15b
	xorps	%xmm0, %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	movl	-140(%rbp), %eax
	movl	%eax, 8(%r14)
	movl	-144(%rbp), %eax
	movl	%eax, 4(%r14)
	testq	%r13, %r13
	sete	%bl
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_report_unmatched_refs
	testq	%rax, %rax
	setne	%al
	orb	%bl, %al
	orb	%r15b, %al
	movzbl	%al, %ebx
	negl	%ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_refs
	movq	%r13, %rdi
	callq	_free_refs
	movl	%ebx, %eax
	addq	$120, %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	"unknown protocol version"

	.no_dead_strip	_fetch_refs_via_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_refs_via_pack
_fetch_refs_via_pack:                   ; @fetch_refs_via_pack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x24, [x0, #32]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #92
	bl	_memset
	ldr	w8, [x24, #64]
	str	w8, [sp, #88]
	mov	w8, #1
	ldr	w9, [x21]
	cmp	w9, #1
	cset	w10, gt
	stp	w8, w10, [sp]
	lsr	w8, w9, #31
	ldp	w10, w9, [x21, #24]
	cmp	w9, #0
	cset	w9, eq
	stp	w8, w9, [sp, #8]
	ldr	q0, [x24, #48]
	stur	q0, [sp, #72]
	ldr	q0, [x24, #32]
	stur	q0, [sp, #56]
	str	w10, [sp, #52]
	ldr	d0, [x24, #24]
	stur	d0, [sp, #44]
	ldr	d0, [x24, #16]
	ldr	d1, [x21, #16]
	mov.d	v1[1], v0[0]
	stur	q1, [sp, #28]
	ldr	w8, [x24, #12]
	str	w8, [sp, #24]
	mov	x25, x24
	ldr	x8, [x25, #72]!
	cbz	x8, LBB0_2
; %bb.1:
	mov	x22, #0
	b	LBB0_9
LBB0_2:
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w8, w19
	mov	x9, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	w10, [x10]
	cbz	w10, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
	mov	w3, #0
	b	LBB0_8
LBB0_7:
	mov	w3, #1
LBB0_8:
	mov	x0, x21
	mov	w1, #0
	mov	x2, #0
	bl	_handshake
	mov	x22, x0
LBB0_9:
	ldr	w8, [x24]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_15
; %bb.10:
	cmp	w8, #131
	b.eq	LBB0_19
; %bb.11:
	cmp	w8, #128
	b.ne	LBB0_20
; %bb.12:
	ldr	x1, [x24, #88]
	mov	x2, x22
	cbnz	x22, LBB0_14
; %bb.13:
	ldr	x2, [x21, #8]
LBB0_14:
	add	x5, x24, #96
	add	x6, x21, #4
	mov	x0, sp
	mov	x3, x20
	mov	x4, x19
	mov	w7, #128
	b	LBB0_18
LBB0_15:
	mov	x0, x21
	bl	_die_if_server_options
	ldr	x1, [x24, #88]
	mov	x2, x22
	cbnz	x22, LBB0_17
; %bb.16:
	ldr	x2, [x21, #8]
LBB0_17:
	add	x6, x21, #4
	mov	x5, x24
	ldr	w7, [x5], #96
	mov	x0, sp
	mov	x3, x20
	mov	x4, x19
LBB0_18:
	bl	_fetch_pack
	mov	x21, x0
	b	LBB0_21
LBB0_19:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_20:
	mov	x21, #0
LBB0_21:
	ldr	x8, [x24, #88]
	ldr	w0, [x8]
	bl	_close
	ldr	x8, [x24, #88]
	ldr	w0, [x8, #4]
	bl	_close
	ldr	x0, [x24, #80]
	bl	_finish_connect
	mov	x23, x0
	stp	xzr, xzr, [x25]
	ldr	d0, [sp, #16]
	stur	d0, [x24, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_report_unmatched_refs
	cmp	x0, #0
	ccmp	x21, #0, #4, eq
	ccmp	x23, #0, #0, ne
	cset	w8, ne
	sbfx	w19, w8, #0, #1
	mov	x0, x22
	bl	_free_refs
	mov	x0, x21
	bl	_free_refs
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown protocol version"

	.no_dead_strip	_fetch_refs_via_pack
.subsections_via_symbols
