	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si3054_pcm_prepare
_si3054_pcm_prepare:                    ## @si3054_pcm_prepare
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_SI3054_LINE_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r8), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_SET_REG
	movq	_SI3054_LINE_LEVEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_GET_REG
	movq	(%r13), %rcx
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%cl
	movl	$255, %edx
	movl	$65280, %esi                    ## imm = 0xFF00
	cmovel	%edx, %esi
	movl	%r15d, %edx
	shll	$4, %edx
	movzbl	%dl, %edx
	shlb	$3, %cl
	shll	%cl, %edx
	andl	%eax, %esi
	orl	%esi, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_SET_REG
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_snd_hda_codec_setup_stream
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI3054_LINE_RATE,4,2           ## @SI3054_LINE_RATE
	.comm	_SI3054_LINE_LEVEL,4,2          ## @SI3054_LINE_LEVEL
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_si3054_pcm_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si3054_pcm_prepare
_si3054_pcm_prepare:                    ; @si3054_pcm_prepare
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x8, [x4, #8]
Lloh0:
	adrp	x9, _SI3054_LINE_RATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SI3054_LINE_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	x0, x22
	bl	_SET_REG
Lloh3:
	adrp	x24, _SI3054_LINE_LEVEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SI3054_LINE_LEVEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_GET_REG
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	mov	w9, #65280
	mov	w10, #255
	csel	w9, w10, w9, eq
	and	w9, w9, w0
	ubfiz	w10, w21, #4, #4
	lsl	x8, x8, #3
	lsl	w8, w10, w8
	orr	w2, w9, w8
	ldr	w1, [x24]
	mov	x0, x22
	bl	_SET_REG
	ldr	w1, [x23]
	mov	x0, x22
	mov	x2, x21
	mov	w3, #0
	mov	x4, x20
	bl	_snd_hda_codec_setup_stream
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SI3054_LINE_RATE,4,2           ; @SI3054_LINE_RATE
	.comm	_SI3054_LINE_LEVEL,4,2          ; @SI3054_LINE_LEVEL
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_si3054_pcm_prepare
.subsections_via_symbols
