	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_qsv_init_session_frames     ## -- Begin function ff_qsv_init_session_frames
	.p2align	4, 0x90
_ff_qsv_init_session_frames:            ## @ff_qsv_init_session_frames
	.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
	movl	%r8d, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_qsv_frame_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_qsv_frame_get_hdl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_qsv_frame_unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_qsv_frame_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_qsv_frame_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movq	24(%rdx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r13
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	movl	%r9d, %r8d
	callq	_ff_qsv_init_session_device
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_2
LBB0_6:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, 32(%rbx)
	leaq	8(%rbx), %rdi
	callq	_av_buffer_unref
	movq	24(%rbx), %rdi
	callq	_qsv_create_mids
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	movl	-44(%rbp), %edi
	leaq	-80(%rbp), %rsi
	callq	_MFXVideoCORE_SetFrameAllocator
	movq	_MFX_ERR_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ff_qsv_print_error
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_qsv_frame_free,4,2             ## @qsv_frame_free
	.comm	_qsv_frame_get_hdl,4,2          ## @qsv_frame_get_hdl
	.comm	_qsv_frame_unlock,4,2           ## @qsv_frame_unlock
	.comm	_qsv_frame_lock,4,2             ## @qsv_frame_lock
	.comm	_qsv_frame_alloc,4,2            ## @qsv_frame_alloc
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MFX_ERR_NONE,8,3               ## @MFX_ERR_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error setting a frame allocator"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_qsv_init_session_frames     ; -- Begin function ff_qsv_init_session_frames
	.p2align	2
_ff_qsv_init_session_frames:            ; @ff_qsv_init_session_frames
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x22, x4
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _qsv_frame_free@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qsv_frame_free@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _qsv_frame_get_hdl@GOTPAGE
Lloh4:
	ldr	x9, [x9, _qsv_frame_get_hdl@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh6:
	adrp	x8, _qsv_frame_unlock@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qsv_frame_unlock@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _qsv_frame_lock@GOTPAGE
Lloh10:
	ldr	x9, [x9, _qsv_frame_lock@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh12:
	adrp	x8, _qsv_frame_alloc@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qsv_frame_alloc@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	str	x2, [sp, #40]
	ldr	x8, [x2, #24]
	ldr	x8, [x8]
	ldr	x23, [x8, #8]
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x4, x5
	bl	_ff_qsv_init_session_device
	tbnz	w0, #31, LBB0_3
; %bb.1:
	cbz	w22, LBB0_4
LBB0_2:
	mov	w0, #0
	ldr	w8, [sp, #12]
	str	w8, [x20]
LBB0_3:
	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
	add	sp, sp, #112
	ret
LBB0_4:
	str	x19, [x21, #32]
	add	x0, x21, #8
	bl	_av_buffer_unref
	ldr	x0, [x21, #24]
	bl	_qsv_create_mids
	str	x0, [x21, #8]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x0]
	str	x8, [x21, #16]
	ldr	w8, [x23]
	str	w8, [x21]
	ldr	w0, [sp, #12]
	add	x1, sp, #16
	bl	_MFXVideoCORE_SetFrameAllocator
Lloh15:
	adrp	x8, _MFX_ERR_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MFX_ERR_NONE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.6:
	mov	x1, x0
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ff_qsv_print_error
	b	LBB0_3
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_qsv_frame_free,4,2             ; @qsv_frame_free
	.comm	_qsv_frame_get_hdl,4,2          ; @qsv_frame_get_hdl
	.comm	_qsv_frame_unlock,4,2           ; @qsv_frame_unlock
	.comm	_qsv_frame_lock,4,2             ; @qsv_frame_lock
	.comm	_qsv_frame_alloc,4,2            ; @qsv_frame_alloc
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MFX_ERR_NONE,8,3               ; @MFX_ERR_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error setting a frame allocator"

.subsections_via_symbols
