	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ish_disable_dma                ## -- Begin function ish_disable_dma
	.p2align	4, 0x90
_ish_disable_dma:                       ## @ish_disable_dma
	.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
	movq	%rdi, %r14
	movq	_IPC_REG_ISH_RMP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_ish_reg_write
	movq	_MAX_DMA_DELAY@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.1:
	movq	_IPC_ISH_IN_DMA@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	__ish_read_fw_sts_reg
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$5, %edi
	callq	_mdelay
	addl	$5, %ebx
	movl	(%r15), %ecx
	cmpl	%ecx, %ebx
	jb	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	(%r15), %ecx
LBB0_5:
	xorl	%eax, %eax
	cmpl	%ecx, %ebx
	jb	LBB0_7
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPC_REG_ISH_RMP2,4,2           ## @IPC_REG_ISH_RMP2
	.comm	_MAX_DMA_DELAY,4,2              ## @MAX_DMA_DELAY
	.comm	_IPC_ISH_IN_DMA,4,2             ## @IPC_ISH_IN_DMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wait for DMA inactive timeout\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ish_disable_dma                ; -- Begin function ish_disable_dma
	.p2align	2
_ish_disable_dma:                       ; @ish_disable_dma
	.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	x19, x0
Lloh0:
	adrp	x8, _IPC_REG_ISH_RMP2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPC_REG_ISH_RMP2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ish_reg_write
Lloh3:
	adrp	x21, _MAX_DMA_DELAY@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_DMA_DELAY@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.1:
	mov	w20, #0
Lloh5:
	adrp	x22, _IPC_ISH_IN_DMA@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IPC_ISH_IN_DMA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	__ish_read_fw_sts_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #5
	bl	_mdelay
	add	w20, w20, #5
	ldr	w8, [x21]
	cmp	w20, w8
	b.lo	LBB0_2
; %bb.4:
	cmp	w20, w8
	b.hs	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	ldr	w8, [x21]
	cmp	w20, w8
	b.lo	LBB0_5
LBB0_7:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IPC_REG_ISH_RMP2,4,2           ; @IPC_REG_ISH_RMP2
	.comm	_MAX_DMA_DELAY,4,2              ; @MAX_DMA_DELAY
	.comm	_IPC_ISH_IN_DMA,4,2             ; @IPC_ISH_IN_DMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wait for DMA inactive timeout\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
