	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mixer_set
_mixer_set:                             ## @mixer_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$32, %edi
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %ecx
	movzbl	%ch, %eax
	movzbl	%cl, %ecx
	movl	%ecx, %edx
	shll	$16, %edx
	subl	%ecx, %edx
	imulq	$1374389535, %rdx, %rcx         ## imm = 0x51EB851F
	shrq	$37, %rcx
	movl	%eax, %edx
	shll	$16, %edx
	subl	%eax, %edx
	imulq	$1374389535, %rdx, %rax         ## imm = 0x51EB851F
	shrq	$37, %rax
	movq	_dev@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movslq	%edi, %rdi
	movl	%ecx, (%rsi,%rdi,4)
	movq	8(%rdx), %rcx
	movl	%eax, (%rcx,%rdi,4)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dev,24,3                       ## @dev
	.comm	_SMA_bInPotPosLeft,8,3          ## @SMA_bInPotPosLeft
	.comm	_SMA_bInPotPosRight,8,3         ## @SMA_bInPotPosRight
	.comm	_HDEXAR_IN_SET_POTS,4,2         ## @HDEXAR_IN_SET_POTS
	.comm	_HDEX_AUX_REQ,4,2               ## @HDEX_AUX_REQ
	.comm	_SMA_bMicPotPosLeft,8,3         ## @SMA_bMicPotPosLeft
	.comm	_SMA_bMicPotPosRight,8,3        ## @SMA_bMicPotPosRight
	.comm	_HDEXAR_MIC_SET_POTS,4,2        ## @HDEXAR_MIC_SET_POTS
	.comm	_SMA_wCurrMastVolLeft,8,3       ## @SMA_wCurrMastVolLeft
	.comm	_SMA_wCurrMastVolRight,8,3      ## @SMA_wCurrMastVolRight
	.comm	_wCurrPlayVol,4,2               ## @wCurrPlayVol
	.comm	_wCurrInVol,4,2                 ## @wCurrInVol
	.comm	_wCurrMHdrVol,4,2               ## @wCurrMHdrVol
	.comm	_bAuxPotPos,4,2                 ## @bAuxPotPos
	.comm	_HDEXAR_AUX_SET_POTS,4,2        ## @HDEXAR_AUX_SET_POTS
	.no_dead_strip	_mixer_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mixer_set
_mixer_set:                             ; @mixer_set
	.cfi_startproc
; %bb.0:
	cmp	w0, #32
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	mov	x8, x0
	mov	w0, #0
	and	w9, w1, #0xff
	lsl	w10, w9, #16
	sub	w9, w10, w9
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	umull	x9, w9, w10
	lsr	x9, x9, #37
Lloh3:
	adrp	x11, _dev@GOTPAGE
Lloh4:
	ldr	x11, [x11, _dev@GOTPAGEOFF]
	sbfiz	x8, x8, #2, #32
	ldp	x12, x11, [x11]
	str	w9, [x12, x8]
	ubfx	w9, w1, #8, #8
	lsl	w12, w9, #16
	sub	w9, w12, w9
	umull	x9, w9, w10
	lsr	x9, x9, #37
	str	w9, [x11, x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dev,24,3                       ; @dev
	.comm	_SMA_bInPotPosLeft,8,3          ; @SMA_bInPotPosLeft
	.comm	_SMA_bInPotPosRight,8,3         ; @SMA_bInPotPosRight
	.comm	_HDEXAR_IN_SET_POTS,4,2         ; @HDEXAR_IN_SET_POTS
	.comm	_HDEX_AUX_REQ,4,2               ; @HDEX_AUX_REQ
	.comm	_SMA_bMicPotPosLeft,8,3         ; @SMA_bMicPotPosLeft
	.comm	_SMA_bMicPotPosRight,8,3        ; @SMA_bMicPotPosRight
	.comm	_HDEXAR_MIC_SET_POTS,4,2        ; @HDEXAR_MIC_SET_POTS
	.comm	_SMA_wCurrMastVolLeft,8,3       ; @SMA_wCurrMastVolLeft
	.comm	_SMA_wCurrMastVolRight,8,3      ; @SMA_wCurrMastVolRight
	.comm	_wCurrPlayVol,4,2               ; @wCurrPlayVol
	.comm	_wCurrInVol,4,2                 ; @wCurrInVol
	.comm	_wCurrMHdrVol,4,2               ; @wCurrMHdrVol
	.comm	_bAuxPotPos,4,2                 ; @bAuxPotPos
	.comm	_HDEXAR_AUX_SET_POTS,4,2        ; @HDEXAR_AUX_SET_POTS
	.no_dead_strip	_mixer_set
.subsections_via_symbols
