	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ymfpci_capture_trigger
_snd_ymfpci_capture_trigger:            ## @snd_ymfpci_capture_trigger
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	(%rax), %r15
	movq	%r14, %rdi
	callq	_spin_lock
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_4
## %bb.1:
	movl	$28, %eax
	btl	%ebx, %eax
	jae	LBB0_3
## %bb.2:
	movq	_YDSXGR_MAPOFREC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_ymfpci_readl
	movb	(%r15), %cl
	btsl	%ecx, %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_snd_ymfpci_writel
	movl	$1, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_YDSXGR_MAPOFREC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_ymfpci_readl
	movb	(%r15), %cl
	btrl	%ecx, %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_snd_ymfpci_writel
	movl	$0, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YDSXGR_MAPOFREC,4,2            ## @YDSXGR_MAPOFREC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_ymfpci_capture_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ymfpci_capture_trigger
_snd_ymfpci_capture_trigger:            ; @snd_ymfpci_capture_trigger
	.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	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x21]
	ldr	x21, [x8]
	bl	_spin_lock
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
	mov	w22, #1
	lsl	w8, w22, w8
Lloh0:
	adrp	x20, _YDSXGR_MAPOFREC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _YDSXGR_MAPOFREC@GOTPAGEOFF]
	tst	w8, #0x1c
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_ymfpci_readl
	ldr	w8, [x21]
	lsl	w8, w22, w8
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_ymfpci_writel
	mov	w20, #0
	str	w22, [x21, #4]
	b	LBB0_5
LBB0_3:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_ymfpci_readl
	ldr	w8, [x21]
	lsl	w8, w22, w8
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_ymfpci_writel
	mov	w20, #0
	str	wzr, [x21, #4]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_YDSXGR_MAPOFREC,4,2            ; @YDSXGR_MAPOFREC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_ymfpci_capture_trigger
.subsections_via_symbols
