	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_hash
_add_hash:                              ## @add_hash
	.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
	movq	%rdi, %rbx
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_hashstr
	movq	_HASH_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	cltd
	idivl	%esi
	movq	_hash_tab@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%edx, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.1:
	movl	%edx, %r14d
	movq	_collisions@GOTPCREL(%rip), %rax
	incl	(%rax)
	leal	1(%r14), %eax
	cltd
	idivl	%esi
	movl	%edx, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %edx
	setne	%dil
	callq	_gcc_assert
	movq	(%r12), %rax
	movslq	%ebx, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	(%r15)
	xorl	%edi, %edi
	movl	%edx, %ebx
	jmp	LBB0_3
LBB0_4:
	movq	_next_index@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rsi, (%rax,%rcx,8)
	incq	(%rdx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_SIZE,4,2                  ## @HASH_SIZE
	.comm	_hash_tab,8,3                   ## @hash_tab
	.comm	_collisions,4,2                 ## @collisions
	.comm	_next_index,8,3                 ## @next_index
	.no_dead_strip	_add_hash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_hash
_add_hash:                              ; @add_hash
	.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	x19, x0
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_hashstr
Lloh0:
	adrp	x20, _HASH_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HASH_SIZE@GOTPAGEOFF]
	ldr	w9, [x20]
	sdiv	w8, w0, w9
	msub	w10, w8, w9, w0
Lloh2:
	adrp	x21, _hash_tab@GOTPAGE
Lloh3:
	ldr	x21, [x21, _hash_tab@GOTPAGEOFF]
	ldr	x8, [x21]
	sxtw	x19, w10
	ldr	x10, [x8, w10, sxtw #3]
	cbz	x10, LBB0_5
; %bb.1:
Lloh4:
	adrp	x8, _collisions@GOTPAGE
Lloh5:
	ldr	x8, [x8, _collisions@GOTPAGEOFF]
	ldr	w10, [x8]
	add	w10, w10, #1
	str	w10, [x8]
	add	w8, w19, #1
	sdiv	w10, w8, w9
	msub	w22, w10, w9, w8
	cmp	w22, w19
	cset	w0, ne
	bl	_gcc_assert
	ldr	x8, [x21]
	ldr	x9, [x8, w22, sxtw #3]
	cbz	x9, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	add	w9, w22, #1
	sdiv	w10, w9, w8
	msub	w22, w10, w8, w9
	cmp	w22, w19
	cset	w0, ne
	bl	_gcc_assert
	ldr	x8, [x21]
	ldr	x9, [x8, w22, sxtw #3]
	cbnz	x9, LBB0_2
; %bb.3:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_4:
	sxtw	x19, w22
LBB0_5:
Lloh6:
	adrp	x9, _next_index@GOTPAGE
Lloh7:
	ldr	x9, [x9, _next_index@GOTPAGEOFF]
	ldr	x10, [x9]
	str	x10, [x8, x19, lsl #3]
	ldr	x8, [x9]
	add	x8, x8, #1
	str	x8, [x9]
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_SIZE,4,2                  ; @HASH_SIZE
	.comm	_hash_tab,8,3                   ; @hash_tab
	.comm	_collisions,4,2                 ; @collisions
	.comm	_next_index,8,3                 ; @next_index
	.no_dead_strip	_add_hash
.subsections_via_symbols
