	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_streamon
_isp_video_streamon:                    ## @isp_video_streamon
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_isp_video_fh
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_video_drvdata
	cmpl	%r13d, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	28(%rbx), %rdi
	cmpl	$0, 28(%rbx)
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	callq	_to_isp_pipeline
	movq	%rax, %r12
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_4:
	leaq	48(%rbx), %r12
LBB0_5:
	leaq	8(%r12), %r15
	movq	40(%rbx), %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	callq	_media_entity_enum_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	40(%rbx), %rax
	movq	(%rax), %rax
	movq	_ISP_CLK_L3_ICK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_get_rate
	movl	%eax, 32(%r12)
	movl	%eax, 36(%r12)
	leaq	28(%r12), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_media_pipeline_start
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_isp_video_check_format
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_15
## %bb.9:
	movl	%r14d, 4(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 36(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_isp_video_get_graph_data
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movslq	(%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_ISP_PIPELINE_STREAM_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_ISP_PIPELINE_STREAM_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_ISP_PIPELINE_IDLE_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_ISP_PIPELINE_IDLE_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_isp_video_check_external_subdevs
	testl	%eax, %eax
	js	LBB0_10
## %bb.12:
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	orl	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	orl	-60(%rbp), %r15d                ## 4-byte Folded Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	-104(%rbp), %rax                ## 8-byte Folded Reload
	cmovel	%ecx, %r15d
	movl	$0, (%r12)
	leaq	24(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_ISP_PIPELINE_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	4(%r12), %eax
	orl	%r15d, %eax
	movl	%eax, 4(%r12)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movslq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_14
## %bb.13:
	movl	12(%r14), %eax
	movl	%eax, 20(%r12)
LBB0_14:
	movq	%r14, 16(%rbx)
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%r12), %rdi
	movl	$-1, %esi
	callq	_atomic_set
	movl	4(%r14), %eax
	movl	%eax, 12(%r12)
	leaq	32(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_vb2_streamon
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%r14d, %r14d
	js	LBB0_15
## %bb.19:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_7:
	movl	%eax, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %r14d
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	_media_pipeline_stop
LBB0_16:
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	movq	$0, 16(%rbx)
	movq	%r15, %rdi
	callq	_media_entity_enum_cleanup
LBB0_17:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_18:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ISP_CLK_L3_ICK,8,3             ## @ISP_CLK_L3_ICK
	.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_IDLE_OUTPUT,4,2   ## @ISP_PIPELINE_IDLE_OUTPUT
	.comm	_ISP_PIPELINE_STREAM_INPUT,4,2  ## @ISP_PIPELINE_STREAM_INPUT
	.comm	_ISP_PIPELINE_IDLE_INPUT,4,2    ## @ISP_PIPELINE_IDLE_INPUT
	.comm	_ISP_PIPELINE_STREAM,4,2        ## @ISP_PIPELINE_STREAM
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.no_dead_strip	_isp_video_streamon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_video_streamon
_isp_video_streamon:                    ; @isp_video_streamon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x2
	mov	x19, x0
	mov	x0, x1
	bl	_to_isp_video_fh
	mov	x24, x0
	mov	x0, x19
	bl	_video_drvdata
	ldr	w8, [x0]
	cmp	w8, w23
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	mov	x21, x20
	ldr	w8, [x21, #28]!
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_to_isp_pipeline
	mov	x25, x0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_19
LBB0_4:
	add	x25, x20, #48
LBB0_5:
	add	x22, x25, #8
	ldr	x8, [x20, #40]
	add	x1, x8, #8
	mov	x0, x22
	bl	_media_entity_enum_init
	mov	x26, x0
	cbnz	w0, LBB0_18
; %bb.6:
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ISP_CLK_L3_ICK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISP_CLK_L3_ICK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_get_rate
	stp	w0, w0, [x25, #32]
	add	x1, x25, #28
	mov	x0, x21
	bl	_media_pipeline_start
	tbnz	w0, #31, LBB0_14
; %bb.7:
	mov	x0, x20
	mov	x1, x24
	bl	_isp_video_check_format
	mov	x26, x0
	tbnz	w0, #31, LBB0_16
; %bb.8:
	str	w26, [x20, #4]
	ldr	w8, [x24, #8]
	str	w8, [x20, #36]
	mov	x0, x20
	mov	x1, x25
	bl	_isp_video_get_graph_data
	tbnz	w0, #31, LBB0_15
; %bb.9:
	ldrsw	x8, [x20]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh9:
	adrp	x8, _ISP_PIPELINE_STREAM_OUTPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISP_PIPELINE_STREAM_OUTPUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh12:
	adrp	x8, _ISP_PIPELINE_STREAM_INPUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ISP_PIPELINE_STREAM_INPUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
Lloh15:
	adrp	x8, _ISP_PIPELINE_IDLE_OUTPUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ISP_PIPELINE_IDLE_OUTPUT@GOTPAGEOFF]
Lloh17:
	ldr	w27, [x8]
Lloh18:
	adrp	x8, _ISP_PIPELINE_IDLE_INPUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ISP_PIPELINE_IDLE_INPUT@GOTPAGEOFF]
Lloh20:
	ldr	w28, [x8]
	mov	x0, x20
	mov	x1, x25
	bl	_isp_video_check_external_subdevs
	tbnz	w0, #31, LBB0_15
; %bb.10:
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
	orr	w8, w27, w8
	orr	w9, w28, w9
	ldp	x11, x10, [sp, #16]             ; 16-byte Folded Reload
	cmp	x11, x10
	csel	w27, w8, w9, eq
	str	wzr, [x25]
	add	x26, x25, #24
	mov	x0, x26
	bl	_spin_lock_irqsave
Lloh21:
	adrp	x8, _ISP_PIPELINE_STREAM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ISP_PIPELINE_STREAM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x25, #4]
	bic	w8, w9, w8
	orr	w8, w8, w27
	str	w8, [x25, #4]
	mov	x0, x26
	bl	_spin_unlock_irqrestore
	ldrsw	x8, [x20]
Lloh24:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x24, #12]
	str	w8, [x25, #20]
LBB0_12:
	str	x24, [x20, #16]
	add	x0, x20, #24
	bl	_INIT_LIST_HEAD
	add	x0, x25, #16
	mov	w1, #-1
	bl	_atomic_set
	ldr	w8, [x24, #4]
	str	w8, [x25, #12]
	add	x25, x20, #32
	mov	x0, x25
	bl	_mutex_lock
	mov	x0, x24
	mov	x1, x23
	bl	_vb2_streamon
	mov	x26, x0
	mov	x0, x25
	bl	_mutex_unlock
	tbnz	w26, #31, LBB0_16
; %bb.13:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w26, #0
	b	LBB0_19
LBB0_14:
	mov	x26, x0
	b	LBB0_17
LBB0_15:
	mov	x26, x0
LBB0_16:
	mov	x0, x21
	bl	_media_pipeline_stop
LBB0_17:
	add	x0, x20, #24
	bl	_INIT_LIST_HEAD
	str	xzr, [x20, #16]
	mov	x0, x22
	bl	_media_entity_enum_cleanup
LBB0_18:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_19:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ISP_CLK_L3_ICK,8,3             ; @ISP_CLK_L3_ICK
	.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_IDLE_OUTPUT,4,2   ; @ISP_PIPELINE_IDLE_OUTPUT
	.comm	_ISP_PIPELINE_STREAM_INPUT,4,2  ; @ISP_PIPELINE_STREAM_INPUT
	.comm	_ISP_PIPELINE_IDLE_INPUT,4,2    ; @ISP_PIPELINE_IDLE_INPUT
	.comm	_ISP_PIPELINE_STREAM,4,2        ; @ISP_PIPELINE_STREAM
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.no_dead_strip	_isp_video_streamon
.subsections_via_symbols
