	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8974_set_bias_level
_wm8974_set_bias_level:                 ## @wm8974_set_bias_level
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_WM8974_POWER1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_snd_soc_read
	movl	%eax, %ebx
	andl	$-4, %ebx
	leal	-129(%r14), %eax
	cmpl	$2, %eax
	jb	LBB0_6
## %bb.1:
	cmpl	$128, %r14d
	je	LBB0_8
## %bb.2:
	cmpl	$131, %r14d
	jne	LBB0_5
## %bb.3:
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_soc_write
	movq	_WM8974_POWER2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_soc_write
	movq	_WM8974_POWER3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_6:
	orl	$1, %ebx
	jmp	LBB0_7
LBB0_8:
	movq	_WM8974_POWER1_BIASEN@GOTPCREL(%rip), %rax
	movq	_WM8974_POWER1_BUFIOEN@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	cmpl	$131, (%r15)
	jne	LBB0_10
## %bb.9:
	movl	(%r12), %esi
	movl	%ebx, %edx
	orl	$3, %edx
	movq	%r15, %rdi
	callq	_snd_soc_write
	movl	$100, %edi
	callq	_mdelay
LBB0_10:
	orl	$2, %ebx
LBB0_7:
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
LBB0_4:
	callq	_snd_soc_write
LBB0_5:
	movl	%r14d, (%r15)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8974_POWER1,4,2              ## @WM8974_POWER1
	.comm	_WM8974_POWER1_BIASEN,4,2       ## @WM8974_POWER1_BIASEN
	.comm	_WM8974_POWER1_BUFIOEN,4,2      ## @WM8974_POWER1_BUFIOEN
	.comm	_WM8974_POWER2,4,2              ## @WM8974_POWER2
	.comm	_WM8974_POWER3,4,2              ## @WM8974_POWER3
	.no_dead_strip	_wm8974_set_bias_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8974_set_bias_level
_wm8974_set_bias_level:                 ; @wm8974_set_bias_level
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _WM8974_POWER1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WM8974_POWER1@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_snd_soc_read
	and	w8, w0, #0xfffffffc
	sub	w9, w19, #129
	cmp	w9, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w19, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w19, #131
	b.ne	LBB0_10
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_snd_soc_write
Lloh2:
	adrp	x8, _WM8974_POWER2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM8974_POWER2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_snd_soc_write
Lloh5:
	adrp	x8, _WM8974_POWER3@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WM8974_POWER3@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	b	LBB0_9
LBB0_4:
	orr	w2, w8, #0x1
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x9, _WM8974_POWER1_BIASEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WM8974_POWER1_BIASEN@GOTPAGEOFF]
Lloh10:
	adrp	x10, _WM8974_POWER1_BUFIOEN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _WM8974_POWER1_BUFIOEN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w22, w8, w10
	ldr	w8, [x20]
	cmp	w8, #131
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x21]
	orr	w2, w22, #0x3
	mov	x0, x20
	bl	_snd_soc_write
	mov	w0, #100
	bl	_mdelay
LBB0_7:
	orr	w2, w22, #0x2
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x20
LBB0_9:
	bl	_snd_soc_write
LBB0_10:
	str	w19, [x20]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8974_POWER1,4,2              ; @WM8974_POWER1
	.comm	_WM8974_POWER1_BIASEN,4,2       ; @WM8974_POWER1_BIASEN
	.comm	_WM8974_POWER1_BUFIOEN,4,2      ; @WM8974_POWER1_BUFIOEN
	.comm	_WM8974_POWER2,4,2              ; @WM8974_POWER2
	.comm	_WM8974_POWER3,4,2              ; @WM8974_POWER3
	.no_dead_strip	_wm8974_set_bias_level
.subsections_via_symbols
