	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srt_decode_frame
_srt_decode_frame:                      ## @srt_decode_frame
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_AV_PKT_DATA_SUBTITLE_POSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_av_packet_get_side_data
	movq	%rax, %r12
	movq	(%rbx), %rax
	testq	%r12, %r12
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	cmpl	$16, -56(%rbp)
	movl	$-1, %r15d
	movl	$-1, %r13d
	movl	$-1, %r14d
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_AV_RL32
	movl	%eax, %r14d
	leaq	16(%r12), %rdi
	callq	_AV_RL32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	32(%r12), %rdi
	callq	_AV_RL32
	movl	%eax, %r15d
	addq	$48, %r12
	movq	%r12, %rdi
	callq	_AV_RL32
	movl	%eax, %r13d
	jmp	LBB0_4
LBB0_1:
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	movl	$-1, %r15d
	movl	$-1, %r13d
	movl	$-1, %r14d
LBB0_4:
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.5:
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	movl	4(%r12), %edx
	movl	%r13d, (%rsp)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	%r15d, %r9d
	callq	_srt_to_ass
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	-48(%rbp), %esi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	leal	1(%rdx), %eax
	movl	%eax, (%rcx)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ff_ass_add_rect
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	testl	%ebx, %ebx
	js	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	setg	%al
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%r12), %ebx
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
LBB0_9:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_DATA_SUBTITLE_POSITION,4,2 ## @AV_PKT_DATA_SUBTITLE_POSITION
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ## @AV_BPRINT_SIZE_UNLIMITED
	.no_dead_strip	_srt_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srt_decode_frame
_srt_decode_frame:                      ; @srt_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _AV_PKT_DATA_SUBTITLE_POSITION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PKT_DATA_SUBTITLE_POSITION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x3
	bl	_av_packet_get_side_data
	ldr	x28, [x22]
	ldr	w8, [sp, #4]
	cmp	x0, #0
	ccmp	w8, #16, #0, ne
	b.eq	LBB0_2
; %bb.1:
	mov	w24, #-1
	mov	w25, #-1
	mov	w27, #-1
	mov	w23, #-1
	b	LBB0_3
LBB0_2:
	mov	x26, x0
	bl	_AV_RL32
	mov	x23, x0
	add	x0, x26, #16
	bl	_AV_RL32
	mov	x24, x0
	add	x0, x26, #32
	bl	_AV_RL32
	mov	x25, x0
	add	x0, x26, #48
	bl	_AV_RL32
	mov	x27, x0
LBB0_3:
	ldr	w26, [x19]
	cmp	w26, #1
	b.lt	LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #0
	bl	_av_bprint_init
	ldr	w2, [x19, #4]
	add	x1, sp, #8
	mov	x0, x22
	mov	x3, x23
	mov	x4, x24
	mov	x5, x25
	mov	x6, x27
	bl	_srt_to_ass
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	w1, [sp, #8]
	ldr	w2, [x28]
	add	w8, w2, #1
	str	w8, [x28]
	mov	x0, x21
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_ff_ass_add_rect
	mov	x26, x0
	add	x0, sp, #8
	mov	x1, #0
	bl	_av_bprint_finalize
	tbnz	w26, #31, LBB0_8
; %bb.6:
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w8, gt
	str	w8, [x20]
	ldr	w26, [x19]
	b	LBB0_8
LBB0_7:
	mov	x26, x0
	add	x0, sp, #8
	mov	x1, #0
	bl	_av_bprint_finalize
LBB0_8:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_DATA_SUBTITLE_POSITION,4,2 ; @AV_PKT_DATA_SUBTITLE_POSITION
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
	.no_dead_strip	_srt_decode_frame
.subsections_via_symbols
