	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ams_delta_digital_mute
_ams_delta_digital_mute:                ## @ams_delta_digital_mute
	.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	_ams_delta_muted@GOTPCREL(%rip), %r15
	cmpl	%esi, (%r15)
	je	LBB0_3
## %bb.1:
	movl	%esi, %ebx
	movq	_ams_delta_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movl	%ebx, (%r15)
	movq	_cx81801_cmd_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.2:
	movq	_AMS_DELTA_LATCH2_MODEM_CODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %ebx
	cmovnel	%edi, %ebx
	movl	%ebx, %esi
	callq	_ams_delta_latch2_write
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ams_delta_muted,4,2            ## @ams_delta_muted
	.comm	_ams_delta_lock,4,2             ## @ams_delta_lock
	.comm	_cx81801_cmd_pending,4,2        ## @cx81801_cmd_pending
	.comm	_AMS_DELTA_LATCH2_MODEM_CODEC,4,2 ## @AMS_DELTA_LATCH2_MODEM_CODEC
	.no_dead_strip	_ams_delta_digital_mute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ams_delta_digital_mute
_ams_delta_digital_mute:                ; @ams_delta_digital_mute
	.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, _ams_delta_muted@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ams_delta_muted@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x1
Lloh2:
	adrp	x20, _ams_delta_lock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ams_delta_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_bh
	str	w19, [x21]
Lloh4:
	adrp	x8, _cx81801_cmd_pending@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cx81801_cmd_pending@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_spin_unlock_bh
	cbnz	w21, LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _AMS_DELTA_LATCH2_MODEM_CODEC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AMS_DELTA_LATCH2_MODEM_CODEC@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	cmp	w19, #0
	csel	w1, wzr, w0, eq
	bl	_ams_delta_latch2_write
LBB0_3:
	mov	w0, #0
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ams_delta_muted,4,2            ; @ams_delta_muted
	.comm	_ams_delta_lock,4,2             ; @ams_delta_lock
	.comm	_cx81801_cmd_pending,4,2        ; @cx81801_cmd_pending
	.comm	_AMS_DELTA_LATCH2_MODEM_CODEC,4,2 ; @AMS_DELTA_LATCH2_MODEM_CODEC
	.no_dead_strip	_ams_delta_digital_mute
.subsections_via_symbols
