	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_frame
_process_frame:                         ## @process_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r15
	movq	(%rax), %rbx
	movq	$0, -48(%rbp)
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ff_get_video_buffer
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %rax
	movq	24(%rax), %r14
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	movq	_MFX_PICSTRUCT_PROGRESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	-48(%rbp), %r12
	movq	_MFX_WRN_DEVICE_BUSY@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rax, %rbx
	jne	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_MFXVideoVPP_RunFrameVPPAsync
	movq	%rax, %rbx
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_av_usleep
	movq	(%r15), %rax
	jmp	LBB0_7
LBB0_8:
	movq	_MFX_ERR_MORE_DATA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_10
## %bb.9:
	leaq	-72(%rbp), %rdi
	callq	_av_frame_free
	movq	_QSVDEINT_MORE_INPUT@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %r12d
	jmp	LBB0_31
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_2:
	movl	%eax, %r12d
	jmp	LBB0_3
LBB0_10:
	testq	%rbx, %rbx
	js	LBB0_11
## %bb.14:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.15:
	movq	_MFX_ERR_MORE_SURFACE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_16
LBB0_11:
	movq	_MFX_ERR_MORE_SURFACE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_21
## %bb.12:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.13:
	movq	%rbx, %r14
LBB0_16:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %edi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_MFXVideoCORE_SyncOperation
	movq	_MFX_WRN_IN_EXECUTION@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rsi
	movl	8(%r12), %edi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_MFXVideoCORE_SyncOperation
	cmpq	(%r15), %rax
	je	LBB0_17
LBB0_19:
	testq	%rax, %rax
	js	LBB0_20
## %bb.23:
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_av_frame_copy_props
	testl	%eax, %eax
	js	LBB0_2
## %bb.24:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	8(%r15), %eax
	movl	%eax, 20(%r13)
	movl	4(%r15), %eax
	movl	%eax, 16(%r13)
	movq	$0, 8(%r13)
	movq	(%r13), %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_av_rescale_q
	movq	%rax, (%r13)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	incq	%rax
	movq	%rax, (%r13)
LBB0_26:
	movq	%rax, (%rcx)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ff_filter_frame
	testl	%eax, %eax
	js	LBB0_27
## %bb.28:
	xorl	%r12d, %r12d
	cmpq	%r14, %rbx
	jne	LBB0_31
## %bb.29:
	movq	_QSVDEINT_MORE_OUTPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	jmp	LBB0_22
LBB0_20:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rcx
LBB0_22:
	callq	_av_log
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_3:
	leaq	-72(%rbp), %rdi
	callq	_av_frame_free
LBB0_31:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movl	%eax, %r12d
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MFX_PICSTRUCT_PROGRESSIVE,4,2  ## @MFX_PICSTRUCT_PROGRESSIVE
	.comm	_MFX_WRN_DEVICE_BUSY,8,3        ## @MFX_WRN_DEVICE_BUSY
	.comm	_MFX_ERR_MORE_DATA,8,3          ## @MFX_ERR_MORE_DATA
	.comm	_QSVDEINT_MORE_INPUT,4,2        ## @QSVDEINT_MORE_INPUT
	.comm	_MFX_ERR_MORE_SURFACE,8,3       ## @MFX_ERR_MORE_SURFACE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error during deinterlacing: %d\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.comm	_MFX_WRN_IN_EXECUTION,8,3       ## @MFX_WRN_IN_EXECUTION
L_.str.1:                               ## @.str.1
	.asciz	"Error synchronizing the operation: %d\n"

	.comm	_QSVDEINT_MORE_OUTPUT,4,2       ## @QSVDEINT_MORE_OUTPUT
	.no_dead_strip	_process_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_frame
_process_frame:                         ; @process_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	x24, x2
	mov	x23, x1
	mov	x21, x0
	ldp	x8, x26, [x0, #8]
	ldr	x9, [x0]
	ldr	x27, [x8]
	ldr	x19, [x9]
	str	xzr, [sp]
	ldp	w2, w1, [x19, #4]
	mov	x0, x19
	bl	_ff_get_video_buffer
	str	x0, [sp, #8]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x25, [x8, #24]
	ldur	d0, [x19, #4]
	stur	d0, [x25, #4]
Lloh0:
	adrp	x8, _MFX_PICSTRUCT_PROGRESSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MFX_PICSTRUCT_PROGRESSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x25]
Lloh3:
	adrp	x28, _MFX_WRN_DEVICE_BUSY@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MFX_WRN_DEVICE_BUSY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x22, x8
	b.ne	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26, #8]
	mov	x4, sp
	mov	x1, x24
	mov	x2, x25
	mov	x3, #0
	bl	_MFXVideoVPP_RunFrameVPPAsync
	mov	x22, x0
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_av_usleep
	ldr	x8, [x28]
	b	LBB0_2
LBB0_5:
Lloh5:
	adrp	x8, _MFX_ERR_MORE_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MFX_ERR_MORE_DATA@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_9
; %bb.6:
	add	x0, sp, #8
	bl	_av_frame_free
Lloh8:
	adrp	x8, _QSVDEINT_MORE_INPUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QSVDEINT_MORE_INPUT@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	b	LBB0_27
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_8:
	mov	x21, x0
	b	LBB0_26
LBB0_9:
	tbnz	x22, #63, LBB0_12
; %bb.10:
	ldr	x1, [sp]
	cbz	x1, LBB0_13
; %bb.11:
Lloh14:
	adrp	x8, _MFX_ERR_MORE_SURFACE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MFX_ERR_MORE_SURFACE@GOTPAGEOFF]
Lloh16:
	ldr	x24, [x8]
	b	LBB0_15
LBB0_12:
Lloh17:
	adrp	x8, _MFX_ERR_MORE_SURFACE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MFX_ERR_MORE_SURFACE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x1, [sp]
	cmp	x22, x8
	ccmp	x1, #0, #4, eq
	b.ne	LBB0_14
LBB0_13:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x22
	b	LBB0_25
LBB0_14:
	mov	x24, x22
LBB0_15:
	ldr	w0, [x26, #8]
	mov	w2, #1000
	bl	_MFXVideoCORE_SyncOperation
	mov	x3, x0
Lloh25:
	adrp	x25, _MFX_WRN_IN_EXECUTION@GOTPAGE
Lloh26:
	ldr	x25, [x25, _MFX_WRN_IN_EXECUTION@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [sp]
	ldr	w0, [x26, #8]
	mov	w2, #1000
	bl	_MFXVideoCORE_SyncOperation
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.17:
	mov	x3, x0
LBB0_18:
	tbnz	x3, #63, LBB0_24
; %bb.19:
	mov	x0, x20
	mov	x1, x23
	bl	_av_frame_copy_props
	tbnz	w0, #31, LBB0_8
; %bb.20:
	ldur	d0, [x19, #4]
	str	d0, [x20, #16]
	str	xzr, [x20, #8]
	ldr	x0, [x20]
	ldr	w1, [x27]
	ldr	w2, [x19]
	bl	_av_rescale_q
	str	x0, [x20]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.21:
	add	x0, x0, #1
	str	x0, [x20]
LBB0_22:
	str	x0, [x26]
	mov	x0, x19
	mov	x1, x20
	bl	_ff_filter_frame
	tbnz	w0, #31, LBB0_28
; %bb.23:
Lloh27:
	adrp	x8, _QSVDEINT_MORE_OUTPUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _QSVDEINT_MORE_OUTPUT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	x22, x24
	csel	w21, w8, wzr, eq
	b	LBB0_27
LBB0_24:
Lloh30:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str.1@PAGE
Lloh34:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
LBB0_25:
	bl	_av_log
Lloh35:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
LBB0_26:
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_27:
	mov	x0, x21
	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
LBB0_28:
	mov	x21, x0
	b	LBB0_27
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MFX_PICSTRUCT_PROGRESSIVE,4,2  ; @MFX_PICSTRUCT_PROGRESSIVE
	.comm	_MFX_WRN_DEVICE_BUSY,8,3        ; @MFX_WRN_DEVICE_BUSY
	.comm	_MFX_ERR_MORE_DATA,8,3          ; @MFX_ERR_MORE_DATA
	.comm	_QSVDEINT_MORE_INPUT,4,2        ; @QSVDEINT_MORE_INPUT
	.comm	_MFX_ERR_MORE_SURFACE,8,3       ; @MFX_ERR_MORE_SURFACE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error during deinterlacing: %d\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.comm	_MFX_WRN_IN_EXECUTION,8,3       ; @MFX_WRN_IN_EXECUTION
l_.str.1:                               ; @.str.1
	.asciz	"Error synchronizing the operation: %d\n"

	.comm	_QSVDEINT_MORE_OUTPUT,4,2       ; @QSVDEINT_MORE_OUTPUT
	.no_dead_strip	_process_frame
.subsections_via_symbols
