	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_for_dc_servo
_wait_for_dc_servo:                     ## @wait_for_dc_servo
	.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
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	L_.str.1(%rip), %r14
	movq	_WM8993_DCS_CAL_COMPLETE_MASK@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_msleep
	movq	_WM8993_DC_SERVO_READBACK_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_soc_read
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r13), %eax
	andl	%eax, %ebx
	cmpl	%eax, %ebx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r12), %ecx
	cmpl	$999, %r12d                     ## imm = 0x3E7
	movl	%ecx, %r12d
	jb	LBB0_1
LBB0_3:
	cmpl	%eax, %ebx
	je	LBB0_4
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Waiting for DC servo...\n"

	.comm	_WM8993_DC_SERVO_READBACK_0,4,2 ## @WM8993_DC_SERVO_READBACK_0
L_.str.1:                               ## @.str.1
	.asciz	"DC servo status: %x\n"

	.comm	_WM8993_DCS_CAL_COMPLETE_MASK,4,2 ## @WM8993_DCS_CAL_COMPLETE_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Timed out waiting for DC Servo\n"

	.no_dead_strip	_wait_for_dc_servo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_for_dc_servo
_wait_for_dc_servo:                     ; @wait_for_dc_servo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w22, #0
Lloh2:
	adrp	x23, _WM8993_DC_SERVO_READBACK_0@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WM8993_DC_SERVO_READBACK_0@GOTPAGEOFF]
Lloh4:
	adrp	x24, _WM8993_DCS_CAL_COMPLETE_MASK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _WM8993_DCS_CAL_COMPLETE_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_soc_read
	mov	x21, x0
	ldr	w0, [x19]
	str	x21, [sp]
	mov	x1, x20
	bl	_dev_dbg
	ldr	w8, [x24]
	and	w9, w8, w21
	cmp	w9, w8
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w10, w22, #1
	cmp	w22, #999
	mov	x22, x10
	b.lo	LBB0_1
LBB0_3:
	cmp	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dev_err
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Waiting for DC servo...\n"

	.comm	_WM8993_DC_SERVO_READBACK_0,4,2 ; @WM8993_DC_SERVO_READBACK_0
l_.str.1:                               ; @.str.1
	.asciz	"DC servo status: %x\n"

	.comm	_WM8993_DCS_CAL_COMPLETE_MASK,4,2 ; @WM8993_DCS_CAL_COMPLETE_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Timed out waiting for DC Servo\n"

	.no_dead_strip	_wait_for_dc_servo
.subsections_via_symbols
