	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm_set_vol
_wm_set_vol:                            ## @wm_set_vol
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_WM_VOL_MUTE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %esi
	movl	%ecx, %edi
	orl	%edx, %edi
	xorl	%eax, %eax
	testl	%edi, %esi
	jne	LBB0_2
## %bb.1:
	notl	%esi
	andl	%esi, %edx
	andl	%ecx, %esi
	imull	%edx, %esi
	shrl	$7, %esi
	movq	_WM_VOL_MAX@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	andl	%esi, %ecx
	movq	_DAC_MIN@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	addb	%cl, %dl
	testb	%cl, %cl
	movzbl	%dl, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, %eax
LBB0_2:
	movzbl	%al, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_wm_put
	orl	$256, %ebx                      ## imm = 0x100
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wm_put_nocache                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WM_VOL_MUTE,2,1                ## @WM_VOL_MUTE
	.comm	_WM_VOL_MAX,2,1                 ## @WM_VOL_MAX
	.comm	_DAC_MIN,1,0                    ## @DAC_MIN
	.no_dead_strip	_wm_set_vol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm_set_vol
_wm_set_vol:                            ; @wm_set_vol
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WM_VOL_MUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM_VOL_MUTE@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w9, w3, w2
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_3
LBB0_2:
	bic	w9, w2, w8
	bic	w8, w3, w8
	mul	w8, w9, w8
Lloh2:
	adrp	x9, _WM_VOL_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WM_VOL_MAX@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w8, w9, w8, lsr #7
Lloh4:
	adrp	x9, _DAC_MIN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DAC_MIN@GOTPAGEOFF]
	ldrb	w9, [x9]
	add	w9, w9, w8
	tst	w8, #0xff
	csel	w21, wzr, w9, eq
LBB0_3:
	and	w2, w21, #0xff
	mov	x0, x20
	mov	x1, x19
	bl	_wm_put
	mov	w2, #256
	bfxil	w2, w21, #0, #8
	mov	x0, x20
	mov	x1, x19
	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	_wm_put_nocache
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_VOL_MUTE,2,1                ; @WM_VOL_MUTE
	.comm	_WM_VOL_MAX,2,1                 ; @WM_VOL_MAX
	.comm	_DAC_MIN,1,0                    ; @DAC_MIN
	.no_dead_strip	_wm_set_vol
.subsections_via_symbols
