	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25840_s_audio_stream
_cx25840_s_audio_stream:                ## @cx25840_s_audio_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, %r15d
	movq	%rdi, %rbx
	callq	_to_state
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_is_cx2583x
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	callq	_is_cx2388x
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	%r12, %rdi
	callq	_is_cx231xx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	_cx25840_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %r15d
	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	%r14, %rdi
	movl	$277, %esi                      ## imm = 0x115
	callq	_cx25840_read
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	orl	$128, %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	$3, %eax
	jmp	LBB0_6
LBB0_5:
	andl	$-129, %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	$-4, %eax
LBB0_6:
	movq	%r14, %rdi
	movl	$278, %esi                      ## imm = 0x116
	movl	%eax, %edx
	callq	_cx25840_write
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cx25840_debug,4,2              ## @cx25840_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s audio output\n"

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

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

	.no_dead_strip	_cx25840_s_audio_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_audio_stream
_cx25840_s_audio_stream:                ; @cx25840_s_audio_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	x20, x1
	mov	x19, x0
	bl	_to_state
	mov	x21, x0
	mov	x0, x19
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	mov	x0, x21
	bl	_is_cx2583x
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x21
	bl	_is_cx2388x
	cbnz	x0, LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_is_cx231xx
	cbnz	x0, LBB0_7
; %bb.3:
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	w20, #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, x19
	mov	w1, #277
	bl	_cx25840_read
	cbz	w20, LBB0_5
; %bb.4:
	orr	w2, w0, #0x80
	mov	x0, x19
	mov	w1, #277
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #278
	bl	_cx25840_read
	orr	w2, w0, #0x3
	b	LBB0_6
LBB0_5:
	and	w2, w0, #0xffffff7f
	mov	x0, x19
	mov	w1, #277
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #278
	bl	_cx25840_read
	and	w2, w0, #0xfffffffc
LBB0_6:
	mov	x0, x19
	mov	w1, #278
	bl	_cx25840_write
LBB0_7:
	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
	.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 audio output\n"

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

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

	.no_dead_strip	_cx25840_s_audio_stream
.subsections_via_symbols
