	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c2443_ac97_mic_trigger
_s3c2443_ac97_mic_trigger:              ## @s3c2443_ac97_mic_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	_s3c24xx_ac97@GOTPCREL(%rip), %r15
	movq	_S3C_AC97_GLBCTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_4
## %bb.1:
	movl	$28, %ecx
	btl	%ebx, %ecx
	jae	LBB0_3
## %bb.2:
	movq	_S3C_AC97_GLBCTRL_PCMINTM_DMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %eax
	jmp	LBB0_4
LBB0_3:
	movq	_S3C_AC97_GLBCTRL_PCMINTM_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
LBB0_4:
	movq	(%r12), %rsi
	addq	(%r15), %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
	popq	%rbx
	popq	%r12
	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	_S3C_AC97_GLBCTRL_PCMINTM_DMA,4,2 ## @S3C_AC97_GLBCTRL_PCMINTM_DMA
	.comm	_S3C_AC97_GLBCTRL_PCMINTM_MASK,4,2 ## @S3C_AC97_GLBCTRL_PCMINTM_MASK
	.comm	_S3C2410_DMAOP_STARTED,4,2      ## @S3C2410_DMAOP_STARTED
	.no_dead_strip	_s3c2443_ac97_mic_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_mic_trigger
_s3c2443_ac97_mic_trigger:              ; @s3c2443_ac97_mic_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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _s3c24xx_ac97@GOTPAGE
Lloh1:
	ldr	x21, [x21, _s3c24xx_ac97@GOTPAGEOFF]
	ldr	w19, [x8]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _S3C_AC97_GLBCTRL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _S3C_AC97_GLBCTRL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x1c
	b.eq	LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _S3C_AC97_GLBCTRL_PCMINTM_DMA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_PCMINTM_DMA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _S3C_AC97_GLBCTRL_PCMINTM_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_PCMINTM_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w0, w0, w8
LBB0_4:
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
Lloh10:
	adrp	x8, _S3C2410_DMAOP_STARTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S3C2410_DMAOP_STARTED@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s3c2410_dma_ctrl
	mov	w0, #0
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_s3c24xx_ac97,8,3               ; @s3c24xx_ac97
	.comm	_S3C_AC97_GLBCTRL,8,3           ; @S3C_AC97_GLBCTRL
	.comm	_S3C_AC97_GLBCTRL_PCMINTM_DMA,4,2 ; @S3C_AC97_GLBCTRL_PCMINTM_DMA
	.comm	_S3C_AC97_GLBCTRL_PCMINTM_MASK,4,2 ; @S3C_AC97_GLBCTRL_PCMINTM_MASK
	.comm	_S3C2410_DMAOP_STARTED,4,2      ; @S3C2410_DMAOP_STARTED
	.no_dead_strip	_s3c2443_ac97_mic_trigger
.subsections_via_symbols
