	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c2443_ac97_trigger
_s3c2443_ac97_trigger:                  ## @s3c2443_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, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	_s3c24xx_ac97@GOTPCREL(%rip), %r12
	movq	_S3C_AC97_GLBCTRL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_readl
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_10
## %bb.1:
	movl	$28, %ecx
	btl	%ebx, %ecx
	jae	LBB0_6
## %bb.2:
	movl	(%r15), %ecx
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.3:
	movq	_S3C_AC97_GLBCTRL_PCMINTM_DMA@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movl	(%r15), %ecx
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_8
## %bb.7:
	movq	_S3C_AC97_GLBCTRL_PCMINTM_MASK@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_5:
	movq	_S3C_AC97_GLBCTRL_PCMOUTTM_DMA@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	orl	%ecx, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_S3C_AC97_GLBCTRL_PCMOUTTM_MASK@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
LBB0_10:
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_S3C2410_DMAOP_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_s3c2410_dma_ctrl
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s3c24xx_ac97,8,3               ## @s3c24xx_ac97
	.comm	_S3C_AC97_GLBCTRL,8,3           ## @S3C_AC97_GLBCTRL
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_S3C_AC97_GLBCTRL_PCMINTM_DMA,4,2 ## @S3C_AC97_GLBCTRL_PCMINTM_DMA
	.comm	_S3C_AC97_GLBCTRL_PCMOUTTM_DMA,4,2 ## @S3C_AC97_GLBCTRL_PCMOUTTM_DMA
	.comm	_S3C_AC97_GLBCTRL_PCMINTM_MASK,4,2 ## @S3C_AC97_GLBCTRL_PCMINTM_MASK
	.comm	_S3C_AC97_GLBCTRL_PCMOUTTM_MASK,4,2 ## @S3C_AC97_GLBCTRL_PCMOUTTM_MASK
	.comm	_S3C2410_DMAOP_STARTED,4,2      ## @S3C2410_DMAOP_STARTED
	.no_dead_strip	_s3c2443_ac97_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c2443_ac97_trigger
_s3c2443_ac97_trigger:                  ; @s3c2443_ac97_trigger
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x22, _s3c24xx_ac97@GOTPAGE
Lloh1:
	ldr	x22, [x22, _s3c24xx_ac97@GOTPAGEOFF]
	ldr	w19, [x8]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _S3C_AC97_GLBCTRL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _S3C_AC97_GLBCTRL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	sub	w8, w21, #128
	cmp	w8, #5
	b.hi	LBB0_10
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x1c
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _S3C_AC97_GLBCTRL_PCMINTM_DMA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_PCMINTM_DMA@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
Lloh12:
	adrp	x8, _S3C_AC97_GLBCTRL_PCMINTM_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_PCMINTM_MASK@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh14:
	adrp	x8, _S3C_AC97_GLBCTRL_PCMOUTTM_DMA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_PCMOUTTM_DMA@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x8, _S3C_AC97_GLBCTRL_PCMOUTTM_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_PCMOUTTM_MASK@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	bic	w0, w0, w8
LBB0_10:
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
Lloh18:
	adrp	x8, _S3C2410_DMAOP_STARTED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S3C2410_DMAOP_STARTED@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s3c2410_dma_ctrl
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_s3c24xx_ac97,8,3               ; @s3c24xx_ac97
	.comm	_S3C_AC97_GLBCTRL,8,3           ; @S3C_AC97_GLBCTRL
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_S3C_AC97_GLBCTRL_PCMINTM_DMA,4,2 ; @S3C_AC97_GLBCTRL_PCMINTM_DMA
	.comm	_S3C_AC97_GLBCTRL_PCMOUTTM_DMA,4,2 ; @S3C_AC97_GLBCTRL_PCMOUTTM_DMA
	.comm	_S3C_AC97_GLBCTRL_PCMINTM_MASK,4,2 ; @S3C_AC97_GLBCTRL_PCMINTM_MASK
	.comm	_S3C_AC97_GLBCTRL_PCMOUTTM_MASK,4,2 ; @S3C_AC97_GLBCTRL_PCMOUTTM_MASK
	.comm	_S3C2410_DMAOP_STARTED,4,2      ; @S3C2410_DMAOP_STARTED
	.no_dead_strip	_s3c2443_ac97_trigger
.subsections_via_symbols
