	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8903_run_sequence
_wm8903_run_sequence:                   ## @wm8903_run_sequence
	.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, %r12d
	movq	%rdi, %r13
	movq	(%rdi), %r14
	xorl	%edi, %edi
	cmpl	$49, %esi
	setae	%dil
	callq	_BUG_ON
	movq	_WM8903_WRITE_SEQUENCER_0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_snd_soc_read
	movl	%eax, %r15d
	movq	_WM8903_WSEQ_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_WM8903_WRITE_SEQUENCER_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8903_WSEQ_START@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_snd_soc_write
	movq	_WM8903_WRITE_SEQUENCER_4@GOTPCREL(%rip), %r12
	movq	_WM8903_WSEQ_BUSY@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_snd_soc_read
	testl	%eax, (%rbx)
	jne	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_WM8903_WRITE_SEQUENCER_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8903_WSEQ_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8903_WRITE_SEQUENCER_0,4,2   ## @WM8903_WRITE_SEQUENCER_0
	.comm	_WM8903_WSEQ_ENA,4,2            ## @WM8903_WSEQ_ENA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting sequence at %d\n"

	.comm	_WM8903_WRITE_SEQUENCER_3,4,2   ## @WM8903_WRITE_SEQUENCER_3
	.comm	_WM8903_WSEQ_START,4,2          ## @WM8903_WSEQ_START
	.comm	_WM8903_WRITE_SEQUENCER_4,4,2   ## @WM8903_WRITE_SEQUENCER_4
	.comm	_WM8903_WSEQ_BUSY,4,2           ## @WM8903_WSEQ_BUSY
L_.str.1:                               ## @.str.1
	.asciz	"Sequence complete\n"

	.no_dead_strip	_wm8903_run_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8903_run_sequence
_wm8903_run_sequence:                   ; @wm8903_run_sequence
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0]
	cmp	w1, #48
	cset	w0, hi
	bl	_BUG_ON
Lloh0:
	adrp	x23, _WM8903_WRITE_SEQUENCER_0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WM8903_WRITE_SEQUENCER_0@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_soc_read
Lloh2:
	adrp	x24, _WM8903_WSEQ_ENA@GOTPAGE
Lloh3:
	ldr	x24, [x24, _WM8903_WSEQ_ENA@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w21, w8, w0
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_snd_soc_write
	str	x22, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh6:
	adrp	x8, _WM8903_WRITE_SEQUENCER_3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM8903_WRITE_SEQUENCER_3@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _WM8903_WSEQ_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WM8903_WSEQ_START@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_soc_write
Lloh12:
	adrp	x22, _WM8903_WRITE_SEQUENCER_4@GOTPAGE
Lloh13:
	ldr	x22, [x22, _WM8903_WRITE_SEQUENCER_4@GOTPAGEOFF]
Lloh14:
	adrp	x25, _WM8903_WSEQ_BUSY@GOTPAGE
Lloh15:
	ldr	x25, [x25, _WM8903_WSEQ_BUSY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w8, [x25]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.2:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w1, [x23]
	ldr	w8, [x24]
	bic	w2, w21, w8
	mov	x0, x19
	bl	_snd_soc_write
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8903_WRITE_SEQUENCER_0,4,2   ; @WM8903_WRITE_SEQUENCER_0
	.comm	_WM8903_WSEQ_ENA,4,2            ; @WM8903_WSEQ_ENA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting sequence at %d\n"

	.comm	_WM8903_WRITE_SEQUENCER_3,4,2   ; @WM8903_WRITE_SEQUENCER_3
	.comm	_WM8903_WSEQ_START,4,2          ; @WM8903_WSEQ_START
	.comm	_WM8903_WRITE_SEQUENCER_4,4,2   ; @WM8903_WRITE_SEQUENCER_4
	.comm	_WM8903_WSEQ_BUSY,4,2           ; @WM8903_WSEQ_BUSY
l_.str.1:                               ; @.str.1
	.asciz	"Sequence complete\n"

	.no_dead_strip	_wm8903_run_sequence
.subsections_via_symbols
