	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qsv_device_init
_qsv_device_init:                       ## @qsv_device_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	$0, -24(%rbp)
	movq	_qsv_device@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-24(%rbp), %rcx
	jmp	LBB0_5
LBB0_1:
	xorl	%ecx, %ecx
LBB0_5:
	movq	_AV_HWDEVICE_TYPE_QSV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	_hw_device_ctx@GOTPCREL(%rip), %rdi
	xorl	%r8d, %r8d
	callq	_av_hwdevice_ctx_create
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	cmpq	$0, -24(%rbp)
	jne	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	cmpq	$0, -24(%rbp)
	je	LBB0_9
LBB0_8:
	leaq	-24(%rbp), %rdi
	callq	_av_dict_free
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qsv_device,8,3                 ## @qsv_device
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"child_device"

	.comm	_hw_device_ctx,4,2              ## @hw_device_ctx
	.comm	_AV_HWDEVICE_TYPE_QSV,4,2       ## @AV_HWDEVICE_TYPE_QSV
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Error creating a QSV device\n"

	.no_dead_strip	_qsv_device_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qsv_device_init
_qsv_device_init:                       ; @qsv_device_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _qsv_device@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qsv_device@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	cbz	x2, LBB0_3
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	x3, [sp, #8]
	b	LBB0_4
LBB0_3:
	mov	x3, #0
LBB0_4:
Lloh5:
	adrp	x8, _AV_HWDEVICE_TYPE_QSV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_HWDEVICE_TYPE_QSV@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh8:
	adrp	x0, _hw_device_ctx@GOTPAGE
Lloh9:
	ldr	x0, [x0, _hw_device_ctx@GOTPAGEOFF]
	mov	w4, #0
	bl	_av_hwdevice_ctx_create
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.5:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_7
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_av_log
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
LBB0_7:
	add	x0, sp, #8
	bl	_av_dict_free
	b	LBB0_9
LBB0_8:
	mov	x19, x0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_qsv_device,8,3                 ; @qsv_device
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"child_device"

	.comm	_hw_device_ctx,4,2              ; @hw_device_ctx
	.comm	_AV_HWDEVICE_TYPE_QSV,4,2       ; @AV_HWDEVICE_TYPE_QSV
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Error creating a QSV device\n"

	.no_dead_strip	_qsv_device_init
.subsections_via_symbols
