	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c2443_ac97_write
_s3c2443_ac97_write:                    ## @s3c2443_ac97_write
	.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	%edx, %r15d
	movl	%esi, %ebx
	movq	_ac97_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_S3C_AC97_GLBSTAT_CODECREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_codec_ready@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_s3c24xx_ac97@GOTPCREL(%rip), %r12
	movq	_S3C_AC97_CODEC_CMD@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movl	%ebx, %edi
	callq	_AC_CMD_ADDR
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_AC_CMD_DATA
	orl	%eax, %ebx
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	$50, %edi
	callq	_udelay
	movq	_S3C_AC97_GLBCTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_S3C_AC97_GLBCTRL_CODECREADYIE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%rbx), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_ac97_completion@GOTPCREL(%rip), %rdi
	callq	_wait_for_completion
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_S3C_AC97_CODEC_CMD_READ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ac97_mutex,4,2                 ## @ac97_mutex
	.comm	_S3C_AC97_GLBSTAT_CODECREADY,4,2 ## @S3C_AC97_GLBSTAT_CODECREADY
	.comm	_codec_ready,4,2                ## @codec_ready
	.comm	_s3c24xx_ac97,8,3               ## @s3c24xx_ac97
	.comm	_S3C_AC97_CODEC_CMD,8,3         ## @S3C_AC97_CODEC_CMD
	.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	_S3C_AC97_CODEC_CMD_READ,4,2    ## @S3C_AC97_CODEC_CMD_READ
	.no_dead_strip	_s3c2443_ac97_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c2443_ac97_write
_s3c2443_ac97_write:                    ; @s3c2443_ac97_write
	.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	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x19, _ac97_mutex@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ac97_mutex@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
Lloh2:
	adrp	x8, _S3C_AC97_GLBSTAT_CODECREADY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S3C_AC97_GLBSTAT_CODECREADY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _codec_ready@GOTPAGE
Lloh6:
	ldr	x9, [x9, _codec_ready@GOTPAGEOFF]
Lloh7:
	adrp	x22, _s3c24xx_ac97@GOTPAGE
Lloh8:
	ldr	x22, [x22, _s3c24xx_ac97@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
	ldr	x8, [x22]
Lloh10:
	adrp	x23, _S3C_AC97_CODEC_CMD@GOTPAGE
Lloh11:
	ldr	x23, [x23, _S3C_AC97_CODEC_CMD@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x0, x21
	bl	_AC_CMD_ADDR
	mov	x21, x0
	mov	x0, x20
	bl	_AC_CMD_DATA
	orr	w0, w0, w21
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #50
	bl	_udelay
	ldr	x8, [x22]
Lloh12:
	adrp	x20, _S3C_AC97_GLBCTRL@GOTPAGE
Lloh13:
	ldr	x20, [x20, _S3C_AC97_GLBCTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh14:
	adrp	x8, _S3C_AC97_GLBCTRL_CODECREADYIE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S3C_AC97_GLBCTRL_CODECREADYIE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x22]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
Lloh17:
	adrp	x0, _ac97_completion@GOTPAGE
Lloh18:
	ldr	x0, [x0, _ac97_completion@GOTPAGEOFF]
	bl	_wait_for_completion
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh19:
	adrp	x8, _S3C_AC97_CODEC_CMD_READ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S3C_AC97_CODEC_CMD_READ@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ac97_mutex,4,2                 ; @ac97_mutex
	.comm	_S3C_AC97_GLBSTAT_CODECREADY,4,2 ; @S3C_AC97_GLBSTAT_CODECREADY
	.comm	_codec_ready,4,2                ; @codec_ready
	.comm	_s3c24xx_ac97,8,3               ; @s3c24xx_ac97
	.comm	_S3C_AC97_CODEC_CMD,8,3         ; @S3C_AC97_CODEC_CMD
	.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	_S3C_AC97_CODEC_CMD_READ,4,2    ; @S3C_AC97_CODEC_CMD_READ
	.no_dead_strip	_s3c2443_ac97_write
.subsections_via_symbols
