	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smw_mixer_set
_smw_mixer_set:                         ## @smw_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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	leal	-129(%rbx), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.3:
	movl	%r13d, %eax
	shll	$8, %eax
	orl	%r14d, %eax
	movq	(%r15), %rcx
	movl	%ebx, %ebx
	movl	%eax, (%rcx,%rbx,4)
	movzwl	516(%rcx), %eax
	movzbl	%al, %eax
	shll	$2, %eax
	imull	$5243, %eax, %eax               ## imm = 0x147B
	shrl	$13, %eax
	andl	$-16, %eax
	movzwl	520(%rcx), %ecx
	movzbl	%cl, %ecx
	shll	$2, %ecx
	imull	$5243, %ecx, %edx               ## imm = 0x147B
	shrl	$17, %edx
	andl	$15, %edx
	orl	%eax, %edx
	movq	%r15, %rdi
	movl	$13, %esi
	callq	_sb_setmixer
	movq	(%r15), %rax
	movzwl	516(%rax), %ecx
	shrl	$6, %ecx
	andl	$-4, %ecx
	imull	$5243, %ecx, %ecx               ## imm = 0x147B
	shrl	$13, %ecx
	andl	$-16, %ecx
	movzwl	520(%rax), %eax
	shrl	$6, %eax
	andl	$-4, %eax
	imull	$5243, %eax, %edx               ## imm = 0x147B
	shrl	$17, %edx
	andl	$15, %edx
	orl	%ecx, %edx
	movq	%r15, %rdi
	movl	$14, %esi
LBB0_9:
	callq	_sb_setmixer
	jmp	LBB0_10
LBB0_1:
	cmpl	$128, %ebx
	jne	LBB0_4
## %bb.2:
	movl	%r14d, %eax
	shll	$5, %eax
	leal	(%rax,%rax,2), %eax
	cltq
	imulq	$-1374389535, %rax, %rax        ## imm = 0xAE147AE1
	movq	%rax, %rcx
	sarq	$37, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edx
	addl	$96, %edx
	movq	%r15, %rdi
	movl	$11, %esi
	callq	_sb_setmixer
	movl	%r13d, %eax
	shll	$5, %eax
	leal	(%rax,%rax,2), %eax
	cltq
	imulq	$-1374389535, %rax, %rax        ## imm = 0xAE147AE1
	movq	%rax, %rcx
	sarq	$37, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edx
	addl	$96, %edx
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_sb_setmixer
	movl	$128, %ebx
LBB0_10:
	shll	$8, %r13d
	orl	%r14d, %r13d
	movq	(%r15), %rax
	movl	%r13d, (%rax,%rbx,4)
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.5:
	movq	_smw_mix_regs@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jle	LBB0_6
## %bb.7:
	movq	(%r12), %rax
	movl	%ebx, %ebx
	movl	(%rax,%rbx,4), %r12d
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.8:
	leal	(,%r14,8), %eax
	leal	(%rax,%rax,2), %eax
	cltq
	imulq	$-1374389535, %rax, %rax        ## imm = 0xAE147AE1
	movq	%rax, %rcx
	sarq	$37, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edx
	addl	$24, %edx
	orl	$32, %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_sb_setmixer
	incl	%r12d
	leal	(,%r13,8), %eax
	leal	(%rax,%rax,2), %eax
	cltq
	imulq	$-1374389535, %rax, %rax        ## imm = 0xAE147AE1
	movq	%rax, %rcx
	sarq	$37, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edx
	addl	$24, %edx
	orl	$64, %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_smw_mix_regs,8,3               ## @smw_mix_regs
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smw_mixer_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smw_mixer_set
_smw_mixer_set:                         ; @smw_mixer_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x1
	mov	x20, x0
	sub	w8, w1, #129
	orr	w19, w2, w3, lsl #8
	cmp	w8, #2
	b.hs	LBB0_3
; %bb.1:
	ldr	x8, [x20]
	mov	w25, w23
	str	w19, [x8, w23, uxtw #2]
	ldrh	w9, [x8, #516]
	ubfiz	w9, w9, #2, #8
	mov	w21, #5243
	mul	w9, w9, w21
	lsr	w9, w9, #13
	and	w2, w9, #0x3f0
	ldrh	w8, [x8, #520]
	ubfiz	w8, w8, #2, #8
	mul	w8, w8, w21
	bfxil	w2, w8, #17, #4
	mov	x0, x20
	mov	w1, #13
	bl	_sb_setmixer
	ldr	x8, [x20]
	ldrh	w9, [x8, #516]
	lsr	w9, w9, #6
	and	w9, w9, #0x3fc
	mul	w9, w9, w21
	lsr	w9, w9, #13
	and	w2, w9, #0x3f0
	ldrh	w8, [x8, #520]
	lsr	w8, w8, #6
	and	w8, w8, #0x3fc
	mul	w8, w8, w21
	bfxil	w2, w8, #17, #4
	mov	x0, x20
	mov	w1, #14
LBB0_2:
	bl	_sb_setmixer
	b	LBB0_5
LBB0_3:
	mov	x21, x3
	mov	x22, x2
	cmp	w23, #128
	b.ne	LBB0_7
; %bb.4:
	add	w8, w22, w22, lsl #1
	lsl	w8, w8, #5
	mov	w22, #31457
	movk	w22, #44564, lsl #16
	smull	x8, w8, w22
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	add	w2, w8, #96
	mov	x0, x20
	mov	w1, #11
	bl	_sb_setmixer
	add	w8, w21, w21, lsl #1
	lsl	w8, w8, #5
	smull	x8, w8, w22
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	add	w2, w8, #96
	mov	x0, x20
	mov	w1, #12
	bl	_sb_setmixer
	mov	w25, #128
LBB0_5:
	ldr	x8, [x20]
	str	w19, [x8, x25, lsl #2]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	tbnz	w23, #31, LBB0_11
; %bb.8:
Lloh0:
	adrp	x24, _smw_mix_regs@GOTPAGE
Lloh1:
	ldr	x24, [x24, _smw_mix_regs@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, w23
	b.le	LBB0_11
; %bb.9:
	ldr	x8, [x24]
	ldr	w24, [x8, w23, uxtw #2]
	cbz	w24, LBB0_11
; %bb.10:
	mov	w25, w23
	add	w8, w22, w22, lsl #1
	lsl	w8, w8, #3
	mov	w22, #31457
	movk	w22, #44564, lsl #16
	smull	x8, w8, w22
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	add	w8, w8, #24
	orr	w2, w8, #0x20
	mov	x0, x20
	mov	x1, x24
	bl	_sb_setmixer
	add	w1, w24, #1
	add	w8, w21, w21, lsl #1
	lsl	w8, w8, #3
	smull	x8, w8, w22
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	add	w8, w8, #24
	orr	w2, w8, #0x40
	mov	x0, x20
	b	LBB0_2
LBB0_11:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_smw_mix_regs,8,3               ; @smw_mix_regs
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smw_mixer_set
.subsections_via_symbols
