	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_qsvvpp_filter_frame         ## -- Begin function ff_qsvvpp_filter_frame
	.p2align	4, 0x90
_ff_qsvvpp_filter_frame:                ## @ff_qsvvpp_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, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %r15
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_submit_frame
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_MFX_WRN_DEVICE_BUSY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_query_frame
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%eax, %r14d
	jne	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rbx), %edi
	movq	8(%r12), %rsi
	movq	8(%r15), %rdx
	xorl	%ecx, %ecx
	leaq	-52(%rbp), %r8
	callq	_MFXVideoVPP_RunFrameVPPAsync
	movl	%eax, %r14d
	movl	(%r13), %eax
	cmpl	%eax, %r14d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_av_usleep
	movl	(%r13), %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	jns	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MFX_ERR_MORE_SURFACE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %edi
	movl	-52(%rbp), %esi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_MFXVideoCORE_SyncOperation
	testq	%rax, %rax
	jns	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	_default_tb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	callq	_av_rescale_q
	movq	(%r15), %rsi
	movl	%eax, (%rsi)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rbx)
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%r15)
	movq	_MFX_ERR_MORE_SURFACE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_2
	jmp	LBB0_17
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_FF_INLINK_IDX
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	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
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_MFX_ERR_MORE_DATA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_17
## %bb.10:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_17
LBB0_15:
	movq	%r15, %rdi
	movl	%eax, %r14d
	callq	_av_frame_free
LBB0_17:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to submit frame on input[%d]\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to query an output frame.\n"

	.comm	_MFX_WRN_DEVICE_BUSY,4,2        ## @MFX_WRN_DEVICE_BUSY
	.comm	_MFX_ERR_MORE_SURFACE,4,2       ## @MFX_ERR_MORE_SURFACE
	.comm	_MFX_ERR_MORE_DATA,4,2          ## @MFX_ERR_MORE_DATA
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"Sync failed.\n"

	.comm	_default_tb,4,2                 ## @default_tb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_qsvvpp_filter_frame         ; -- Begin function ff_qsvvpp_filter_frame
	.p2align	2
_ff_qsvvpp_filter_frame:                ; @ff_qsvvpp_filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x20, x0
	ldr	x19, [x1, #8]
	ldr	x8, [x19]
	ldr	x21, [x8]
	bl	_submit_frame
	cbz	x0, LBB0_12
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x27, _MFX_WRN_DEVICE_BUSY@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MFX_WRN_DEVICE_BUSY@GOTPAGEOFF]
Lloh2:
	adrp	x28, _MFX_ERR_MORE_SURFACE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _MFX_ERR_MORE_SURFACE@GOTPAGEOFF]
Lloh4:
	adrp	x23, _default_tb@GOTPAGE
Lloh5:
	ldr	x23, [x23, _default_tb@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, x20
	mov	x1, x21
	bl	_query_frame
	mov	x25, x0
	cbnz	x0, LBB0_4
	b	LBB0_13
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	w24, w8
	b.ne	LBB0_6
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x20, #8]
	ldr	x1, [x22, #8]
	ldr	x2, [x25, #8]
	add	x4, sp, #12
	mov	x3, #0
	bl	_MFXVideoVPP_RunFrameVPPAsync
	mov	x24, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	w0, #500
	bl	_av_usleep
	ldr	w8, [x27]
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbz	w24, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x28]
	cmp	w24, w8
	b.ne	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20, #8]
	ldr	w1, [sp, #12]
	mov	w2, #1000
	bl	_MFXVideoCORE_SyncOperation
	tbz	x0, #63, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25, #8]
	ldr	w0, [x8]
	ldr	w1, [x23]
	ldr	w2, [x21]
	bl	_av_rescale_q
	ldr	x1, [x25]
	str	w0, [x1]
	ldr	x8, [x20]
	mov	x0, x21
	blr	x8
	tbnz	w0, #31, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x25]
	ldr	w8, [x28]
	cmp	w24, w8
	b.eq	LBB0_2
	b	LBB0_18
LBB0_12:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	mov	x0, x23
	bl	_FF_INLINK_IDX
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_av_log
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_13:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh26:
	adrp	x8, _MFX_ERR_MORE_DATA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MFX_ERR_MORE_DATA@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_18
; %bb.15:
Lloh29:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x24, x0
	b	LBB0_18
LBB0_17:
	mov	x26, x0
	mov	x0, x25
	bl	_av_frame_free
	mov	x24, x26
LBB0_18:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to submit frame on input[%d]\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to query an output frame.\n"

	.comm	_MFX_WRN_DEVICE_BUSY,4,2        ; @MFX_WRN_DEVICE_BUSY
	.comm	_MFX_ERR_MORE_SURFACE,4,2       ; @MFX_ERR_MORE_SURFACE
	.comm	_MFX_ERR_MORE_DATA,4,2          ; @MFX_ERR_MORE_DATA
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"Sync failed.\n"

	.comm	_default_tb,4,2                 ; @default_tb
.subsections_via_symbols
