	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak881x_s_stream
_ak881x_s_stream:                       ## @ak881x_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_ak881x
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movq	_AK881X_COMPONENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	xorl	%edx, %edx
	cmpl	$1, %ecx
	adcl	$3, %edx
	jmp	LBB0_3
LBB0_1:
	xorl	%edx, %edx
LBB0_3:
	movq	_AK881X_DAC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reg_write
	movq	_AK881X_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reg_read
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AK881X_COMPONENT,4,2           ## @AK881X_COMPONENT
	.comm	_AK881X_DAC_MODE,4,2            ## @AK881X_DAC_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip status 0x%x\n"

	.comm	_AK881X_STATUS,4,2              ## @AK881X_STATUS
	.no_dead_strip	_ak881x_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak881x_s_stream
_ak881x_s_stream:                       ; @ak881x_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
	mov	x20, x1
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	bl	_to_ak881x
	cbz	w20, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _AK881X_COMPONENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AK881X_COMPONENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #3
	cinc	w2, w8, eq
	b	LBB0_3
LBB0_2:
	mov	w2, #0
LBB0_3:
Lloh3:
	adrp	x8, _AK881X_DAC_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AK881X_DAC_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_write
Lloh6:
	adrp	x8, _AK881X_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AK881X_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_read
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AK881X_COMPONENT,4,2           ; @AK881X_COMPONENT
	.comm	_AK881X_DAC_MODE,4,2            ; @AK881X_DAC_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip status 0x%x\n"

	.comm	_AK881X_STATUS,4,2              ; @AK881X_STATUS
	.no_dead_strip	_ak881x_s_stream
.subsections_via_symbols
