	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwdownload_filter_frame
_hwdownload_filter_frame:               ## @hwdownload_filter_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	%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	%rsi, -64(%rbp)
	movq	8(%rdi), %r13
	movq	(%r13), %rax
	movq	8(%r13), %rbx
	movq	(%rax), %r12
	movq	$0, -56(%rbp)
	cmpl	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	(%rbx), %rcx
	cmpq	%rcx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_12:
	movl	%eax, %r14d
LBB0_13:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	movq	%r12, %rdi
	callq	_ff_get_video_buffer
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_av_hwframe_transfer_data
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	4(%r12), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, 4(%rdi)
	movl	(%r12), %eax
	movl	%eax, (%rdi)
	movq	%r15, %rsi
	callq	_av_frame_copy_props
	testl	%eax, %eax
	js	LBB0_12
## %bb.15:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	(%r13), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_filter_frame
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input frames must have hardware context.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Input frame is not the in the configured hwframe context.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Failed to download frame: %d.\n"

	.no_dead_strip	_hwdownload_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwdownload_filter_frame
_hwdownload_filter_frame:               ; @hwdownload_filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	x1, [sp, #24]
	ldr	x24, [x0, #8]
	ldp	x8, x19, [x24]
	ldr	x22, [x8]
	str	xzr, [sp, #16]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	x9, [x1, #8]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_av_log
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_7:
	mov	x21, x0
LBB0_8:
	add	x0, sp, #24
	bl	_av_frame_free
	add	x0, sp, #16
	bl	_av_frame_free
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldp	w2, w1, [x8]
	mov	x0, x22
	bl	_ff_get_video_buffer
	str	x0, [sp, #16]
	cbz	x0, LBB0_14
; %bb.11:
	mov	x23, x0
	mov	x1, x20
	mov	w2, #0
	bl	_av_hwframe_transfer_data
	tbnz	w0, #31, LBB0_15
; %bb.12:
	ldr	d0, [x22]
	str	d0, [x23]
	mov	x0, x23
	mov	x1, x20
	bl	_av_frame_copy_props
	tbnz	w0, #31, LBB0_7
; %bb.13:
	add	x0, sp, #24
	bl	_av_frame_free
	ldr	x8, [x24]
	ldr	x0, [x8]
	mov	x1, x23
	bl	_ff_filter_frame
	mov	x21, x0
	b	LBB0_9
LBB0_14:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_15:
	mov	x21, x0
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input frames must have hardware context.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Input frame is not the in the configured hwframe context.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Failed to download frame: %d.\n"

	.no_dead_strip	_hwdownload_filter_frame
.subsections_via_symbols
