	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ct_alsa_mix_volume_get
_ct_alsa_mix_volume_get:                ## @ct_alsa_mix_volume_get
	.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, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_get_amixer_index
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_CHN_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%ebx, %ecx
	movq	(%rax,%rcx,8), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	_VOL_SCALE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	_VOL_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	xorl	%r12d, %r12d
	testl	%eax, %eax
	cmovsl	%r12d, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	movq	(%r15), %rax
	movq	_CHN_NUM@GOTPCREL(%rip), %rcx
	imull	(%rcx), %ebx
	movq	(%rax), %rax
	incl	%ebx
	movq	(%rax,%rbx,8), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	cltd
	movq	_VOL_SCALE@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	testl	%eax, %eax
	cmovsl	%r12d, %ecx
	movq	(%r14), %rax
	movl	%ecx, 4(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHN_NUM,4,2                    ## @CHN_NUM
	.comm	_VOL_SCALE,4,2                  ## @VOL_SCALE
	.comm	_VOL_MAX,4,2                    ## @VOL_MAX
	.no_dead_strip	_ct_alsa_mix_volume_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ct_alsa_mix_volume_get
_ct_alsa_mix_volume_get:                ; @ct_alsa_mix_volume_get
	.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	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	ldr	w0, [x20]
	bl	_get_amixer_index
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh0:
	adrp	x22, _CHN_NUM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CHN_NUM@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w9, w9, w0
	ldr	x0, [x8, w9, uxtw #3]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
Lloh2:
	adrp	x23, _VOL_SCALE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VOL_SCALE@GOTPAGEOFF]
	ldr	w8, [x23]
	sdiv	w8, w0, w8
Lloh4:
	adrp	x24, _VOL_MAX@GOTPAGE
Lloh5:
	ldr	x24, [x24, _VOL_MAX@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	csel	w9, w8, w9, lt
	cmp	w8, #0
	csel	w8, wzr, w9, lt
	ldr	x9, [x19]
	str	w8, [x9]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w9, [x22]
	orr	w10, wzr, #0x1
	madd	w9, w9, w20, w10
	ldr	x0, [x8, w9, uxtw #3]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	ldr	w8, [x23]
	sdiv	w8, w0, w8
	ldr	w9, [x24]
	cmp	w8, w9
	csel	w9, w8, w9, lt
	cmp	w8, #0
	csel	w8, wzr, w9, lt
	ldr	x9, [x19]
	str	w8, [x9, #4]
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CHN_NUM,4,2                    ; @CHN_NUM
	.comm	_VOL_SCALE,4,2                  ; @VOL_SCALE
	.comm	_VOL_MAX,4,2                    ; @VOL_MAX
	.no_dead_strip	_ct_alsa_mix_volume_get
.subsections_via_symbols
