	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25840_s_stream
_cx25840_s_stream:                      ## @cx25840_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, %r12d
	movq	%rdi, %rbx
	callq	_to_state
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	_cx25840_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r12d, %r12d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_v4l_dbg
	movq	%r15, %rdi
	callq	_is_cx2388x
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_is_cx231xx
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	movl	$1057, %esi                     ## imm = 0x421
	callq	_cx25840_read
	orl	$11, %eax
	jmp	LBB0_4
LBB0_6:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_is_cx231xx
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	movl	$1057, %esi                     ## imm = 0x421
	callq	_cx25840_read
	andl	$-12, %eax
LBB0_4:
	movq	%r14, %rdi
	movl	$1057, %esi                     ## imm = 0x421
LBB0_11:
	movl	%eax, %edx
	callq	_cx25840_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	movl	$277, %esi                      ## imm = 0x115
	callq	_cx25840_read
	orl	$12, %eax
	movq	%r14, %rdi
	movl	$277, %esi                      ## imm = 0x115
	movl	%eax, %edx
	callq	_cx25840_write
	movq	%r14, %rdi
	movl	$278, %esi                      ## imm = 0x116
	callq	_cx25840_read
	orl	$4, %eax
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	movl	$277, %esi                      ## imm = 0x115
	callq	_cx25840_read
	andl	$-13, %eax
	movq	%r14, %rdi
	movl	$277, %esi                      ## imm = 0x115
	movl	%eax, %edx
	callq	_cx25840_write
	movq	%r14, %rdi
	movl	$278, %esi                      ## imm = 0x116
	callq	_cx25840_read
	andl	$-5, %eax
LBB0_10:
	movq	%r14, %rdi
	movl	$278, %esi                      ## imm = 0x116
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_cx25840_debug,4,2              ## @cx25840_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s video output\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

	.no_dead_strip	_cx25840_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx25840_s_stream
_cx25840_s_stream:                      ; @cx25840_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	x21, x1
	mov	x19, x0
	bl	_to_state
	mov	x20, x0
	mov	x0, x19
	bl	_v4l2_get_subdevdata
	mov	x19, x0
Lloh0:
	adrp	x8, _cx25840_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cx25840_debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x4, x9, x8, eq
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l_dbg
	mov	x0, x20
	bl	_is_cx2388x
	cbz	w21, LBB0_4
; %bb.1:
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_is_cx231xx
	cbz	x0, LBB0_9
LBB0_3:
	mov	x0, x19
	mov	w1, #1057
	bl	_cx25840_read
	mov	w8, #11
	orr	w2, w0, w8
	b	LBB0_7
LBB0_4:
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_is_cx231xx
	cbz	x0, LBB0_10
LBB0_6:
	mov	x0, x19
	mov	w1, #1057
	bl	_cx25840_read
	mov	w8, #-12
	and	w2, w0, w8
LBB0_7:
	mov	x0, x19
	mov	w1, #1057
LBB0_8:
	bl	_cx25840_write
	mov	w0, #0
	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_9:
	mov	x0, x19
	mov	w1, #277
	bl	_cx25840_read
	orr	w2, w0, #0xc
	mov	x0, x19
	mov	w1, #277
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #278
	bl	_cx25840_read
	orr	w2, w0, #0x4
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	w1, #277
	bl	_cx25840_read
	and	w2, w0, #0xfffffff3
	mov	x0, x19
	mov	w1, #277
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #278
	bl	_cx25840_read
	and	w2, w0, #0xfffffffb
LBB0_11:
	mov	x0, x19
	mov	w1, #278
	b	LBB0_8
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cx25840_debug,4,2              ; @cx25840_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s video output\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

	.no_dead_strip	_cx25840_s_stream
.subsections_via_symbols
