	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sami_paragraph_to_ass
_sami_paragraph_to_ass:                 ## @sami_paragraph_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	%rsi, %rdi
	callq	_av_strdup
	testq	%rax, %rax
	je	LBB0_42
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	48(%r13), %r15
	movq	%r13, %rdi
	callq	_av_bprint_clear
	leaq	32(%r13), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_av_bprint_clear
	movq	%r15, %rdi
	callq	_av_bprint_clear
	movq	$0, -56(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_av_stristr
	testq	%rax, %rax
	je	LBB0_35
## %bb.2:
	movq	%rax, %r14
	leaq	64(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, -56(%rbp)
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_av_stristr
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_35
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##       Child Loop BB0_24 Depth 3
	movb	2(%r14), %al
	cmpb	$62, %al
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	%al, %edi
	callq	_av_isspace
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 40(%r13)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_av_bprintf
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_av_strtok
	testq	%rax, %rax
	je	LBB0_35
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_35
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_av_stristr
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_av_stristr
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_av_bprint_clear
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	decq	%r14
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	1(%r14), %edi
	incq	%r14
	callq	_av_isspace
	testl	%eax, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$6, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_43
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rbx
	xorl	%r15d, %r15d
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_24 Depth 3
	movb	(%r14), %al
	cmpb	$60, %al
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	testb	%al, %al
	jne	LBB0_22
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_av_strncasecmp
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=2
	movb	2(%r14), %al
	cmpb	$62, %al
	je	LBB0_33
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=2
	movsbl	%al, %edi
	callq	_av_isspace
	testl	%eax, %eax
	jne	LBB0_33
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	%r14, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	$3, %edx
	callq	_av_strncasecmp
	testl	%eax, %eax
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_av_bprintf
	incq	%r14
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_17 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	(%r14), %eax
	incq	%r14
	testb	%al, %al
	je	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=3
	cmpb	$62, %al
	jne	LBB0_24
	jmp	LBB0_17
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=2
	movsbl	(%r14), %edi
	callq	_av_isspace
	testl	%eax, %eax
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_17 Depth=2
	testl	%r15d, %r15d
	jne	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_17 Depth=2
	movb	$32, %al
	jmp	LBB0_30
LBB0_27:                                ##   in Loop: Header=BB0_17 Depth=2
	movb	(%r14), %al
LBB0_30:                                ##   in Loop: Header=BB0_17 Depth=2
	movsbl	%al, %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_av_bprint_chars
LBB0_31:                                ##   in Loop: Header=BB0_17 Depth=2
	movsbl	(%r14), %edi
	callq	_av_isspace
	movl	%eax, %r15d
	incq	%r14
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_3 Depth=1
	decq	%r14
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r15
	jmp	LBB0_34
LBB0_35:
	leaq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_av_bprint_clear
	cmpq	$0, 72(%r13)
	je	LBB0_39
## %bb.36:
	movl	64(%r13), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ff_htmlmarkup_to_ass
	testl	%eax, %eax
	js	LBB0_37
## %bb.38:
	movl	(%r15), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_bprintf
LBB0_39:
	movl	32(%r13), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ff_htmlmarkup_to_ass
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_41
## %bb.40:
	movl	(%r13), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_bprintf
	jmp	LBB0_41
LBB0_42:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_43:
	movl	$-1, %ebx
	jmp	LBB0_41
LBB0_37:
	movl	%eax, %ebx
LBB0_41:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<P"

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

L_.str.2:                               ## @.str.2
	.asciz	">"

L_.str.3:                               ## @.str.3
	.asciz	"ID=Source"

L_.str.4:                               ## @.str.4
	.asciz	"ID=\"Source\""

L_.str.5:                               ## @.str.5
	.asciz	"&nbsp;"

L_.str.6:                               ## @.str.6
	.asciz	"<BR"

L_.str.7:                               ## @.str.7
	.asciz	"{\\i1}%s{\\i0}\\N"

L_.str.8:                               ## @.str.8
	.asciz	"%s"

	.no_dead_strip	_sami_paragraph_to_ass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sami_paragraph_to_ass
_sami_paragraph_to_ass:                 ; @sami_paragraph_to_ass
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x0
	ldr	x20, [x0]
	mov	x0, x1
	bl	_av_strdup
	cbz	x0, LBB0_39
; %bb.1:
	mov	x19, x0
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	add	x21, x20, #48
	mov	x0, x20
	bl	_av_bprint_clear
	add	x23, x20, #32
	mov	x0, x23
	bl	_av_bprint_clear
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x21
	bl	_av_bprint_clear
	str	xzr, [sp, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_stristr
	cbz	x0, LBB0_34
; %bb.2:
	mov	x24, x0
	add	x28, x20, #64
Lloh2:
	adrp	x27, l_.str@PAGE
Lloh3:
	add	x27, x27, l_.str@PAGEOFF
Lloh4:
	adrp	x22, l_.str.6@PAGE
Lloh5:
	add	x22, x22, l_.str.6@PAGEOFF
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x26, x26, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [sp, #24]
	mov	x0, x26
	mov	x1, x27
	bl	_av_stristr
	mov	x24, x0
	cbz	x0, LBB0_34
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_25 Depth 3
	ldrb	w8, [x24, #2]
	cmp	w8, #62
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtb	w0, w8
	bl	_av_isspace
	cbz	w0, LBB0_33
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_av_bprintf
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #24
	mov	x0, x24
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_av_strtok
	cbz	x0, LBB0_34
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x25, [sp, #24]
	cbz	x25, LBB0_34
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_av_stristr
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_av_stristr
	mov	x24, x23
	cbz	x0, LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
	bl	_av_bprint_clear
	mov	x24, x28
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x26, x25, #1
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x26, #1]!
	bl	_av_isspace
	cbnz	w0, LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #6
	bl	_strncmp
	cbz	w0, LBB0_40
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w25, #0
LBB0_18:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_25 Depth 3
	ldrb	w8, [x26]
	cmp	w8, #60
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	cbnz	w8, LBB0_23
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x26
	mov	x1, x27
	mov	w2, #2
	bl	_av_strncasecmp
	cbnz	w0, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	ldrb	w8, [x26, #2]
	cmp	w8, #62
	b.eq	LBB0_4
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	sxtb	w0, w8
	bl	_av_isspace
	cbnz	w0, LBB0_4
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x26
	mov	x1, x22
	mov	w2, #3
	bl	_av_strncasecmp
	cbnz	w0, LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x24
	mov	x1, x21
	bl	_av_bprintf
	add	x26, x26, #1
LBB0_25:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w8, [x26], #1
	cbz	w8, LBB0_3
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=3
	cmp	w8, #62
	b.ne	LBB0_25
	b	LBB0_18
LBB0_27:                                ;   in Loop: Header=BB0_18 Depth=2
	ldrsb	w0, [x26]
	bl	_av_isspace
	cbz	w0, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_18 Depth=2
	cbnz	w25, LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	w8, #32
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_18 Depth=2
	ldrb	w8, [x26]
LBB0_31:                                ;   in Loop: Header=BB0_18 Depth=2
	sxtb	w1, w8
	mov	x0, x24
	mov	w2, #1
	bl	_av_bprint_chars
LBB0_32:                                ;   in Loop: Header=BB0_18 Depth=2
	ldrsb	w0, [x26], #1
	bl	_av_isspace
	mov	x25, x0
	b	LBB0_18
LBB0_33:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x24, #1
	b	LBB0_4
LBB0_34:
	add	x21, x20, #16
	mov	x0, x21
	bl	_av_bprint_clear
	ldr	x8, [x20, #72]
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_37
; %bb.35:
	ldr	w2, [x20, #64]
	mov	x0, x23
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	mov	x1, x24
	bl	_ff_htmlmarkup_to_ass
	tbnz	w0, #31, LBB0_41
; %bb.36:
	ldr	w8, [x24]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_av_bprintf
LBB0_37:
	ldr	w2, [x20, #32]
	mov	x0, x23
	mov	x1, x20
	bl	_ff_htmlmarkup_to_ass
	mov	x22, x0
	tbnz	w0, #31, LBB0_42
; %bb.38:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_av_bprintf
	b	LBB0_42
LBB0_39:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
LBB0_40:
	mov	w22, #-1
	b	LBB0_42
LBB0_41:
	mov	x22, x0
LBB0_42:
	mov	x0, x19
	bl	_av_free
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<P"

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

l_.str.2:                               ; @.str.2
	.asciz	">"

l_.str.3:                               ; @.str.3
	.asciz	"ID=Source"

l_.str.4:                               ; @.str.4
	.asciz	"ID=\"Source\""

l_.str.5:                               ; @.str.5
	.asciz	"&nbsp;"

l_.str.6:                               ; @.str.6
	.asciz	"<BR"

l_.str.7:                               ; @.str.7
	.asciz	"{\\i1}%s{\\i0}\\N"

l_.str.8:                               ; @.str.8
	.asciz	"%s"

	.no_dead_strip	_sami_paragraph_to_ass
.subsections_via_symbols
