	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_trident_vol_control_put
_snd_trident_vol_control_put:           ## @snd_trident_vol_control_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movb	(%rbx), %cl
	movl	$65535, %eax                    ## imm = 0xFFFF
	shll	%cl, %eax
	movl	(%r12), %edx
	notl	%eax
	movq	(%r15), %rsi
	movzbl	(%rsi), %edi
	movl	4(%rsi), %esi
	shll	$8, %esi
	movzwl	%si, %ebx
	orl	%edi, %ebx
	xorl	$65535, %ebx                    ## imm = 0xFFFF
	shll	%cl, %ebx
	andl	%edx, %eax
	orl	%eax, %ebx
	xorl	%r15d, %r15d
	cmpl	%edx, %ebx
	setne	%r15b
	movl	%ebx, (%r12)
	movq	_T4D_MUSICVOL_WAVEVOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_TRID_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outl
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T4D_MUSICVOL_WAVEVOL,4,2       ## @T4D_MUSICVOL_WAVEVOL
	.no_dead_strip	_snd_trident_vol_control_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_trident_vol_control_put
_snd_trident_vol_control_put:           ; @snd_trident_vol_control_put
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	add	x22, x0, #4
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	w8, [x21]
	ldr	w9, [x20]
	mov	w10, #65535
	lsl	w10, w10, w9
	bic	w10, w8, w10
	ldr	x11, [x19]
	ldrb	w12, [x11]
	ldr	w11, [x11, #4]
	bfi	w12, w11, #8, #8
	eor	w11, w12, #0xffff
	lsl	w9, w11, w9
	orr	w19, w9, w10
	cmp	w19, w8
	cset	w20, ne
	str	w19, [x21]
Lloh0:
	adrp	x8, _T4D_MUSICVOL_WAVEVOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T4D_MUSICVOL_WAVEVOL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_TRID_REG
	mov	x1, x0
	mov	x0, x19
	bl	_outl
	mov	x0, x22
	bl	_spin_unlock_irq
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_T4D_MUSICVOL_WAVEVOL,4,2       ; @T4D_MUSICVOL_WAVEVOL
	.no_dead_strip	_snd_trident_vol_control_put
.subsections_via_symbols
