	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function codec_amp_update
_codec_amp_update:                      ## @codec_amp_update
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r9d, %edi
	andl	$-256, %edi
	callq	_snd_BUG_ON
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	24(%rbp), %r9d
	callq	_update_amp_hash
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movzbl	%cl, %esi
	cmovel	%ecx, %esi
	movq	(%rax), %r8
	movslq	%r13d, %rdx
	movl	(%r8,%rdx,4), %ecx
	movl	16(%rbp), %ebx
	xorl	%ecx, %ebx
	andl	%esi, %ebx
	xorl	%ecx, %ebx
	cmpl	%ebx, %ecx
	jne	LBB0_3
LBB0_2:
	callq	_mutex_unlock
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	%ebx, (%r8,%rdx,4)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %r12d
	movl	%r12d, 12(%rax)
	movl	8(%rax), %r15d
	callq	_mutex_unlock
	movl	$1, %r14d
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.4:
	movl	%ebx, (%rsp)
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_put_vol_mute
LBB0_5:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_codec_amp_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function codec_amp_update
_codec_amp_update:                      ; @codec_amp_update
	.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	x28, x7
	mov	x25, x6
	mov	x26, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	and	w0, w5, #0xffffff00
	bl	_snd_BUG_ON
	mov	x27, x0
	add	x24, x23, #4
	mov	x0, x24
	bl	_mutex_lock
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x28
	bl	_update_amp_hash
	cbz	x0, LBB0_2
; %bb.1:
	and	w8, w26, #0xff
	cmp	x27, #0
	csel	w9, w26, w8, eq
	and	w10, w9, w25
	ldr	x8, [x0]
	ldr	w11, [x8, w21, sxtw #2]
	bic	w9, w11, w9
	orr	w25, w9, w10
	cmp	w11, w25
	b.ne	LBB0_3
LBB0_2:
	mov	x0, x24
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	sxtw	x9, w21
	str	w25, [x8, x9, lsl #2]
	ldr	w27, [x23]
	str	w27, [x0, #12]
	ldr	w26, [x0, #8]
	mov	x0, x24
	bl	_mutex_unlock
	cbnz	w27, LBB0_5
; %bb.4:
	mov	x0, x23
	mov	x1, x26
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x25
	bl	_put_vol_mute
LBB0_5:
	mov	w0, #1
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_codec_amp_update
.subsections_via_symbols
