	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ct_alsa_mix_volume_put
_ct_alsa_mix_volume_put:                ## @ct_alsa_mix_volume_put
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_get_amixer_index
	movl	%eax, %r12d
	leal	1(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leal	2(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leal	3(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movb	$1, %r14b
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movq	_CHN_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	addl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rbx
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*16(%rax)
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	(%r12), %rax
	movq	_CHN_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	addl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rbx
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*16(%rax)
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	(%r12), %rax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	_CHN_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	addl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rbx
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*16(%rax)
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %r15d
	testb	$1, %r14b
	movl	$0, %r14d
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %eax
	movq	_VOL_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	cmpl	%r13d, %eax
	cmovll	%eax, %r13d
	testl	%eax, %eax
	movl	$0, %eax
	cmovsl	%eax, %r13d
	movq	_VOL_SCALE@GOTPCREL(%rip), %rax
	imull	(%rax), %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_CHN_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%r12d, %ecx
	addl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rbx
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	cmpl	%eax, %r13d
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*16(%rax)
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_AMIXER_MASTER_F@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_AMIXER_PCM_F@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_5
	jmp	LBB0_4
LBB0_6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VOL_MAX,4,2                    ## @VOL_MAX
	.comm	_VOL_SCALE,4,2                  ## @VOL_SCALE
	.comm	_CHN_NUM,4,2                    ## @CHN_NUM
	.comm	_AMIXER_MASTER_F,4,2            ## @AMIXER_MASTER_F
	.comm	_AMIXER_PCM_F,4,2               ## @AMIXER_PCM_F
	.no_dead_strip	_ct_alsa_mix_volume_put
.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_put
_ct_alsa_mix_volume_put:                ; @ct_alsa_mix_volume_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	ldr	x24, [x0]
	ldr	w0, [x20]
	bl	_get_amixer_index
	mov	x20, x0
	mov	x28, #0
	mov	w22, #0
	add	w9, w0, #1
	add	w8, w0, #2
	stp	w8, w9, [sp, #8]                ; 8-byte Folded Spill
	add	w8, w0, #3
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	mov	w8, #1
Lloh0:
	adrp	x25, _VOL_SCALE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VOL_SCALE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _CHN_NUM@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CHN_NUM@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	mov	w28, #1
	tbz	w27, #0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x27, x8
	ldr	x8, [x19]
	ldr	w8, [x8, x28, lsl #2]
Lloh4:
	adrp	x9, _VOL_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VOL_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w9, w8, w9, lt
	cmp	w8, #0
	csel	w8, wzr, w9, lt
	ldr	w9, [x25]
	mul	w21, w8, w9
	ldr	x8, [x24]
	ldr	w9, [x26]
	madd	w9, w9, w20, w28
	ldr	x23, [x8, w9, uxtw #3]
	ldr	x8, [x23]
	ldr	x8, [x8]
	mov	x0, x23
	blr	x8
	cmp	w21, w0
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	mov	x0, x23
	mov	x1, x21
	blr	x8
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	mov	x0, x23
	blr	x8
Lloh7:
	adrp	x8, _AMIXER_MASTER_F@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AMIXER_MASTER_F@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _AMIXER_PCM_F@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AMIXER_PCM_F@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	w9, [x26]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	madd	w9, w9, w10, w28
	ldr	x22, [x8, w9, uxtw #3]
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	mov	x0, x22
	mov	x1, x21
	blr	x8
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	mov	x0, x22
	blr	x8
	ldr	x8, [x24]
	ldr	w9, [x26]
	ldr	w10, [sp, #8]                   ; 4-byte Folded Reload
	madd	w9, w9, w10, w28
	ldr	x22, [x8, w9, uxtw #3]
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	mov	x0, x22
	mov	x1, x21
	blr	x8
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	mov	x0, x22
	blr	x8
	ldr	x8, [x24]
	ldr	w9, [x26]
	ldr	w10, [sp, #4]                   ; 4-byte Folded Reload
	madd	w9, w9, w10, w28
	ldr	x22, [x8, w9, uxtw #3]
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	mov	x0, x22
	mov	x1, x21
	blr	x8
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	mov	x0, x22
	blr	x8
	b	LBB0_1
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_VOL_MAX,4,2                    ; @VOL_MAX
	.comm	_VOL_SCALE,4,2                  ; @VOL_SCALE
	.comm	_CHN_NUM,4,2                    ; @CHN_NUM
	.comm	_AMIXER_MASTER_F,4,2            ; @AMIXER_MASTER_F
	.comm	_AMIXER_PCM_F,4,2               ; @AMIXER_PCM_F
	.no_dead_strip	_ct_alsa_mix_volume_put
.subsections_via_symbols
