	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8523_set_bias_level
_wm8523_set_bias_level:                 ## @wm8523_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	%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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$131, %r14d
	je	LBB0_7
## %bb.2:
	cmpl	$129, %r14d
	jne	LBB0_13
## %bb.3:
	movq	_WM8523_PSCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8523_SYS_ENA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$3, %ecx
	jmp	LBB0_12
LBB0_4:
	cmpl	$131, (%r15)
	jne	LBB0_11
## %bb.5:
	movl	(%r12), %edi
	callq	_ARRAY_SIZE
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_7:
	movq	_WM8523_PSCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8523_SYS_ENA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_snd_soc_update_bits
	movl	$100, %edi
	callq	_msleep
	movl	(%r12), %edi
	callq	_ARRAY_SIZE
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_regulator_bulk_disable
	jmp	LBB0_13
LBB0_8:
	movq	_WM8523_PSCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8523_SYS_ENA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_snd_soc_update_bits
	movq	_WM8523_AIF_CTRL1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_WM8523_MAX_REGISTER@GOTPCREL(%rip), %r13
	cmpl	(%r13), %ebx
	jge	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_soc_write
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movl	$100, %edi
	callq	_msleep
LBB0_11:
	movq	_WM8523_PSCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8523_SYS_ENA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$2, %ecx
LBB0_12:
	callq	_snd_soc_update_bits
LBB0_13:
	movl	%r14d, (%r15)
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8523_PSCTRL1,4,2             ## @WM8523_PSCTRL1
	.comm	_WM8523_SYS_ENA_MASK,4,2        ## @WM8523_SYS_ENA_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable supplies: %d\n"

	.comm	_WM8523_AIF_CTRL1,4,2           ## @WM8523_AIF_CTRL1
	.comm	_WM8523_MAX_REGISTER,4,2        ## @WM8523_MAX_REGISTER
	.no_dead_strip	_wm8523_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 wm8523_set_bias_level
_wm8523_set_bias_level:                 ; @wm8523_set_bias_level
	.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	x19, x0
	ldr	x22, [x0, #8]
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #131
	b.eq	LBB0_7
; %bb.2:
	cmp	w20, #129
	b.ne	LBB0_13
; %bb.3:
Lloh0:
	adrp	x8, _WM8523_PSCTRL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8523_PSCTRL1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _WM8523_SYS_ENA_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM8523_SYS_ENA_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #3
	b	LBB0_12
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #131
	b.ne	LBB0_11
; %bb.5:
	ldr	w0, [x22]
	bl	_ARRAY_SIZE
	ldr	w1, [x22]
	bl	_regulator_bulk_enable
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_14
LBB0_7:
Lloh8:
	adrp	x8, _WM8523_PSCTRL1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM8523_PSCTRL1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _WM8523_SYS_ENA_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM8523_SYS_ENA_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_snd_soc_update_bits
	mov	w0, #100
	bl	_msleep
	ldr	w0, [x22]
	bl	_ARRAY_SIZE
	ldr	w1, [x22]
	bl	_regulator_bulk_disable
	b	LBB0_13
LBB0_8:
Lloh14:
	adrp	x8, _WM8523_PSCTRL1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM8523_PSCTRL1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _WM8523_SYS_ENA_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM8523_SYS_ENA_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_snd_soc_update_bits
Lloh20:
	adrp	x8, _WM8523_AIF_CTRL1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WM8523_AIF_CTRL1@GOTPAGEOFF]
Lloh22:
	ldrsw	x21, [x8]
Lloh23:
	adrp	x23, _WM8523_MAX_REGISTER@GOTPAGE
Lloh24:
	ldr	x23, [x23, _WM8523_MAX_REGISTER@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w21, w8
	b.ge	LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_soc_write
	add	x21, x21, #1
	ldrsw	x8, [x23]
	cmp	x21, x8
	b.lt	LBB0_9
LBB0_10:
	mov	w0, #100
	bl	_msleep
LBB0_11:
Lloh25:
	adrp	x8, _WM8523_PSCTRL1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WM8523_PSCTRL1@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _WM8523_SYS_ENA_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WM8523_SYS_ENA_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #2
LBB0_12:
	bl	_snd_soc_update_bits
LBB0_13:
	mov	w21, #0
	str	w20, [x19]
LBB0_14:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8523_PSCTRL1,4,2             ; @WM8523_PSCTRL1
	.comm	_WM8523_SYS_ENA_MASK,4,2        ; @WM8523_SYS_ENA_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable supplies: %d\n"

	.comm	_WM8523_AIF_CTRL1,4,2           ; @WM8523_AIF_CTRL1
	.comm	_WM8523_MAX_REGISTER,4,2        ; @WM8523_MAX_REGISTER
	.no_dead_strip	_wm8523_set_bias_level
.subsections_via_symbols
