	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_harmony_volume_put
_snd_harmony_volume_put:                ## @snd_harmony_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r13
	movl	(%rbx), %ebx
	movzbl	%bl, %r15d
	movzbl	%bh, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %r14d
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	4(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irq
	movq	(%r12), %rdx
	movl	(%rdx), %ecx
	andl	%r14d, %ecx
	movl	%r14d, %eax
	subl	%ecx, %eax
	cmpl	$16777216, %ebx                 ## imm = 0x1000000
	cmovbl	%ecx, %eax
	movl	%r14d, %esi
	movl	%r15d, %ecx
	shll	%cl, %esi
	notl	%esi
	andl	(%r13), %esi
	shll	%cl, %eax
	orl	%esi, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, (%r13)
	cmpl	%ecx, %r15d
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	movl	4(%rdx), %esi
	andl	%r14d, %esi
	movl	%r14d, %edx
	subl	%esi, %edx
	cmpl	$16777216, %ebx                 ## imm = 0x1000000
	cmovbl	%esi, %edx
	shll	%cl, %r14d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	notl	%r14d
	andl	%r14d, %eax
	orl	%eax, %edx
	movl	%edx, (%r13)
LBB0_2:
	movq	%r13, %rdi
	callq	_snd_harmony_set_new_gain
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%r13)
	setne	%al
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_harmony_volume_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_harmony_volume_put
_snd_harmony_volume_put:                ; @snd_harmony_volume_put
	.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	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w25, [x20]
	and	w26, w25, #0xff
	ubfx	w23, w25, #8, #8
	ubfx	w24, w25, #16, #8
	ldr	w22, [x0]
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	x8, [x21]
	ldr	w9, [x8]
	and	w10, w9, w24
	sub	w11, w24, w10
	lsr	w9, w25, #24
	cmp	w9, #0
	csel	w10, w10, w11, eq
	lsl	w11, w24, w25
	ldr	w12, [x19]
	bic	w11, w12, w11
	lsl	w10, w10, w25
	orr	w10, w10, w11
	str	w10, [x19]
	cmp	w26, w23
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x8, #4]
	and	w8, w8, w24
	sub	w11, w24, w8
	cmp	w9, #0
	csel	w8, w8, w11, eq
	lsl	w9, w24, w23
	bic	w9, w10, w9
	lsl	w8, w8, w23
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_2:
	mov	x0, x19
	bl	_snd_harmony_set_new_gain
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	w8, [x19]
	cmp	w8, w22
	cset	w0, ne
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_harmony_volume_put
.subsections_via_symbols
