	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_put_single
_snd_gf1_put_single:                    ## @snd_gf1_put_single
	.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, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movl	(%rbx), %r15d
	movq	(%r14), %rax
	movl	%r15d, %ebx
	shrl	$8, %ebx
	xorl	(%rax), %ebx
	andl	$1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movzbl	(%r12), %eax
	movl	%eax, %ecx
	btrl	%r15d, %ecx
	orl	%ebx, %ecx
	movzbl	%cl, %ebx
	xorl	%r15d, %r15d
	cmpl	%eax, %ebx
	setne	%r15b
	movb	%bl, (%r12)
	movq	_MIXCNTRLREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_GUSP
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb
	movb	$0, 8(%r12)
	movq	_GF1PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_GUSP
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_outb
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIXCNTRLREG,4,2                ## @MIXCNTRLREG
	.comm	_GF1PAGE,4,2                    ## @GF1PAGE
	.no_dead_strip	_snd_gf1_put_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_gf1_put_single
_snd_gf1_put_single:                    ; @snd_gf1_put_single
	.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
	bl	_snd_kcontrol_chip
	mov	x21, x0
	ldr	w20, [x20]
	ldr	x8, [x19]
	ldr	w8, [x8]
	eor	w8, w8, w20, lsr #8
	and	w8, w8, #0x1
	lsl	w22, w8, w20
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldrb	w8, [x21]
	mov	w9, #1
	lsl	w9, w9, w20
	bic	w9, w8, w9
	orr	w9, w9, w22
	and	w20, w9, #0xff
	cmp	w20, w8
	cset	w22, ne
	strb	w9, [x21]
Lloh0:
	adrp	x8, _MIXCNTRLREG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIXCNTRLREG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_GUSP
	mov	x1, x0
	mov	x0, x20
	bl	_outb
	strb	wzr, [x21, #8]
Lloh3:
	adrp	x8, _GF1PAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GF1PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_GUSP
	mov	x1, x0
	mov	w0, #0
	bl	_outb
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIXCNTRLREG,4,2                ; @MIXCNTRLREG
	.comm	_GF1PAGE,4,2                    ; @GF1PAGE
	.no_dead_strip	_snd_gf1_put_single
.subsections_via_symbols
