	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_trident_ac97_control_put
_snd_trident_ac97_control_put:          ## @snd_trident_ac97_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, %r15
	movq	%rdi, %r12
	callq	_snd_kcontrol_chip
	movq	%rax, %r13
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	_NX_ACR0_AC97_COM_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_TRID_REG
	movl	%eax, %edi
	callq	_inl
	movb	(%r12), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%eax, %ecx
	orb	%dl, %cl
	notb	%dl
	andb	%al, %dl
	movq	(%r15), %rsi
	cmpq	$0, (%rsi)
	movzbl	%cl, %ecx
	movzbl	%dl, %ebx
	cmovnel	%ecx, %ebx
	xorl	%r15d, %r15d
	cmpb	%al, %bl
	setne	%r15b
	movb	%bl, (%r13)
	movq	_NX_ACR0_AC97_COM_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_TRID_REG
	movzbl	%bl, %edi
	movl	%eax, %esi
	callq	_outl
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NX_ACR0_AC97_COM_STAT,4,2      ## @NX_ACR0_AC97_COM_STAT
	.no_dead_strip	_snd_trident_ac97_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_ac97_control_put
_snd_trident_ac97_control_put:          ; @snd_trident_ac97_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	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	add	x22, x0, #4
	mov	x0, x22
	bl	_spin_lock_irq
Lloh0:
	adrp	x23, _NX_ACR0_AC97_COM_STAT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NX_ACR0_AC97_COM_STAT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_TRID_REG
	bl	_inl
	ldr	w8, [x20]
	mov	w9, #1
	lsl	w8, w9, w8
	bic	w9, w0, w8
	ldr	x10, [x19]
	ldr	x10, [x10]
	orr	w8, w0, w8
	cmp	x10, #0
	csel	w8, w9, w8, eq
	and	w19, w8, #0xff
	cmp	w19, w0
	cset	w20, ne
	strb	w8, [x21]
	ldr	w1, [x23]
	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, #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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NX_ACR0_AC97_COM_STAT,4,2      ; @NX_ACR0_AC97_COM_STAT
	.no_dead_strip	_snd_trident_ac97_control_put
.subsections_via_symbols
