	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hash_function
_hash_function:                         ## @hash_function
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rdi), %cl
	testb	%cl, %cl
	je	LBB0_3
## %bb.1:
	incq	%rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%cl, %edx
	movsbl	(%rdi), %ecx
	movl	%ecx, %esi
	shll	$8, %esi
	addl	%edx, %esi
	movslq	%esi, %rdx
	addq	%rdx, %rax
	incq	%rdi
	testl	%ecx, %ecx
	jne	LBB0_2
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	movq	_HASHTABSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.5:
	cqto
	idivq	%rcx
	movq	%rdx, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASHTABSIZE,8,3                ## @HASHTABSIZE
	.no_dead_strip	_hash_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hash_function
_hash_function:                         ; @hash_function
	.cfi_startproc
; %bb.0:
	ldrb	w10, [x0]
	cbz	w10, LBB0_3
; %bb.1:
	mov	x8, #0
	add	x9, x0, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w11, [x9], #1
	lsl	w12, w11, #8
	add	w10, w12, w10, sxtb
	and	w12, w11, #0xff
	add	x8, x8, w10, sxtw
	mov	x10, x12
	cbnz	w11, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x8, #0
LBB0_4:
Lloh0:
	adrp	x9, _HASHTABSIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HASHTABSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sdiv	x10, x8, x9
	msub	w0, w10, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HASHTABSIZE,8,3                ; @HASHTABSIZE
	.no_dead_strip	_hash_function
.subsections_via_symbols
