	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_task_rsp                  ## -- Begin function iser_task_rsp
	.p2align	4, 0x90
_iser_task_rsp:                         ## @iser_task_rsp
	.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	%rsi, %rbx
	movq	16(%rsi), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_to_iser_conn
	movq	%rax, %r14
	movl	12(%rbx), %edi
	callq	_iser_rx
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iser_err_comp                  ## TAILCALL
LBB0_1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movq	_ISER_RX_PAYLOAD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ib_dma_sync_single_for_cpu
	movq	%r12, %r13
	addq	$8, %r13
	movl	8(%rbx), %r15d
	movq	_ISER_HEADERS_LEN@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	8(%r12), %edx
	movl	12(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %ecx
	callq	_iser_dbg
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_iser_check_remote_inv
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r14), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	_ISCSI_ERR_CONN_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iscsi_conn_failure             ## TAILCALL
LBB0_2:
	movl	4(%r12), %edx
	movq	%r13, %rsi
	movl	%r15d, %ecx
	callq	_iscsi_iser_recv
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movq	_ISER_RX_PAYLOAD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ib_dma_sync_single_for_device
	movslq	(%rbx), %rcx
	leaq	-1(%rcx), %rax
	movl	%eax, (%rbx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	addq	%rsi, %rcx
	decq	%rcx
	cmpq	%rdi, %rcx
	jg	LBB0_4
## %bb.3:
	subq	%rax, %rdi
	callq	_min
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_iser_post_recvm
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iser_err                       ## TAILCALL
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"task_rsp"

	.comm	_ISER_RX_PAYLOAD_SIZE,4,2       ## @ISER_RX_PAYLOAD_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_ISER_HEADERS_LEN,4,2           ## @ISER_HEADERS_LEN
L_.str.1:                               ## @.str.1
	.asciz	"op 0x%x itt 0x%x dlen %d\n"

	.comm	_ISCSI_ERR_CONN_FAILED,4,2      ## @ISCSI_ERR_CONN_FAILED
L_.str.2:                               ## @.str.2
	.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_task_rsp                  ; -- Begin function iser_task_rsp
	.p2align	2
_iser_task_rsp:                         ; @iser_task_rsp
	.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	x22, x1
	ldr	x8, [x1, #16]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_to_iser_conn
	mov	x19, x0
	ldr	w0, [x22, #12]
	bl	_iser_rx
	mov	x21, x0
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _IB_WC_SUCCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	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_comp
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x21]
Lloh5:
	adrp	x25, _ISER_RX_PAYLOAD_SIZE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ISER_RX_PAYLOAD_SIZE@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh7:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x26]
	bl	_ib_dma_sync_single_for_cpu
	mov	x23, x21
	ldp	w2, w1, [x23, #8]!
	ldr	w8, [x22, #8]
Lloh9:
	adrp	x9, _ISER_HEADERS_LEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISER_HEADERS_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	sub	w24, w8, w9
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x24
	bl	_iser_dbg
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_iser_check_remote_inv
	mov	x8, x0
	ldr	w0, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _ISCSI_ERR_CONN_FAILED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ISCSI_ERR_CONN_FAILED@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	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	_iscsi_conn_failure
LBB0_4:
	ldr	w2, [x21, #4]
	mov	x1, x23
	mov	x3, x24
	bl	_iscsi_iser_recv
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x21]
	ldr	w2, [x25]
	ldr	w3, [x26]
	bl	_ib_dma_sync_single_for_device
	ldrsw	x8, [x20]
	sub	x8, x8, #1
	str	w8, [x20]
	ldp	x1, x9, [x19]
	add	x10, x1, x8
	cmp	x10, x9
	b.gt	LBB0_7
; %bb.5:
	sub	x0, x9, x8
	bl	_min
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_iser_post_recvm
	cbz	w0, LBB0_7
; %bb.6:
	mov	x2, x0
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@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_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"task_rsp"

	.comm	_ISER_RX_PAYLOAD_SIZE,4,2       ; @ISER_RX_PAYLOAD_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_ISER_HEADERS_LEN,4,2           ; @ISER_HEADERS_LEN
l_.str.1:                               ; @.str.1
	.asciz	"op 0x%x itt 0x%x dlen %d\n"

	.comm	_ISCSI_ERR_CONN_FAILED,4,2      ; @ISCSI_ERR_CONN_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"posting %d rx bufs err %d\n"

.subsections_via_symbols
