	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_streamoff
_vpfe_streamoff:                        ## @vpfe_streamoff
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	(%rbx), %rbx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%r14), %r15
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_v4l2_dbg
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_1
## %bb.4:
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.6:
	cmpl	$0, 24(%r14)
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	callq	_vpfe_stop_ccdc_capture
	movq	%r14, %rdi
	callq	_vpfe_detach_irq
	movq	16(%r14), %rax
	movl	(%rax), %esi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	callq	_v4l2_device_call_until_err
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
LBB0_12:
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_videobuf_streamoff
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
	movq	_EACCES@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpfe_streamoff\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
L_.str.1:                               ## @.str.1
	.asciz	"Invalid buf type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"fh->io_allowed\n"

	.comm	_EACCES,4,2                     ## @EACCES
L_.str.3:                               ## @.str.3
	.asciz	"device started\n"

	.comm	_video,4,2                      ## @video
	.comm	_s_stream,4,2                   ## @s_stream
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
L_.str.4:                               ## @.str.4
	.asciz	"stream off failed in subdev\n"

	.no_dead_strip	_vpfe_streamoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_streamoff
_vpfe_streamoff:                        ; @vpfe_streamoff
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x0
	bl	_video_drvdata
	mov	x19, x0
	ldr	x22, [x20]
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x20, x0, #8
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_v4l2_dbg
Lloh5:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [x22]
	cbz	w8, LBB0_10
; %bb.2:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_13
; %bb.3:
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbnz	w0, LBB0_12
; %bb.4:
	mov	x0, x19
	bl	_vpfe_stop_ccdc_capture
	mov	x0, x19
	bl	_vpfe_detach_irq
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _video@GOTPAGE
Lloh9:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _s_stream@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s_stream@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w4, #0
	bl	_v4l2_device_call_until_err
	cbz	w0, LBB0_7
; %bb.5:
Lloh14:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_7
; %bb.6:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
LBB0_7:
	add	x0, x19, #4
	bl	_videobuf_streamoff
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	b	LBB0_12
LBB0_8:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_v4l2_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
Lloh25:
	adrp	x8, _EACCES@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpfe_streamoff\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
l_.str.1:                               ; @.str.1
	.asciz	"Invalid buf type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"fh->io_allowed\n"

	.comm	_EACCES,4,2                     ; @EACCES
l_.str.3:                               ; @.str.3
	.asciz	"device started\n"

	.comm	_video,4,2                      ; @video
	.comm	_s_stream,4,2                   ; @s_stream
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
l_.str.4:                               ; @.str.4
	.asciz	"stream off failed in subdev\n"

	.no_dead_strip	_vpfe_streamoff
.subsections_via_symbols
