	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_inlink_make_frame_writable  ## -- Begin function ff_inlink_make_frame_writable
	.p2align	4, 0x90
_ff_inlink_make_frame_writable:         ## @ff_inlink_make_frame_writable
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rsi), %rbx
	movq	%rbx, -64(%rbp)
	movq	%rbx, %rdi
	callq	_av_frame_is_writable
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_17:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	12(%r13), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movl	(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.3:
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	movq	%r13, %rdi
	callq	_ff_get_video_buffer
	jmp	LBB0_7
LBB0_6:
	movl	8(%rbx), %esi
	movq	%r13, %rdi
	callq	_ff_get_audio_buffer
LBB0_7:
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$128, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_15
## %bb.13:
	movq	32(%r12), %rdi
	movl	24(%r12), %esi
	movq	32(%rbx), %rdx
	movl	24(%rbx), %ecx
	movl	20(%rbx), %r9d
	movl	(%rbx), %r8d
	movl	16(%rbx), %eax
	movl	%eax, (%rsp)
	callq	_av_image_copy
	jmp	LBB0_16
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	movl	%eax, %r12d
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movl	%r12d, %r14d
	jmp	LBB0_17
LBB0_14:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	12(%r12), %edi
	movl	12(%rbx), %esi
	movl	8(%rbx), %r8d
	movl	(%rbx), %eax
	movl	4(%rbx), %r9d
	movl	%eax, (%rsp)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_samples_copy
	jmp	LBB0_16
LBB0_15:
	xorl	%edi, %edi
	callq	_av_assert0
LBB0_16:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	%r12, (%r15)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Copying data in avfilter.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.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_inlink_make_frame_writable  ; -- Begin function ff_inlink_make_frame_writable
	.p2align	2
_ff_inlink_make_frame_writable:         ; @ff_inlink_make_frame_writable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x22, x0
	ldr	x20, [x1]
	str	x20, [sp, #8]
	mov	x0, x20
	bl	_av_frame_is_writable
	cbz	x0, LBB0_3
; %bb.1:
	mov	w23, #0
LBB0_2:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
LBB0_3:
	ldr	w0, [x22, #12]
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	w8, [x22]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.5:
	ldp	w2, w1, [x22, #4]
	mov	x0, x22
	bl	_ff_get_video_buffer
	b	LBB0_7
LBB0_6:
	ldr	w1, [x20, #8]
	mov	x0, x22
	bl	_ff_get_audio_buffer
LBB0_7:
	mov	x21, x0
	str	x0, [sp]
	cbz	x0, LBB0_13
; %bb.8:
	mov	x0, x21
	mov	x1, x20
	bl	_av_frame_copy_props
	tbnz	w0, #31, LBB0_15
; %bb.9:
	ldr	w8, [x22]
	cmp	w8, #129
	b.eq	LBB0_16
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_17
; %bb.11:
	ldr	x0, [x21, #32]
	ldr	w1, [x21, #24]
	ldr	x2, [x20, #32]
	ldp	w5, w3, [x20, #20]
	ldr	w4, [x20]
	ldr	w6, [x20, #16]
	bl	_av_image_copy
	b	LBB0_18
LBB0_12:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	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
	add	sp, sp, #80
	b	_AVERROR
LBB0_15:
	mov	x23, x0
	mov	x0, sp
	bl	_av_frame_free
	b	LBB0_2
LBB0_16:
	ldr	w0, [x21, #12]
	ldp	w4, w1, [x20, #8]
	ldp	w6, w5, [x20]
	mov	w2, #0
	mov	w3, #0
	bl	_av_samples_copy
	b	LBB0_18
LBB0_17:
	mov	w0, #0
	bl	_av_assert0
LBB0_18:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	w23, #0
	str	x21, [x19]
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Copying data in avfilter.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
