	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_rdma_alloc
_qed_rdma_alloc:                        ## @qed_rdma_alloc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	%r14, %rdi
	callq	_QED_IS_IWARP_PERSONALITY
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_PROTOCOLID_ROCE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PROTOCOLID_IWARP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	%esi, 112(%r12)
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_qed_cxt_get_proto_cid_count
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_QED_IS_IWARP_PERSONALITY
	movl	%ebx, %ecx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
LBB0_5:
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%ecx, (%r12)
	movq	_PROTOCOLID_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qed_cxt_get_proto_tid_count
	movl	%eax, 4(%r12)
	movq	_QED_L2_QUEUE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_RESC_START
	movq	%rax, 104(%r12)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_RESC_NUM
	movq	%rax, 96(%r12)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$1, %edi
	callq	_kzalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%r15), %esi
	movl	$1, %edi
	callq	_kzalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	movl	%r13d, %ebx
	je	LBB0_36
## %bb.8:
	leaq	32(%r12), %r15
	movq	_RDMA_MAX_PDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_rdma_bmap_alloc
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_35
LBB0_6:
	movl	%r13d, %ebx
	jmp	LBB0_37
LBB0_10:
	leaq	40(%r12), %r13
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_qed_rdma_bmap_alloc
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_34
LBB0_12:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	leaq	48(%r12), %r13
	leaq	L_.str.5(%rip), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_qed_rdma_bmap_alloc
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_14:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	56(%r12), %r13
	leaq	L_.str.7(%rip), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_qed_rdma_bmap_alloc
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_32
LBB0_16:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	64(%r12), %r13
	movl	4(%r12), %edx
	leaq	L_.str.9(%rip), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_qed_rdma_bmap_alloc
	testl	%eax, %eax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.10(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_18:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	leaq	72(%r12), %r13
	leaq	L_.str.11(%rip), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_qed_rdma_bmap_alloc
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.12(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_30
LBB0_20:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	leaq	80(%r12), %r13
	leaq	L_.str.13(%rip), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_qed_rdma_bmap_alloc
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.14(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_22:
	movq	%r14, %rdi
	callq	_qed_cxt_get_srq_count
	movl	%eax, 8(%r12)
	leaq	88(%r12), %rsi
	leaq	L_.str.15(%rip), %rcx
	movq	%r14, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %edx
	callq	_qed_rdma_bmap_alloc
	testl	%eax, %eax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_24
## %bb.23:
	movl	%eax, %ebx
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.16(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_28
LBB0_24:
	movq	%r14, %rdi
	callq	_QED_IS_IWARP_PERSONALITY
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%r14, %rdi
	callq	_qed_iwarp_alloc
	testl	%eax, %eax
	je	LBB0_26
## %bb.27:
	movl	%eax, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_kfree
LBB0_28:
	movq	(%r13), %rdi
	callq	_kfree
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_29:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_kfree
LBB0_30:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_kfree
LBB0_31:
	movq	(%r14), %rdi
	callq	_kfree
LBB0_32:
	movq	(%r13), %rdi
	callq	_kfree
LBB0_33:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_kfree
LBB0_34:
	movq	(%r15), %rdi
	callq	_kfree
LBB0_35:
	movq	24(%r12), %rdi
	callq	_kfree
LBB0_36:
	movq	16(%r12), %rdi
	callq	_kfree
LBB0_37:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.17(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocating RDMA\n"

	.comm	_PROTOCOLID_IWARP,4,2           ## @PROTOCOLID_IWARP
	.comm	_PROTOCOLID_ROCE,4,2            ## @PROTOCOLID_ROCE
	.comm	_QED_L2_QUEUE,4,2               ## @QED_L2_QUEUE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RDMA_MAX_PDS,4,2               ## @RDMA_MAX_PDS
L_.str.1:                               ## @.str.1
	.asciz	"PD"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate pd_map, rc = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"DPI"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to allocate DPI bitmap, rc = %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"CQ"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to allocate cq bitmap, rc = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Toggle"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to allocate toggle bits, rc = %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"MR"

L_.str.10:                              ## @.str.10
	.asciz	"Failed to allocate itids bitmaps, rc = %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"CID"

L_.str.12:                              ## @.str.12
	.asciz	"Failed to allocate cid bitmap, rc = %d\n"

L_.str.13:                              ## @.str.13
	.asciz	"REAL_CID"

L_.str.14:                              ## @.str.14
	.asciz	"Failed to allocate real cid bitmap, rc = %d\n"

L_.str.15:                              ## @.str.15
	.asciz	"SRQ"

L_.str.16:                              ## @.str.16
	.asciz	"Failed to allocate srq bitmap, rc = %d\n"

L_.str.17:                              ## @.str.17
	.asciz	"Allocation successful\n"

	.no_dead_strip	_qed_rdma_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_rdma_alloc
_qed_rdma_alloc:                        ; @qed_rdma_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	ldr	x28, [x0, #8]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
Lloh3:
	adrp	x27, _QED_MSG_RDMA@GOTPAGE
Lloh4:
	ldr	x27, [x27, _QED_MSG_RDMA@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
	mov	x0, x20
	bl	_QED_IS_IWARP_PERSONALITY
Lloh7:
	adrp	x19, _PROTOCOLID_ROCE@GOTPAGE
Lloh8:
	ldr	x19, [x19, _PROTOCOLID_ROCE@GOTPAGEOFF]
Lloh9:
	adrp	x8, _PROTOCOLID_IWARP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PROTOCOLID_IWARP@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x19, x8, eq
	ldr	w1, [x8]
	str	w1, [x28, #112]
	mov	x0, x20
	mov	x2, #0
	bl	_qed_cxt_get_proto_cid_count
	mov	x25, x0
	mov	x0, x20
	bl	_QED_IS_IWARP_PERSONALITY
	cmp	w25, #0
	cinc	w8, w25, lt
	asr	w8, w8, #1
	cmp	x0, #0
	csel	w8, w8, w25, eq
	str	w8, [x28]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_qed_cxt_get_proto_tid_count
	str	w0, [x28, #4]
Lloh11:
	adrp	x19, _QED_L2_QUEUE@GOTPAGE
Lloh12:
	ldr	x19, [x19, _QED_L2_QUEUE@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_RESC_START
	str	x0, [x28, #104]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_RESC_NUM
	str	x0, [x28, #96]
Lloh13:
	adrp	x19, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x19, [x19, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	w0, #1
	bl	_kzalloc
	str	x0, [x28, #16]
	cbz	x0, LBB0_30
; %bb.1:
	ldr	w1, [x19]
	mov	w0, #1
	bl	_kzalloc
	str	x0, [x28, #24]
	cbz	x0, LBB0_29
; %bb.2:
	add	x19, x28, #32
Lloh15:
	adrp	x8, _RDMA_MAX_PDS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RDMA_MAX_PDS@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_qed_rdma_bmap_alloc
	cbz	w0, LBB0_4
; %bb.3:
	mov	x23, x0
	ldr	w1, [x27]
	str	x23, [sp]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
	b	LBB0_28
LBB0_4:
	add	x21, x28, #40
	ldr	w2, [x20]
Lloh22:
	adrp	x3, l_.str.3@PAGE
Lloh23:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_qed_rdma_bmap_alloc
	cbz	w0, LBB0_6
; %bb.5:
	mov	x23, x0
	ldr	w1, [x27]
	str	x23, [sp]
Lloh24:
	adrp	x2, l_.str.4@PAGE
Lloh25:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_27
LBB0_6:
	add	x22, x28, #48
Lloh26:
	adrp	x3, l_.str.5@PAGE
Lloh27:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x2, x25
	bl	_qed_rdma_bmap_alloc
	cbz	w0, LBB0_8
; %bb.7:
	mov	x23, x0
	ldr	w1, [x27]
	str	x23, [sp]
Lloh28:
	adrp	x2, l_.str.6@PAGE
Lloh29:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_26
LBB0_8:
	add	x24, x28, #56
Lloh30:
	adrp	x3, l_.str.7@PAGE
Lloh31:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_qed_rdma_bmap_alloc
	cbz	w0, LBB0_10
; %bb.9:
	mov	x23, x0
	ldr	w1, [x27]
	str	x23, [sp]
Lloh32:
	adrp	x2, l_.str.8@PAGE
Lloh33:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_25
LBB0_10:
	add	x26, x28, #64
	ldr	w2, [x28, #4]
Lloh34:
	adrp	x3, l_.str.9@PAGE
Lloh35:
	add	x3, x3, l_.str.9@PAGEOFF
	mov	x0, x20
	mov	x1, x26
	bl	_qed_rdma_bmap_alloc
	cbz	w0, LBB0_12
; %bb.11:
	mov	x23, x0
	ldr	w1, [x27]
	str	x23, [sp]
Lloh36:
	adrp	x2, l_.str.10@PAGE
Lloh37:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_24
LBB0_12:
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	add	x26, x28, #72
Lloh38:
	adrp	x3, l_.str.11@PAGE
Lloh39:
	add	x3, x3, l_.str.11@PAGEOFF
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_qed_rdma_bmap_alloc
	cbz	w0, LBB0_14
; %bb.13:
	mov	x23, x0
	ldr	w1, [x27]
	str	x23, [sp]
Lloh40:
	adrp	x2, l_.str.12@PAGE
Lloh41:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_23
LBB0_14:
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	add	x26, x28, #80
Lloh42:
	adrp	x3, l_.str.13@PAGE
Lloh43:
	add	x3, x3, l_.str.13@PAGEOFF
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_qed_rdma_bmap_alloc
	cbz	w0, LBB0_16
; %bb.15:
	mov	x23, x0
	ldr	w1, [x27]
	str	x23, [sp]
Lloh44:
	adrp	x2, l_.str.14@PAGE
Lloh45:
	add	x2, x2, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_22
LBB0_16:
	mov	x0, x20
	bl	_qed_cxt_get_srq_count
	mov	x2, x0
	str	w0, [x28, #8]
	add	x25, x28, #88
Lloh46:
	adrp	x3, l_.str.15@PAGE
Lloh47:
	add	x3, x3, l_.str.15@PAGEOFF
	mov	x0, x20
	mov	x1, x25
	bl	_qed_rdma_bmap_alloc
	cbz	w0, LBB0_18
; %bb.17:
	mov	x23, x0
	ldr	w1, [x27]
	str	x23, [sp]
Lloh48:
	adrp	x2, l_.str.16@PAGE
Lloh49:
	add	x2, x2, l_.str.16@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_21
LBB0_18:
	mov	x0, x20
	bl	_QED_IS_IWARP_PERSONALITY
	cbz	x0, LBB0_31
; %bb.19:
	mov	x0, x20
	bl	_qed_iwarp_alloc
	cbz	w0, LBB0_31
; %bb.20:
	mov	x23, x0
	ldr	x0, [x25]
	bl	_kfree
LBB0_21:
	ldr	x0, [x26]
	bl	_kfree
LBB0_22:
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x0, [x26]
	bl	_kfree
LBB0_23:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x0, [x8]
	bl	_kfree
LBB0_24:
	ldr	x0, [x24]
	bl	_kfree
LBB0_25:
	ldr	x0, [x22]
	bl	_kfree
LBB0_26:
	ldr	x0, [x21]
	bl	_kfree
LBB0_27:
	ldr	x0, [x19]
	bl	_kfree
LBB0_28:
	ldr	x0, [x28, #24]
	bl	_kfree
LBB0_29:
	ldr	x0, [x28, #16]
	bl	_kfree
LBB0_30:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_31:
	ldr	w1, [x27]
Lloh50:
	adrp	x2, l_.str.17@PAGE
Lloh51:
	add	x2, x2, l_.str.17@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
	mov	w23, #0
	b	LBB0_30
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocating RDMA\n"

	.comm	_PROTOCOLID_IWARP,4,2           ; @PROTOCOLID_IWARP
	.comm	_PROTOCOLID_ROCE,4,2            ; @PROTOCOLID_ROCE
	.comm	_QED_L2_QUEUE,4,2               ; @QED_L2_QUEUE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RDMA_MAX_PDS,4,2               ; @RDMA_MAX_PDS
l_.str.1:                               ; @.str.1
	.asciz	"PD"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate pd_map, rc = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"DPI"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to allocate DPI bitmap, rc = %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"CQ"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to allocate cq bitmap, rc = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Toggle"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to allocate toggle bits, rc = %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"MR"

l_.str.10:                              ; @.str.10
	.asciz	"Failed to allocate itids bitmaps, rc = %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"CID"

l_.str.12:                              ; @.str.12
	.asciz	"Failed to allocate cid bitmap, rc = %d\n"

l_.str.13:                              ; @.str.13
	.asciz	"REAL_CID"

l_.str.14:                              ; @.str.14
	.asciz	"Failed to allocate real cid bitmap, rc = %d\n"

l_.str.15:                              ; @.str.15
	.asciz	"SRQ"

l_.str.16:                              ; @.str.16
	.asciz	"Failed to allocate srq bitmap, rc = %d\n"

l_.str.17:                              ; @.str.17
	.asciz	"Allocation successful\n"

	.no_dead_strip	_qed_rdma_alloc
.subsections_via_symbols
