	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spanhash_rehash
_spanhash_rehash:                       ## @spanhash_rehash
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %r13d
	movl	$1, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	leal	(%r12,%r12), %ebx
	movl	$16, %edi
	movl	%ebx, %esi
	callq	_st_mult
	movl	$16, %edi
	movl	%eax, %esi
	callq	_st_add
	movl	%eax, %edi
	callq	_xmalloc
	movq	%rax, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	incl	%edi
	movl	%edi, (%rax)
	callq	_INITIAL_FREE
	movl	%eax, 4(%r15)
	movq	8(%r15), %rdi
	movl	%r12d, %edx
	shll	$5, %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	cmpl	$31, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_1
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r9
	leal	-1(%rbx), %r8d
	cmpl	$2, %r12d
	cmovgel	%r12d, %r13d
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rcx,%rsi), %rdi
	addq	$8, %rdi
	shlq	$4, %rax
	movl	%r10d, (%rcx,%rax)
	movq	%r11, (%rdi)
	decl	4(%r15)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%r13, %rdx
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rdx, %rax
	shlq	$4, %rax
	movq	8(%r9,%rax), %r11
	testq	%r11, %r11
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r9,%rax), %r10d
	movl	%r10d, %edi
	andl	%r8d, %edi
	movq	8(%r15), %rcx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%edi, %rax
	movq	%rax, %rsi
	shlq	$4, %rsi
	cmpq	$0, 8(%rcx,%rsi)
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	incl	%edi
	cmpl	%edi, %ebx
	cmovlel	%r14d, %edi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_spanhash_rehash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spanhash_rehash
_spanhash_rehash:                       ; @spanhash_rehash
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w23, [x0]
	mov	w8, #1
	lsl	w22, w8, w23
	lsl	w20, w22, #1
	mov	w0, #16
	mov	x1, x20
	bl	_st_mult
	mov	x1, x0
	mov	w0, #16
	bl	_st_add
	bl	_xmalloc
	mov	x21, x0
	ldr	w8, [x19]
	add	w0, w8, #1
	str	w0, [x21]
	bl	_INITIAL_FREE
	str	w0, [x21, #4]
	ldr	x0, [x21, #8]
	lsl	w2, w22, #5
	mov	w1, #0
	bl	_memset
	cmp	w23, #31
	b.ne	LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_free
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x8, #0
	ldr	x9, [x19, #8]
	sxtw	x10, w20
	sub	x10, x10, #1
	cmp	w22, #1
	csinc	w11, w22, wzr, gt
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	x15, x15, #4
	str	w13, [x14, x15]
	str	x12, [x16]
	ldr	w12, [x21, #4]
	sub	w12, w12, #1
	str	w12, [x21, #4]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	cmp	x8, x11
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x12, x9, x8, lsl #4
	ldr	x12, [x12, #8]
	cbz	x12, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	x13, x8, #4
	ldrsw	x13, [x9, x13]
	and	x15, x13, x10
	ldr	x14, [x21, #8]
	add	x16, x14, x15, lsl #4
	ldr	x17, [x16, #8]!
	cbz	x17, LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w16, w15, #1
	cmp	w20, w16
	csinc	w15, wzr, w15, le
	add	x16, x14, w15, sxtw #4
	ldr	x17, [x16, #8]!
	cbnz	x17, LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
                                        ; kill: def $w15 killed $w15 killed $x15 def $x15
	sxtw	x15, w15
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_spanhash_rehash
.subsections_via_symbols
