	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pmac_burgundy_rcw
_snd_pmac_burgundy_rcw:                 ## @snd_pmac_burgundy_rcw
	.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, %r14d
	movq	%rdi, %r15
	callq	_spin_lock_irqsave
	movq	8(%r15), %rdi
	addq	$4, %rdi
	leal	1048576(%r14), %esi
	callq	_out_le32
	movq	%r15, %rdi
	callq	_snd_pmac_burgundy_busy_wait
	movq	%r15, %rdi
	callq	_snd_pmac_burgundy_extend_wait
	movq	8(%r15), %rdi
	callq	_in_le32
	shrl	$4, %eax
	movzbl	%al, %r12d
	movq	8(%r15), %rdi
	addq	$4, %rdi
	leal	1048832(%r14), %esi
	callq	_out_le32
	movq	%r15, %rdi
	callq	_snd_pmac_burgundy_busy_wait
	movq	%r15, %rdi
	callq	_snd_pmac_burgundy_extend_wait
	movq	8(%r15), %rdi
	callq	_in_le32
	movl	%eax, %ebx
	shll	$4, %ebx
	andl	$65280, %ebx                    ## imm = 0xFF00
	orl	%r12d, %ebx
	movq	8(%r15), %rdi
	addq	$4, %rdi
	leal	1049088(%r14), %esi
	callq	_out_le32
	movq	%r15, %rdi
	callq	_snd_pmac_burgundy_busy_wait
	movq	%r15, %rdi
	callq	_snd_pmac_burgundy_extend_wait
	movq	8(%r15), %rdi
	callq	_in_le32
	movl	%eax, %r12d
	shll	$12, %r12d
	andl	$16711680, %r12d                ## imm = 0xFF0000
	orl	%ebx, %r12d
	movq	8(%r15), %rdi
	addq	$4, %rdi
	addl	$1049344, %r14d                 ## imm = 0x100300
	movl	%r14d, %esi
	callq	_out_le32
	movq	%r15, %rdi
	callq	_snd_pmac_burgundy_busy_wait
	movq	%r15, %rdi
	callq	_snd_pmac_burgundy_extend_wait
	movq	8(%r15), %rdi
	callq	_in_le32
	movl	%eax, %ebx
	andl	$-16, %ebx
	shll	$20, %ebx
	orl	%r12d, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_pmac_burgundy_rcw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pmac_burgundy_rcw
_snd_pmac_burgundy_rcw:                 ; @snd_pmac_burgundy_rcw
	.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
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	add	w1, w20, #256, lsl #12          ; =1048576
	bl	_out_le32
	mov	x0, x19
	bl	_snd_pmac_burgundy_busy_wait
	mov	x0, x19
	bl	_snd_pmac_burgundy_extend_wait
	ldr	x0, [x19, #8]
	bl	_in_le32
	mov	x21, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	add	w8, w20, #256, lsl #12          ; =1048576
	add	w20, w8, #256
	mov	x1, x20
	bl	_out_le32
	mov	x0, x19
	bl	_snd_pmac_burgundy_busy_wait
	mov	x0, x19
	bl	_snd_pmac_burgundy_extend_wait
	ldr	x0, [x19, #8]
	bl	_in_le32
	lsl	w22, w0, #4
	bfxil	w22, w21, #4, #8
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	add	w1, w20, #256
	bl	_out_le32
	mov	x0, x19
	bl	_snd_pmac_burgundy_busy_wait
	mov	x0, x19
	bl	_snd_pmac_burgundy_extend_wait
	ldr	x0, [x19, #8]
	bl	_in_le32
	lsr	w8, w0, #4
	bfi	w22, w8, #16, #8
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	add	w1, w20, #512
	bl	_out_le32
	mov	x0, x19
	bl	_snd_pmac_burgundy_busy_wait
	mov	x0, x19
	bl	_snd_pmac_burgundy_extend_wait
	ldr	x0, [x19, #8]
	bl	_in_le32
	lsr	w8, w0, #4
	bfi	w22, w8, #24, #8
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_pmac_burgundy_rcw
.subsections_via_symbols
