	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sb_common_mixer_set            ## -- Begin function sb_common_mixer_set
	.p2align	4, 0x90
_sb_common_mixer_set:                   ## @sb_common_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %r15
	cmpl	%esi, (%rdi)
	jle	LBB0_2
## %bb.3:
	movl	%ecx, %ebx
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	%r12d, %r8d
	movq	(%rax,%r8,8), %rax
	movq	_LEFT_CHN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r13d
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%edx, %r14d
	callq	_sb_getmixer
	movb	%al, -41(%rbp)
	movq	_LEFT_CHN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	-41(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %r8d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	callq	_change_bits
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movq	_RIGHT_CHN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	%r13d, (%rax,%rcx,4)
	je	LBB0_8
## %bb.5:
	movzbl	-41(%rbp), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_sb_setmixer
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movq	_RIGHT_CHN@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %r13d
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_sb_getmixer
	movb	%al, -41(%rbp)
	movq	(%r14), %rcx
LBB0_8:
	leaq	-41(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%ebx, %r8d
	callq	_change_bits
	movzbl	-41(%rbp), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_sb_setmixer
	shll	$8, %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	shll	$8, %ebx
	orl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LEFT_CHN,8,3                   ## @LEFT_CHN
	.comm	_RIGHT_CHN,8,3                  ## @RIGHT_CHN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sb_common_mixer_set            ; -- Begin function sb_common_mixer_set
	.p2align	2
_sb_common_mixer_set:                   ; @sb_common_mixer_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	tbnz	w1, #31, LBB0_7
; %bb.1:
	mov	x22, x1
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_7
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, w22, uxtw #3]
Lloh0:
	adrp	x25, _LEFT_CHN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LEFT_CHN@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	w23, [x8, x9, lsl #2]
	cbz	w23, LBB0_7
; %bb.3:
	mov	x20, x3
	mov	x19, x2
	mov	w24, w22
	mov	x0, x21
	mov	x1, x23
	bl	_sb_getmixer
	strb	w0, [sp, #15]
	ldr	x3, [x25]
	add	x1, sp, #15
	mov	x0, x21
	mov	x2, x22
	mov	x4, x19
	bl	_change_bits
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, x24, lsl #3]
Lloh2:
	adrp	x25, _RIGHT_CHN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RIGHT_CHN@GOTPAGEOFF]
	ldr	x3, [x25]
	ldr	w8, [x8, x3, lsl #2]
	cmp	w8, w23
	b.eq	LBB0_6
; %bb.4:
	ldrb	w2, [sp, #15]
	mov	x0, x21
	mov	x1, x23
	bl	_sb_setmixer
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x9, [x25]
	ldr	w23, [x8, x9, lsl #2]
	cbz	w23, LBB0_9
; %bb.5:
	mov	x0, x21
	mov	x1, x23
	bl	_sb_getmixer
	strb	w0, [sp, #15]
	ldr	x3, [x25]
LBB0_6:
	add	x1, sp, #15
	mov	x0, x21
	mov	x2, x22
	mov	x4, x20
	bl	_change_bits
	ldrb	w2, [sp, #15]
	mov	x0, x21
	mov	x1, x23
	bl	_sb_setmixer
	orr	w0, w19, w20, lsl #8
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	orr	w0, w19, w19, lsl #8
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LEFT_CHN,8,3                   ; @LEFT_CHN
	.comm	_RIGHT_CHN,8,3                  ; @RIGHT_CHN
.subsections_via_symbols
