	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_hash_insert                ## -- Begin function ctf_hash_insert
	.p2align	4, 0x90
_ctf_hash_insert:                       ## @ctf_hash_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	(%rsi), %r14
	movl	%ecx, %edi
	callq	_CTF_NAME_STID
	movq	%rax, %r13
	shlq	$4, %r13
	movq	(%r14,%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_CTF_NAME_OFFSET
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	%r15, %rcx
	movq	(%r15), %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	8(%rcx), %r15
	jae	LBB0_3
## %bb.4:
	leaq	(%r14,%r13), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.6:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14,%r13), %r14
	movl	%ebx, %edi
	callq	_CTF_NAME_OFFSET
	cmpq	%rax, %r14
	jle	LBB0_7
## %bb.8:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	xorl	%r14d, %r14d
	cmpb	$0, (%rcx)
	je	LBB0_13
## %bb.9:
	leaq	(%r15,%r15,2), %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, 16(%rax,%r13,8)
	movq	%rax, %r15
	movq	%r12, 8(%rax,%r13,8)
	movq	%rcx, %rbx
	movq	%rcx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ctf_hash_compute
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rdi), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.11:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_12
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_13
LBB0_3:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_13
LBB0_5:
	movq	_ECTF_STRTAB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_13
LBB0_7:
	movq	_ECTF_BADNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_13
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_12:
	movq	24(%rdi), %rax
	movl	(%rax,%rdx,4), %ecx
	movl	%ecx, (%r15,%r13,8)
	movq	(%rdi), %rcx
	leaq	1(%rcx), %rsi
	movq	%rsi, (%rdi)
	movl	%ecx, (%rax,%rdx,4)
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_ECTF_STRTAB,4,2                ## @ECTF_STRTAB
	.comm	_ECTF_BADNAME,4,2               ## @ECTF_BADNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_hash_insert                ; -- Begin function ctf_hash_insert
	.p2align	2
_ctf_hash_insert:                       ; @ctf_hash_insert
	.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	x21, x3
	mov	x20, x2
	mov	x19, x0
	ldr	x26, [x1]
	mov	x0, x3
	bl	_CTF_NAME_STID
	mov	x23, x0
	add	x27, x26, x0, lsl #4
	ldr	x24, [x27]
	mov	x0, x21
	bl	_CTF_NAME_OFFSET
	cbz	x20, LBB0_6
; %bb.1:
	ldp	x25, x8, [x19]
	cmp	x25, x8
	b.hs	LBB0_7
; %bb.2:
	ldr	x8, [x27]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x22, x0
	ldr	x27, [x19, #32]
	add	x8, x26, x23, lsl #4
	ldr	x23, [x8, #8]
	mov	x0, x21
	bl	_CTF_NAME_OFFSET
	cmp	x23, x0
	b.le	LBB0_9
; %bb.4:
	add	x22, x24, x22
	ldrb	w8, [x22]
	cbz	w8, LBB0_10
; %bb.5:
	mov	w8, #24
	madd	x23, x25, x8, x27
	str	w21, [x23, #16]
	str	x20, [x23, #8]
	mov	x0, x22
	bl	_strlen
	mov	x1, x0
	mov	x0, x22
	bl	_ctf_hash_compute
	mov	x8, x0
	mov	w0, #0
	ldp	x9, x10, [x19, #16]
	udiv	x11, x8, x9
	msub	x8, x11, x9, x8
	lsl	x8, x8, #2
	ldr	w9, [x10, x8]
	str	w9, [x23]
	ldr	x9, [x19]
	add	x11, x9, #1
	str	x11, [x19]
	str	w9, [x10, x8]
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_7:
Lloh3:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _ECTF_STRTAB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECTF_STRTAB@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_9:
Lloh9:
	adrp	x8, _ECTF_BADNAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ECTF_BADNAME@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_ECTF_STRTAB,4,2                ; @ECTF_STRTAB
	.comm	_ECTF_BADNAME,4,2               ; @ECTF_BADNAME
.subsections_via_symbols
