	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au8522_s_stream
_au8522_s_stream:                       ## @au8522_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	_to_state
	movq	%rax, %rbx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	$0, 8(%rbx)
	movq	_AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_au8522_writereg
	movl	$10, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_au8522_video_set
	movq	%rbx, %rdi
	callq	_set_audio_input
	movq	_AU8522_ANALOG_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_au8522_writereg
	movq	_AU8522_SUSPEND_MODE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H,4,2 ## @AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H
	.comm	_AU8522_ANALOG_MODE,4,2         ## @AU8522_ANALOG_MODE
	.comm	_AU8522_SUSPEND_MODE,4,2        ## @AU8522_SUSPEND_MODE
	.no_dead_strip	_au8522_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au8522_s_stream
_au8522_s_stream:                       ; @au8522_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	_to_state
	mov	x19, x0
	cbz	w20, LBB0_2
; %bb.1:
	str	xzr, [x19, #8]
Lloh0:
	adrp	x8, _AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_au8522_writereg
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_au8522_video_set
	mov	x0, x19
	bl	_set_audio_input
Lloh3:
	adrp	x8, _AU8522_ANALOG_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AU8522_ANALOG_MODE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32
	bl	_au8522_writereg
Lloh8:
	adrp	x8, _AU8522_SUSPEND_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AU8522_SUSPEND_MODE@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H,4,2 ; @AU8522_SYSTEM_MODULE_CONTROL_0_REG0A4H
	.comm	_AU8522_ANALOG_MODE,4,2         ; @AU8522_ANALOG_MODE
	.comm	_AU8522_SUSPEND_MODE,4,2        ; @AU8522_SUSPEND_MODE
	.no_dead_strip	_au8522_s_stream
.subsections_via_symbols
