	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdacf_pcm_clear_sram
_pdacf_pcm_clear_sram:                  ## @pdacf_pcm_clear_sram
	.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
	movq	%rdi, %r12
	movq	_PDAUDIOCF_REG_RDP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_inw
	movq	%rax, %r15
	movq	_PDAUDIOCF_REG_WDP@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	callq	_inw
	xorl	%ecx, %ecx
	cmpq	%rax, %r15
	je	LBB0_6
## %bb.1:
	movl	$65537, %ebx                    ## imm = 0x10001
	movq	_PDAUDIOCF_REG_MD@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_inw
	movq	_PDAUDIOCF_REG_RDP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_inw
	movq	%rax, %r15
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	callq	_inw
	cmpq	%rax, %r15
	jne	LBB0_2
## %bb.5:
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDAUDIOCF_REG_RDP,8,3          ## @PDAUDIOCF_REG_RDP
	.comm	_PDAUDIOCF_REG_WDP,8,3          ## @PDAUDIOCF_REG_WDP
	.comm	_EIO,4,2                        ## @EIO
	.comm	_PDAUDIOCF_REG_MD,8,3           ## @PDAUDIOCF_REG_MD
	.no_dead_strip	_pdacf_pcm_clear_sram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdacf_pcm_clear_sram
_pdacf_pcm_clear_sram:                  ; @pdacf_pcm_clear_sram
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _PDAUDIOCF_REG_RDP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PDAUDIOCF_REG_RDP@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inw
	mov	x20, x0
	ldr	x8, [x19]
Lloh2:
	adrp	x22, _PDAUDIOCF_REG_WDP@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PDAUDIOCF_REG_WDP@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_inw
	cmp	x20, x0
	b.eq	LBB0_4
; %bb.1:
	mov	w23, #65537
Lloh4:
	adrp	x24, _PDAUDIOCF_REG_MD@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PDAUDIOCF_REG_MD@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w23, w23, #1
	b.mi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_inw
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inw
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_inw
	cmp	x20, x0
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PDAUDIOCF_REG_RDP,8,3          ; @PDAUDIOCF_REG_RDP
	.comm	_PDAUDIOCF_REG_WDP,8,3          ; @PDAUDIOCF_REG_WDP
	.comm	_EIO,4,2                        ; @EIO
	.comm	_PDAUDIOCF_REG_MD,8,3           ; @PDAUDIOCF_REG_MD
	.no_dead_strip	_pdacf_pcm_clear_sram
.subsections_via_symbols
