	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ishtp_hbm_dma_xfer
_ishtp_hbm_dma_xfer:                    ## @ishtp_hbm_dma_xfer
	.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	%rsi, %r14
	movq	%rdi, %r15
	cmpl	$0, 28(%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	movq	_DMA_XFER_ACK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r12), %rsi
	subq	(%r15), %rsi
	movq	8(%r15), %rax
	subq	%rsi, %rax
	jl	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%r12), %rbx
	cmpq	%rax, 8(%rbx)
	jg	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	16(%r15), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_recv_ishtp_cl_msg_dma
	movl	(%r13), %eax
	movl	%eax, 16(%rbx)
	movl	28(%r15), %esi
	addq	$24, %r12
	cmpl	%esi, %r12d
	jb	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%esi, %esi
LBB0_9:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ishtp_hbm_hdr
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_ishtp_write_message
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	24(%r15), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	movl	24(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad DMA Rx message address\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bad DMA Rx message size\n"

	.comm	_DMA_XFER_ACK,4,2               ## @DMA_XFER_ACK
	.no_dead_strip	_ishtp_hbm_dma_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ishtp_hbm_dma_xfer
_ishtp_hbm_dma_xfer:                    ; @ishtp_hbm_dma_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x22, #0
Lloh0:
	adrp	x23, _DMA_XFER_ACK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_XFER_ACK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x20, x22
	ldr	x8, [x21]
	ldp	x9, x10, [x19]
	sub	x8, x8, x9
	subs	x9, x10, x8
	b.lt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x21, #8]
	cmp	x10, x9
	b.gt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x19, #16]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x21
	bl	_recv_ishtp_cl_msg_dma
	ldr	w8, [x23]
	str	w8, [x21, #16]
	ldr	w1, [x19, #28]
	add	x22, x22, #24
	cmp	w22, w1
	b.lo	LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w1, #0
LBB0_6:
	add	x0, sp, #8
	bl	_ishtp_hbm_hdr
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_ishtp_write_message
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w0, [x19, #24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dev_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad DMA Rx message address\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bad DMA Rx message size\n"

	.comm	_DMA_XFER_ACK,4,2               ; @DMA_XFER_ACK
	.no_dead_strip	_ishtp_hbm_dma_xfer
.subsections_via_symbols
