	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __qedr_alloc_mr
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___qedr_alloc_mr:                       ## @__qedr_alloc_mr
	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_get_qedr_pd
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_get_qedr_dev
	movq	%rax, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_QEDR_MSG_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_DP_DEBUG
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$144, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, 136(%rax)
	movq	_QEDR_MR_FRMR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rbx)
	movq	%rbx, %rsi
	addq	$120, %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_init_mr_info
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	8(%r14), %rax
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_DP_ERR
	jmp	LBB0_8
LBB0_1:
	negl	%r13d
	movl	%r13d, %edi
	jmp	LBB0_2
LBB0_6:
	movq	_QED_RDMA_TID_FMR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rbx)
	movl	$0, 4(%rbx)
	movl	(%r15), %eax
	movl	%eax, 104(%rbx)
	movq	$1, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rbx)
	movups	%xmm0, 80(%rbx)
	movq	$0, 96(%rbx)
	movl	120(%rbx), %edi
	movl	124(%rbx), %eax
	movl	%eax, 60(%rbx)
	callq	_ilog2
	movl	%eax, 56(%rbx)
	movl	$0, 16(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	$0, 48(%rbx)
	movq	$1, 20(%rbx)
	movq	8(%r14), %rax
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_DP_ERR
	movq	8(%r14), %rax
	movl	(%r14), %edi
	movl	(%rbx), %esi
	callq	*16(%rax)
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r12d, %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_9:
	movl	(%rbx), %ecx
	shll	$8, %ecx
	orl	4(%rbx), %ecx
	movl	%ecx, 112(%rbx)
	movl	%ecx, 116(%rbx)
	movq	_QEDR_MSG_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_DEBUG
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QEDR_MSG_MR,4,2                ## @QEDR_MSG_MR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qedr_alloc_frmr pd = %d max_page_list_len= %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_QEDR_MR_FRMR,4,2               ## @QEDR_MR_FRMR
L_.str.1:                               ## @.str.1
	.asciz	"roce alloc tid returned an error %d\n"

	.comm	_QED_RDMA_TID_FMR,4,2           ## @QED_RDMA_TID_FMR
L_.str.2:                               ## @.str.2
	.asciz	"roce register tid returned an error %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"alloc frmr: %x\n"

	.no_dead_strip	___qedr_alloc_mr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function __qedr_alloc_mr
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
___qedr_alloc_mr:                       ; @__qedr_alloc_mr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x22, x1
	mov	x19, x0
	bl	_get_qedr_pd
	mov	x21, x0
	ldr	w0, [x19]
	bl	_get_qedr_dev
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x23, _QEDR_MSG_MR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _QEDR_MSG_MR@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w3, [x21]
	str	x22, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_DEBUG
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #144
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #136]
Lloh10:
	adrp	x8, _QEDR_MR_FRMR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QEDR_MR_FRMR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #128]
	add	x1, x0, #120
	mov	x0, x19
	mov	x2, x22
	mov	w3, #1
	bl	_init_mr_info
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x19]
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_DP_ERR
	b	LBB0_7
LBB0_4:
	neg	w0, w24
	b	LBB0_8
LBB0_5:
Lloh15:
	adrp	x8, _QED_RDMA_TID_FMR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QED_RDMA_TID_FMR@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x21]
	stp	w9, w8, [x20, #104]
Lloh18:
	adrp	x8, lCPI0_0@PAGE
Lloh19:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	stur	d8, [x20, #4]
	str	wzr, [x20, #12]
	str	xzr, [x20, #96]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x20, #64]
	ldp	w0, w8, [x20, #120]
	str	w8, [x20, #60]
	bl	_ilog2
	str	w0, [x20, #56]
	stp	xzr, xzr, [x20, #40]
	str	xzr, [x20, #32]
	str	d8, [x20, #16]
	str	wzr, [x20, #24]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19]
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_9
; %bb.6:
	mov	x22, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_DP_ERR
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	ldr	w0, [x19]
	ldr	w1, [x20]
	blr	x8
LBB0_7:
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
LBB0_8:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
LBB0_9:
	ldp	w8, w9, [x20]
	orr	w3, w9, w8, lsl #8
	stp	w3, w3, [x20, #112]
	ldr	w1, [x23]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DP_DEBUG
	mov	x0, x20
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QEDR_MSG_MR,4,2                ; @QEDR_MSG_MR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qedr_alloc_frmr pd = %d max_page_list_len= %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_QEDR_MR_FRMR,4,2               ; @QEDR_MR_FRMR
l_.str.1:                               ; @.str.1
	.asciz	"roce alloc tid returned an error %d\n"

	.comm	_QED_RDMA_TID_FMR,4,2           ; @QED_RDMA_TID_FMR
l_.str.2:                               ; @.str.2
	.asciz	"roce register tid returned an error %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"alloc frmr: %x\n"

	.no_dead_strip	___qedr_alloc_mr
.subsections_via_symbols
