	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_trident_write_pan_reg
_snd_trident_write_pan_reg:             ## @snd_trident_write_pan_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, (%rsi)
	movl	4(%rsi), %r15d
	movq	_T4D_LFO_GC_CIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_TRID_REG
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_outb
	movl	(%r12), %ebx
	movl	8(%r12), %eax
	shll	$7, %eax
	movzbl	%al, %eax
	andl	$127, %ebx
	orl	%eax, %ebx
	movq	_CH_GVSEL_PAN_VOL_CTRL_EC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$3, %rsi
	movq	%r14, %rdi
	callq	_TRID_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_T4D_LFO_GC_CIR,8,3             ## @T4D_LFO_GC_CIR
	.comm	_CH_GVSEL_PAN_VOL_CTRL_EC,8,3   ## @CH_GVSEL_PAN_VOL_CTRL_EC
	.no_dead_strip	_snd_trident_write_pan_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_pan_reg
_snd_trident_write_pan_reg:             ; @snd_trident_write_pan_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, #4]
Lloh0:
	adrp	x8, _T4D_LFO_GC_CIR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T4D_LFO_GC_CIR@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	bl	_TRID_REG
	mov	x1, x0
	mov	x0, x21
	bl	_outb
	ldr	w8, [x19, #8]
	ldr	w9, [x19]
	and	w19, w9, #0x7f
	bfi	w19, w8, #7, #1
Lloh3:
	adrp	x8, _CH_GVSEL_PAN_VOL_CTRL_EC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CH_GVSEL_PAN_VOL_CTRL_EC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, #3
	mov	x0, x20
	bl	_TRID_REG
	mov	x1, x0
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_T4D_LFO_GC_CIR,8,3             ; @T4D_LFO_GC_CIR
	.comm	_CH_GVSEL_PAN_VOL_CTRL_EC,8,3   ; @CH_GVSEL_PAN_VOL_CTRL_EC
	.no_dead_strip	_snd_trident_write_pan_reg
.subsections_via_symbols
