	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs8427_select_corudata
_snd_cs8427_select_corudata:            ## @snd_cs8427_select_corudata
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	testl	%esi, %esi
	movq	_CS8427_BSEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovnel	%ecx, %esi
	movq	(%rax), %r8
	movq	_CS8427_REG_CSDATABUF@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%r8,%r9,4), %edx
	movl	%edx, %eax
	notl	%eax
	testl	%eax, %esi
	je	LBB0_2
## %bb.1:
	notl	%ecx
	andl	%ecx, %edx
	orl	%esi, %edx
	movl	%edx, (%r8,%r9,4)
	movq	%r9, %rsi
	callq	_snd_cs8427_reg_write
	testl	%eax, %eax
	js	LBB0_3
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CS8427_BSEL,4,2                ## @CS8427_BSEL
	.comm	_CS8427_REG_CSDATABUF,8,3       ## @CS8427_REG_CSDATABUF
	.no_dead_strip	_snd_cs8427_select_corudata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs8427_select_corudata
_snd_cs8427_select_corudata:            ; @snd_cs8427_select_corudata
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _CS8427_BSEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CS8427_BSEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, #0
	csel	w10, wzr, w8, eq
	ldr	x9, [x9]
Lloh3:
	adrp	x11, _CS8427_REG_CSDATABUF@GOTPAGE
Lloh4:
	ldr	x11, [x11, _CS8427_REG_CSDATABUF@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x11]
	ldr	w11, [x9, x1, lsl #2]
	bics	wzr, w10, w11
	b.eq	LBB0_2
; %bb.1:
	bic	w8, w11, w8
	orr	w2, w8, w10
	str	w2, [x9, x1, lsl #2]
	bl	_snd_cs8427_reg_write
	tbnz	w0, #31, LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CS8427_BSEL,4,2                ; @CS8427_BSEL
	.comm	_CS8427_REG_CSDATABUF,8,3       ; @CS8427_REG_CSDATABUF
	.no_dead_strip	_snd_cs8427_select_corudata
.subsections_via_symbols
