	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function my_ass_subtitle_header
_my_ass_subtitle_header:                ## @my_ass_subtitle_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_ff_ass_subtitle_header_default
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	(%r14), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	%eax, %esi
	subl	%ebx, %esi
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdx
	movq	%rax, %r8
	callq	_av_asprintf
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_av_free
	movq	%rbx, (%r14)
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n[Events]\r\n"

	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
L_.str.1:                               ## @.str.1
	.asciz	"%.*s%s%s"

L_.str.2:                               ## @.str.2
	.asciz	"Style: Teletext,Monospace,11,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,160,100,0,0,3,0.1,0,5,1,1,1,0\r\nStyle: Subtitle,Monospace,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,100,100,0,0,1,1,1,8,48,48,20,0\r\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_my_ass_subtitle_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function my_ass_subtitle_header
_my_ass_subtitle_header:                ; @my_ass_subtitle_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ff_ass_subtitle_header_default
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x20, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_4
; %bb.2:
	mov	x4, x0
	sub	w1, w4, w20
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_av_asprintf
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	x0, [x19]
	bl	_av_free
	str	x20, [x19]
	mov	x0, x20
	bl	_strlen
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n[Events]\r\n"

	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
l_.str.1:                               ; @.str.1
	.asciz	"%.*s%s%s"

l_.str.2:                               ; @.str.2
	.asciz	"Style: Teletext,Monospace,11,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,160,100,0,0,3,0.1,0,5,1,1,1,0\r\nStyle: Subtitle,Monospace,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,100,100,0,0,1,1,1,8,48,48,20,0\r\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_my_ass_subtitle_header
.subsections_via_symbols
