	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function webvtt_event_to_ass
_webvtt_event_to_ass:                   ## @webvtt_event_to_ass
	.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	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movb	(%r14), %bl
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testb	%bl, %bl
	je	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	_webvtt_tag_replace@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_webvtt_tag_replace@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	-8(%rbx,%r14), %r15
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=3
	incq	%r13
	movq	%rbx, %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$16, %r14
	cmpq	%rax, %r13
	jl	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=2
	xorl	%edx, %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	xorl	%edx, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	(%rbx,%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_av_bprintf
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	addq	%r12, %r14
	movb	$1, %dl
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=2
	movb	(%r14), %cl
	testb	%cl, %cl
	je	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=2
	xorl	%eax, %eax
	movb	$1, %bl
	testb	%dl, %dl
	jne	LBB0_2
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %eax
	cmpb	$10, %cl
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$60, %cl
	je	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$62, %cl
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	cmpb	$13, %cl
	jne	LBB0_20
	jmp	LBB0_22
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$0, 1(%r14)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_av_bprintf
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incq	%r14
	jmp	LBB0_1
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movsbl	%cl, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_av_bprint_chars
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r14
	jmp	LBB0_1
LBB0_23:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_webvtt_tag_replace,8,3         ## @webvtt_tag_replace
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"\\N"

	.no_dead_strip	_webvtt_event_to_ass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function webvtt_event_to_ass
_webvtt_event_to_ass:                   ; @webvtt_event_to_ass
	.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, x1
	mov	x20, x0
	mov	w27, #0
Lloh0:
	adrp	x26, _webvtt_tag_replace@GOTPAGE
Lloh1:
	ldr	x26, [x26, _webvtt_tag_replace@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;       Child Loop BB0_5 Depth 3
	ldrb	w10, [x19]
	mov	x11, x27
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_5 Depth 3
	cbz	w10, LBB0_23
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x27, x11
	ldr	x0, [x26]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x28, #0
	mov	x22, #0
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_2 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x23, [x26]
	ldr	x25, [x23, x28]
	mov	x0, x25
	bl	_strlen
	mov	x24, x0
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	bl	_strncmp
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=3
	add	x22, x22, #1
	mov	x0, x23
	bl	_FF_ARRAY_ELEMS
	add	x28, x28, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=2
	mov	w9, #0
	ldrb	w8, [x19]
	cbnz	w8, LBB0_9
	b	LBB0_23
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=2
	add	x8, x23, x28
	ldr	w8, [x8, #8]
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_av_bprintf
	add	x19, x19, x24
	mov	w9, #1
	ldrb	w8, [x19]
	cbz	w8, LBB0_23
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=2
	mov	w11, #0
	mov	w10, #1
	tbnz	w9, #0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, #10
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, #60
	b.eq	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, #62
	b.eq	LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	cbz	w27, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	w27, #1
	add	x19, x19, #1
	b	LBB0_1
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w9, [x19, #1]
	cbz	w9, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_av_bprintf
	add	x19, x19, #1
	b	LBB0_1
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w27, #1
	add	x19, x19, #1
	b	LBB0_1
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, #13
	b.ne	LBB0_21
	b	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w27, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	w27, #1
	add	x19, x19, #1
	b	LBB0_1
LBB0_21:                                ;   in Loop: Header=BB0_1 Depth=1
	sxtb	w1, w8
	mov	x0, x20
	mov	w2, #1
	bl	_av_bprint_chars
LBB0_22:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w27, #0
	add	x19, x19, #1
	b	LBB0_1
LBB0_23:
	mov	w0, #0
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_webvtt_tag_replace,8,3         ; @webvtt_tag_replace
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"\\N"

	.no_dead_strip	_webvtt_event_to_ass
.subsections_via_symbols
