	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9v022_s_stream
_mt9v022_s_stream:                      ## @mt9v022_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_mt9v022
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	movl	(%rax), %ecx
	andl	$-17, %ecx
	shll	$4, %edx
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movq	_MT9V022_CHIP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reg_write
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	sarq	$63, %rax
	andl	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9V022_CHIP_CONTROL,4,2       ## @MT9V022_CHIP_CONTROL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mt9v022_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9v022_s_stream
_mt9v022_s_stream:                      ; @mt9v022_s_stream
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #0
	cset	w20, eq
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	bl	_to_mt9v022
	ldr	w2, [x0]
	bfi	w2, w20, #4, #1
	str	w2, [x0]
Lloh0:
	adrp	x8, _MT9V022_CHIP_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT9V022_CHIP_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_write
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	x9, x0, #63
	neg	w8, w8
	and	w0, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT9V022_CHIP_CONTROL,4,2       ; @MT9V022_CHIP_CONTROL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mt9v022_s_stream
.subsections_via_symbols
