	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_trident_write_vol_reg
_snd_trident_write_vol_reg:             ## @snd_trident_write_vol_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	4(%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	(%r14), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movl	(%rbx), %ebx
	shrl	$2, %ebx
	movq	_CH_GVSEL_PAN_VOL_CTRL_EC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$2, %esi
	movq	%r14, %rdi
	callq	_TRID_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.4:
	movl	8(%rbx), %r15d
	shll	$12, %r15d
	orl	(%rbx), %r15d
	movq	_CH_GVSEL_PAN_VOL_CTRL_EC@GOTPCREL(%rip), %rax
	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
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T4D_LFO_GC_CIR,4,2             ## @T4D_LFO_GC_CIR
	.comm	_CH_GVSEL_PAN_VOL_CTRL_EC,4,2   ## @CH_GVSEL_PAN_VOL_CTRL_EC
	.no_dead_strip	_snd_trident_write_vol_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_vol_reg
_snd_trident_write_vol_reg:             ; @snd_trident_write_vol_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	x20, x1
	mov	x19, x0
	str	w2, [x1]
	ldr	w21, [x1, #4]
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
	ldr	w8, [x19]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	lsr	w20, w8, #2
Lloh3:
	adrp	x8, _CH_GVSEL_PAN_VOL_CTRL_EC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CH_GVSEL_PAN_VOL_CTRL_EC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w1, w8, #2
	mov	x0, x19
	bl	_TRID_REG
	mov	x1, x0
	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
	b	_outb
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x20, #8]
	ldr	w9, [x20]
	orr	w20, w9, w8, lsl #12
Lloh6:
	adrp	x8, _CH_GVSEL_PAN_VOL_CTRL_EC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CH_GVSEL_PAN_VOL_CTRL_EC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TRID_REG
	mov	x1, x0
	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
	b	_outw
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_T4D_LFO_GC_CIR,4,2             ; @T4D_LFO_GC_CIR
	.comm	_CH_GVSEL_PAN_VOL_CTRL_EC,4,2   ; @CH_GVSEL_PAN_VOL_CTRL_EC
	.no_dead_strip	_snd_trident_write_vol_reg
.subsections_via_symbols
