	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snapper_put_mix
_snapper_put_mix:                       ## @snapper_put_mix
	.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
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	callq	_snd_kcontrol_chip
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %ebx
	movl	4(%rax), %r12d
	movq	_mixer_volume_table@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jae	LBB0_5
## %bb.4:
	movl	(%r13), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jae	LBB0_5
## %bb.6:
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	cmpl	%r12d, 4(%rcx)
	je	LBB0_9
LBB0_8:
	movl	%ebx, (%rcx)
	movl	%r12d, 4(%rcx)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snapper_set_mix_vol
	movl	$1, %eax
	jmp	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_mixer_volume_table,4,2         ## @mixer_volume_table
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snapper_put_mix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snapper_put_mix
_snapper_put_mix:                       ; @snapper_put_mix
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	ldr	x19, [x0]
	bl	_snd_kcontrol_chip
	ldr	x20, [x0]
	cbz	x20, LBB0_7
; %bb.1:
	ldr	x8, [x21]
	ldp	w21, w22, [x8]
Lloh0:
	adrp	x23, _mixer_volume_table@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mixer_volume_table@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.hs	LBB0_6
; %bb.2:
	ldr	w0, [x23]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.hs	LBB0_6
; %bb.3:
	ldr	x8, [x20]
	sbfiz	x9, x19, #3, #32
	ldr	x8, [x8, x9]
	ldr	w9, [x8]
	cmp	w9, w21
	b.ne	LBB0_10
; %bb.4:
	ldr	w9, [x8, #4]
	cmp	w9, w22
	b.ne	LBB0_10
; %bb.5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	stp	w21, w22, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_snapper_set_mix_vol
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_mixer_volume_table,4,2         ; @mixer_volume_table
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snapper_put_mix
.subsections_via_symbols
