	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_out_session
_init_out_session:                      ## @init_out_session
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	104(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	movq	(%rcx), %r13
	movq	_MFX_MEMTYPE_OPAQUE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	andl	(%rdx), %r12d
	movq	$0, -96(%rbp)
	movl	(%r13), %edi
	leaq	-76(%rbp), %rsi
	callq	_MFXQueryIMPL
	movq	_MFX_ERR_NONE@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	cmpq	%rbx, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	leaq	-44(%rbp), %rsi
	callq	_MFXQueryVersion
	movq	(%r15), %rbx
LBB0_2:
	cmpq	%rbx, %rax
	jne	LBB0_5
## %bb.3:
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_handle_types@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_4
## %bb.6:
	xorl	%r12d, %r12d
	leaq	-96(%rbp), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	(%r15), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdx
	callq	_MFXVideoCORE_GetHandle
	movq	%rax, %rbx
	movq	_MFX_ERR_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
                                        ## implicit-def: $ecx
                                        ## kill: killed $ecx
	cmpq	%rax, %r12
	jl	LBB0_7
	jmp	LBB0_10
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	jmp	LBB0_13
LBB0_4:
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	jmp	LBB0_10
LBB0_8:
	movq	(%r15), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
LBB0_10:
	movq	_MFX_ERR_NONE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	jne	LBB0_11
## %bb.14:
	movl	-76(%rbp), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r14
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdx
	callq	_MFXInit
	cmpq	(%r12), %rax
	jne	LBB0_15
## %bb.16:
	movq	-96(%rbp), %rdx
	testq	%rdx, %rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	movl	(%r14), %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_MFXVideoCORE_SetHandle
	cmpq	(%r12), %rax
	jne	LBB0_45
LBB0_18:
	movl	-44(%rbp), %edi
	movl	$1, %esi
	movl	$25, %edx
	callq	_QSV_RUNTIME_VERSION_ATLEAST
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	(%r13), %edi
	movl	(%r14), %esi
	callq	_MFXJoinSession
	cmpq	(%r12), %rax
	jne	LBB0_45
LBB0_20:
	leaq	-168(%rbp), %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	88(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	24(%rdi), %rdx
	movq	_MFX_EXTBUFF_VPP_DEINTERLACING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 96(%rdi)
	movl	$12, 92(%rdi)
	movl	100(%rdi), %esi
	movl	%esi, 88(%rdi)
	leaq	1(%rcx), %rsi
	movq	%rsi, 16(%rdi)
	movq	%rax, (%rdx,%rcx,8)
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_31
## %bb.21:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %edi
	movl	$8, %esi
	callq	_av_mallocz_array
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	%rax, 80(%r9)
	testq	%rax, %rax
	je	LBB0_47
## %bb.22:
	movl	4(%r13), %r8d
	testl	%r8d, %r8d
	jle	LBB0_30
## %bb.23:
	leaq	-1(%r8), %rsi
	movl	%r8d, %edx
	andl	$3, %edx
	cmpq	$3, %rsi
	jae	LBB0_25
## %bb.24:
	xorl	%esi, %esi
	jmp	LBB0_27
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_12
LBB0_15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_13:
	xorl	%eax, %eax
	callq	_av_log
LBB0_45:
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_46:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	_frame_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -200(%rbp)
	movq	_frame_get_hdl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -196(%rbp)
	movq	_frame_unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -192(%rbp)
	movq	_frame_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -188(%rbp)
	movq	_frame_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -184(%rbp)
	movq	%r15, -176(%rbp)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_47
## %bb.32:
	movl	4(%r13), %esi
	testl	%esi, %esi
	jle	LBB0_35
## %bb.33:
	movq	8(%r13), %rcx
	addq	$24, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %esi
	movl	%esi, (%rax,%rdx,4)
	incq	%rdx
	movslq	4(%r13), %rsi
	addq	$32, %rcx
	cmpq	%rsi, %rdx
	jl	LBB0_34
LBB0_35:
	movl	%esi, 4(%rbx)
	movl	8(%rbx), %edi
	leaq	-200(%rbp), %rsi
	callq	_MFXVideoCORE_SetFrameAllocator
	cmpq	(%r12), %rax
	jne	LBB0_45
## %bb.36:
	movq	_MFX_IOPATTERN_IN_VIDEO_MEMORY@GOTPCREL(%rip), %rax
	movq	_MFX_IOPATTERN_OUT_VIDEO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -168(%rbp)
	movq	16(%rbx), %rax
	movq	%rbx, %r9
	jmp	LBB0_37
LBB0_47:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_46
LBB0_25:
	movl	%r8d, %edi
	andl	$-4, %edi
	movl	$64, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	addq	%rbx, %rcx
	addq	$-64, %rcx
	movq	%rcx, (%rax,%rsi,8)
	movq	80(%r9), %rax
	movq	8(%r13), %rcx
	leaq	-32(%rcx,%rbx), %rcx
	movq	%rcx, 8(%rax,%rsi,8)
	movq	80(%r9), %rax
	movq	8(%r13), %rcx
	addq	%rbx, %rcx
	movq	%rcx, 16(%rax,%rsi,8)
	movq	80(%r9), %rax
	movq	8(%r13), %rcx
	addq	%rbx, %rcx
	addq	$32, %rcx
	movq	%rcx, 24(%rax,%rsi,8)
	addq	$4, %rsi
	movq	80(%r9), %rax
	subq	$-128, %rbx
	cmpq	%rsi, %rdi
	jne	LBB0_26
LBB0_27:
	testq	%rdx, %rdx
	je	LBB0_30
## %bb.28:
	movq	%rsi, %rdi
	shlq	$5, %rdi
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	addq	%rdi, %rcx
	movq	%rcx, (%rax,%rsi,8)
	incq	%rsi
	movq	80(%r9), %rax
	addq	$32, %rdi
	decq	%rdx
	jne	LBB0_29
LBB0_30:
	movl	%r8d, (%r9)
	leaq	40(%r9), %rcx
	movq	%rax, 56(%r9)
	movl	%r8d, 48(%r9)
	movl	(%r13), %eax
	movl	%eax, 52(%r9)
	movl	48(%r9), %eax
	movl	%eax, 64(%r9)
	movl	52(%r9), %eax
	movl	%eax, 68(%r9)
	movq	56(%r9), %rax
	movq	%rax, 72(%r9)
	movq	_MFX_EXTBUFF_OPAQUE_SURFACE_ALLOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r9)
	movl	$40, 40(%r9)
	movq	16(%r9), %rdx
	movq	24(%r9), %rsi
	leaq	1(%rdx), %rax
	movq	%rax, 16(%r9)
	movq	%rcx, (%rsi,%rdx,8)
	movq	_MFX_IOPATTERN_IN_OPAQUE_MEMORY@GOTPCREL(%rip), %rcx
	movq	_MFX_IOPATTERN_OUT_OPAQUE_MEMORY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, -168(%rbp)
LBB0_37:
	movq	24(%r9), %rcx
	movq	%rcx, -104(%rbp)
	movq	%rax, -112(%rbp)
	movl	$1, -164(%rbp)
	leaq	-136(%rbp), %rax
	movq	8(%r13), %rcx
	movq	16(%rcx), %rdx
	movq	%rdx, -120(%rbp)
	movups	(%rcx), %xmm0
	movups	%xmm0, -136(%rbp)
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movl	36(%rcx), %edx
	movl	%edx, -116(%rbp)
	movl	32(%rcx), %edx
	movl	%edx, -120(%rbp)
	movq	24(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_39
## %bb.38:
	addq	$16, %rcx
	jmp	LBB0_40
LBB0_39:
	movq	8(%rcx), %rdx
LBB0_40:
	movl	(%rcx), %ecx
	movq	%rdx, -128(%rbp)
	movl	%ecx, -136(%rbp)
	movq	16(%rax), %rcx
	movq	%rcx, -144(%rbp)
	movups	(%rax), %xmm0
	movups	%xmm0, -160(%rbp)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_42
## %bb.41:
	addq	$16, %rax
	jmp	LBB0_43
LBB0_42:
	movq	8(%rax), %rcx
LBB0_43:
	movl	(%rax), %eax
	movq	%rcx, -152(%rbp)
	movl	%eax, -160(%rbp)
	movl	(%r14), %edi
	leaq	-168(%rbp), %rsi
	callq	_MFXVideoVPP_Init
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	(%r12), %rcx
	je	LBB0_46
## %bb.44:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.comm	_MFX_MEMTYPE_OPAQUE_FRAME,4,2   ## @MFX_MEMTYPE_OPAQUE_FRAME
	.comm	_MFX_ERR_NONE,8,3               ## @MFX_ERR_NONE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error querying the session attributes\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.comm	_handle_types,8,3               ## @handle_types
L_.str.1:                               ## @.str.1
	.asciz	"Error getting the session handle\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error initializing a session for deinterlacing\n"

	.comm	_MFX_EXTBUFF_VPP_DEINTERLACING,4,2 ## @MFX_EXTBUFF_VPP_DEINTERLACING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MFX_EXTBUFF_OPAQUE_SURFACE_ALLOCATION,4,2 ## @MFX_EXTBUFF_OPAQUE_SURFACE_ALLOCATION
	.comm	_MFX_IOPATTERN_IN_OPAQUE_MEMORY,4,2 ## @MFX_IOPATTERN_IN_OPAQUE_MEMORY
	.comm	_MFX_IOPATTERN_OUT_OPAQUE_MEMORY,4,2 ## @MFX_IOPATTERN_OUT_OPAQUE_MEMORY
	.comm	_frame_free,4,2                 ## @frame_free
	.comm	_frame_get_hdl,4,2              ## @frame_get_hdl
	.comm	_frame_unlock,4,2               ## @frame_unlock
	.comm	_frame_lock,4,2                 ## @frame_lock
	.comm	_frame_alloc,4,2                ## @frame_alloc
	.comm	_MFX_IOPATTERN_IN_VIDEO_MEMORY,4,2 ## @MFX_IOPATTERN_IN_VIDEO_MEMORY
	.comm	_MFX_IOPATTERN_OUT_VIDEO_MEMORY,4,2 ## @MFX_IOPATTERN_OUT_VIDEO_MEMORY
L_.str.3:                               ## @.str.3
	.asciz	"Error opening the VPP for deinterlacing: %d\n"

	.no_dead_strip	_init_out_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_out_session
_init_out_session:                      ; @init_out_session
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x19, x0
	ldr	x24, [x0, #16]
	ldr	x8, [x24, #104]
	ldr	x8, [x8]
	ldp	x8, x23, [x8]
	ldr	x27, [x8]
	ldr	w25, [x23]
Lloh0:
	adrp	x8, _MFX_MEMTYPE_OPAQUE_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MFX_MEMTYPE_OPAQUE_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	stur	xzr, [x29, #-88]
	ldr	w0, [x27]
	sub	x1, x29, #96
	bl	_MFXQueryIMPL
Lloh3:
	adrp	x22, _MFX_ERR_NONE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MFX_ERR_NONE@GOTPAGEOFF]
	ldr	x20, [x22]
	cmp	x0, x20
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x27]
	sub	x1, x29, #92
	bl	_MFXQueryVersion
	ldr	x20, [x22]
LBB0_2:
	cmp	x0, x20
	b.ne	LBB0_7
; %bb.3:
Lloh5:
	adrp	x28, _handle_types@GOTPAGE
Lloh6:
	ldr	x28, [x28, _handle_types@GOTPAGEOFF]
	ldr	x0, [x28]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	ldr	x8, [x28]
	ldr	w1, [x8, x21, lsl #2]
	sub	x2, x29, #88
	bl	_MFXVideoCORE_GetHandle
	mov	x20, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x0, [x28]
	bl	_FF_ARRAY_ELEMS
	cmp	x21, w0, sxtw
                                        ; implicit-def: $w8
                                        ; kill: killed $w8
	b.lt	LBB0_5
	b	LBB0_10
LBB0_7:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_24
LBB0_8:
                                        ; implicit-def: $w8
                                        ; kill: killed $w8
	b	LBB0_10
LBB0_9:
	ldr	x8, [x28]
	ldr	w8, [x8, x21, lsl #2]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
LBB0_10:
	ldr	x8, [x22]
	cmp	x20, x8
	b.ne	LBB0_22
; %bb.11:
	ldur	w0, [x29, #-96]
	add	x20, x24, #8
	sub	x1, x29, #92
	mov	x2, x20
	bl	_MFXInit
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.12:
	ldur	x2, [x29, #-88]
	cbz	x2, LBB0_14
; %bb.13:
	ldr	w0, [x20]
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_MFXVideoCORE_SetHandle
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_25
LBB0_14:
	ldur	w0, [x29, #-92]
	mov	w1, #1
	mov	w2, #25
	bl	_QSV_RUNTIME_VERSION_ATLEAST
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w0, [x27]
	ldr	w1, [x20]
	bl	_MFXJoinSession
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_25
LBB0_16:
	and	w21, w26, w25
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #72
	bl	_memset
Lloh12:
	adrp	x8, _MFX_EXTBUFF_VPP_DEINTERLACING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MFX_EXTBUFF_VPP_DEINTERLACING@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x24, #100]
	mov	x10, x24
	str	w9, [x10, #88]!
	mov	w9, #12
	stp	w9, w8, [x10, #4]
	ldp	x9, x8, [x10, #-72]
	add	x11, x9, #1
	stur	x11, [x10, #-72]
	str	x10, [x8, x9, lsl #3]
	cbz	w21, LBB0_27
; %bb.17:
	ldr	w0, [x23, #4]
	mov	w1, #8
	bl	_av_mallocz_array
	str	x0, [x24, #80]
	cbz	x0, LBB0_35
; %bb.18:
	ldr	w8, [x23, #4]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.19:
	mov	x9, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x23, #8]
	add	x10, x10, x9, lsl #5
	str	x10, [x0, x9, lsl #3]
	add	x9, x9, #1
	ldr	x0, [x24, #80]
	cmp	x9, x8
	b.ne	LBB0_20
LBB0_21:
	str	w8, [x24]
	str	x0, [x24, #56]
	str	w8, [x24, #48]
	ldr	w8, [x23]
	str	w8, [x24, #52]
	ldr	q0, [x24, #48]
	str	q0, [x24, #64]
Lloh15:
	adrp	x8, _MFX_EXTBUFF_OPAQUE_SURFACE_ALLOCATION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MFX_EXTBUFF_OPAQUE_SURFACE_ALLOCATION@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x24, #44]
	mov	w8, #40
	mov	x9, x24
	str	w8, [x9, #40]!
	ldp	x11, x10, [x24, #16]
	add	x8, x11, #1
	str	x8, [x24, #16]
	str	x9, [x10, x11, lsl #3]
Lloh18:
	adrp	x9, _MFX_IOPATTERN_IN_OPAQUE_MEMORY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MFX_IOPATTERN_IN_OPAQUE_MEMORY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _MFX_IOPATTERN_OUT_OPAQUE_MEMORY@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MFX_IOPATTERN_OUT_OPAQUE_MEMORY@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [sp, #56]
	b	LBB0_33
LBB0_22:
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh29:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str.2@PAGE
Lloh33:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_24:
	mov	x0, x19
	bl	_av_log
LBB0_25:
Lloh34:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
LBB0_26:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_27:
Lloh37:
	adrp	x8, _frame_free@GOTPAGE
Lloh38:
	ldr	x8, [x8, _frame_free@GOTPAGEOFF]
Lloh39:
	adrp	x9, _frame_get_hdl@GOTPAGE
Lloh40:
	ldr	x9, [x9, _frame_get_hdl@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh43:
	adrp	x8, _frame_unlock@GOTPAGE
Lloh44:
	ldr	x8, [x8, _frame_unlock@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _frame_lock@GOTPAGE
Lloh47:
	ldr	x9, [x9, _frame_lock@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
Lloh49:
	adrp	x8, _frame_alloc@GOTPAGE
Lloh50:
	ldr	x8, [x8, _frame_alloc@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	x19, [sp, #48]
	ldr	w0, [x23, #4]
	mov	w1, #4
	bl	_av_mallocz_array
	str	x0, [x24, #32]
	cbz	x0, LBB0_35
; %bb.28:
	ldr	w10, [x23, #4]
	cmp	w10, #1
	b.lt	LBB0_31
; %bb.29:
	mov	x8, #0
	ldr	x9, [x23, #8]
	add	x9, x9, #24
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #32
	str	w10, [x0, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x10, [x23, #4]
	cmp	x8, x10
	b.lt	LBB0_30
LBB0_31:
	str	w10, [x24, #4]
	ldr	w0, [x24, #8]
	add	x1, sp, #24
	bl	_MFXVideoCORE_SetFrameAllocator
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_25
; %bb.32:
Lloh52:
	adrp	x8, _MFX_IOPATTERN_IN_VIDEO_MEMORY@GOTPAGE
Lloh53:
	ldr	x8, [x8, _MFX_IOPATTERN_IN_VIDEO_MEMORY@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x9, _MFX_IOPATTERN_OUT_VIDEO_MEMORY@GOTPAGE
Lloh56:
	ldr	x9, [x9, _MFX_IOPATTERN_OUT_VIDEO_MEMORY@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #56]
	ldr	x8, [x24, #16]
LBB0_33:
	ldr	x9, [x24, #24]
	stp	x8, x9, [sp, #112]
	mov	w8, #1
	str	w8, [sp, #60]
	add	x8, sp, #56
	add	x8, x8, #32
	ldr	x9, [x23, #8]
	ldr	q0, [x9]
	ldr	x9, [x9, #16]
	str	x9, [sp, #104]
	stur	q0, [sp, #88]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	d0, [x9, #32]
	str	d0, [sp, #104]
	ldr	x10, [x9, #24]
	cbz	x10, LBB0_36
; %bb.34:
	add	x9, x9, #16
	b	LBB0_37
LBB0_35:
Lloh58:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_26
LBB0_36:
	ldr	x10, [x9, #8]
LBB0_37:
	ldr	w9, [x9]
	str	x10, [sp, #96]
	str	w9, [sp, #88]
	ldr	q0, [x8]
	stur	q0, [sp, #64]
	ldr	x8, [x8, #16]
	str	x8, [sp, #80]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_39
; %bb.38:
	add	x8, x8, #16
	b	LBB0_40
LBB0_39:
	ldr	x9, [x8, #8]
LBB0_40:
	ldr	w8, [x8]
	str	x9, [sp, #72]
	str	w8, [sp, #64]
	ldr	w0, [x20]
	add	x1, sp, #56
	bl	_MFXVideoVPP_Init
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_42
; %bb.41:
	mov	w0, #0
	b	LBB0_26
LBB0_42:
Lloh61:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh62:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh64:
	adrp	x2, l_.str.3@PAGE
Lloh65:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_24
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh41
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_MFX_MEMTYPE_OPAQUE_FRAME,4,2   ; @MFX_MEMTYPE_OPAQUE_FRAME
	.comm	_MFX_ERR_NONE,8,3               ; @MFX_ERR_NONE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error querying the session attributes\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.comm	_handle_types,8,3               ; @handle_types
l_.str.1:                               ; @.str.1
	.asciz	"Error getting the session handle\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error initializing a session for deinterlacing\n"

	.comm	_MFX_EXTBUFF_VPP_DEINTERLACING,4,2 ; @MFX_EXTBUFF_VPP_DEINTERLACING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MFX_EXTBUFF_OPAQUE_SURFACE_ALLOCATION,4,2 ; @MFX_EXTBUFF_OPAQUE_SURFACE_ALLOCATION
	.comm	_MFX_IOPATTERN_IN_OPAQUE_MEMORY,4,2 ; @MFX_IOPATTERN_IN_OPAQUE_MEMORY
	.comm	_MFX_IOPATTERN_OUT_OPAQUE_MEMORY,4,2 ; @MFX_IOPATTERN_OUT_OPAQUE_MEMORY
	.comm	_frame_free,4,2                 ; @frame_free
	.comm	_frame_get_hdl,4,2              ; @frame_get_hdl
	.comm	_frame_unlock,4,2               ; @frame_unlock
	.comm	_frame_lock,4,2                 ; @frame_lock
	.comm	_frame_alloc,4,2                ; @frame_alloc
	.comm	_MFX_IOPATTERN_IN_VIDEO_MEMORY,4,2 ; @MFX_IOPATTERN_IN_VIDEO_MEMORY
	.comm	_MFX_IOPATTERN_OUT_VIDEO_MEMORY,4,2 ; @MFX_IOPATTERN_OUT_VIDEO_MEMORY
l_.str.3:                               ; @.str.3
	.asciz	"Error opening the VPP for deinterlacing: %d\n"

	.no_dead_strip	_init_out_session
.subsections_via_symbols
