	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pdacf_ak4117_change
_snd_pdacf_ak4117_change:               ## @snd_pdacf_ak4117_change
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AK4117_UNLCK@GOTPCREL(%rip), %r15
	testb	%sil, (%r15)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	movq	_PDAUDIOCF_REG_SCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movb	(%r15), %cl
	andb	(%r14), %cl
	movq	_PDAUDIOCF_BLUE_LED_OFF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %edi
	orl	%eax, %edi
	notl	%edx
	andl	%eax, %edx
	testb	%cl, %cl
	cmovnel	%edi, %edx
	movq	%rbx, %rdi
	callq	_pdacf_reg_write
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AK4117_UNLCK,1,0               ## @AK4117_UNLCK
	.comm	_PDAUDIOCF_REG_SCR,4,2          ## @PDAUDIOCF_REG_SCR
	.comm	_PDAUDIOCF_BLUE_LED_OFF,4,2     ## @PDAUDIOCF_BLUE_LED_OFF
	.no_dead_strip	_snd_pdacf_ak4117_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pdacf_ak4117_change
_snd_pdacf_ak4117_change:               ; @snd_pdacf_ak4117_change
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _AK4117_UNLCK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AK4117_UNLCK@GOTPAGEOFF]
	ldrb	w8, [x21]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _PDAUDIOCF_REG_SCR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PDAUDIOCF_REG_SCR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	asr	w9, w1, #1
	ldr	w8, [x8, w9, sxtw #2]
	ldrb	w9, [x19]
Lloh5:
	adrp	x10, _PDAUDIOCF_BLUE_LED_OFF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PDAUDIOCF_BLUE_LED_OFF@GOTPAGEOFF]
	ldrb	w11, [x21]
Lloh7:
	ldr	w10, [x10]
	orr	w12, w10, w8
	bic	w8, w8, w10
	tst	w11, w9
	csel	w2, w8, w12, eq
	mov	x0, x20
	bl	_pdacf_reg_write
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AK4117_UNLCK,1,0               ; @AK4117_UNLCK
	.comm	_PDAUDIOCF_REG_SCR,4,2          ; @PDAUDIOCF_REG_SCR
	.comm	_PDAUDIOCF_BLUE_LED_OFF,4,2     ; @PDAUDIOCF_BLUE_LED_OFF
	.no_dead_strip	_snd_pdacf_ak4117_change
.subsections_via_symbols
