	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iwarp_prealloc_ep
_qed_iwarp_prealloc_ep:                 ## @qed_iwarp_prealloc_ep
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$1, %r13d
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_QED_IWARP_PREALLOC_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_2:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.3:
	leaq	-56(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_qed_iwarp_alloc_tcp_cid
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax
	movq	-56(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movq	(%rbx), %rdi
	callq	_spin_lock_bh
	movq	-56(%rbp), %rdi
	movq	(%rbx), %rsi
	addq	$4, %rsi
	callq	_list_add_tail
	movq	(%rbx), %rdi
	callq	_spin_unlock_bh
	decl	%r13d
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_qed_iwarp_create_ep
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_qed_iwarp_alloc_cid
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	_qed_iwarp_set_tcp_cid
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %r15d
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_qed_iwarp_destroy_ep
	movl	%r15d, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_IWARP_PREALLOC_CNT,4,2     ## @QED_IWARP_PREALLOC_CNT
	.no_dead_strip	_qed_iwarp_prealloc_ep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iwarp_prealloc_ep
_qed_iwarp_prealloc_ep:                 ; @qed_iwarp_prealloc_ep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _QED_IWARP_PREALLOC_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_IWARP_PREALLOC_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, #0
	csinc	w22, w8, wzr, ne
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_qed_iwarp_alloc_tcp_cid
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #4]
	ldr	x9, [sp, #8]
	str	w8, [x9, #4]
	ldr	x0, [x19]
	bl	_spin_lock_bh
	ldr	x0, [sp, #8]
	ldr	x8, [x19]
	add	x1, x8, #4
	bl	_list_add_tail
	ldr	x0, [x19]
	bl	_spin_unlock_bh
	subs	w22, w22, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_qed_iwarp_create_ep
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #4
	mov	x0, x19
	cbz	w20, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_qed_iwarp_alloc_cid
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #4]
	mov	x0, x19
	bl	_qed_iwarp_set_tcp_cid
	b	LBB0_3
LBB0_8:
	mov	w21, #0
	b	LBB0_11
LBB0_9:
	mov	x21, x0
	b	LBB0_11
LBB0_10:
	mov	x21, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_qed_iwarp_destroy_ep
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_IWARP_PREALLOC_CNT,4,2     ; @QED_IWARP_PREALLOC_CNT
	.no_dead_strip	_qed_iwarp_prealloc_ep
.subsections_via_symbols
