	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ishtp_cl_release_dma_acked_mem ## -- Begin function ishtp_cl_release_dma_acked_mem
	.p2align	4, 0x90
_ishtp_cl_release_dma_acked_mem:        ## @ishtp_cl_release_dma_acked_mem
	.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, %eax
	movq	%rdi, %rbx
	movq	_DMA_SLOT_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	cmpl	$1, %edx
	sbbl	$-1, %r14d
	subq	(%rdi), %rsi
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movq	%rax, %r12
	testq	%rdx, %rdx
	jne	LBB0_9
	jmp	LBB0_4
LBB0_1:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%eax, %r12d
	testq	%rdx, %rdx
	jne	LBB0_9
LBB0_4:
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.5:
	movl	8(%rbx), %eax
	movslq	%r12d, %rcx
	cmpl	%ecx, %eax
	cmovlel	%ecx, %eax
	subl	%ecx, %eax
	movl	%r14d, %edx
	shlq	$3, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rdi
	addq	%rcx, %rdi
	cmpq	$0, (%rdi,%rsi,8)
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, (%rdi,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_6
LBB0_11:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_8:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_9:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_SLOT_SIZE,4,2              ## @DMA_SLOT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad DMA Tx ack address\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ishtp_cl_release_dma_acked_mem ; -- Begin function ishtp_cl_release_dma_acked_mem
	.p2align	2
_ishtp_cl_release_dma_acked_mem:        ; @ishtp_cl_release_dma_acked_mem
	.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, _DMA_SLOT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_SLOT_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sdiv	w9, w2, w8
	msub	w10, w9, w8, w2
	cmp	w10, #0
	cinc	w21, w9, ne
	ldr	x9, [x0]
	sub	x9, x1, x9
	sdiv	x22, x9, x8
	msub	x8, x22, x8, x9
	cbz	x8, LBB0_2
LBB0_1:
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
LBB0_2:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	w8, [x19, #8]
	sxtw	x9, w22
	cmp	w8, w22
	csel	w8, w8, w22, gt
	sub	w8, w8, w22
	lsl	x9, x9, #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #16]
	ldr	x11, [x10, x9]
	cbz	x11, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x10, x9]
	sub	x8, x8, #1
	add	x9, x9, #8
	subs	x21, x21, #1
	b.ne	LBB0_4
LBB0_7:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
LBB0_8:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_SLOT_SIZE,4,2              ; @DMA_SLOT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad DMA Tx ack address\n"

.subsections_via_symbols
