	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libaribb24_generate_ass_header
_libaribb24_generate_ass_header:        ## @libaribb24_generate_ass_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rdi), %edi
	cmpl	$129, %edi
	je	LBB0_1
## %bb.2:
	cmpl	$128, %edi
	jne	LBB0_11
## %bb.3:
	movl	$180, -48(%rbp)                 ## 4-byte Folded Spill
	movl	$320, -44(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x140
	jmp	LBB0_4
LBB0_1:
	movl	$540, -48(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x21C
	movl	$960, -44(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x3C0
LBB0_4:
	callq	_get_profile_font_size
	movl	%eax, %r9d
	movq	_AV_CODEC_FLAG_BITEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_LIBAVCODEC_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r9d, %ebx
	callq	_AV_STRINGIFY
	movl	%ebx, %r9d
	movq	%rax, %rsi
LBB0_7:
	movq	_ASS_DEFAULT_FONT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ASS_DEFAULT_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_ASS_DEFAULT_BACK_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_ASS_DEFAULT_BOLD@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movq	_ASS_DEFAULT_ITALIC@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	xorl	%r14d, %r14d
	movq	_ASS_DEFAULT_UNDERLINE@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r14d
	movq	_ASS_DEFAULT_BORDERSTYLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	_ASS_DEFAULT_ALIGNMENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	pushq	%r12
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	pushq	%r11
	pushq	%r11
	pushq	%r10
	pushq	%r10
	callq	_av_asprintf
	addq	$80, %rsp
	movl	%eax, 8(%r13)
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movl	%eax, %edi
	callq	_strlen
	movl	%eax, 12(%r13)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown or unsupported profile set!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"[Script Info]\r\n; Script generated by FFmpeg/Lavc%s\r\nScriptType: v4.00+\r\nPlayResX: %d\r\nPlayResY: %d\r\n\r\n[V4+ Styles]\r\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\r\nStyle: Default,%s,%d,&H%x,&H%x,&H%x,&H%x,%d,%d,%d,0,100,100,0,0,%d,1,0,%d,10,10,10,0\r\n\r\n[Events]\r\nFormat: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\r\n"

	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ## @AV_CODEC_FLAG_BITEXACT
	.comm	_LIBAVCODEC_VERSION,4,2         ## @LIBAVCODEC_VERSION
L_.str.2:                               ## @.str.2
	.space	1

	.comm	_ASS_DEFAULT_FONT,4,2           ## @ASS_DEFAULT_FONT
	.comm	_ASS_DEFAULT_COLOR,4,2          ## @ASS_DEFAULT_COLOR
	.comm	_ASS_DEFAULT_BACK_COLOR,4,2     ## @ASS_DEFAULT_BACK_COLOR
	.comm	_ASS_DEFAULT_BOLD,4,2           ## @ASS_DEFAULT_BOLD
	.comm	_ASS_DEFAULT_ITALIC,4,2         ## @ASS_DEFAULT_ITALIC
	.comm	_ASS_DEFAULT_UNDERLINE,4,2      ## @ASS_DEFAULT_UNDERLINE
	.comm	_ASS_DEFAULT_BORDERSTYLE,4,2    ## @ASS_DEFAULT_BORDERSTYLE
	.comm	_ASS_DEFAULT_ALIGNMENT,4,2      ## @ASS_DEFAULT_ALIGNMENT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_libaribb24_generate_ass_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libaribb24_generate_ass_header
_libaribb24_generate_ass_header:        ; @libaribb24_generate_ass_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0]
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_6
; %bb.2:
	mov	w20, #180
	mov	w21, #320
	b	LBB0_4
LBB0_3:
	mov	w20, #540
	mov	w21, #960
LBB0_4:
	bl	_get_profile_font_size
	mov	x22, x0
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x8, _LIBAVCODEC_VERSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LIBAVCODEC_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_AV_STRINGIFY
	mov	x1, x0
LBB0_8:
Lloh15:
	adrp	x8, _ASS_DEFAULT_FONT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ASS_DEFAULT_FONT@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _ASS_DEFAULT_COLOR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ASS_DEFAULT_COLOR@GOTPAGEOFF]
Lloh20:
	ldr	w6, [x8]
Lloh21:
	adrp	x8, _ASS_DEFAULT_BACK_COLOR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ASS_DEFAULT_BACK_COLOR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _ASS_DEFAULT_BOLD@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ASS_DEFAULT_BOLD@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	neg	w9, w9
Lloh27:
	adrp	x10, _ASS_DEFAULT_ITALIC@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ASS_DEFAULT_ITALIC@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	neg	w10, w10
Lloh30:
	adrp	x11, _ASS_DEFAULT_UNDERLINE@GOTPAGE
Lloh31:
	ldr	x11, [x11, _ASS_DEFAULT_UNDERLINE@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	neg	w11, w11
Lloh33:
	adrp	x12, _ASS_DEFAULT_BORDERSTYLE@GOTPAGE
Lloh34:
	ldr	x12, [x12, _ASS_DEFAULT_BORDERSTYLE@GOTPAGEOFF]
Lloh35:
	ldr	w12, [x12]
Lloh36:
	adrp	x13, _ASS_DEFAULT_ALIGNMENT@GOTPAGE
Lloh37:
	ldr	x13, [x13, _ASS_DEFAULT_ALIGNMENT@GOTPAGEOFF]
Lloh38:
	ldr	w13, [x13]
	stp	w12, w13, [sp, #20]
	stp	w10, w11, [sp, #12]
	stp	w8, w9, [sp, #4]
Lloh39:
	adrp	x0, l_.str.1@PAGE
Lloh40:
	add	x0, x0, l_.str.1@PAGEOFF
	str	w8, [sp]
	mov	x2, x21
	mov	x3, x20
	mov	x5, x22
	mov	x7, x6
	bl	_av_asprintf
	str	w0, [x19, #8]
	cbz	w0, LBB0_10
; %bb.9:
	bl	_strlen
	str	w0, [x19, #12]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown or unsupported profile set!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"[Script Info]\r\n; Script generated by FFmpeg/Lavc%s\r\nScriptType: v4.00+\r\nPlayResX: %d\r\nPlayResY: %d\r\n\r\n[V4+ Styles]\r\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\r\nStyle: Default,%s,%d,&H%x,&H%x,&H%x,&H%x,%d,%d,%d,0,100,100,0,0,%d,1,0,%d,10,10,10,0\r\n\r\n[Events]\r\nFormat: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\r\n"

	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ; @AV_CODEC_FLAG_BITEXACT
	.comm	_LIBAVCODEC_VERSION,4,2         ; @LIBAVCODEC_VERSION
l_.str.2:                               ; @.str.2
	.space	1

	.comm	_ASS_DEFAULT_FONT,4,2           ; @ASS_DEFAULT_FONT
	.comm	_ASS_DEFAULT_COLOR,4,2          ; @ASS_DEFAULT_COLOR
	.comm	_ASS_DEFAULT_BACK_COLOR,4,2     ; @ASS_DEFAULT_BACK_COLOR
	.comm	_ASS_DEFAULT_BOLD,4,2           ; @ASS_DEFAULT_BOLD
	.comm	_ASS_DEFAULT_ITALIC,4,2         ; @ASS_DEFAULT_ITALIC
	.comm	_ASS_DEFAULT_UNDERLINE,4,2      ; @ASS_DEFAULT_UNDERLINE
	.comm	_ASS_DEFAULT_BORDERSTYLE,4,2    ; @ASS_DEFAULT_BORDERSTYLE
	.comm	_ASS_DEFAULT_ALIGNMENT,4,2      ; @ASS_DEFAULT_ALIGNMENT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_libaribb24_generate_ass_header
.subsections_via_symbols
