	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c2443_ac97_irq
_s3c2443_ac97_irq:                      ## @s3c2443_ac97_irq
	.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
	movq	_s3c24xx_ac97@GOTPCREL(%rip), %rbx
	movq	_S3C_AC97_GLBSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_codec_ready@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_S3C_AC97_GLBCTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_S3C_AC97_GLBCTRL_CODECREADYIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_ac97_completion@GOTPCREL(%rip), %rdi
	callq	_complete
LBB0_2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s3c24xx_ac97,8,3               ## @s3c24xx_ac97
	.comm	_S3C_AC97_GLBSTAT,8,3           ## @S3C_AC97_GLBSTAT
	.comm	_codec_ready,4,2                ## @codec_ready
	.comm	_S3C_AC97_GLBCTRL,8,3           ## @S3C_AC97_GLBCTRL
	.comm	_S3C_AC97_GLBCTRL_CODECREADYIE,4,2 ## @S3C_AC97_GLBCTRL_CODECREADYIE
	.comm	_ac97_completion,4,2            ## @ac97_completion
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_s3c2443_ac97_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c2443_ac97_irq
_s3c2443_ac97_irq:                      ; @s3c2443_ac97_irq
	.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
Lloh0:
	adrp	x19, _s3c24xx_ac97@GOTPAGE
Lloh1:
	ldr	x19, [x19, _s3c24xx_ac97@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _S3C_AC97_GLBSTAT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _S3C_AC97_GLBSTAT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _codec_ready@GOTPAGE
Lloh6:
	ldr	x8, [x8, _codec_ready@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh8:
	adrp	x20, _S3C_AC97_GLBCTRL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _S3C_AC97_GLBCTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh10:
	adrp	x8, _S3C_AC97_GLBCTRL_CODECREADYIE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_CODECREADYIE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
Lloh13:
	adrp	x0, _ac97_completion@GOTPAGE
Lloh14:
	ldr	x0, [x0, _ac97_completion@GOTPAGEOFF]
	bl	_complete
LBB0_2:
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_s3c24xx_ac97,8,3               ; @s3c24xx_ac97
	.comm	_S3C_AC97_GLBSTAT,8,3           ; @S3C_AC97_GLBSTAT
	.comm	_codec_ready,4,2                ; @codec_ready
	.comm	_S3C_AC97_GLBCTRL,8,3           ; @S3C_AC97_GLBCTRL
	.comm	_S3C_AC97_GLBCTRL_CODECREADYIE,4,2 ; @S3C_AC97_GLBCTRL_CODECREADYIE
	.comm	_ac97_completion,4,2            ; @ac97_completion
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_s3c2443_ac97_irq
.subsections_via_symbols
