	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_rcv_completion            ## -- Begin function iser_rcv_completion
	.p2align	4, 0x90
_iser_rcv_completion:                   ## @iser_rcv_completion
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	32(%rdx), %r12
	leaq	8(%rdx), %rax
	cmpq	%rdi, (%rdx)
	movq	24(%rdx), %rcx
	cmovneq	%rdi, %rax
	movq	(%rax), %r14
	movq	_ISER_RX_PAYLOAD_SIZE@GOTPCREL(%rip), %rax
	cmoveq	_ISER_RX_LOGIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_ib_dma_sync_single_for_cpu
	leaq	12(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	movq	_ISER_HEADERS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r15d, %ecx
	subl	%eax, %ecx
	leaq	L_.str(%rip), %rdi
	callq	_iser_dbg
	movl	8(%r12), %edi
	movl	8(%rbx), %edx
	movq	_ISER_HEADERS_LEN@GOTPCREL(%rip), %rax
	subq	(%rax), %r15
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_iscsi_iser_recv
	movq	24(%r13), %rax
	movl	(%rax), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ib_dma_sync_single_for_device
	movq	(%r12), %rax
	decl	(%rax)
	cmpq	8(%r13), %r14
	je	LBB0_3
## %bb.1:
	movslq	16(%r13), %rax
	movq	_ISER_MIN_POSTED_RX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	leaq	(%rsi,%rax), %rcx
	movq	_ISER_QP_MAX_RECV_DTOS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	cmpq	%rdi, %rcx
	jg	LBB0_3
## %bb.2:
	subq	%rax, %rdi
	callq	_min
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_iser_post_recvm
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iser_err                       ## TAILCALL
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISER_RX_LOGIN_SIZE,4,2         ## @ISER_RX_LOGIN_SIZE
	.comm	_ISER_RX_PAYLOAD_SIZE,4,2       ## @ISER_RX_PAYLOAD_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"op 0x%x itt 0x%x dlen %d\n"

	.comm	_ISER_HEADERS_LEN,8,3           ## @ISER_HEADERS_LEN
	.comm	_ISER_MIN_POSTED_RX,8,3         ## @ISER_MIN_POSTED_RX
	.comm	_ISER_QP_MAX_RECV_DTOS,8,3      ## @ISER_QP_MAX_RECV_DTOS
L_.str.1:                               ## @.str.1
	.asciz	"posting %d rx bufs err %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_rcv_completion            ; -- Begin function iser_rcv_completion
	.p2align	2
_iser_rcv_completion:                   ; @iser_rcv_completion
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x2]
	add	x9, x2, #8
	cmp	x8, x0
	csel	x8, x9, x0, eq
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _ISER_RX_LOGIN_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISER_RX_LOGIN_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ISER_RX_PAYLOAD_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ISER_RX_PAYLOAD_SIZE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w23, [x8]
	ldp	x8, x24, [x2, #24]
	ldr	w0, [x8]
Lloh4:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x1, x22
	mov	x2, x23
	bl	_ib_dma_sync_single_for_cpu
	ldp	w2, w1, [x21, #12]!
Lloh6:
	adrp	x26, _ISER_HEADERS_LEN@GOTPAGE
Lloh7:
	ldr	x26, [x26, _ISER_HEADERS_LEN@GOTPAGEOFF]
	ldr	w8, [x26]
	sub	w3, w20, w8
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iser_dbg
	ldr	w0, [x24, #8]
	ldur	w2, [x21, #-4]
	ldr	x8, [x26]
	sub	x3, x20, x8
	mov	x1, x21
	bl	_iscsi_iser_recv
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w3, [x25]
	mov	x1, x22
	mov	x2, x23
	bl	_ib_dma_sync_single_for_device
	ldr	x8, [x24]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x19, #8]
	cmp	x22, x8
	b.eq	LBB0_4
; %bb.1:
	ldrsw	x8, [x19, #16]
Lloh10:
	adrp	x9, _ISER_MIN_POSTED_RX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ISER_MIN_POSTED_RX@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x9]
Lloh13:
	adrp	x9, _ISER_QP_MAX_RECV_DTOS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ISER_QP_MAX_RECV_DTOS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x10, x1, x8
	cmp	x10, x9
	b.gt	LBB0_4
; %bb.2:
	sub	x0, x9, x8
	bl	_min
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_iser_post_recvm
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_iser_err
LBB0_4:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ISER_RX_LOGIN_SIZE,4,2         ; @ISER_RX_LOGIN_SIZE
	.comm	_ISER_RX_PAYLOAD_SIZE,4,2       ; @ISER_RX_PAYLOAD_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"op 0x%x itt 0x%x dlen %d\n"

	.comm	_ISER_HEADERS_LEN,8,3           ; @ISER_HEADERS_LEN
	.comm	_ISER_MIN_POSTED_RX,8,3         ; @ISER_MIN_POSTED_RX
	.comm	_ISER_QP_MAX_RECV_DTOS,8,3      ; @ISER_QP_MAX_RECV_DTOS
l_.str.1:                               ; @.str.1
	.asciz	"posting %d rx bufs err %d\n"

.subsections_via_symbols
