	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_trident_write_cvol_reg
_snd_trident_write_cvol_reg:            ## @snd_trident_write_cvol_reg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	%edx, (%rsi)
	movl	12(%rsi), %r15d
	movq	_T4D_LFO_GC_CIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TRID_REG
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_outb
	movl	(%rbx), %r15d
	movl	4(%rbx), %eax
	shll	$14, %eax
	movzwl	%ax, %eax
	movl	8(%rbx), %ecx
	andl	$127, %ecx
	shll	$7, %ecx
	orl	%eax, %ecx
	andl	$127, %r15d
	orl	%ecx, %r15d
	movq	(%r14), %rax
	movq	_TRIDENT_DEVICE_ID_NX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_CH_NX_ALPHA_FMS_FMC_RVOL_CVOL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CH_DX_FMC_RVOL_CVOL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TRID_REG
	movl	%r15d, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_T4D_LFO_GC_CIR,4,2             ## @T4D_LFO_GC_CIR
	.comm	_TRIDENT_DEVICE_ID_NX,8,3       ## @TRIDENT_DEVICE_ID_NX
	.comm	_CH_NX_ALPHA_FMS_FMC_RVOL_CVOL,4,2 ## @CH_NX_ALPHA_FMS_FMC_RVOL_CVOL
	.comm	_CH_DX_FMC_RVOL_CVOL,4,2        ## @CH_DX_FMC_RVOL_CVOL
	.no_dead_strip	_snd_trident_write_cvol_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_trident_write_cvol_reg
_snd_trident_write_cvol_reg:            ; @snd_trident_write_cvol_reg
	.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
	str	w2, [x1]
	ldr	w21, [x1, #12]
Lloh0:
	adrp	x8, _T4D_LFO_GC_CIR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T4D_LFO_GC_CIR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_TRID_REG
	mov	x1, x0
	mov	x0, x21
	bl	_outb
	ldp	w9, w8, [x19]
	ubfiz	w21, w8, #14, #2
	ldr	w8, [x19, #8]
	bfi	w21, w8, #7, #7
	bfxil	w21, w9, #0, #7
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _TRIDENT_DEVICE_ID_NX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TRIDENT_DEVICE_ID_NX@GOTPAGEOFF]
Lloh5:
	adrp	x10, _CH_NX_ALPHA_FMS_FMC_RVOL_CVOL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CH_NX_ALPHA_FMS_FMC_RVOL_CVOL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x11, _CH_DX_FMC_RVOL_CVOL@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CH_DX_FMC_RVOL_CVOL@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_TRID_REG
	mov	x1, x0
	mov	x0, x21
	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
	b	_outw
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_T4D_LFO_GC_CIR,4,2             ; @T4D_LFO_GC_CIR
	.comm	_TRIDENT_DEVICE_ID_NX,8,3       ; @TRIDENT_DEVICE_ID_NX
	.comm	_CH_NX_ALPHA_FMS_FMC_RVOL_CVOL,4,2 ; @CH_NX_ALPHA_FMS_FMC_RVOL_CVOL
	.comm	_CH_DX_FMC_RVOL_CVOL,4,2        ; @CH_DX_FMC_RVOL_CVOL
	.no_dead_strip	_snd_trident_write_cvol_reg
.subsections_via_symbols
