	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ass_add_rect                ## -- Begin function ff_ass_add_rect
	.p2align	4, 0x90
_ff_ass_add_rect:                       ## @ff_ass_add_rect
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movl	(%rbx), %esi
	incl	%esi
	movl	$8, %edx
	callq	_av_realloc_array
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	%rax, 8(%rbx)
	movl	$16, %edi
	callq	_av_mallocz
	movslq	(%rbx), %rcx
	movq	%rax, (%r14,%rcx,8)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_SUBTITLE_ASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movl	%r15d, %edi
	movl	%r13d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r8
	callq	_ff_ass_get_dialog
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movslq	(%rbx), %rcx
	movq	(%r14,%rcx,8), %rdx
	movq	%rax, (%rdx)
	leal	1(%rcx), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ass_add_rect                ; -- Begin function ff_ass_add_rect
	.p2align	2
_ff_ass_add_rect:                       ; @ff_ass_add_rect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x25, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	w8, [x19]
	add	w1, w8, #1
	mov	w2, #8
	bl	_av_realloc_array
	cbz	x0, LBB0_4
; %bb.1:
	mov	x24, x0
	str	x0, [x19, #8]
	mov	w0, #16
	bl	_av_mallocz
	ldrsw	x8, [x19]
	str	x0, [x24, x8, lsl #3]
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _SUBTITLE_ASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUBTITLE_ASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	mov	x0, x25
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	bl	_ff_ass_get_dialog
	cbz	x0, LBB0_4
; %bb.3:
	ldrsw	x8, [x19]
	ldr	x9, [x24, x8, lsl #3]
	str	x0, [x9]
	add	w8, w8, #1
	str	w8, [x19]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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
.subsections_via_symbols
