	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_framesync_get_frame         ## -- Begin function ff_framesync_get_frame
	.p2align	4, 0x90
_ff_framesync_get_frame:                ## @ff_framesync_get_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	16(%rdi), %rax
	movl	%esi, %edx
	movq	%rdx, %rsi
	shlq	$5, %rsi
	movq	8(%rax,%rsi), %r12
	testq	%r12, %r12
	je	LBB0_4
## %bb.1:
	movq	%r12, -40(%rbp)
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.2:
	movq	%rdi, %r15
	cmpq	$0, 16(%rax,%rsi)
	jne	LBB0_5
## %bb.3:
	movq	_INT64_MAX@GOTPCREL(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	movq	$0, (%r14)
	jmp	LBB0_19
LBB0_5:
	leaq	(%rax,%rsi), %rdi
LBB0_6:
	movl	(%r15), %ecx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.7:
	movq	(%rdi), %r8
	leaq	24(%rax), %rbx
	xorl	%edi, %edi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%rdi
	addq	$32, %rbx
	cmpq	%rcx, %rdi
	jae	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, %rdx
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, -8(%rbx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r8, -24(%rbx)
	jge	LBB0_8
LBB0_13:
	movq	%r12, %rdi
	callq	_av_frame_clone
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_av_frame_make_writable
	testl	%eax, %eax
	jns	LBB0_17
## %bb.15:
	movl	%eax, %ebx
	leaq	-40(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_20
LBB0_16:
	addq	%rsi, %rax
	addq	$8, %rax
	movq	$0, (%rax)
	movq	-40(%rbp), %r12
LBB0_17:
	movq	$0, 8(%r15)
LBB0_18:
	movq	%r12, (%r14)
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_framesync_get_frame         ; -- Begin function ff_framesync_get_frame
	.p2align	2
_ff_framesync_get_frame:                ; @ff_framesync_get_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x13, [x0, #16]
	mov	w9, w1
	add	x8, x13, x9, lsl #5
	ldr	x21, [x8, #8]!
	cbz	x21, LBB0_12
; %bb.1:
	str	x21, [sp, #8]
	cbz	w3, LBB0_15
; %bb.2:
	mov	x20, x0
	add	x10, x13, x9, lsl #5
	ldr	x11, [x10, #16]
Lloh0:
	adrp	x12, _INT64_MAX@GOTPAGE
Lloh1:
	ldr	x12, [x12, _INT64_MAX@GOTPAGEOFF]
	cmp	x11, #0
	csel	x12, x12, x10, eq
	ldr	w10, [x0]
	cbz	w10, LBB0_13
; %bb.3:
	mov	x11, #0
	ldr	x12, [x12]
	add	x13, x13, #24
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, #1
	add	x13, x13, #32
	cmp	x11, x10
	b.hs	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x11
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x14, [x13]
	cbz	x14, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x14, [x13, #-8]
	cbz	x14, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x14, [x13, #-24]
	cmp	x14, x12
	b.ge	LBB0_4
LBB0_9:
	mov	x0, x21
	bl	_av_frame_clone
	str	x0, [sp, #8]
	cbz	x0, LBB0_17
; %bb.10:
	mov	x21, x0
	bl	_av_frame_make_writable
	tbz	w0, #31, LBB0_14
; %bb.11:
	mov	x22, x0
	add	x0, sp, #8
	bl	_av_frame_free
	b	LBB0_16
LBB0_12:
	mov	w22, #0
	str	xzr, [x19]
	b	LBB0_16
LBB0_13:
	str	xzr, [x8]
	ldr	x21, [sp, #8]
LBB0_14:
	str	xzr, [x20, #8]
LBB0_15:
	mov	w22, #0
	str	x21, [x19]
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_17:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
