	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9v032_s_stream
_mt9v032_s_stream:                      ## @mt9v032_s_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	_MT9V032_CHIP_CONTROL_DOUT_ENABLE@GOTPCREL(%rip), %rax
	movq	_MT9V032_CHIP_CONTROL_SEQUENTIAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	callq	_to_mt9v032
	movq	8(%rax), %r14
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movl	4(%rax), %edi
	callq	_fls
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ebx
	movl	(%r12), %edi
	callq	_fls
                                        ## kill: def $eax killed $eax def $rax
	decl	%eax
	movq	_MT9V032_READ_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MT9V032_READ_MODE_RESERVED@GOTPCREL(%rip), %rdx
	movq	_MT9V032_READ_MODE_COLUMN_BIN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movl	(%rdx), %edx
	notl	%edx
	movq	_MT9V032_READ_MODE_ROW_BIN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%ebx, %eax
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movq	_MT9V032_COLUMN_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r12), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movq	_MT9V032_ROW_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r12), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	_MT9V032_WINDOW_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r12), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movq	_MT9V032_WINDOW_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r12), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_mt9v032_update_hblank
	movl	%r15d, %ecx
	testl	%eax, %eax
	jns	LBB0_2
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	movq	_MT9V032_CHIP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9V032_CHIP_CONTROL_DOUT_ENABLE,4,2 ## @MT9V032_CHIP_CONTROL_DOUT_ENABLE
	.comm	_MT9V032_CHIP_CONTROL_SEQUENTIAL,4,2 ## @MT9V032_CHIP_CONTROL_SEQUENTIAL
	.comm	_MT9V032_CHIP_CONTROL,4,2       ## @MT9V032_CHIP_CONTROL
	.comm	_MT9V032_READ_MODE,4,2          ## @MT9V032_READ_MODE
	.comm	_MT9V032_READ_MODE_RESERVED,4,2 ## @MT9V032_READ_MODE_RESERVED
	.comm	_MT9V032_READ_MODE_COLUMN_BIN_SHIFT,4,2 ## @MT9V032_READ_MODE_COLUMN_BIN_SHIFT
	.comm	_MT9V032_READ_MODE_ROW_BIN_SHIFT,4,2 ## @MT9V032_READ_MODE_ROW_BIN_SHIFT
	.comm	_MT9V032_COLUMN_START,4,2       ## @MT9V032_COLUMN_START
	.comm	_MT9V032_ROW_START,4,2          ## @MT9V032_ROW_START
	.comm	_MT9V032_WINDOW_WIDTH,4,2       ## @MT9V032_WINDOW_WIDTH
	.comm	_MT9V032_WINDOW_HEIGHT,4,2      ## @MT9V032_WINDOW_HEIGHT
	.no_dead_strip	_mt9v032_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9v032_s_stream
_mt9v032_s_stream:                      ; @mt9v032_s_stream
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x1
Lloh0:
	adrp	x8, _MT9V032_CHIP_CONTROL_DOUT_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT9V032_CHIP_CONTROL_DOUT_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MT9V032_CHIP_CONTROL_SEQUENTIAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MT9V032_CHIP_CONTROL_SEQUENTIAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w19, w9, w8
	bl	_to_mt9v032
	ldr	x20, [x0, #8]
	cbz	w22, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_fls
	sub	w22, w0, #1
	ldr	w0, [x21]
	bl	_fls
	sub	w8, w0, #1
Lloh6:
	adrp	x9, _MT9V032_READ_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MT9V032_READ_MODE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _MT9V032_READ_MODE_RESERVED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MT9V032_READ_MODE_RESERVED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
Lloh11:
	ldr	w9, [x10]
	mvn	w2, w9
Lloh12:
	adrp	x9, _MT9V032_READ_MODE_COLUMN_BIN_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MT9V032_READ_MODE_COLUMN_BIN_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w22, w9
Lloh15:
	adrp	x10, _MT9V032_READ_MODE_ROW_BIN_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MT9V032_READ_MODE_ROW_BIN_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w3, w8, w9
	mov	x0, x20
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh18:
	adrp	x8, _MT9V032_COLUMN_START@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MT9V032_COLUMN_START@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x21, #28]
	mov	x0, x20
	bl	_regmap_write
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh21:
	adrp	x8, _MT9V032_ROW_START@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MT9V032_ROW_START@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x21, #24]
	mov	x0, x20
	bl	_regmap_write
	tbnz	w0, #31, LBB0_7
; %bb.4:
Lloh24:
	adrp	x8, _MT9V032_WINDOW_WIDTH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MT9V032_WINDOW_WIDTH@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x21, #20]
	mov	x0, x20
	bl	_regmap_write
	tbnz	w0, #31, LBB0_7
; %bb.5:
Lloh27:
	adrp	x8, _MT9V032_WINDOW_HEIGHT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MT9V032_WINDOW_HEIGHT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x21, #16]
	mov	x0, x20
	bl	_regmap_write
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_mt9v032_update_hblank
	mov	x3, x19
	tbz	w0, #31, LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w3, #0
LBB0_9:
Lloh30:
	adrp	x8, _MT9V032_CHIP_CONTROL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MT9V032_CHIP_CONTROL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MT9V032_CHIP_CONTROL_DOUT_ENABLE,4,2 ; @MT9V032_CHIP_CONTROL_DOUT_ENABLE
	.comm	_MT9V032_CHIP_CONTROL_SEQUENTIAL,4,2 ; @MT9V032_CHIP_CONTROL_SEQUENTIAL
	.comm	_MT9V032_CHIP_CONTROL,4,2       ; @MT9V032_CHIP_CONTROL
	.comm	_MT9V032_READ_MODE,4,2          ; @MT9V032_READ_MODE
	.comm	_MT9V032_READ_MODE_RESERVED,4,2 ; @MT9V032_READ_MODE_RESERVED
	.comm	_MT9V032_READ_MODE_COLUMN_BIN_SHIFT,4,2 ; @MT9V032_READ_MODE_COLUMN_BIN_SHIFT
	.comm	_MT9V032_READ_MODE_ROW_BIN_SHIFT,4,2 ; @MT9V032_READ_MODE_ROW_BIN_SHIFT
	.comm	_MT9V032_COLUMN_START,4,2       ; @MT9V032_COLUMN_START
	.comm	_MT9V032_ROW_START,4,2          ; @MT9V032_ROW_START
	.comm	_MT9V032_WINDOW_WIDTH,4,2       ; @MT9V032_WINDOW_WIDTH
	.comm	_MT9V032_WINDOW_HEIGHT,4,2      ; @MT9V032_WINDOW_HEIGHT
	.no_dead_strip	_mt9v032_s_stream
.subsections_via_symbols
