	.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), %eax
	movl	%ecx, %esi
	orl	%edx, %esi
	testl	%esi, %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movzwl	%cx, %esi
	movzwl	%dx, %edx
	movq	_wm_vol@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notl	%eax
	andl	%eax, %edx
	andl	%esi, %eax
	imull	%edx, %eax
	imulq	$33818641, %rax, %rdx           ## imm = 0x2040811
	shrq	$32, %rdx
	subl	%edx, %eax
	shrl	%eax
	addl	%edx, %eax
	shrl	$6, %eax
	movq	_WM_VOL_MAX@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %edx
	andl	%eax, %edx
	movb	$127, %al
	subb	(%rcx,%rdx,4), %al
LBB0_3:
	movzbl	%al, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_wm_put
	orl	$384, %ebx                      ## imm = 0x180
	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,8,3                     ## @wm_vol
	.comm	_WM_VOL_MAX,2,1                 ## @WM_VOL_MAX
	.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	w8, #0
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x9, _wm_vol@GOTPAGE
Lloh3:
	ldr	x9, [x9, _wm_vol@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	bic	w10, w2, w8
	bic	w8, w3, w8
	mul	w8, w10, w8
	mov	w10, #2065
	movk	w10, #516, lsl #16
	umull	x10, w8, w10
	lsr	x10, x10, #32
	sub	w8, w8, w10
	add	w8, w10, w8, lsr #1
	lsr	w8, w8, #6
Lloh5:
	adrp	x10, _WM_VOL_MAX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _WM_VOL_MAX@GOTPAGEOFF]
	ldrh	w10, [x10]
	and	x8, x8, x10
	ldr	w8, [x9, x8, lsl #2]
	mov	w9, #127
	sub	w8, w9, w8
LBB0_3:
	and	w21, w8, #0xff
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_wm_put
	orr	w2, w21, #0x180
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_VOL_MUTE,2,1                ; @WM_VOL_MUTE
	.comm	_wm_vol,8,3                     ; @wm_vol
	.comm	_WM_VOL_MAX,2,1                 ; @WM_VOL_MAX
	.no_dead_strip	_wm_set_vol
.subsections_via_symbols
