	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_streamoff
_isp_video_streamoff:                   ## @isp_video_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_isp_video_fh
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_video_drvdata
	movq	%rax, %r12
	leaq	12(%rax), %rbx
	movq	%rbx, %rdi
	callq	_to_isp_pipeline
	cmpl	%r15d, (%r12)
	jne	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	24(%r12), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_vb2_is_streaming
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movslq	(%r12), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %r8
	movq	_ISP_PIPELINE_STREAM_OUTPUT@GOTPCREL(%rip), %rdx
	movq	_ISP_PIPELINE_STREAM_INPUT@GOTPCREL(%rip), %rsi
	movq	_ISP_PIPELINE_QUEUE_OUTPUT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movq	_ISP_PIPELINE_QUEUE_INPUT@GOTPCREL(%rip), %rcx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	(%rcx), %r15d
	orl	(%rdx), %edi
	orl	(%rsi), %r15d
	cmpq	%rax, (%r8)
	cmovel	%edi, %r15d
	leaq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	notl	%r15d
	andl	%r15d, (%r13)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ISP_PIPELINE_STREAM_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_omap3isp_pipeline_set_stream
	movq	%r12, %rdi
	callq	_omap3isp_video_cancel_stream
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_vb2_streamoff
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	$0, 16(%r12)
	movl	$0, 4(%r12)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_media_pipeline_stop
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_media_entity_enum_cleanup
LBB0_4:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_ISP_PIPELINE_STREAM_OUTPUT,4,2 ## @ISP_PIPELINE_STREAM_OUTPUT
	.comm	_ISP_PIPELINE_QUEUE_OUTPUT,4,2  ## @ISP_PIPELINE_QUEUE_OUTPUT
	.comm	_ISP_PIPELINE_STREAM_INPUT,4,2  ## @ISP_PIPELINE_STREAM_INPUT
	.comm	_ISP_PIPELINE_QUEUE_INPUT,4,2   ## @ISP_PIPELINE_QUEUE_INPUT
	.comm	_ISP_PIPELINE_STREAM_STOPPED,4,2 ## @ISP_PIPELINE_STREAM_STOPPED
	.no_dead_strip	_isp_video_streamoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_video_streamoff
_isp_video_streamoff:                   ; @isp_video_streamoff
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_isp_video_fh
	mov	x23, x0
	mov	x0, x20
	bl	_video_drvdata
	mov	x21, x0
	add	x20, x0, #12
	mov	x0, x20
	bl	_to_isp_pipeline
	ldr	w8, [x21]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.1:
	mov	x25, x0
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
	add	x24, x21, #24
	mov	x0, x24
	bl	_mutex_lock
	mov	x0, x23
	bl	_vb2_is_streaming
	mov	x26, x0
	mov	x0, x24
	bl	_mutex_unlock
	cbz	w26, LBB0_3
; %bb.2:
	ldrsw	x8, [x21]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ISP_PIPELINE_STREAM_OUTPUT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ISP_PIPELINE_STREAM_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _ISP_PIPELINE_STREAM_INPUT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ISP_PIPELINE_STREAM_INPUT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _ISP_PIPELINE_QUEUE_OUTPUT@GOTPAGE
Lloh10:
	ldr	x12, [x12, _ISP_PIPELINE_QUEUE_OUTPUT@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
Lloh12:
	adrp	x13, _ISP_PIPELINE_QUEUE_INPUT@GOTPAGE
Lloh13:
	ldr	x13, [x13, _ISP_PIPELINE_QUEUE_INPUT@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
	orr	w10, w12, w10
	orr	w11, w13, w11
	cmp	x9, x8
	csel	w27, w10, w11, eq
	add	x26, x25, #8
	mov	x0, x26
	bl	_spin_lock_irqsave
	ldr	w8, [x25]
	bic	w8, w8, w27
	mov	x27, x25
	str	w8, [x27], #4
	mov	x0, x26
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x8, _ISP_PIPELINE_STREAM_STOPPED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ISP_PIPELINE_STREAM_STOPPED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_omap3isp_pipeline_set_stream
	mov	x0, x21
	bl	_omap3isp_video_cancel_stream
	mov	x0, x24
	bl	_mutex_lock
	mov	x0, x23
	mov	x1, x19
	bl	_vb2_streamoff
	mov	x0, x24
	bl	_mutex_unlock
	str	xzr, [x21, #16]
	str	wzr, [x21, #4]
	mov	x0, x20
	bl	_media_pipeline_stop
	mov	x0, x27
	bl	_media_entity_enum_cleanup
LBB0_3:
	mov	x0, x22
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_ISP_PIPELINE_STREAM_OUTPUT,4,2 ; @ISP_PIPELINE_STREAM_OUTPUT
	.comm	_ISP_PIPELINE_QUEUE_OUTPUT,4,2  ; @ISP_PIPELINE_QUEUE_OUTPUT
	.comm	_ISP_PIPELINE_STREAM_INPUT,4,2  ; @ISP_PIPELINE_STREAM_INPUT
	.comm	_ISP_PIPELINE_QUEUE_INPUT,4,2   ; @ISP_PIPELINE_QUEUE_INPUT
	.comm	_ISP_PIPELINE_STREAM_STOPPED,4,2 ; @ISP_PIPELINE_STREAM_STOPPED
	.no_dead_strip	_isp_video_streamoff
.subsections_via_symbols
