	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_card_saa7134_capture_trigger
_snd_card_saa7134_capture_trigger:      ## @snd_card_saa7134_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_SNDRV_PCM_TRIGGER_START@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_saa7134_dma_start
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_SNDRV_PCM_TRIGGER_STOP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_saa7134_dma_stop
	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
	popq	%rbx
	popq	%r14
	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
	.no_dead_strip	_snd_card_saa7134_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_card_saa7134_capture_trigger
_snd_card_saa7134_capture_trigger:      ; @snd_card_saa7134_capture_trigger
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_spin_lock
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:
	mov	x0, x19
	bl	_saa7134_dma_start
	mov	w20, #0
	b	LBB0_5
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_4
; %bb.3:
	mov	x0, x19
	bl	_saa7134_dma_stop
	mov	w20, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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
	.no_dead_strip	_snd_card_saa7134_capture_trigger
.subsections_via_symbols
