	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_trident_pcm_vol_control_put
_snd_trident_pcm_vol_control_put:       ## @snd_trident_pcm_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	%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, %r12
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	16(%rax), %r13
	leaq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffnum
	movq	%rax, %r15
	movq	(%r14), %rax
	movq	_TRIDENT_DEVICE_ID_SI7018@GOTPCREL(%rip), %rcx
	movq	(%r12), %rdx
	movl	(%rdx), %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	notl	%ebx
	andl	$1023, %ebx                     ## imm = 0x3FF
	jmp	LBB0_3
LBB0_2:
	shll	$2, %ebx
	notl	%ebx
	andl	$1020, %ebx                     ## imm = 0x3FC
LBB0_3:
	leaq	8(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	shlq	$4, %r15
	movl	(%r13,%r15), %eax
	movl	%ebx, (%r13,%r15)
	movq	8(%r13,%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %r14d
	callq	_snd_trident_write_vol_reg
	movl	%r14d, %eax
LBB0_5:
	xorl	%r14d, %r14d
	cmpl	%eax, %ebx
	setne	%r14b
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRIDENT_DEVICE_ID_SI7018,8,3   ## @TRIDENT_DEVICE_ID_SI7018
	.no_dead_strip	_snd_trident_pcm_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_pcm_vol_control_put
_snd_trident_pcm_vol_control_put:       ; @snd_trident_pcm_vol_control_put
	.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	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x23, [x0, #16]
	add	x1, x20, #8
	mov	x0, x21
	bl	_snd_ctl_get_ioffnum
	mov	x22, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _TRIDENT_DEVICE_ID_SI7018@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRIDENT_DEVICE_ID_SI7018@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x20]
	ldr	w10, [x10]
	cmp	x8, x9
	mov	w8, #1020
	bic	w8, w8, w10, lsl #2
	mvn	w9, w10
	and	w9, w9, #0x3ff
	csel	w21, w8, w9, ne
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irq
	add	x8, x23, x22, lsl #4
	ldr	w22, [x8]
	str	w21, [x8]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x2, x21
	bl	_snd_trident_write_vol_reg
LBB0_2:
	cmp	w21, w22
	cset	w19, ne
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TRIDENT_DEVICE_ID_SI7018,8,3   ; @TRIDENT_DEVICE_ID_SI7018
	.no_dead_strip	_snd_trident_pcm_vol_control_put
.subsections_via_symbols
