	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_p16v_pcm_trigger_capture
_snd_p16v_pcm_trigger_capture:          ## @snd_p16v_pcm_trigger_capture
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	(%rax), %r13
	movq	_INTE2_CAPTURE_CH_0_LOOP@GOTPCREL(%rip), %rax
	movq	_INTE2_CAPTURE_CH_0_HALF_LOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	cmpl	$128, %r14d
	je	LBB0_3
## %bb.1:
	cmpl	$129, %r14d
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_p16v_intr_enable
	movq	_BASIC_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr20_read
	orl	$256, %eax                      ## imm = 0x100
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_snd_emu10k1_ptr20_write
	movl	$1, (%r13)
	jmp	LBB0_5
LBB0_3:
	movq	_BASIC_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr20_read
	andl	$-257, %eax                     ## imm = 0xFEFF
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_snd_emu10k1_ptr20_write
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_p16v_intr_disable
	movl	$0, (%r13)
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTE2_CAPTURE_CH_0_LOOP,4,2    ## @INTE2_CAPTURE_CH_0_LOOP
	.comm	_INTE2_CAPTURE_CH_0_HALF_LOOP,4,2 ## @INTE2_CAPTURE_CH_0_HALF_LOOP
	.comm	_BASIC_INTERRUPT,4,2            ## @BASIC_INTERRUPT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_p16v_pcm_trigger_capture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_p16v_pcm_trigger_capture
_snd_p16v_pcm_trigger_capture:          ; @snd_p16v_pcm_trigger_capture
	.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	x21, x1
	mov	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _INTE2_CAPTURE_CH_0_LOOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTE2_CAPTURE_CH_0_LOOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _INTE2_CAPTURE_CH_0_HALF_LOOP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTE2_CAPTURE_CH_0_HALF_LOOP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
	cmp	w21, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #129
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_p16v_intr_enable
Lloh6:
	adrp	x8, _BASIC_INTERRUPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BASIC_INTERRUPT@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_snd_emu10k1_ptr20_read
	orr	w3, w0, #0x100
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_snd_emu10k1_ptr20_write
	mov	w0, #0
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _BASIC_INTERRUPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BASIC_INTERRUPT@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_snd_emu10k1_ptr20_read
	and	w3, w0, #0xfffffeff
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_snd_emu10k1_ptr20_write
	mov	x0, x19
	mov	x1, x20
	bl	_snd_p16v_intr_disable
	mov	w0, #0
	str	wzr, [x22]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_INTE2_CAPTURE_CH_0_LOOP,4,2    ; @INTE2_CAPTURE_CH_0_LOOP
	.comm	_INTE2_CAPTURE_CH_0_HALF_LOOP,4,2 ; @INTE2_CAPTURE_CH_0_HALF_LOOP
	.comm	_BASIC_INTERRUPT,4,2            ; @BASIC_INTERRUPT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_p16v_pcm_trigger_capture
.subsections_via_symbols
