	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_id                         ## -- Begin function add_id
	.p2align	4, 0x90
_add_id:                                ## @add_id
	.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
	movl	%edx, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	movq	_H_MUL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	$4, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	imulq	%rdx, %rsi
	movslq	%ecx, %rcx
	addq	%rcx, %rsi
	movl	(%rax), %ecx
	addq	$4, %rax
	testl	%ecx, %ecx
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%esi, %esi
LBB0_4:
	movq	_H_ADD@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	_h_id@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	callq	_hmap_ll_int_add
	movq	%rax, %r15
	movq	_idn@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	addl	$3, %eax
	movq	_idr@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	cmpl	%edx, %eax
	jle	LBB0_6
## %bb.5:
	leal	(%rdx,%rdx), %eax
	leal	(%rdx,%rdx), %ecx
	addl	$3, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	%rcx, %r13
	leal	12(,%rax,4), %ebx
	shll	$2, %edx
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dl_realloc
	movq	%rax, (%r13)
	movq	_stemmed_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rax, %r13
	movl	(%r12), %edx
	shll	$2, %edx
	movl	%ebx, %esi
	callq	_dl_realloc
	movq	%rax, (%r13)
	movq	%r15, %r13
	movq	_ratings@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movl	(%r12), %edx
	shll	$2, %edx
	movl	%ebx, %esi
	callq	_dl_realloc
	movq	%rax, (%r15)
	movl	$0, (%rax)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	xorl	%edi, %edi
	movq	_names@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	movq	_stemmed_names@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	movq	%r13, %r15
	movq	_idn@GOTPCREL(%rip), %rbx
	setne	%dil
	callq	_assert
LBB0_6:
	movl	(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movl	(%rbx), %eax
	incl	%eax
	movl	%eax, (%rbx)
	movl	%eax, (%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	movl	%eax, %r12d
	movq	_namesn@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%r12,%rax), %ecx
	addl	$3, %ecx
	movq	_namesr@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	cmpl	%edx, %ecx
	jle	LBB0_9
## %bb.8:
	leal	3(%r12), %eax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r15d
	leal	(%rax,%rdx,2), %ebx
	movq	_names_buff@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dl_realloc
	movq	%rax, (%r14)
	movl	%ebx, (%r13)
	movl	%r15d, %r14d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	_idn@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_namesn@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rbx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_use_stemmer@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_stem_str
	movl	(%rbx), %ecx
	jmp	LBB0_12
LBB0_11:
	movl	(%rbx), %ecx
	movl	%ecx, %eax
LBB0_12:
	movq	_stemmed_names@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	%ecx, %rcx
	movl	%eax, (%rdx,%rcx,4)
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_fprintf
LBB0_14:
	movq	_names_buff@GOTPCREL(%rip), %rax
	movq	_namesn@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcpy
	movl	(%r14), %eax
	addl	%r12d, %eax
	incl	%eax
	movl	%eax, (%r14)
	movq	_ratings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rbx), %rcx
	movl	$0, (%rax,%rcx,4)
	movl	(%r15), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_MUL,8,3                      ## @H_MUL
	.comm	_H_ADD,8,3                      ## @H_ADD
	.comm	_h_id,4,2                       ## @h_id
	.comm	_idn,4,2                        ## @idn
	.comm	_idr,4,2                        ## @idr
	.comm	_names,8,3                      ## @names
	.comm	_stemmed_names,8,3              ## @stemmed_names
	.comm	_ratings,8,3                    ## @ratings
	.comm	_namesn,4,2                     ## @namesn
	.comm	_namesr,4,2                     ## @namesr
	.comm	_names_buff,8,3                 ## @names_buff
	.comm	_use_stemmer,8,3                ## @use_stemmer
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<%s>\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_id                         ; -- Begin function add_id
	.p2align	2
_add_id:                                ; @add_id
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x0
	ldr	w9, [x1]
	cbz	w9, LBB0_3
; %bb.1:
	mov	x8, #0
Lloh0:
	adrp	x10, _H_MUL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _H_MUL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x11, x1, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mul	x8, x10, x8
	add	x8, x8, w9, sxtw
	ldr	w9, [x11], #4
	cbnz	w9, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x8, #0
LBB0_4:
Lloh3:
	adrp	x9, _H_ADD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _H_ADD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh6:
	adrp	x0, _h_id@GOTPAGE
Lloh7:
	ldr	x0, [x0, _h_id@GOTPAGEOFF]
	mov	x2, #0
	bl	_hmap_ll_int_add
	mov	x21, x0
Lloh8:
	adrp	x24, _idn@GOTPAGE
Lloh9:
	ldr	x24, [x24, _idn@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w9, w8, #3
Lloh10:
	adrp	x23, _idr@GOTPAGE
Lloh11:
	ldr	x23, [x23, _idr@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w9, w8
	b.le	LBB0_6
; %bb.5:
	lsl	w9, w8, #1
	add	w25, w9, #3
Lloh12:
	adrp	x26, _names@GOTPAGE
Lloh13:
	ldr	x26, [x26, _names@GOTPAGEOFF]
	ldr	x0, [x26]
	lsl	w22, w25, #2
	lsl	w2, w8, #2
	mov	x1, x22
	bl	_dl_realloc
	str	x0, [x26]
Lloh14:
	adrp	x27, _stemmed_names@GOTPAGE
Lloh15:
	ldr	x27, [x27, _stemmed_names@GOTPAGEOFF]
	ldr	x0, [x27]
	ldr	w8, [x23]
	lsl	w2, w8, #2
	mov	x1, x22
	bl	_dl_realloc
	str	x0, [x27]
Lloh16:
	adrp	x28, _ratings@GOTPAGE
Lloh17:
	ldr	x28, [x28, _ratings@GOTPAGEOFF]
	ldr	x0, [x28]
	ldr	w8, [x23]
	lsl	w2, w8, #2
	mov	x1, x22
	bl	_dl_realloc
	str	x0, [x28]
	str	wzr, [x0]
	str	w25, [x23]
	ldr	x8, [x26]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x27]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x28]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
LBB0_6:
	ldr	w0, [x21]
	cbnz	w0, LBB0_15
; %bb.7:
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	str	w8, [x21]
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
Lloh18:
	adrp	x25, _namesn@GOTPAGE
Lloh19:
	ldr	x25, [x25, _namesn@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh20:
	adrp	x27, _namesr@GOTPAGE
Lloh21:
	ldr	x27, [x27, _namesr@GOTPAGEOFF]
	add	w9, w0, #3
	ldr	w2, [x27]
	add	w10, w9, w8
	cmp	w10, w2
Lloh22:
	adrp	x26, _names_buff@GOTPAGE
Lloh23:
	ldr	x26, [x26, _names_buff@GOTPAGEOFF]
	b.le	LBB0_9
; %bb.8:
	add	w23, w9, w2, lsl #1
	ldr	x0, [x26]
	mov	x1, x23
	bl	_dl_realloc
	str	x0, [x26]
	str	w23, [x27]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x25]
LBB0_9:
Lloh24:
	adrp	x9, _names@GOTPAGE
Lloh25:
	ldr	x9, [x9, _names@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldrsw	x10, [x24]
	str	w8, [x9, x10, lsl #2]
Lloh27:
	adrp	x8, _use_stemmer@GOTPAGE
Lloh28:
	ldr	x8, [x8, _use_stemmer@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_stem_str
	ldr	w8, [x24]
	b	LBB0_12
LBB0_11:
	ldr	w8, [x24]
	mov	x0, x8
LBB0_12:
Lloh30:
	adrp	x9, _stemmed_names@GOTPAGE
Lloh31:
	ldr	x9, [x9, _stemmed_names@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	str	w0, [x9, w8, sxtw #2]
	cbz	w20, LBB0_14
; %bb.13:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_14:
	ldr	x8, [x26]
	ldrsw	x9, [x25]
	add	x0, x8, x9, lsl #2
	mov	x1, x19
	bl	_strcpy
	ldr	w8, [x25]
	add	w8, w22, w8
	add	w8, w8, #1
Lloh38:
	adrp	x9, _ratings@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ratings@GOTPAGEOFF]
	str	w8, [x25]
Lloh40:
	ldr	x8, [x9]
	ldrsw	x9, [x24]
	str	wzr, [x8, x9, lsl #2]
	ldr	w0, [x21]
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_H_MUL,8,3                      ; @H_MUL
	.comm	_H_ADD,8,3                      ; @H_ADD
	.comm	_h_id,4,2                       ; @h_id
	.comm	_idn,4,2                        ; @idn
	.comm	_idr,4,2                        ; @idr
	.comm	_names,8,3                      ; @names
	.comm	_stemmed_names,8,3              ; @stemmed_names
	.comm	_ratings,8,3                    ; @ratings
	.comm	_namesn,4,2                     ; @namesn
	.comm	_namesr,4,2                     ; @namesr
	.comm	_names_buff,8,3                 ; @names_buff
	.comm	_use_stemmer,8,3                ; @use_stemmer
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<%s>\n"

.subsections_via_symbols
