	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_cache_calchash             ## -- Begin function h2o_cache_calchash
	.p2align	4, 0x90
_h2o_cache_calchash:                    ## @h2o_cache_calchash
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	leaq	-1(%rsi), %rax
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$3, %rax
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	%rsi, %rdx
	andq	$-4, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	movzbl	-1(%rdi,%rsi), %eax
	addl	%ecx, %eax
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	movzbl	-2(%rdi,%rsi), %eax
	addl	%ecx, %eax
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	movzbl	-3(%rdi,%rsi), %eax
	addl	%ecx, %eax
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	movzbl	-4(%rdi,%rsi), %eax
	addq	$-4, %rsi
	addl	%ecx, %eax
	addq	$-4, %rdx
	jne	LBB0_5
LBB0_6:
	testq	%r8, %r8
	je	LBB0_9
## %bb.7:
	leaq	(%rsi,%rdi), %rdx
	decq	%rdx
	negq	%r8
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	movzbl	(%rdx,%rsi), %eax
	addl	%ecx, %eax
	decq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_8
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_cache_calchash             ; -- Begin function h2o_cache_calchash
	.p2align	2
_h2o_cache_calchash:                    ; @h2o_cache_calchash
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_4
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	sub	x8, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w9, w0, #5
	ldrb	w10, [x8, x1]
	sub	w9, w9, w0
	add	w0, w9, w10
	subs	x1, x1, #1
	b.ne	LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
