	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c2443_ac97_cold_reset
_s3c2443_ac97_cold_reset:               ## @s3c2443_ac97_cold_reset
	.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
	movq	_s3c24xx_ac97@GOTPCREL(%rip), %r14
	movq	_S3C_AC97_GLBCTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_S3C_AC97_GLBCTRL_COLDRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movl	$1, %edi
	callq	_msleep
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	$1, %edi
	callq	_msleep
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_S3C_AC97_GLBCTRL_ACLINKON@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	$1, %edi
	callq	_msleep
	movq	_S3C_AC97_GLBCTRL_TRANSFERDATAENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	$1, %edi
	callq	_msleep
	movq	_S3C_AC97_GLBCTRL_PCMOUTTM_DMA@GOTPCREL(%rip), %rax
	movq	_S3C_AC97_GLBCTRL_PCMINTM_DMA@GOTPCREL(%rip), %rcx
	movq	_S3C_AC97_GLBCTRL_MICINTM_DMA@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_s3c24xx_ac97,8,3               ## @s3c24xx_ac97
	.comm	_S3C_AC97_GLBCTRL,8,3           ## @S3C_AC97_GLBCTRL
	.comm	_S3C_AC97_GLBCTRL_COLDRESET,4,2 ## @S3C_AC97_GLBCTRL_COLDRESET
	.comm	_S3C_AC97_GLBCTRL_ACLINKON,4,2  ## @S3C_AC97_GLBCTRL_ACLINKON
	.comm	_S3C_AC97_GLBCTRL_TRANSFERDATAENABLE,4,2 ## @S3C_AC97_GLBCTRL_TRANSFERDATAENABLE
	.comm	_S3C_AC97_GLBCTRL_PCMOUTTM_DMA,4,2 ## @S3C_AC97_GLBCTRL_PCMOUTTM_DMA
	.comm	_S3C_AC97_GLBCTRL_PCMINTM_DMA,4,2 ## @S3C_AC97_GLBCTRL_PCMINTM_DMA
	.comm	_S3C_AC97_GLBCTRL_MICINTM_DMA,4,2 ## @S3C_AC97_GLBCTRL_MICINTM_DMA
	.no_dead_strip	_s3c2443_ac97_cold_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c2443_ac97_cold_reset
_s3c2443_ac97_cold_reset:               ; @s3c2443_ac97_cold_reset
	.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
Lloh0:
	adrp	x20, _s3c24xx_ac97@GOTPAGE
Lloh1:
	ldr	x20, [x20, _s3c24xx_ac97@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _S3C_AC97_GLBCTRL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _S3C_AC97_GLBCTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh4:
	adrp	x8, _S3C_AC97_GLBCTRL_COLDRESET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_COLDRESET@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh7:
	adrp	x8, _S3C_AC97_GLBCTRL_ACLINKON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_ACLINKON@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	mov	w0, #1
	bl	_msleep
Lloh10:
	adrp	x8, _S3C_AC97_GLBCTRL_TRANSFERDATAENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_TRANSFERDATAENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w19, w8, w19
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	mov	w0, #1
	bl	_msleep
Lloh13:
	adrp	x8, _S3C_AC97_GLBCTRL_PCMOUTTM_DMA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_PCMOUTTM_DMA@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _S3C_AC97_GLBCTRL_PCMINTM_DMA@GOTPAGE
Lloh17:
	ldr	x9, [x9, _S3C_AC97_GLBCTRL_PCMINTM_DMA@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _S3C_AC97_GLBCTRL_MICINTM_DMA@GOTPAGE
Lloh20:
	ldr	x10, [x10, _S3C_AC97_GLBCTRL_MICINTM_DMA@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w8, w8, w19
	orr	w8, w8, w9
	orr	w0, w8, w10
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	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
	b	_writel
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_s3c24xx_ac97,8,3               ; @s3c24xx_ac97
	.comm	_S3C_AC97_GLBCTRL,8,3           ; @S3C_AC97_GLBCTRL
	.comm	_S3C_AC97_GLBCTRL_COLDRESET,4,2 ; @S3C_AC97_GLBCTRL_COLDRESET
	.comm	_S3C_AC97_GLBCTRL_ACLINKON,4,2  ; @S3C_AC97_GLBCTRL_ACLINKON
	.comm	_S3C_AC97_GLBCTRL_TRANSFERDATAENABLE,4,2 ; @S3C_AC97_GLBCTRL_TRANSFERDATAENABLE
	.comm	_S3C_AC97_GLBCTRL_PCMOUTTM_DMA,4,2 ; @S3C_AC97_GLBCTRL_PCMOUTTM_DMA
	.comm	_S3C_AC97_GLBCTRL_PCMINTM_DMA,4,2 ; @S3C_AC97_GLBCTRL_PCMINTM_DMA
	.comm	_S3C_AC97_GLBCTRL_MICINTM_DMA,4,2 ; @S3C_AC97_GLBCTRL_MICINTM_DMA
	.no_dead_strip	_s3c2443_ac97_cold_reset
.subsections_via_symbols
