	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ps3_wait_for_dma_stop
_snd_ps3_wait_for_dma_stop:             ## @snd_ps3_wait_for_dma_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$700, %esi                      ## imm = 0x2BC
	movl	$1, %edx
	callq	_snd_ps3_verify_dma_stop
	movl	%eax, %ebx
	movq	_PS3_AUDIO_INTR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_update_reg
	movq	_PS3_AUDIO_AX_IS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_update_reg
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_PS3_AUDIO_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PS3_AUDIO_CONFIG_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	xorl	%edx, %edx
	callq	_update_mask_reg
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PS3_AUDIO_INTR_0,4,2           ## @PS3_AUDIO_INTR_0
	.comm	_PS3_AUDIO_AX_IS,4,2            ## @PS3_AUDIO_AX_IS
	.comm	_PS3_AUDIO_CONFIG,4,2           ## @PS3_AUDIO_CONFIG
	.comm	_PS3_AUDIO_CONFIG_CLEAR,4,2     ## @PS3_AUDIO_CONFIG_CLEAR
	.no_dead_strip	_snd_ps3_wait_for_dma_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ps3_wait_for_dma_stop
_snd_ps3_wait_for_dma_stop:             ; @snd_ps3_wait_for_dma_stop
	.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
	mov	w1, #700
	mov	w2, #1
	bl	_snd_ps3_verify_dma_stop
	mov	x19, x0
Lloh0:
	adrp	x8, _PS3_AUDIO_INTR_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS3_AUDIO_INTR_0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_update_reg
Lloh3:
	adrp	x8, _PS3_AUDIO_AX_IS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PS3_AUDIO_AX_IS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_update_reg
	cbz	w19, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _PS3_AUDIO_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PS3_AUDIO_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _PS3_AUDIO_CONFIG_CLEAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PS3_AUDIO_CONFIG_CLEAR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mvn	w1, w8
	mov	w2, #0
	bl	_update_mask_reg
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wmb
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PS3_AUDIO_INTR_0,4,2           ; @PS3_AUDIO_INTR_0
	.comm	_PS3_AUDIO_AX_IS,4,2            ; @PS3_AUDIO_AX_IS
	.comm	_PS3_AUDIO_CONFIG,4,2           ; @PS3_AUDIO_CONFIG
	.comm	_PS3_AUDIO_CONFIG_CLEAR,4,2     ; @PS3_AUDIO_CONFIG_CLEAR
	.no_dead_strip	_snd_ps3_wait_for_dma_stop
.subsections_via_symbols
