	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_subtitles_queue_insert      ## -- Begin function ff_subtitles_queue_insert
	.p2align	4, 0x90
_ff_subtitles_queue_insert:             ## @ff_subtitles_queue_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r8
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.1:
	testq	%rbx, %rbx
	jle	LBB0_4
## %bb.2:
	movq	8(%r13), %r12
	decq	%rbx
	leaq	(%rbx,%rbx,4), %r14
	leaq	(%r12,%r14,8), %r13
	movslq	(%r12,%r14,8), %rbx
	movq	%r13, %rdi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %rsi
	callq	_av_grow_packet
	testq	%rax, %rax
	js	LBB0_12
## %bb.3:
	addq	8(%r12,%r14,8), %rbx
	jmp	LBB0_8
LBB0_4:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movabsq	$-3689348814741910323, %rcx     ## imm = 0xCCCCCCCCCCCCCCCD
	mulq	%rcx
	shrq	$5, %rdx
	decq	%rdx
	cmpq	%rdx, %rbx
	jae	LBB0_12
## %bb.5:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	8(%r13), %rdi
	leaq	16(%r13), %rsi
	leal	(%rbx,%rbx,4), %eax
	leal	40(,%rax,8), %edx
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %r12
	movq	%rax, 8(%r13)
	movq	(%r13), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r13)
	leaq	(%rax,%rax,4), %rbx
	leaq	(%r12,%rbx,8), %r13
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_av_new_packet
	testq	%rax, %rax
	js	LBB0_12
## %bb.7:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r12,%rbx,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12,%rbx,8)
	movq	8(%r12,%rbx,8), %rbx
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
	jmp	LBB0_13
LBB0_12:
	xorl	%r13d, %r13d
LBB0_13:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_subtitles_queue_insert      ; -- Begin function ff_subtitles_queue_insert
	.p2align	2
_ff_subtitles_queue_insert:             ; @ff_subtitles_queue_insert
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	cbz	w3, LBB0_4
; %bb.1:
	subs	x22, x8, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x23, [x21, #8]
	mov	w8, #40
	madd	x21, x22, x8, x23
	ldrsw	x24, [x21]
	mov	x0, x21
	mov	x1, x19
	bl	_av_grow_packet
	tbnz	x0, #63, LBB0_9
; %bb.3:
	mov	w8, #40
	madd	x8, x22, x8, x23
	ldr	x8, [x8, #8]
	add	x0, x8, x24
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	mov	x10, #-3689348814741910324
	movk	x10, #52429
	umulh	x9, x9, x10
	lsr	x9, x9, #5
	sub	x9, x9, #1
	cmp	x8, x9
	b.hs	LBB0_9
; %bb.5:
	ldr	x0, [x21, #8]
	add	x1, x21, #16
	mov	w9, #40
	mul	w8, w8, w9
	add	w2, w8, #40
	bl	_av_fast_realloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x22, x0
	ldr	x23, [x21]
	add	x8, x23, #1
	stp	x8, x0, [x21]
	mov	w8, #40
	madd	x21, x23, x8, x0
	mov	x0, x21
	mov	x1, x19
	bl	_av_new_packet
	tbnz	x0, #63, LBB0_9
; %bb.7:
Lloh3:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #40
	madd	x9, x23, x9, x22
	ldr	w10, [x9, #32]
	orr	w8, w10, w8
	str	w8, [x9, #32]
	stp	xzr, xzr, [x9, #16]
	ldr	x0, [x9, #8]
LBB0_8:
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	b	LBB0_10
LBB0_9:
	mov	x21, #0
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
.subsections_via_symbols
