	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hva_open
_hva_open:                              ## @hva_open
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_video_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_hva_to_dev
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 40(%rax)
	leaq	32(%rax), %rdi
	movq	_hva_run_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r12, %rdi
	callq	_video_devdata
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_v4l2_fh_init
	movq	%rbx, (%r12)
	movq	%rbx, %rdi
	callq	_v4l2_fh_add
	movq	%rbx, %rdi
	callq	_hva_ctrls_setup
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movq	_HVA_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	incl	24(%rbx)
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_4:
	leaq	16(%rbx), %r13
	movq	%r13, 8(%rbx)
	movq	%rbx, %rdi
	addq	$28, %rdi
	callq	_mutex_init
	movl	8(%r15), %edi
	movq	_hva_queue_init@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_v4l2_m2m_ctx_init
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	_HVA_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	incl	24(%rbx)
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_free
LBB0_6:
	movq	%rbx, %rdi
	callq	_v4l2_fh_del
	movq	%rbx, %rdi
	callq	_v4l2_fh_exit
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	(%r15), %ecx
	incl	%ecx
	movl	%ecx, (%r15)
	movl	20(%rbx), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_set_default_params
	movl	20(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hva_run_work,4,2               ## @hva_run_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s [x:x] failed to setup controls\n"

	.comm	_HVA_PREFIX,4,2                 ## @HVA_PREFIX
	.comm	_hva_queue_init,4,2             ## @hva_queue_init
L_.str.1:                               ## @.str.1
	.asciz	"%s failed to initialize m2m context (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"[%3d:----]"

L_.str.3:                               ## @.str.3
	.asciz	"%s encoder instance created\n"

	.no_dead_strip	_hva_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hva_open
_hva_open:                              ; @hva_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	bl	_video_drvdata
	mov	x21, x0
	bl	_hva_to_dev
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x21, [x0, #40]
	add	x0, x0, #32
Lloh3:
	adrp	x8, _hva_run_work@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hva_run_work@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x22
	bl	_video_devdata
	mov	x1, x0
	mov	x0, x19
	bl	_v4l2_fh_init
	str	x19, [x22]
	mov	x0, x19
	bl	_v4l2_fh_add
	mov	x0, x19
	bl	_hva_ctrls_setup
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh6:
	adrp	x8, _HVA_PREFIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HVA_PREFIX@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
	add	x23, x19, #16
	str	x23, [x19, #8]
	add	x0, x19, #28
	bl	_mutex_init
	ldr	w0, [x21, #8]
Lloh14:
	adrp	x2, _hva_queue_init@GOTPAGE
Lloh15:
	ldr	x2, [x2, _hva_queue_init@GOTPAGEOFF]
	mov	x1, x19
	bl	_v4l2_m2m_ctx_init
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x19]
	bl	_PTR_ERR
	mov	x22, x0
Lloh16:
	adrp	x8, _HVA_PREFIX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HVA_PREFIX@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	str	x22, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	mov	x0, x23
	bl	_v4l2_ctrl_handler_free
LBB0_6:
	mov	x0, x19
	bl	_v4l2_fh_del
	mov	x0, x19
	bl	_v4l2_fh_exit
	mov	x0, x19
	bl	_kfree
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	add	x22, x21, #4
	mov	x0, x22
	bl	_mutex_lock
	ldr	w8, [x21]
	add	w3, w8, #1
	str	w3, [x21]
	ldr	w0, [x19, #20]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	bl	_set_default_params
	ldr	w2, [x19, #20]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w22, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hva_run_work,4,2               ; @hva_run_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s [x:x] failed to setup controls\n"

	.comm	_HVA_PREFIX,4,2                 ; @HVA_PREFIX
	.comm	_hva_queue_init,4,2             ; @hva_queue_init
l_.str.1:                               ; @.str.1
	.asciz	"%s failed to initialize m2m context (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"[%3d:----]"

l_.str.3:                               ; @.str.3
	.asciz	"%s encoder instance created\n"

	.no_dead_strip	_hva_open
.subsections_via_symbols
