	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8900_resume
_wm8900_resume:                         ## @wm8900_resume
	.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	%rdi, %r15
	callq	_platform_get_drvdata
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	8(%r13), %rbx
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kmemdup
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_wm8900_reset
	movq	_SND_SOC_BIAS_STANDBY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wm8900_set_bias_level
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	movl	4(%rbx), %edx
	movq	$0, (%rbx)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wm8900_set_fll
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_3:
	testq	%r14, %r14
	je	LBB0_8
## %bb.4:
	movq	_WM8900_MAXREG@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_snd_soc_write
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_9:
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SND_SOC_BIAS_STANDBY,4,2       ## @SND_SOC_BIAS_STANDBY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to restart FLL\n"

	.comm	_WM8900_MAXREG,4,2              ## @WM8900_MAXREG
L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate register cache\n"

	.no_dead_strip	_wm8900_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8900_resume
_wm8900_resume:                         ; @wm8900_resume
	.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	x21, x0
	bl	_platform_get_drvdata
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	x22, [x19, #8]
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kmemdup
	mov	x20, x0
	mov	x0, x19
	bl	_wm8900_reset
Lloh3:
	adrp	x8, _SND_SOC_BIAS_STANDBY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SND_SOC_BIAS_STANDBY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm8900_set_bias_level
	ldr	w3, [x22]
	cbz	w3, LBB0_3
; %bb.1:
	ldr	w2, [x22, #4]
	str	xzr, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_wm8900_set_fll
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_10
LBB0_3:
	cbz	x20, LBB0_8
; %bb.4:
Lloh8:
	adrp	x22, _WM8900_MAXREG@GOTPAGE
Lloh9:
	ldr	x22, [x22, _WM8900_MAXREG@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x20, x21, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_soc_write
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x20
	bl	_kfree
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SND_SOC_BIAS_STANDBY,4,2       ; @SND_SOC_BIAS_STANDBY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to restart FLL\n"

	.comm	_WM8900_MAXREG,4,2              ; @WM8900_MAXREG
l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate register cache\n"

	.no_dead_strip	_wm8900_resume
.subsections_via_symbols
