	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidc_mixer_set
_vidc_mixer_set:                        ## @vidc_mixer_set
	.cfi_startproc
## %bb.0:
	movl	%edi, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_vidc_level_r@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_vidc_level_l@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movl	%esi, %edx
	shrl	$8, %edx
	andl	$127, %edx
	cmpl	$100, %edx
	movl	$100, %r8d
	cmovael	%r8d, %edx
	andl	$127, %esi
	cmpl	$100, %esi
	cmovael	%r8d, %esi
	movl	%edi, %edi
	movl	512(%r10), %eax
	imull	%esi, %eax
	movl	512(%r9), %ecx
	imull	%edx, %ecx
	movl	%esi, (%r10,%rdi,4)
	movl	%edx, (%r9,%rdi,4)
	shll	$16, %eax
	movl	$3518437209, %edx               ## imm = 0xD1B71759
	imulq	%rdx, %rax
	shrq	$45, %rax
	movq	_vidc_audio_volume_l@GOTPCREL(%rip), %rsi
	movq	%rax, (%rsi)
	shll	$16, %ecx
	imulq	%rdx, %rcx
	shrq	$45, %rcx
	movq	_vidc_audio_volume_r@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vidc_level_l,8,3               ## @vidc_level_l
	.comm	_vidc_level_r,8,3               ## @vidc_level_r
	.comm	_vidc_audio_volume_l,8,3        ## @vidc_audio_volume_l
	.comm	_vidc_audio_volume_r,8,3        ## @vidc_audio_volume_r
	.no_dead_strip	_vidc_mixer_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidc_mixer_set
_vidc_mixer_set:                        ; @vidc_mixer_set
	.cfi_startproc
; %bb.0:
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _vidc_level_r@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vidc_level_r@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8, #512]
Lloh3:
	adrp	x10, _vidc_level_l@GOTPAGE
Lloh4:
	ldr	x10, [x10, _vidc_level_l@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	w11, [x10, #512]
	ubfx	w12, w1, #8, #7
	mov	w13, #100
	cmp	w12, #100
	csel	w12, w12, w13, lo
	and	w14, w1, #0x7f
	cmp	w14, #100
	csel	w13, w14, w13, lo
	mov	w14, w0
	lsl	x14, x14, #2
	str	w13, [x10, x14]
	str	w12, [x8, x14]
	mul	w8, w13, w11
	lsl	w8, w8, #16
	mov	w10, #5977
	movk	w10, #53687, lsl #16
	umull	x8, w8, w10
	lsr	x8, x8, #45
Lloh6:
	adrp	x11, _vidc_audio_volume_l@GOTPAGE
Lloh7:
	ldr	x11, [x11, _vidc_audio_volume_l@GOTPAGEOFF]
Lloh8:
	str	x8, [x11]
	mul	w8, w12, w9
	lsl	w8, w8, #16
	umull	x8, w8, w10
	lsr	x8, x8, #45
Lloh9:
	adrp	x9, _vidc_audio_volume_r@GOTPAGE
Lloh10:
	ldr	x9, [x9, _vidc_audio_volume_r@GOTPAGEOFF]
Lloh11:
	str	x8, [x9]
LBB0_2:
	ret
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_vidc_level_l,8,3               ; @vidc_level_l
	.comm	_vidc_level_r,8,3               ; @vidc_level_r
	.comm	_vidc_audio_volume_l,8,3        ; @vidc_audio_volume_l
	.comm	_vidc_audio_volume_r,8,3        ; @vidc_audio_volume_r
	.no_dead_strip	_vidc_mixer_set
.subsections_via_symbols
