	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_set_vmaster_tlv        ## -- Begin function snd_hda_set_vmaster_tlv
	.p2align	4, 0x90
_snd_hda_set_vmaster_tlv:               ## @snd_hda_set_vmaster_tlv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %rbx
	callq	_query_amp_caps
                                        ## kill: def $eax killed $eax def $rax
	movq	_AC_AMPCAP_NUM_STEPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_AC_AMPCAP_NUM_STEPS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_AC_AMPCAP_STEP_SIZE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_AC_AMPCAP_STEP_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,4), %eax
	addl	$25, %eax
	movq	_SNDRV_CTL_TLVT_DB_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	movl	$8, 4(%rbx)
	imull	%eax, %edx
	negl	%edx
	movl	%edx, 8(%rbx)
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_AMPCAP_NUM_STEPS,4,2        ## @AC_AMPCAP_NUM_STEPS
	.comm	_AC_AMPCAP_NUM_STEPS_SHIFT,4,2  ## @AC_AMPCAP_NUM_STEPS_SHIFT
	.comm	_AC_AMPCAP_STEP_SIZE,4,2        ## @AC_AMPCAP_STEP_SIZE
	.comm	_AC_AMPCAP_STEP_SIZE_SHIFT,4,2  ## @AC_AMPCAP_STEP_SIZE_SHIFT
	.comm	_SNDRV_CTL_TLVT_DB_SCALE,4,2    ## @SNDRV_CTL_TLVT_DB_SCALE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_set_vmaster_tlv        ; -- Begin function snd_hda_set_vmaster_tlv
	.p2align	2
_snd_hda_set_vmaster_tlv:               ; @snd_hda_set_vmaster_tlv
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	bl	_query_amp_caps
Lloh0:
	adrp	x8, _AC_AMPCAP_NUM_STEPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_AMPCAP_NUM_STEPS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _AC_AMPCAP_NUM_STEPS_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_AMPCAP_NUM_STEPS_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh6:
	adrp	x9, _AC_AMPCAP_STEP_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AC_AMPCAP_STEP_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh9:
	adrp	x10, _AC_AMPCAP_STEP_SIZE_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AC_AMPCAP_STEP_SIZE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	asr	w9, w9, w10
	mov	w10, #25
	mul	w9, w9, w10
	add	w9, w9, #25
Lloh12:
	adrp	x10, _SNDRV_CTL_TLVT_DB_SCALE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SNDRV_CTL_TLVT_DB_SCALE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	mov	w11, #8
	stp	w10, w11, [x19]
	mneg	w8, w8, w9
	stp	w8, w9, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_AMPCAP_NUM_STEPS,4,2        ; @AC_AMPCAP_NUM_STEPS
	.comm	_AC_AMPCAP_NUM_STEPS_SHIFT,4,2  ; @AC_AMPCAP_NUM_STEPS_SHIFT
	.comm	_AC_AMPCAP_STEP_SIZE,4,2        ; @AC_AMPCAP_STEP_SIZE
	.comm	_AC_AMPCAP_STEP_SIZE_SHIFT,4,2  ; @AC_AMPCAP_STEP_SIZE_SHIFT
	.comm	_SNDRV_CTL_TLVT_DB_SCALE,4,2    ; @SNDRV_CTL_TLVT_DB_SCALE
.subsections_via_symbols
