	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs4231_mce_up
_snd_cs4231_mce_up:                     ## @snd_cs4231_mce_up
	.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, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_snd_cs4231_ready
	movq	_CS4231_MCE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	%eax, (%rbx)
	movq	_REGSEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_CS4231U
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	___cs4231_readb
	movl	%eax, %r15d
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_snd_printdd
LBB0_2:
	testl	%r15d, (%r13)
	jne	LBB0_4
## %bb.3:
	andl	$31, %r15d
	orl	(%rbx), %r15d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_CS4231U
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	___cs4231_writeb
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CS4231_MCE,4,2                 ## @CS4231_MCE
	.comm	_REGSEL,4,2                     ## @REGSEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mce_up [%p]: serious init problem - codec still busy\n"

	.comm	_CS4231_INIT,4,2                ## @CS4231_INIT
	.no_dead_strip	_snd_cs4231_mce_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs4231_mce_up
_snd_cs4231_mce_up:                     ; @snd_cs4231_mce_up
	.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	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_snd_cs4231_ready
Lloh0:
	adrp	x23, _CS4231_MCE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CS4231_MCE@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh2:
	adrp	x22, _REGSEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _REGSEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_CS4231U
	mov	x1, x0
	mov	x0, x20
	bl	___cs4231_readb
	mov	x21, x0
	cmp	w0, #128
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
LBB0_2:
	ldr	w8, [x23]
	tst	w8, w21
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x20]
	and	w9, w21, #0x1f
	orr	w21, w8, w9
	ldr	w1, [x22]
	mov	x0, x20
	bl	_CS4231U
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	___cs4231_writeb
LBB0_4:
	mov	x0, x19
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CS4231_MCE,4,2                 ; @CS4231_MCE
	.comm	_REGSEL,4,2                     ; @REGSEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mce_up [%p]: serious init problem - codec still busy\n"

	.comm	_CS4231_INIT,4,2                ; @CS4231_INIT
	.no_dead_strip	_snd_cs4231_mce_up
.subsections_via_symbols
