	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa_dsp_writel                 ## -- Begin function saa_dsp_writel
	.p2align	4, 0x90
_saa_dsp_writel:                        ## @saa_dsp_writel
	.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	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	(,%rbx,4), %esi
	leaq	L_.str(%rip), %rdi
	callq	_d2printk
	movq	_SAA7135_DSP_RWSTATE_WRR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_saa_dsp_wait_bit
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_saa_writel
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_saa_dsp_wait_bit
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsp write reg 0x%x = 0x%06x\n"

	.comm	_SAA7135_DSP_RWSTATE_WRR,4,2    ## @SAA7135_DSP_RWSTATE_WRR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa_dsp_writel                 ; -- Begin function saa_dsp_writel
	.p2align	2
_saa_dsp_writel:                        ; @saa_dsp_writel
	.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, x2
	mov	x21, x1
	mov	x19, x0
	lsl	w1, w1, #2
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_d2printk
Lloh2:
	adrp	x22, _SAA7135_DSP_RWSTATE_WRR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SAA7135_DSP_RWSTATE_WRR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_saa_dsp_wait_bit
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_saa_writel
	ldr	w1, [x22]
	mov	x0, x19
	bl	_saa_dsp_wait_bit
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_2:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsp write reg 0x%x = 0x%06x\n"

	.comm	_SAA7135_DSP_RWSTATE_WRR,4,2    ; @SAA7135_DSP_RWSTATE_WRR
.subsections_via_symbols
