	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isert_alloc_rx_descriptors
_isert_alloc_rx_descriptors:            ## @isert_alloc_rx_descriptors
	.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	%rdi, %rbx
	movq	8(%rdi), %r13
	movq	8(%r13), %r15
	movq	_ISERT_QP_MAX_RECV_DTOS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$20, %esi
	callq	_kcalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_ISER_RX_PAYLOAD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ib_dma_map_single
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ib_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, (%r12)
	movl	%ebx, 16(%r12)
	movq	_ISER_RX_PAYLOAD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 12(%r12)
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_isert_recv_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	incl	%r14d
	addq	$20, %r12
	movq	_ISERT_QP_MAX_RECV_DTOS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_3
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.8:
	movq	_ISER_RX_PAYLOAD_SIZE@GOTPCREL(%rip), %r12
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	%r15, %rdi
	callq	_ib_dma_unmap_single
	addq	$20, %rbx
	decl	%r14d
	jne	LBB0_9
## %bb.10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rbx
	jmp	LBB0_12
LBB0_11:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	%rbx, %rdi
	callq	_kfree
	movq	$0, (%r14)
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_isert_err
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISERT_QP_MAX_RECV_DTOS,4,2     ## @ISERT_QP_MAX_RECV_DTOS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ISER_RX_PAYLOAD_SIZE,4,2       ## @ISER_RX_PAYLOAD_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_isert_recv_done,4,2            ## @isert_recv_done
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn %p failed to allocate rx descriptors\n"

	.no_dead_strip	_isert_alloc_rx_descriptors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isert_alloc_rx_descriptors
_isert_alloc_rx_descriptors:            ; @isert_alloc_rx_descriptors
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x25, [x0, #8]
	ldr	x20, [x25, #8]
Lloh0:
	adrp	x26, _ISERT_QP_MAX_RECV_DTOS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ISERT_QP_MAX_RECV_DTOS@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #20
	bl	_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, x0
	mov	w23, #0
Lloh5:
	adrp	x24, _ISER_RX_PAYLOAD_SIZE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ISER_RX_PAYLOAD_SIZE@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh7:
	adrp	x27, _DMA_FROM_DEVICE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh9:
	adrp	x28, _isert_recv_done@GOTPAGE
Lloh10:
	ldr	x28, [x28, _isert_recv_done@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_ib_dma_map_single
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_ib_dma_mapping_error
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w22, [x21]
	str	w22, [x21, #16]
	ldr	w2, [x24]
	ldr	x8, [x25]
	ldr	w8, [x8]
	stp	w8, w2, [x21, #8]
	ldr	w8, [x28]
	str	w8, [x21, #4]
	add	w23, w23, #1
	ldr	w8, [x26]
	add	x21, x21, #20
	cmp	w23, w8
	b.lt	LBB0_3
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	ldr	x21, [x19]
	cbz	w23, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21], #20
	ldr	w2, [x24]
	ldr	w3, [x27]
	mov	x0, x20
	bl	_ib_dma_unmap_single
	subs	w23, w23, #1
	b.ne	LBB0_7
; %bb.8:
	ldr	x21, [x19]
LBB0_9:
	mov	x0, x21
	bl	_kfree
	str	xzr, [x19]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_isert_err
LBB0_10:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ISERT_QP_MAX_RECV_DTOS,4,2     ; @ISERT_QP_MAX_RECV_DTOS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ISER_RX_PAYLOAD_SIZE,4,2       ; @ISER_RX_PAYLOAD_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_isert_recv_done,4,2            ; @isert_recv_done
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn %p failed to allocate rx descriptors\n"

	.no_dead_strip	_isert_alloc_rx_descriptors
.subsections_via_symbols
