	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_subtitle_pkt
_get_subtitle_pkt:                      ## @get_subtitle_pkt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	16(%rsi), %rax
	movq	_INT64_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	20(%rax), %edi
	movl	24(%rsi), %esi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %r12
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %ecx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	%ecx, %rax
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r13,8), %r15
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jge	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, %r14
	movl	12(%rax), %edi
	movl	24(%r15), %esi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	setle	%cl
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %rax
	setl	%dl
	testb	%dl, %cl
	jne	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, %rax
	movq	%r14, %r15
	jmp	LBB0_2
LBB0_9:
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.10:
	movq	16(%rsi), %rbx
	movups	(%rbx), %xmm0
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movups	%xmm0, (%rcx)
	movq	%rsi, %r14
	movl	8(%rsi), %eax
	movl	%eax, 8(%rcx)
	movl	16(%rbx), %edi
	movq	%rbx, %rsi
	callq	_ff_read_packet
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	movq	$0, (%rbx)
LBB0_12:
	movq	%r14, %rax
	jmp	LBB0_15
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.no_dead_strip	_get_subtitle_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_subtitle_pkt
_get_subtitle_pkt:                      ; @get_subtitle_pkt
	.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	x20, x2
	mov	x21, x0
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x9, _INT64_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x9]
	ldr	w0, [x8, #20]
	ldr	w1, [x1, #24]
Lloh3:
	adrp	x24, _AV_TIME_BASE_Q@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AV_TIME_BASE_Q@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_av_rescale_q
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x22, x0
	mov	x25, #0
	mov	x19, #0
Lloh5:
	adrp	x26, _AVDISCARD_ALL@GOTPAGE
Lloh6:
	ldr	x26, [x26, _AVDISCARD_ALL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x27, [x9, x25, lsl #3]
	ldr	x9, [x27, #16]
	ldr	x10, [x27]
	ldr	x11, [x26]
	cmp	x10, x11
	ccmp	x9, #0, #4, lt
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x9, #12]
	ldr	w1, [x27, #24]
	ldr	w2, [x24]
	bl	_av_rescale_q
	cmp	x0, x22
	cset	w8, le
	cmp	x0, x23
	cset	w9, lt
	tst	w8, w9
	csel	x23, x0, x23, ne
	csel	x19, x27, x19, ne
	ldr	w8, [x21]
	b	LBB0_2
LBB0_6:
	cbz	x19, LBB0_10
; %bb.7:
	ldr	x21, [x19, #16]
	ldr	q0, [x21]
	str	q0, [x20]
	ldr	w8, [x19, #8]
	str	w8, [x20, #8]
	ldr	w0, [x21, #16]
	mov	x1, x21
	bl	_ff_read_packet
	tbz	x0, #63, LBB0_10
; %bb.8:
	str	xzr, [x21]
	b	LBB0_10
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.no_dead_strip	_get_subtitle_pkt
.subsections_via_symbols
