	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_ctts_entry
_add_ctts_entry:                        ## @add_ctts_entry
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rsi), %edx
	leal	1(%rdx), %eax
	shlq	$3, %rax
	movl	(%r13), %esi
	cmpq	%rsi, %rax
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	jbe	LBB0_2
## %bb.1:
	addl	%esi, %esi
	movq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMAX
	movl	(%rbx), %edx
LBB0_2:
	movl	%edx, %ecx
	movq	_UINT_MAX@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	shrq	$3, %rdx
	decq	%rdx
	movl	$-1, %r14d
	cmpq	%rcx, %rdx
	jbe	LBB0_5
## %bb.3:
	movq	(%r12), %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, (%r12)
	movl	(%rbx), %ecx
	movl	%r15d, (%rax,%rcx,8)
	movl	(%rbx), %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 4(%rax,%rcx,8)
	movl	(%rbx), %r14d
	incl	%r14d
	movl	%r14d, (%rbx)
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.no_dead_strip	_add_ctts_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_ctts_entry
_add_ctts_entry:                        ; @add_ctts_entry
	.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	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w8, [x1]
	add	w9, w8, #1
	lsl	x2, x9, #3
	ldr	w9, [x23]
	cmp	x2, x9
	b.ls	LBB0_2
; %bb.1:
	lsl	w1, w9, #1
	mov	x0, x2
	bl	_FFMAX
	mov	x2, x0
	ldr	w8, [x19]
LBB0_2:
Lloh0:
	adrp	x9, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	lsr	x9, x9, #3
	sub	x9, x9, #1
	cmp	x9, w8, uxtw
	b.ls	LBB0_5
; %bb.3:
	ldr	x0, [x22]
	mov	x1, x23
	bl	_av_fast_realloc
	cbz	x0, LBB0_5
; %bb.4:
	str	x0, [x22]
	ldr	w8, [x19]
	lsl	x8, x8, #3
	str	w21, [x0, x8]
	ldr	w8, [x19]
	add	x8, x0, x8, lsl #3
	str	w20, [x8, #4]
	ldr	w8, [x19]
	add	w0, w8, #1
	str	w0, [x19]
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.no_dead_strip	_add_ctts_entry
.subsections_via_symbols
