	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_amp_hash
_update_amp_hash:                       ## @update_amp_hash
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %ebx
	movl	%edx, %r12d
	movq	%rdi, %r13
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %esi
	movl	%r8d, %edx
	callq	_HDA_HASH_KEY
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_get_alloc_amp_hash
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, %ebx
	movl	8(%rax), %r14d
	movl	%r12d, %edi
	callq	_INFO_AMP_VOL
	testl	%r14d, %eax
	je	LBB0_2
LBB0_11:
	testl	%ebx, %ebx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_2:
	movq	%r13, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	jne	LBB0_3
## %bb.4:
	movq	_AC_AMP_GET_LEFT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_AC_AMP_GET_RIGHT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jne	LBB0_6
## %bb.7:
	movq	_AC_AMP_GET_OUTPUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_AC_AMP_GET_INPUT@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rax), %r8d
	orl	%r14d, %r8d
	orl	(%rcx), %r8d
	movq	_AC_VERB_GET_AMP_GAIN_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_HDA_HASH_KEY
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_get_alloc_amp_hash
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %r15
	movl	8(%rax), %r14d
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_INFO_AMP_VOL
	testl	%r14d, %eax
	jne	LBB0_11
## %bb.10:
	movzbl	-44(%rbp), %eax                 ## 1-byte Folded Reload
	movq	(%r15), %rcx
	movslq	%r12d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	%r12d, %edi
	callq	_INFO_AMP_VOL
	orl	%eax, 8(%r15)
	jmp	LBB0_13
LBB0_12:
	xorl	%r15d, %r15d
LBB0_13:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_AMP_GET_RIGHT,4,2           ## @AC_AMP_GET_RIGHT
	.comm	_AC_AMP_GET_LEFT,4,2            ## @AC_AMP_GET_LEFT
	.comm	_HDA_OUTPUT,4,2                 ## @HDA_OUTPUT
	.comm	_AC_AMP_GET_OUTPUT,4,2          ## @AC_AMP_GET_OUTPUT
	.comm	_AC_AMP_GET_INPUT,4,2           ## @AC_AMP_GET_INPUT
	.comm	_AC_VERB_GET_AMP_GAIN_MUTE,4,2  ## @AC_VERB_GET_AMP_GAIN_MUTE
	.no_dead_strip	_update_amp_hash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_amp_hash
_update_amp_hash:                       ; @update_amp_hash
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	mov	x0, x1
	mov	x1, x3
	mov	x2, x4
	bl	_HDA_HASH_KEY
	mov	x1, x0
	mov	x0, x21
	bl	_get_alloc_amp_hash
	mov	x25, x0
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w26, [x25, #8]
	mov	x0, x20
	bl	_INFO_AMP_VOL
	tst	w0, w26
	b.eq	LBB0_4
LBB0_2:
	cbz	w19, LBB0_7
; %bb.3:
	mov	x25, #0
	b	LBB0_7
LBB0_4:
	mov	x0, x21
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _AC_AMP_GET_RIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_AMP_GET_RIGHT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AC_AMP_GET_LEFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AC_AMP_GET_LEFT@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _HDA_OUTPUT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HDA_OUTPUT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _AC_AMP_GET_OUTPUT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _AC_AMP_GET_OUTPUT@GOTPAGEOFF]
Lloh9:
	adrp	x11, _AC_AMP_GET_INPUT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _AC_AMP_GET_INPUT@GOTPAGEOFF]
	cmp	w9, w23
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w4, w8, w9
Lloh11:
	adrp	x8, _AC_VERB_GET_AMP_GAIN_MUTE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AC_VERB_GET_AMP_GAIN_MUTE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	w2, #0
	bl	_snd_hda_codec_read
	mov	x26, x0
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_HDA_HASH_KEY
	mov	x1, x0
	mov	x0, x21
	bl	_get_alloc_amp_hash
	mov	x25, x0
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w21, [x25, #8]
	mov	x0, x20
	bl	_INFO_AMP_VOL
	tst	w0, w21
	b.ne	LBB0_2
; %bb.6:
	and	w8, w26, #0xff
	ldr	x9, [x25]
	str	w8, [x9, w20, sxtw #2]
	mov	x0, x20
	bl	_INFO_AMP_VOL
	ldr	w8, [x25, #8]
	orr	w8, w8, w0
	str	w8, [x25, #8]
LBB0_7:
	mov	x0, x25
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_AMP_GET_RIGHT,4,2           ; @AC_AMP_GET_RIGHT
	.comm	_AC_AMP_GET_LEFT,4,2            ; @AC_AMP_GET_LEFT
	.comm	_HDA_OUTPUT,4,2                 ; @HDA_OUTPUT
	.comm	_AC_AMP_GET_OUTPUT,4,2          ; @AC_AMP_GET_OUTPUT
	.comm	_AC_AMP_GET_INPUT,4,2           ; @AC_AMP_GET_INPUT
	.comm	_AC_VERB_GET_AMP_GAIN_MUTE,4,2  ; @AC_VERB_GET_AMP_GAIN_MUTE
	.no_dead_strip	_update_amp_hash
.subsections_via_symbols
