	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtab_insert                  ## -- Begin function strtab_insert
	.p2align	4, 0x90
_strtab_insert:                         ## @strtab_insert
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	cmpb	$0, (%rsi)
	je	LBB0_5
## %bb.2:
	movq	%rdi, %r15
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_strtab_hash
	movq	(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r12
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r12d
LBB0_7:
	movq	24(%r15), %rax
	movq	(%rax,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rcx
	incq	%rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_strtab_compare
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_10:
	movl	$40, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movl	40(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	32(%r15), %rax
	decq	%rax
	movq	%rax, 24(%rbx)
	movq	8(%r15), %rax
	movq	%rax, (%rbx)
	movq	-40(%rbp), %rdx
	movq	%rdx, 8(%rbx)
	movq	24(%r15), %rax
	movq	(%rax,%r12,8), %rcx
	movq	%rcx, 16(%rbx)
	movq	%rbx, (%rax,%r12,8)
	incq	%rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strtab_copyin
	incl	16(%r15)
	movq	-40(%rbp), %rax
	movq	8(%r15), %rcx
	addq	%rcx, %rax
	incq	%rax
	movq	%rax, 8(%r15)
LBB0_11:
	movq	(%rbx), %rax
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	_strtab_insert                  ; -- Begin function strtab_insert
	.p2align	2
_strtab_insert:                         ; @strtab_insert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_strtab_hash
	ldr	x8, [x19]
	udiv	x9, x0, x8
	msub	x22, x9, x8, x0
	ldr	x8, [x19, #24]
	ldr	x21, [x8, x22, lsl #3]
	cbz	x21, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x3, x8, #1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_strtab_compare
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x21, #16]
	cbnz	x21, LBB0_3
LBB0_5:
	mov	w0, #40
	bl	_xmalloc
	mov	x21, x0
	ldr	w8, [x19, #40]
	str	w8, [x0, #32]
	ldp	x9, x8, [x19, #24]
	sub	x8, x8, #1
	str	x8, [x0, #24]
	ldr	x8, [x19, #8]
	str	x8, [x0]
	lsl	x8, x22, #3
	ldr	x10, [x9, x8]
	ldr	x11, [sp, #8]
	stp	x11, x10, [x0, #8]
	str	x0, [x9, x8]
	add	x2, x11, #1
	mov	x0, x19
	mov	x1, x20
	bl	_strtab_copyin
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #8]
	add	x8, x8, x9
	add	x8, x8, #1
	str	x8, [x19, #8]
LBB0_6:
	ldr	x0, [x21]
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
