	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ass_decode_frame
_ass_decode_frame:                      ## @ass_decode_frame
	.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	(%rcx), %rax
	testq	%rax, %rax
	jle	LBB0_5
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	$8, %edi
	callq	_av_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	$8, %edi
	callq	_av_mallocz
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	$1, (%rbx)
	movq	_SUBTITLE_ASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	8(%r15), %edi
	callq	_av_strdup
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	$1, (%r14)
	movl	(%r15), %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SUBTITLE_ASS,4,2               ## @SUBTITLE_ASS
	.no_dead_strip	_ass_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ass_decode_frame
_ass_decode_frame:                      ; @ass_decode_frame
	.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
	ldr	x0, [x3]
	cmp	x0, #0
	b.le	LBB0_5
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	w0, #8
	bl	_av_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_6
; %bb.2:
	mov	w0, #8
	bl	_av_mallocz
	ldr	x8, [x21, #8]
	str	x0, [x8]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	w22, #1
	str	w22, [x21]
Lloh0:
	adrp	x9, _SUBTITLE_ASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUBTITLE_ASS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, #4]
	ldr	w0, [x19, #8]
	bl	_av_strdup
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	str	w0, [x8]
	cbz	w0, LBB0_6
; %bb.4:
	str	w22, [x20]
	ldr	w0, [x19]
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	ret
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SUBTITLE_ASS,4,2               ; @SUBTITLE_ASS
	.no_dead_strip	_ass_decode_frame
.subsections_via_symbols
