	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xpsc_ac97_trigger
_au1xpsc_ac97_trigger:                  ## @au1xpsc_ac97_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	%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, %r15d
	movq	_au1xpsc_ac97_workdata@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_SUBSTREAM_TYPE
	movl	%eax, %r13d
	leal	-128(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_3
## %bb.1:
	addl	$-130, %r15d
	cmpl	$1, %r15d
	ja	LBB0_7
## %bb.2:
	movl	%r13d, %edi
	callq	_AC97PCR_CLRFIFO
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_AC97_PCR
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_au_writel
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_au_sync
	movl	%r13d, %edi
	callq	_AC97PCR_START
	jmp	LBB0_6
LBB0_3:
	movl	%r13d, %edi
	callq	_AC97PCR_STOP
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_AC97_PCR
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_au_writel
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_au_sync
	movq	%r14, %rdi
	callq	_AC97_STAT
	movl	%eax, %edi
	callq	_au_readl
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_AC97STAT_BUSY
	testl	%r12d, %eax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	## InlineAsm Start
	nop
	## InlineAsm End
	movq	%r14, %rdi
	callq	_AC97_STAT
	movl	%eax, %edi
	callq	_au_readl
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_AC97STAT_BUSY
	testl	%ebx, %eax
	jne	LBB0_4
LBB0_5:
	movl	%r13d, %edi
	callq	_AC97PCR_CLRFIFO
LBB0_6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_AC97_PCR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_au_writel
	xorl	%eax, %eax
	callq	_au_sync
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_au1xpsc_ac97_workdata,8,3      ## @au1xpsc_ac97_workdata
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_au1xpsc_ac97_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xpsc_ac97_trigger
_au1xpsc_ac97_trigger:                  ; @au1xpsc_ac97_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	x21, x1
Lloh0:
	adrp	x8, _au1xpsc_ac97_workdata@GOTPAGE
Lloh1:
	ldr	x8, [x8, _au1xpsc_ac97_workdata@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	bl	_SUBSTREAM_TYPE
	mov	x20, x0
	sub	w8, w21, #128
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.1:
	sub	w8, w21, #130
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_AC97PCR_CLRFIFO
	mov	x21, x0
	mov	x0, x19
	bl	_AC97_PCR
	mov	x1, x0
	mov	x0, x21
	bl	_au_writel
	bl	_au_sync
	mov	x0, x20
	bl	_AC97PCR_START
	b	LBB0_7
LBB0_3:
	mov	x0, x20
	bl	_AC97PCR_STOP
	mov	x21, x0
	mov	x0, x19
	bl	_AC97_PCR
	mov	x1, x0
	mov	x0, x21
	bl	_au_writel
	bl	_au_sync
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_AC97_STAT
	bl	_au_readl
	mov	x21, x0
	mov	x0, x20
	bl	_AC97STAT_BUSY
	tst	w0, w21
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	; InlineAsm Start
	nop
	; InlineAsm End
	b	LBB0_4
LBB0_6:
	mov	x0, x20
	bl	_AC97PCR_CLRFIFO
LBB0_7:
	mov	x20, x0
	mov	x0, x19
	bl	_AC97_PCR
	mov	x1, x0
	mov	x0, x20
	bl	_au_writel
	bl	_au_sync
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_au1xpsc_ac97_workdata,8,3      ; @au1xpsc_ac97_workdata
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_au1xpsc_ac97_trigger
.subsections_via_symbols
