	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srt_to_ass
_srt_to_ass:                            ## @srt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	%r8d, %eax
	orl	%ecx, %eax
	js	LBB0_8
## %bb.1:
	movl	16(%rbp), %eax
	movl	%eax, %edx
	orl	%r9d, %edx
	js	LBB0_6
## %bb.2:
	movl	%r9d, %edx
	xorl	%ecx, %edx
	movl	%eax, %esi
	xorl	%r8d, %esi
	orl	%edx, %esi
	sete	%dl
	subl	%r8d, %eax
	jl	LBB0_6
## %bb.3:
	subl	%ecx, %r9d
	jl	LBB0_6
## %bb.4:
	testb	%dl, %dl
	jne	LBB0_6
## %bb.5:
	movl	%r9d, %edi
	shrl	$31, %edi
	addl	%r9d, %edi
	sarl	%edi
	addl	%ecx, %edi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movq	_ASS_DEFAULT_PLAYRESX@GOTPCREL(%rip), %rax
	imull	(%rax), %edi
	addl	%r8d, %edx
	movq	_ASS_DEFAULT_PLAYRESY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%edi, %ecx
	jmp	LBB0_7
LBB0_6:
	movq	_ASS_DEFAULT_PLAYRESX@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	movq	_ASS_DEFAULT_PLAYRESY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	imull	%edx, %r8d
	movslq	%ecx, %rdx
	imulq	$-1240768329, %rdx, %rax        ## imm = 0xB60B60B7
	shrq	$32, %rax
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	sarl	$9, %edx
	addl	%eax, %edx
	movslq	%r8d, %rcx
	imulq	$-2004318071, %rcx, %rax        ## imm = 0x88888889
	shrq	$32, %rax
	addl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	sarl	$8, %ecx
	addl	%eax, %ecx
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_av_bprintf
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_htmlmarkup_to_ass           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ASS_DEFAULT_PLAYRESX,8,3       ## @ASS_DEFAULT_PLAYRESX
	.comm	_ASS_DEFAULT_PLAYRESY,8,3       ## @ASS_DEFAULT_PLAYRESY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{\\an5}{\\pos(%d,%d)}"

L_.str.1:                               ## @.str.1
	.asciz	"{\\an1}{\\pos(%d,%d)}"

	.no_dead_strip	_srt_to_ass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srt_to_ass
_srt_to_ass:                            ; @srt_to_ass
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x1
	mov	x21, x0
	orr	w8, w4, w3
	tbnz	w8, #31, LBB0_8
; %bb.1:
	orr	w8, w6, w5
	tbnz	w8, #31, LBB0_6
; %bb.2:
	cmp	w5, w3
	cset	w9, eq
	subs	w8, w6, w4
	cset	w11, eq
	b.lt	LBB0_6
; %bb.3:
	subs	w10, w5, w3
	b.lt	LBB0_6
; %bb.4:
	and	w9, w9, w11
	tbnz	w9, #0, LBB0_6
; %bb.5:
	cmp	w10, #0
	cinc	w9, w10, lt
	add	w9, w3, w9, asr #1
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w8, w4, w8, asr #1
Lloh0:
	adrp	x10, _ASS_DEFAULT_PLAYRESX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ASS_DEFAULT_PLAYRESX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mul	w9, w9, w10
Lloh3:
	adrp	x10, _ASS_DEFAULT_PLAYRESY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ASS_DEFAULT_PLAYRESY@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x10]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ASS_DEFAULT_PLAYRESX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASS_DEFAULT_PLAYRESX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mul	w9, w8, w3
Lloh11:
	adrp	x8, _ASS_DEFAULT_PLAYRESY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ASS_DEFAULT_PLAYRESY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	w10, #24759
	movk	w10, #46603, lsl #16
	smull	x10, w9, w10
	lsr	x10, x10, #32
	add	w9, w10, w9
	asr	w10, w9, #9
	add	w2, w10, w9, lsr #31
	mul	w8, w8, w4
	mov	w9, #34953
	movk	w9, #34952, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #8
	add	w3, w9, w8, lsr #31
	mov	x0, x20
	bl	_av_bprintf
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ff_htmlmarkup_to_ass
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ASS_DEFAULT_PLAYRESX,8,3       ; @ASS_DEFAULT_PLAYRESX
	.comm	_ASS_DEFAULT_PLAYRESY,8,3       ; @ASS_DEFAULT_PLAYRESY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{\\an5}{\\pos(%d,%d)}"

l_.str.1:                               ; @.str.1
	.asciz	"{\\an1}{\\pos(%d,%d)}"

	.no_dead_strip	_srt_to_ass
.subsections_via_symbols
