	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_cap_streamon
_fimc_cap_streamon:                     ## @fimc_cap_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_video_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_fimc_capture_active
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rbx
	addq	$40, %rbx
	movq	32(%r14), %rsi
	movq	%rbx, %rdi
	callq	_media_pipeline_start
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	32(%r14), %rdi
	movq	_IDX_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	___fimc_md_get_subdev
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	callq	_v4l2_get_subdev_hostdata
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	(%r14), %rax
	movq	_GRP_ID_FIMC_IS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
LBB0_10:
	cmpq	$0, 16(%r14)
	je	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	callq	_fimc_pipeline_validate
	testl	%eax, %eax
	js	LBB0_12
LBB0_13:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_vb2_ioctl_streamon
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.14:
	movl	$1, 8(%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_6:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movq	%rbx, %rdi
	callq	_media_pipeline_stop
	jmp	LBB0_15
LBB0_3:
	movl	%eax, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%eax, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IDX_SENSOR,4,2                 ## @IDX_SENSOR
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_GRP_ID_FIMC_IS,8,3             ## @GRP_ID_FIMC_IS
	.comm	_FIMC_BUS_TYPE_ISP_WRITEBACK,4,2 ## @FIMC_BUS_TYPE_ISP_WRITEBACK
	.no_dead_strip	_fimc_cap_streamon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_cap_streamon
_fimc_cap_streamon:                     ; @fimc_cap_streamon
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_video_drvdata
	mov	x20, x0
	bl	_fimc_capture_active
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_14
LBB0_2:
	add	x19, x20, #40
	ldr	x1, [x20, #32]
	mov	x0, x19
	bl	_media_pipeline_start
	tbnz	w0, #31, LBB0_13
; %bb.3:
	ldr	x0, [x20, #32]
Lloh3:
	adrp	x8, _IDX_SENSOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDX_SENSOR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	___fimc_md_get_subdev
	cbz	x0, LBB0_11
; %bb.4:
	bl	_v4l2_get_subdev_hostdata
	cbz	x0, LBB0_11
; %bb.5:
	ldr	w8, [x0]
	str	w8, [x20, #24]
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _GRP_ID_FIMC_IS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GRP_ID_FIMC_IS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #24]
LBB0_7:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_fimc_pipeline_validate
	tbnz	w0, #31, LBB0_15
LBB0_9:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_vb2_ioctl_streamon
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.10:
	mov	w8, #1
	str	w8, [x20, #8]
	b	LBB0_14
LBB0_11:
Lloh12:
	adrp	x8, _EPIPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_12:
	mov	x0, x19
	bl	_media_pipeline_stop
	b	LBB0_14
LBB0_13:
	mov	x24, x0
LBB0_14:
	mov	x0, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x24, x0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IDX_SENSOR,4,2                 ; @IDX_SENSOR
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_GRP_ID_FIMC_IS,8,3             ; @GRP_ID_FIMC_IS
	.comm	_FIMC_BUS_TYPE_ISP_WRITEBACK,4,2 ; @FIMC_BUS_TYPE_ISP_WRITEBACK
	.no_dead_strip	_fimc_cap_streamon
.subsections_via_symbols
