	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_streamoff
_vpif_streamoff:                        ## @vpif_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	8(%rsi), %r14
	movq	16(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_debug@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdx
	movl	$2, %edi
	callq	_vpif_dbg
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_1
## %bb.3:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_4
## %bb.5:
	movq	%r13, %rbx
	shlq	$4, %rbx
	cmpq	$0, 8(%r12,%rbx)
	je	LBB0_6
## %bb.7:
	leaq	(%r12,%rbx), %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_1:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	movl	$1, %edi
	callq	_vpif_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_4:
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	callq	_vpif_dbg
	movq	_EACCES@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_2
LBB0_10:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rbx), %rcx
	addq	$8, %rcx
	movq	_VPIF_CHANNEL0_VIDEO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, %rbx
	cmpq	(%r14), %rax
	jne	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	movq	%rcx, %r14
	callq	_enable_channel0
	xorl	%edi, %edi
	callq	_channel0_intr_enable
	jmp	LBB0_13
LBB0_12:
	xorl	%edi, %edi
	movq	%rcx, %r14
	callq	_enable_channel1
	xorl	%edi, %edi
	callq	_channel1_intr_enable
LBB0_13:
	movq	$0, (%r14)
	movq	_vpif_obj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_16
## %bb.15:
	movl	(%r15), %esi
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %edi
	callq	_vpif_dbg
LBB0_16:
	movq	%r13, %rdi
	callq	_mutex_unlock
	addq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_videobuf_streamoff             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpif_streamoff\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
L_.str.1:                               ## @.str.1
	.asciz	"buffer type not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"io not allowed\n"

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

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_VPIF_CHANNEL0_VIDEO,8,3        ## @VPIF_CHANNEL0_VIDEO
	.comm	_vpif_obj,8,3                   ## @vpif_obj
	.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	_vpif_streamoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_streamoff
_vpif_streamoff:                        ; @vpif_streamoff
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	ldr	x24, [x1, #8]
	ldr	x21, [x24, #16]
Lloh0:
	adrp	x25, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
	ldr	x22, [x25]
Lloh2:
	adrp	x23, _debug@GOTPAGE
Lloh3:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vpif_dbg
Lloh6:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x25]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_7
; %bb.2:
	add	x8, x21, x22, lsl #4
	mov	x20, x8
	ldr	x9, [x20, #8]!
	cbz	x9, LBB0_9
; %bb.3:
	add	x19, x8, #4
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_10
; %bb.4:
Lloh9:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	w1, [x23]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	mov	w0, #1
	bl	_vpif_dbg
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	w1, [x23]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_vpif_dbg
Lloh17:
	adrp	x8, _EACCES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w1, [x23]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_10:
Lloh21:
	adrp	x8, _VPIF_CHANNEL0_VIDEO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VPIF_CHANNEL0_VIDEO@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
	bl	_enable_channel0
	mov	w0, #0
	bl	_channel0_intr_enable
	b	LBB0_13
LBB0_12:
	mov	w0, #0
	bl	_enable_channel1
	mov	w0, #0
	bl	_channel1_intr_enable
LBB0_13:
	str	xzr, [x20]
Lloh24:
	adrp	x8, _vpif_obj@GOTPAGE
Lloh25:
	ldr	x8, [x8, _vpif_obj@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x9, [x24, #8]
	ldr	w0, [x8, x9, lsl #2]
Lloh27:
	adrp	x8, _video@GOTPAGE
Lloh28:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _s_stream@GOTPAGE
Lloh31:
	ldr	x8, [x8, _s_stream@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_16
; %bb.14:
Lloh33:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	w1, [x23]
Lloh36:
	adrp	x2, l_.str.4@PAGE
Lloh37:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_vpif_dbg
LBB0_16:
	mov	x0, x19
	bl	_mutex_unlock
	add	x0, x21, x22, lsl #4
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_videobuf_streamoff
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpif_streamoff\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
l_.str.1:                               ; @.str.1
	.asciz	"buffer type not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"io not allowed\n"

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

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_VPIF_CHANNEL0_VIDEO,8,3        ; @VPIF_CHANNEL0_VIDEO
	.comm	_vpif_obj,8,3                   ; @vpif_obj
	.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	_vpif_streamoff
.subsections_via_symbols
