	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preview_set_stream
_preview_set_stream:                    ## @preview_set_stream
	.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	%esi, %r14d
	movq	%rdi, %r13
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_isp_device
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_device
	movq	%rax, %r12
	cmpl	$128, (%rbx)
	jne	LBB0_3
## %bb.1:
	cmpl	$128, %r14d
	je	LBB0_21
## %bb.2:
	movq	_OMAP3_ISP_SUBCLK_PREVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_subclk_enable
	movq	%rbx, %rdi
	callq	_preview_configure
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%rbx, %rdi
	callq	_preview_print_status
LBB0_3:
	leaq	20(%rbx), %rdi
	cmpl	$128, %r14d
	je	LBB0_16
## %bb.4:
	cmpl	$129, %r14d
	je	LBB0_11
## %bb.5:
	cmpl	$130, %r14d
	jne	LBB0_20
## %bb.6:
	movq	_PREVIEW_OUTPUT_MEMORY@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_8
## %bb.7:
	movq	_OMAP3_ISP_SBL_PREVIEW_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %r13
	movq	%r15, %rdi
	callq	_omap3isp_sbl_enable
	movq	%r13, %rdi
LBB0_8:
	movq	_ISP_VIDEO_DMAQUEUE_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_10
## %bb.9:
	movl	(%r12), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_19
LBB0_10:
	movq	%rdi, %r15
	movq	%rbx, %rdi
	callq	_preview_enable_oneshot
	movq	%r15, %rdi
	jmp	LBB0_19
LBB0_16:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %rdi
	leaq	12(%rbx), %rsi
	movq	%rbx, %rdx
	addq	$8, %rdx
	callq	_omap3isp_module_sync_idle
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_18:
	movq	_OMAP3_ISP_SBL_PREVIEW_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_sbl_disable
	movq	_OMAP3_ISP_SBL_PREVIEW_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_sbl_disable
	movq	_OMAP3_ISP_SUBCLK_PREVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_subclk_disable
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_19:
	callq	_isp_video_dmaqueue_flags_clr
	jmp	LBB0_20
LBB0_11:
	movl	16(%rbx), %eax
	movq	_PREVIEW_INPUT_MEMORY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.12:
	movq	_OMAP3_ISP_SBL_PREVIEW_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_sbl_enable
LBB0_13:
	movq	_PREVIEW_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_15
## %bb.14:
	movq	_OMAP3_ISP_SBL_PREVIEW_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_sbl_enable
LBB0_15:
	movq	%rbx, %rdi
	callq	_preview_enable_oneshot
LBB0_20:
	movl	%r14d, (%rbx)
LBB0_21:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP3_ISP_SUBCLK_PREVIEW,4,2   ## @OMAP3_ISP_SUBCLK_PREVIEW
	.comm	_PREVIEW_OUTPUT_MEMORY,4,2      ## @PREVIEW_OUTPUT_MEMORY
	.comm	_OMAP3_ISP_SBL_PREVIEW_WRITE,4,2 ## @OMAP3_ISP_SBL_PREVIEW_WRITE
	.comm	_ISP_VIDEO_DMAQUEUE_QUEUED,4,2  ## @ISP_VIDEO_DMAQUEUE_QUEUED
	.comm	_PREVIEW_INPUT_MEMORY,4,2       ## @PREVIEW_INPUT_MEMORY
	.comm	_OMAP3_ISP_SBL_PREVIEW_READ,4,2 ## @OMAP3_ISP_SBL_PREVIEW_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: stop timeout.\n"

	.no_dead_strip	_preview_set_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preview_set_stream
_preview_set_stream:                    ; @preview_set_stream
	.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	x19, x1
	mov	x23, x0
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	bl	_to_isp_device
	mov	x21, x0
	mov	x0, x20
	bl	_to_device
	mov	x24, x0
	mov	x22, x20
	ldr	w8, [x22], #20
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	cmp	w19, #128
	b.eq	LBB0_21
; %bb.2:
Lloh0:
	adrp	x8, _OMAP3_ISP_SUBCLK_PREVIEW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP3_ISP_SUBCLK_PREVIEW@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_subclk_enable
	mov	x0, x20
	bl	_preview_configure
	add	x0, x20, #8
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x20
	bl	_preview_print_status
LBB0_3:
	cmp	w19, #128
	b.eq	LBB0_11
; %bb.4:
	cmp	w19, #129
	b.eq	LBB0_15
; %bb.5:
	cmp	w19, #130
	b.ne	LBB0_20
; %bb.6:
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x23, _PREVIEW_OUTPUT_MEMORY@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PREVIEW_OUTPUT_MEMORY@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _OMAP3_ISP_SBL_PREVIEW_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OMAP3_ISP_SBL_PREVIEW_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_enable
LBB0_8:
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _ISP_VIDEO_DMAQUEUE_QUEUED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ISP_VIDEO_DMAQUEUE_QUEUED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x20, #4]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_14
LBB0_10:
	mov	x0, x20
	bl	_preview_enable_oneshot
	b	LBB0_14
LBB0_11:
	add	x0, x23, #4
	add	x1, x20, #12
	add	x2, x20, #8
	bl	_omap3isp_module_sync_idle
	cbz	w0, LBB0_13
; %bb.12:
	ldr	w2, [x23]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_dev_dbg
LBB0_13:
Lloh13:
	adrp	x8, _OMAP3_ISP_SBL_PREVIEW_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OMAP3_ISP_SBL_PREVIEW_READ@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_disable
Lloh16:
	adrp	x8, _OMAP3_ISP_SBL_PREVIEW_WRITE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OMAP3_ISP_SBL_PREVIEW_WRITE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_disable
Lloh19:
	adrp	x8, _OMAP3_ISP_SUBCLK_PREVIEW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OMAP3_ISP_SUBCLK_PREVIEW@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_subclk_disable
LBB0_14:
	mov	x0, x22
	bl	_isp_video_dmaqueue_flags_clr
	b	LBB0_20
LBB0_15:
	ldr	w8, [x20, #16]
Lloh22:
	adrp	x9, _PREVIEW_INPUT_MEMORY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PREVIEW_INPUT_MEMORY@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.16:
Lloh25:
	adrp	x8, _OMAP3_ISP_SBL_PREVIEW_READ@GOTPAGE
Lloh26:
	ldr	x8, [x8, _OMAP3_ISP_SBL_PREVIEW_READ@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_enable
LBB0_17:
	ldr	w8, [x20, #4]
Lloh28:
	adrp	x9, _PREVIEW_OUTPUT_MEMORY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PREVIEW_OUTPUT_MEMORY@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
Lloh31:
	adrp	x8, _OMAP3_ISP_SBL_PREVIEW_WRITE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _OMAP3_ISP_SBL_PREVIEW_WRITE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_enable
LBB0_19:
	mov	x0, x20
	bl	_preview_enable_oneshot
LBB0_20:
	str	w19, [x20]
LBB0_21:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP3_ISP_SUBCLK_PREVIEW,4,2   ; @OMAP3_ISP_SUBCLK_PREVIEW
	.comm	_PREVIEW_OUTPUT_MEMORY,4,2      ; @PREVIEW_OUTPUT_MEMORY
	.comm	_OMAP3_ISP_SBL_PREVIEW_WRITE,4,2 ; @OMAP3_ISP_SBL_PREVIEW_WRITE
	.comm	_ISP_VIDEO_DMAQUEUE_QUEUED,4,2  ; @ISP_VIDEO_DMAQUEUE_QUEUED
	.comm	_PREVIEW_INPUT_MEMORY,4,2       ; @PREVIEW_INPUT_MEMORY
	.comm	_OMAP3_ISP_SBL_PREVIEW_READ,4,2 ; @OMAP3_ISP_SBL_PREVIEW_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: stop timeout.\n"

	.no_dead_strip	_preview_set_stream
.subsections_via_symbols
