	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_client_by_handshake        ## -- Begin function get_client_by_handshake
	.p2align	4, 0x90
_get_client_by_handshake:               ## @get_client_by_handshake
	.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
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_PARTNER_HASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edi, %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	sarl	$31, %eax
	andl	%ecx, %eax
	addl	%edx, %eax
	movq	_ClientHash@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movslq	%eax, %r15
	movq	(%rcx,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.2:
	leaq	(%rcx,%r15,8), %rcx
	testl	%r14d, %r14d
	jns	LBB0_10
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.5:
	addq	$8, %rcx
	testl	%r14d, %r14d
	jns	LBB0_10
LBB0_6:
	movq	8(%rax), %rdx
	movq	%rdx, (%rcx)
	movq	$0, 8(%rax)
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_zfree
	jmp	LBB0_9
LBB0_7:
	movl	%r14d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	movl	$16, %edi
	callq	_zmalloc0
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %rdx
	movq	%rdx, 8(%rax)
	movl	%ebx, (%rax)
	movq	%rax, (%rcx,%r15,8)
	movq	_active_repl_clients@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARTNER_HASH_SIZE,4,2          ## @PARTNER_HASH_SIZE
	.comm	_ClientHash,8,3                 ## @ClientHash
	.comm	_active_repl_clients,4,2        ## @active_repl_clients
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_client_by_handshake        ; -- Begin function get_client_by_handshake
	.p2align	2
_get_client_by_handshake:               ; @get_client_by_handshake
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PARTNER_HASH_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARTNER_HASH_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	msub	w9, w9, w8, w0
	and	w8, w8, w9, asr #31
	add	w22, w8, w9
Lloh3:
	adrp	x21, _ClientHash@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ClientHash@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x8, x8, w22, sxtw #3
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w9, [x0]
	cmp	w9, w19
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x0]
	cmp	w9, w19
	b.ne	LBB0_2
; %bb.4:
	add	x8, x8, #8
LBB0_5:
	tbz	w20, #31, LBB0_10
; %bb.6:
	ldr	x9, [x0, #8]
	str	x9, [x8]
	str	xzr, [x0, #8]
	mov	w1, #16
	bl	_zfree
	b	LBB0_9
LBB0_7:
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_assert
	cbz	w20, LBB0_9
; %bb.8:
	sxtw	x20, w22
	mov	w0, #16
	bl	_zmalloc0
	ldr	x8, [x21]
	lsl	x9, x20, #3
	ldr	x10, [x8, x9]
	str	x10, [x0, #8]
	str	x0, [x8, x9]
	str	w19, [x0]
Lloh5:
	adrp	x8, _active_repl_clients@GOTPAGE
Lloh6:
	ldr	x8, [x8, _active_repl_clients@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_10
LBB0_9:
	mov	x0, #0
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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PARTNER_HASH_SIZE,4,2          ; @PARTNER_HASH_SIZE
	.comm	_ClientHash,8,3                 ; @ClientHash
	.comm	_active_repl_clients,4,2        ; @active_repl_clients
.subsections_via_symbols
