	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ymfpci_drec_source_put
_snd_ymfpci_drec_source_put:            ## @snd_ymfpci_drec_source_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movq	_YDSXGR_GLOBALCTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_snd_ymfpci_readw
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r14d, %ecx
	andl	$-769, %ecx                     ## imm = 0xFCFF
	xorl	%edx, %edx
	cmpl	$2, %eax
	sete	%dl
	shll	$9, %edx
	leal	(%rcx,%rdx), %ebx
	addl	$256, %ebx                      ## imm = 0x100
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %ebx
	andl	$-257, %ebx                     ## imm = 0xFEFF
LBB0_3:
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_ymfpci_writew
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	cmpl	%r14d, %ebx
	setne	%al
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YDSXGR_GLOBALCTRL,4,2          ## @YDSXGR_GLOBALCTRL
	.no_dead_strip	_snd_ymfpci_drec_source_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ymfpci_drec_source_put
_snd_ymfpci_drec_source_put:            ; @snd_ymfpci_drec_source_put
	.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
	bl	_snd_kcontrol_chip
	mov	x20, x0
	bl	_spin_lock_irq
Lloh0:
	adrp	x22, _YDSXGR_GLOBALCTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _YDSXGR_GLOBALCTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_snd_ymfpci_readw
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w8, [x8]
	and	w9, w0, #0xfffffcff
	cmp	w8, #2
	cset	w10, eq
	bfi	w9, w10, #9, #1
	orr	w9, w9, #0x100
	and	w10, w0, #0xfffffeff
	cmp	w8, #0
	csel	w19, w9, w10, ne
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x19
	bl	_snd_ymfpci_writew
	mov	x0, x20
	bl	_spin_unlock_irq
	cmp	w19, w21
	cset	w0, ne
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_YDSXGR_GLOBALCTRL,4,2          ; @YDSXGR_GLOBALCTRL
	.no_dead_strip	_snd_ymfpci_drec_source_put
.subsections_via_symbols
