	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_subtitles_queue_seek        ## -- Begin function ff_subtitles_queue_seek
	.p2align	4, 0x90
_ff_subtitles_queue_seek:               ## @ff_subtitles_queue_seek
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	16(%rbp), %eax
	movq	_AVSEEK_FLAG_BYTE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_2:
	movq	%rdi, %r14
	movq	_AVSEEK_FLAG_FRAME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:
	testq	%r8, %r8
	js	LBB0_33
## %bb.4:
	cmpq	%r8, (%r14)
	jle	LBB0_33
## %bb.5:
	movl	%r8d, 8(%r14)
	jmp	LBB0_45
LBB0_6:
	movq	%r9, %r12
	movl	%edx, %ebx
	movq	%r14, %rdi
	movq	%r8, %rsi
	callq	_search_sub_ts
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_46
## %bb.7:
	movq	(%r14), %rcx
	movl	%eax, %edx
	cmpq	%rdx, %rcx
	jle	LBB0_14
## %bb.8:
	movq	16(%r14), %rsi
	leaq	(%rdx,%rdx,2), %rdi
	leaq	(%rsi,%rdi,8), %rsi
	addq	$8, %rsi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movl	%edx, %eax
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdx
	addq	$24, %rsi
	cmpq	%rdx, %rcx
	jle	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, -8(%rsi)
	jge	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$-1, %ebx
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%ebx, (%rsi)
	je	LBB0_9
	jmp	LBB0_10
LBB0_14:
	movq	16(%r14), %rcx
	testl	%eax, %eax
	jle	LBB0_21
## %bb.15:
	movl	%eax, %r9d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%eax, %r9d
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	leal	-1(%rax), %edx
	cmpl	$1, %eax
	movl	%edx, %eax
	jle	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	leaq	(%rdx,%rdx,2), %rdx
	cmpq	%r12, (%rcx,%rdx,8)
	jle	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$-1, %ebx
	je	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	%ebx, 8(%rcx,%rdx,8)
	je	LBB0_16
	jmp	LBB0_17
LBB0_21:
	movl	%eax, %r9d
LBB0_22:
	movslq	%r9d, %rax
	leaq	(%rax,%rax,2), %rax
	movq	(%rcx,%rax,8), %r8
	cmpq	%r15, %r8
	jl	LBB0_33
## %bb.23:
	cmpq	%r12, %r8
	jg	LBB0_33
## %bb.24:
	testl	%r9d, %r9d
	jle	LBB0_43
## %bb.25:
	movl	%r9d, %esi
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%rsi, %rax
	incq	%rax
	cmpq	$1, %rax
	jbe	LBB0_35
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	decq	%rsi
	movl	%esi, %eax
	leaq	(%rax,%rax,2), %rdx
	movq	16(%rcx,%rdx,8), %rdi
	testq	%rdi, %rdi
	jle	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	(%rcx,%rdx,8), %rax
	cmpl	$-1, %ebx
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpl	%ebx, 8(%rcx,%rdx,8)
	jne	LBB0_26
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	cmpq	%r15, %rax
	jl	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r8, %rdx
	subq	%rdi, %rdx
	cmpq	%rdx, %rax
	jle	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	%esi, %r9d
	jmp	LBB0_26
LBB0_33:
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_35:
	cmpl	$-1, %ebx
	jne	LBB0_43
## %bb.36:
	testl	%r9d, %r9d
	jle	LBB0_43
## %bb.37:
	movl	%r9d, %eax
	leaq	(%rax,%rax,2), %rax
	movq	(%rcx,%rax,8), %rsi
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	%r9d, %eax
	leal	-1(%rax), %r9d
	leaq	(%r9,%r9,2), %rdx
	cmpq	%rsi, (%rcx,%rdx,8)
	jne	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	leal	1(%r9), %eax
	cmpl	$1, %eax
	ja	LBB0_38
## %bb.40:
	xorl	%eax, %eax
	jmp	LBB0_44
LBB0_43:
	movl	%r9d, %eax
LBB0_44:
	movl	%eax, 8(%r14)
LBB0_45:
	xorl	%eax, %eax
LBB0_46:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BYTE,4,2           ## @AVSEEK_FLAG_BYTE
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_AVSEEK_FLAG_FRAME,4,2          ## @AVSEEK_FLAG_FRAME
	.comm	_ERANGE,4,2                     ## @ERANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_subtitles_queue_seek        ; -- Begin function ff_subtitles_queue_seek
	.p2align	2
_ff_subtitles_queue_seek:               ; @ff_subtitles_queue_seek
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _AVSEEK_FLAG_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSEEK_FLAG_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w6
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_24
LBB0_2:
	mov	x19, x0
Lloh5:
	adrp	x8, _AVSEEK_FLAG_FRAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVSEEK_FLAG_FRAME@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w6
	b.eq	LBB0_6
; %bb.3:
	tbnz	x4, #63, LBB0_23
; %bb.4:
	ldr	x8, [x19]
	cmp	x8, x4
	b.le	LBB0_23
; %bb.5:
	mov	w0, #0
	str	w4, [x19, #8]
	b	LBB0_40
LBB0_6:
	mov	x22, x5
	mov	x21, x3
	mov	x20, x2
	mov	x0, x19
	mov	x1, x4
	bl	_search_sub_ts
	tbnz	w0, #31, LBB0_40
; %bb.7:
	ldr	x8, [x19]
	mov	w9, w0
	cmp	x8, x9
	b.le	LBB0_14
; %bb.8:
	ldr	x10, [x19, #16]
	mov	w11, #24
	madd	x10, x9, x11, x10
	add	x10, x10, #8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x9
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x9, #1
	add	x10, x10, #24
	cmp	x8, x9
	b.le	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x21
	b.ge	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmn	w20, #1
	b.eq	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w11, [x10]
	cmp	w11, w20
	b.eq	LBB0_9
	b	LBB0_10
LBB0_14:
	ldr	x8, [x19, #16]
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.15:
	mov	w10, #24
	mov	x9, x0
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x9, x0
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	subs	w0, w0, #1
	b.le	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	umull	x11, w0, w10
	ldr	x11, [x8, x11]
	cmp	x11, x22
	b.le	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	cmn	w20, #1
	b.eq	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w11, w0
	madd	x11, x11, x10, x8
	ldr	w11, [x11, #8]
	cmp	w11, w20
	b.eq	LBB0_16
	b	LBB0_17
LBB0_21:
	mov	x9, x0
LBB0_22:
	mov	w10, #24
	smull	x10, w9, w10
	ldr	x10, [x8, x10]
	cmp	x10, x21
	ccmp	x10, x22, #0, ge
	b.le	LBB0_25
LBB0_23:
Lloh8:
	adrp	x8, _ERANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_25:
	cmp	w9, #1
	b.lt	LBB0_39
; %bb.26:
	mov	w11, w9
	mov	w12, #24
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x13, x11, #1
	cmp	x13, #1
	b.ls	LBB0_33
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	sub	x11, x11, #1
	and	x15, x11, #0xffffffff
	madd	x14, x15, x12, x8
	ldr	x13, [x14, #16]
	cmp	x13, #1
	b.lt	LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x14, [x14]
	cmn	w20, #1
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	madd	x15, x15, x12, x8
	ldr	w15, [x15, #8]
	cmp	w15, w20
	b.ne	LBB0_27
LBB0_31:                                ;   in Loop: Header=BB0_28 Depth=1
	sub	x13, x10, x13
	cmp	x14, x21
	ccmp	x14, x13, #4, ge
	b.le	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x9, x11
	b	LBB0_27
LBB0_33:
	cmn	w20, #1
	b.ne	LBB0_39
; %bb.34:
	cmp	w9, #1
	b.lt	LBB0_39
; %bb.35:
	mov	w10, #24
	umull	x11, w9, w10
	ldr	x11, [x8, x11]
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	sub	w12, w9, #1
	umull	x13, w12, w10
	ldr	x13, [x8, x13]
	cmp	x13, x11
	b.ne	LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	add	w13, w12, #1
	mov	x9, x12
	cmp	w13, #1
	b.hi	LBB0_36
; %bb.38:
	mov	w9, #0
LBB0_39:
	mov	w0, #0
	str	w9, [x19, #8]
LBB0_40:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BYTE,4,2           ; @AVSEEK_FLAG_BYTE
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_AVSEEK_FLAG_FRAME,4,2          ; @AVSEEK_FLAG_FRAME
	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
