	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8580_paif_hw_params
_wm8580_paif_hw_params:                 ## @wm8580_paif_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	%rdx, %r14
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	_WM8580_PAIF3@GOTPCREL(%rip), %rax
	movq	(%rdx), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_snd_soc_read
	movl	%eax, %ebx
	movq	_WM8580_AIF_LENGTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_params_format
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.1:
	notl	%r13d
	andl	%r13d, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_WM8580_AIF_LENGTH_24@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movq	_WM8580_AIF_LENGTH_20@GOTPCREL(%rip), %rax
LBB0_5:
	orl	(%rax), %ebx
LBB0_6:
	movq	(%r14), %rsi
	movq	_WM8580_PAIF3@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
LBB0_7:
	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_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_WM8580_PAIF3,8,3               ## @WM8580_PAIF3
	.comm	_WM8580_AIF_LENGTH_MASK,4,2     ## @WM8580_AIF_LENGTH_MASK
	.comm	_WM8580_AIF_LENGTH_20,4,2       ## @WM8580_AIF_LENGTH_20
	.comm	_WM8580_AIF_LENGTH_24,4,2       ## @WM8580_AIF_LENGTH_24
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wm8580_paif_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8580_paif_hw_params
_wm8580_paif_hw_params:                 ; @wm8580_paif_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	x19, x2
	mov	x22, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh0:
	adrp	x23, _WM8580_PAIF3@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WM8580_PAIF3@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x2]
	add	x1, x9, x8
	mov	x0, x20
	bl	_snd_soc_read
	mov	x21, x0
Lloh2:
	adrp	x8, _WM8580_AIF_LENGTH_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM8580_AIF_LENGTH_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_params_format
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	bic	w2, w21, w24
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh7:
	adrp	x8, _WM8580_AIF_LENGTH_24@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WM8580_AIF_LENGTH_24@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x8, _WM8580_AIF_LENGTH_20@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM8580_AIF_LENGTH_20@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	orr	w2, w8, w2
LBB0_6:
	ldr	x8, [x23]
	ldr	x9, [x19]
	add	x1, x9, x8
	mov	x0, x20
	bl	_snd_soc_write
	mov	w0, #0
LBB0_7:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_WM8580_PAIF3,8,3               ; @WM8580_PAIF3
	.comm	_WM8580_AIF_LENGTH_MASK,4,2     ; @WM8580_AIF_LENGTH_MASK
	.comm	_WM8580_AIF_LENGTH_20,4,2       ; @WM8580_AIF_LENGTH_20
	.comm	_WM8580_AIF_LENGTH_24,4,2       ; @WM8580_AIF_LENGTH_24
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wm8580_paif_hw_params
.subsections_via_symbols
