	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs8427_reset
_snd_cs8427_reset:                      ## @snd_cs8427_reset
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r15), %rbx
	movl	(%r15), %edi
	callq	_snd_i2c_lock
	movq	(%rbx), %rax
	movq	_CS8427_REG_CLOCKSOURCE@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movl	(%rax,%rsi,4), %ecx
	movq	_CS8427_RXDAES3INPUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	movq	_CS8427_RUN@GOTPCREL(%rip), %r14
	movq	_CS8427_RXDMASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%r14), %edx
	andl	%ecx, %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax,%rsi,4)
	movq	%r15, %rdi
	callq	_snd_cs8427_reg_write
	movl	$200, %edi
	callq	_udelay
	movq	_CS8427_RXDILRCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r14), %edx
	movq	(%rbx), %rax
	movq	(%r12), %rsi
	orl	(%rax,%rsi,4), %edx
	movl	%edx, (%rax,%rsi,4)
	movq	%r15, %rdi
	callq	_snd_cs8427_reg_write
	movl	$200, %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_snd_i2c_unlock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r14
	addq	%rsi, %r14
	movq	%r14, %rdi
	callq	_time_after_eq
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_CS8427_REG_RECVERRORS@GOTPCREL(%rip), %r12
	movq	_CS8427_UNLOCK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_snd_i2c_lock
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_snd_cs8427_reg_read
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_snd_i2c_unlock
	testl	%ebx, (%r13)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_time_after_eq
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	movl	(%r15), %edi
	callq	_snd_i2c_lock
	movq	_CS8427_RXDMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_CS8427_REG_CLOCKSOURCE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	andl	(%rax,%rsi,4), %edx
	movl	%edx, (%rax,%rsi,4)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.6:
	movq	_CS8427_RXDAES3INPUT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax,%rsi,4)
LBB0_7:
	movq	%r15, %rdi
	callq	_snd_cs8427_reg_write
	movl	(%r15), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_i2c_unlock                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CS8427_REG_CLOCKSOURCE,8,3     ## @CS8427_REG_CLOCKSOURCE
	.comm	_CS8427_RXDAES3INPUT,4,2        ## @CS8427_RXDAES3INPUT
	.comm	_CS8427_RUN,4,2                 ## @CS8427_RUN
	.comm	_CS8427_RXDMASK,4,2             ## @CS8427_RXDMASK
	.comm	_CS8427_RXDILRCK,4,2            ## @CS8427_RXDILRCK
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_CS8427_REG_RECVERRORS,4,2      ## @CS8427_REG_RECVERRORS
	.comm	_CS8427_UNLOCK,4,2              ## @CS8427_UNLOCK
	.no_dead_strip	_snd_cs8427_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs8427_reset
_snd_cs8427_reset:                      ; @snd_cs8427_reset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x23, [x19, #8]
	ldr	w0, [x19]
	bl	_snd_i2c_lock
	ldr	x8, [x23]
Lloh0:
	adrp	x26, _CS8427_REG_CLOCKSOURCE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CS8427_REG_CLOCKSOURCE@GOTPAGEOFF]
	ldr	x1, [x26]
	lsl	x9, x1, #2
	ldr	w10, [x8, x9]
Lloh2:
	adrp	x11, _CS8427_RXDAES3INPUT@GOTPAGE
Lloh3:
	ldr	x11, [x11, _CS8427_RXDAES3INPUT@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x11]
	and	w25, w24, w10
Lloh5:
	adrp	x20, _CS8427_RUN@GOTPAGE
Lloh6:
	ldr	x20, [x20, _CS8427_RUN@GOTPAGEOFF]
Lloh7:
	adrp	x12, _CS8427_RXDMASK@GOTPAGE
Lloh8:
	ldr	x12, [x12, _CS8427_RXDMASK@GOTPAGEOFF]
	ldr	w11, [x20]
Lloh9:
	ldr	w12, [x12]
	orr	w11, w12, w11
	bic	w2, w10, w11
	str	w2, [x8, x9]
	mov	x0, x19
	bl	_snd_cs8427_reg_write
	mov	w0, #200
	bl	_udelay
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _CS8427_RXDILRCK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CS8427_RXDILRCK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x23]
	ldr	x1, [x26]
	lsl	x10, x1, #2
	ldr	w11, [x9, x10]
	orr	w2, w8, w11
	str	w2, [x9, x10]
	mov	x0, x19
	bl	_snd_cs8427_reg_write
	mov	w0, #200
	bl	_udelay
	ldr	w0, [x19]
	bl	_snd_i2c_unlock
Lloh13:
	adrp	x28, _jiffies@GOTPAGE
Lloh14:
	ldr	x28, [x28, _jiffies@GOTPAGEOFF]
	ldr	x1, [x28]
	ldr	x8, [x23, #8]
	add	x20, x8, x1
	mov	x0, x20
	bl	_time_after_eq
	cbz	x0, LBB0_6
; %bb.3:
Lloh15:
	adrp	x22, _CS8427_REG_RECVERRORS@GOTPAGE
Lloh16:
	ldr	x22, [x22, _CS8427_REG_RECVERRORS@GOTPAGEOFF]
Lloh17:
	adrp	x27, _CS8427_UNLOCK@GOTPAGE
Lloh18:
	ldr	x27, [x27, _CS8427_UNLOCK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_snd_i2c_lock
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_cs8427_reg_read
	mov	x21, x0
	ldr	w0, [x19]
	bl	_snd_i2c_unlock
	ldr	w8, [x27]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	ldr	x1, [x28]
	mov	x0, x20
	bl	_time_after_eq
	cbnz	x0, LBB0_4
LBB0_6:
	ldr	w0, [x19]
	bl	_snd_i2c_lock
Lloh19:
	adrp	x8, _CS8427_RXDMASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CS8427_RXDMASK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x8]
	ldr	x8, [x23]
	ldr	x1, [x26]
	lsl	x10, x1, #2
	ldr	w11, [x8, x10]
	bic	w2, w11, w9
	str	w2, [x8, x10]
	cmp	w25, w24
	b.ne	LBB0_8
; %bb.7:
Lloh22:
	adrp	x9, _CS8427_RXDAES3INPUT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CS8427_RXDAES3INPUT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w9, w2
	str	w2, [x8, x1, lsl #2]
LBB0_8:
	mov	x0, x19
	bl	_snd_cs8427_reg_write
	ldr	w0, [x19]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_snd_i2c_unlock
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CS8427_REG_CLOCKSOURCE,8,3     ; @CS8427_REG_CLOCKSOURCE
	.comm	_CS8427_RXDAES3INPUT,4,2        ; @CS8427_RXDAES3INPUT
	.comm	_CS8427_RUN,4,2                 ; @CS8427_RUN
	.comm	_CS8427_RXDMASK,4,2             ; @CS8427_RXDMASK
	.comm	_CS8427_RXDILRCK,4,2            ; @CS8427_RXDILRCK
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_CS8427_REG_RECVERRORS,4,2      ; @CS8427_REG_RECVERRORS
	.comm	_CS8427_UNLOCK,4,2              ; @CS8427_UNLOCK
	.no_dead_strip	_snd_cs8427_reset
.subsections_via_symbols
