	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cluster_hash_key               ## -- Begin function cluster_hash_key
	.p2align	4, 0x90
_cluster_hash_key:                      ## @cluster_hash_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_1
## %bb.7:
	movl	%esi, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$123, (%rdi,%rcx)
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_8
	jmp	LBB0_13
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	cmpl	%esi, %ecx
	je	LBB0_13
## %bb.3:
	leal	1(%rcx), %eax
	cmpl	%esi, %eax
	jge	LBB0_13
## %bb.4:
	movl	%eax, %r8d
	leaq	(%rdi,%r8), %r9
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$125, (%r9,%rax)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	leal	(%rax,%r8), %edx
	cmpl	%esi, %edx
	jl	LBB0_5
	jmp	LBB0_13
LBB0_10:
	movl	%ecx, %edx
	notl	%edx
	addl	%esi, %edx
	cmpl	%eax, %edx
	je	LBB0_13
## %bb.11:
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%ecx, %ecx
	addq	%rcx, %rdi
	incq	%rdi
	movl	%eax, %esi
LBB0_13:
	callq	_crc16
	movq	_REDIS_CLUSTER_MOD@GOTPCREL(%rip), %rcx
	andw	(%rcx), %ax
	movzwl	%ax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_CLUSTER_MOD,2,1          ## @REDIS_CLUSTER_MOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cluster_hash_key               ; -- Begin function cluster_hash_key
	.p2align	2
_cluster_hash_key:                      ; @cluster_hash_key
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	mov	w8, w1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x0, x9]
	cmp	w10, #123
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
	b	LBB0_12
LBB0_4:
	mov	w9, #0
LBB0_5:
	cmp	w9, w1
	b.eq	LBB0_12
; %bb.6:
	add	w10, w9, #1
	cmp	w10, w1
	b.ge	LBB0_12
; %bb.7:
	mov	x8, #0
	add	x11, x0, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x11, x8]
	cmp	w12, #125
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	add	w12, w10, w8
	cmp	w12, w1
	b.lt	LBB0_8
	b	LBB0_12
LBB0_10:
	mvn	w10, w9
	add	w10, w10, w1
	cmp	w10, w8
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_12
; %bb.11:
	add	x9, x0, w9, uxtw
	add	x0, x9, #1
	mov	x1, x8
LBB0_12:
	bl	_crc16
Lloh0:
	adrp	x8, _REDIS_CLUSTER_MOD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REDIS_CLUSTER_MOD@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w0, w8, w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_CLUSTER_MOD,2,1          ; @REDIS_CLUSTER_MOD
.subsections_via_symbols
