	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_at73c213_pcm_trigger
_snd_at73c213_pcm_trigger:              ## @snd_at73c213_pcm_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
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_5
## %bb.2:
	movq	16(%r14), %rax
	movl	(%rax), %r15d
	movq	_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IER_ENDTX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SSC_BIT
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ssc_writel
	movq	16(%r14), %rax
	movl	(%rax), %r15d
	movq	_PDC_PTCR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_PDC_PTCR_TXTEN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	16(%r14), %rax
	movl	(%rax), %r15d
	movq	_PDC_PTCR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_PDC_PTCR_TXTDIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SSC_BIT
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ssc_writel
	movq	16(%r14), %rax
	movl	(%rax), %r15d
	movq	_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IDR_ENDTX@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_SSC_BIT
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ssc_writel
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	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	_IER,4,2                        ## @IER
	.comm	_IER_ENDTX,4,2                  ## @IER_ENDTX
	.comm	_PDC_PTCR,4,2                   ## @PDC_PTCR
	.comm	_PDC_PTCR_TXTEN,4,2             ## @PDC_PTCR_TXTEN
	.comm	_PDC_PTCR_TXTDIS,4,2            ## @PDC_PTCR_TXTDIS
	.comm	_IDR,4,2                        ## @IDR
	.comm	_IDR_ENDTX,4,2                  ## @IDR_ENDTX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spurious command %x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_at73c213_pcm_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_at73c213_pcm_trigger
_snd_at73c213_pcm_trigger:              ; @snd_at73c213_pcm_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
	bl	_spin_lock
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
Lloh0:
	adrp	x8, _IER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IER@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _IER_ENDTX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IER_ENDTX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SSC_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ssc_writel
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _PDC_PTCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PDC_PTCR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x8, _PDC_PTCR_TXTEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PDC_PTCR_TXTEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
Lloh11:
	adrp	x8, _PDC_PTCR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PDC_PTCR@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
Lloh14:
	adrp	x8, _PDC_PTCR_TXTDIS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PDC_PTCR_TXTDIS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_SSC_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ssc_writel
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
Lloh17:
	adrp	x8, _IDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IDR@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
Lloh20:
	adrp	x8, _IDR_ENDTX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IDR_ENDTX@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	bl	_SSC_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ssc_writel
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	ldr	x0, [x19, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IER,4,2                        ; @IER
	.comm	_IER_ENDTX,4,2                  ; @IER_ENDTX
	.comm	_PDC_PTCR,4,2                   ; @PDC_PTCR
	.comm	_PDC_PTCR_TXTEN,4,2             ; @PDC_PTCR_TXTEN
	.comm	_PDC_PTCR_TXTDIS,4,2            ; @PDC_PTCR_TXTDIS
	.comm	_IDR,4,2                        ; @IDR
	.comm	_IDR_ENDTX,4,2                  ; @IDR_ENDTX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spurious command %x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_at73c213_pcm_trigger
.subsections_via_symbols
