	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8900_hw_params
_wm8900_hw_params:                      ## @wm8900_hw_params
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	_WM8900_REG_AUDIO1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_snd_soc_read
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_params_format
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.1:
	movl	%ebx, %edx
	andl	$-97, %edx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	orl	$96, %ebx
	movl	%ebx, %edx
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	orl	$64, %edx
	jmp	LBB0_6
LBB0_5:
	orl	$32, %edx
LBB0_6:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_snd_soc_write
	movq	(%r12), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_WM8900_REG_DACCTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_snd_soc_read
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_params_rate
	movq	_WM8900_REG_DACCTRL_DAC_SB_FILT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%r12d, %ecx
	notl	%edx
	andl	%r12d, %edx
	cmpl	$24001, %eax                    ## imm = 0x5DC1
	cmovll	%ecx, %edx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_snd_soc_write
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_WM8900_REG_AUDIO1,4,2          ## @WM8900_REG_AUDIO1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_WM8900_REG_DACCTRL,4,2         ## @WM8900_REG_DACCTRL
	.comm	_WM8900_REG_DACCTRL_DAC_SB_FILT,4,2 ## @WM8900_REG_DACCTRL_DAC_SB_FILT
	.no_dead_strip	_wm8900_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8900_hw_params
_wm8900_hw_params:                      ; @wm8900_hw_params
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x19, [x8]
Lloh0:
	adrp	x23, _WM8900_REG_AUDIO1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WM8900_REG_AUDIO1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_soc_read
	mov	x22, x0
	mov	x0, x20
	bl	_params_format
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	and	w2, w22, #0xffffff9f
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	orr	w2, w22, #0x60
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_4:
	orr	w2, w2, #0x40
	b	LBB0_6
LBB0_5:
	orr	w2, w2, #0x20
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_soc_write
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh10:
	adrp	x22, _WM8900_REG_DACCTRL@GOTPAGE
Lloh11:
	ldr	x22, [x22, _WM8900_REG_DACCTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_read
	mov	x21, x0
	mov	x0, x20
	bl	_params_rate
Lloh12:
	adrp	x8, _WM8900_REG_DACCTRL_DAC_SB_FILT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM8900_REG_DACCTRL_DAC_SB_FILT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w9, w8, w21
	bic	w8, w21, w8
	mov	w10, #24001
	cmp	w0, w10
	csel	w2, w9, w8, lt
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_write
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_WM8900_REG_AUDIO1,4,2          ; @WM8900_REG_AUDIO1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_WM8900_REG_DACCTRL,4,2         ; @WM8900_REG_DACCTRL
	.comm	_WM8900_REG_DACCTRL_DAC_SB_FILT,4,2 ; @WM8900_REG_DACCTRL_DAC_SB_FILT
	.no_dead_strip	_wm8900_hw_params
.subsections_via_symbols
