	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_veu_release
_sh_veu_release:                        ## @sh_veu_release
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r15
	movq	(%rbx), %r14
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_dbg
	cmpq	16(%r15), %r14
	jne	LBB0_2
## %bb.1:
	movq	$0, 16(%r15)
	movq	8(%r15), %rdi
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_v4l2_m2m_get_vq
	movl	%eax, %edi
	callq	_vb2_queue_release
LBB0_2:
	movq	24(%r15), %rax
	cmpq	%rax, %r14
	je	LBB0_3
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_5
LBB0_3:
	movq	$0, 24(%r15)
	movq	8(%r15), %rdi
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_v4l2_m2m_get_vq
	movl	%eax, %edi
	callq	_vb2_queue_release
	movq	24(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_8
LBB0_5:
	cmpq	$0, 16(%r15)
	jne	LBB0_8
## %bb.6:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_v4l2_m2m_ctx_release
	movq	$0, 8(%r15)
LBB0_8:
	movl	(%r15), %edi
	callq	_pm_runtime_put
	movq	%r14, %rdi
	callq	_v4l2_fh_del
	movq	%r14, %rdi
	callq	_v4l2_fh_exit
	movq	%r14, %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Releasing instance %p\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.no_dead_strip	_sh_veu_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_veu_release
_sh_veu_release:                        ; @sh_veu_release
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_video_drvdata
	mov	x20, x0
	ldr	x19, [x19]
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	ldr	x8, [x20, #16]
	cmp	x19, x8
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x20, #16]
	ldr	x0, [x20, #8]
Lloh2:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_v4l2_m2m_get_vq
	bl	_vb2_queue_release
LBB0_2:
	ldr	x8, [x20, #24]
	cmp	x19, x8
	b.eq	LBB0_4
; %bb.3:
	cbnz	x8, LBB0_8
	b	LBB0_5
LBB0_4:
	str	xzr, [x20, #24]
	ldr	x0, [x20, #8]
Lloh5:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_v4l2_m2m_get_vq
	bl	_vb2_queue_release
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_8
LBB0_5:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_8
; %bb.6:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_v4l2_m2m_ctx_release
	str	xzr, [x20, #8]
LBB0_8:
	ldr	w0, [x20]
	bl	_pm_runtime_put
	mov	x0, x19
	bl	_v4l2_fh_del
	mov	x0, x19
	bl	_v4l2_fh_exit
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Releasing instance %p\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.no_dead_strip	_sh_veu_release
.subsections_via_symbols
