	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_pcm_capture_trigger
_snd_gf1_pcm_capture_trigger:           ## @snd_gf1_pcm_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, %r15d
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	_SNDRV_PCM_TRIGGER_START@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	4(%rbx), %r14d
	jmp	LBB0_2
LBB0_3:
	movq	_SNDRV_PCM_TRIGGER_STOP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	%r15d, (%rax)
	jne	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_SNDRV_GF1_GB_REC_DMA_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_snd_gf1_write8
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_look8
	movq	%rbx, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_TRIGGER_START,4,2    ## @SNDRV_PCM_TRIGGER_START
	.comm	_SNDRV_PCM_TRIGGER_STOP,4,2     ## @SNDRV_PCM_TRIGGER_STOP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_GF1_GB_REC_DMA_CONTROL,4,2 ## @SNDRV_GF1_GB_REC_DMA_CONTROL
	.no_dead_strip	_snd_gf1_pcm_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_gf1_pcm_capture_trigger
_snd_gf1_pcm_capture_trigger:           ; @snd_gf1_pcm_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
	bl	_snd_pcm_substream_chip
	mov	x19, x0
Lloh0:
	adrp	x8, _SNDRV_PCM_TRIGGER_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_TRIGGER_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	ldr	w20, [x19, #4]
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _SNDRV_PCM_TRIGGER_STOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_PCM_TRIGGER_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.3:
	mov	w20, #0
LBB0_4:
	mov	x0, x19
	bl	_spin_lock
Lloh6:
	adrp	x21, _SNDRV_GF1_GB_REC_DMA_CONTROL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SNDRV_GF1_GB_REC_DMA_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_gf1_write8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_gf1_look8
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_TRIGGER_START,4,2    ; @SNDRV_PCM_TRIGGER_START
	.comm	_SNDRV_PCM_TRIGGER_STOP,4,2     ; @SNDRV_PCM_TRIGGER_STOP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_GF1_GB_REC_DMA_CONTROL,4,2 ; @SNDRV_GF1_GB_REC_DMA_CONTROL
	.no_dead_strip	_snd_gf1_pcm_capture_trigger
.subsections_via_symbols
