	.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_get_dma_mr
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_qedr_get_dma_mr
	.p2align	4, 0x90
_qedr_get_dma_mr:                       ## @qedr_get_dma_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, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_get_qedr_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_get_qedr_pd
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$52, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_QEDR_MR_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	8(%r14), %rax
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_DP_ERR
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_6:
	movq	_QED_RDMA_TID_REGISTERED_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	(%r13), %eax
	movl	%eax, 32(%rbx)
	movl	$1, 4(%rbx)
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rcx
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rdx
	movq	_IB_ACCESS_REMOTE_ATOMIC@GOTPCREL(%rip), %rsi
	movd	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rcx), %xmm0
	pinsrd	$2, (%rdx), %xmm0
	pinsrd	$3, (%rsi), %xmm0
	movd	%r15d, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pandn	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 8(%rbx)
	movl	$1, 24(%rbx)
	movq	8(%r14), %rax
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	leaq	L_.str.1(%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_5:
	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_8:
	movl	(%rbx), %ecx
	shll	$8, %ecx
	orl	28(%rbx), %ecx
	movq	%rbx, %r15
	addq	$40, %r15
	movl	%ecx, 40(%rbx)
	cmpl	$0, 16(%rbx)
	jne	LBB0_11
## %bb.9:
	cmpl	$0, 12(%rbx)
	jne	LBB0_11
## %bb.10:
	cmpl	$0, 20(%rbx)
	je	LBB0_12
LBB0_11:
	movl	%ecx, 44(%rbx)
LBB0_12:
	movq	_QEDR_MSG_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_DP_DEBUG
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QEDR_MR_DMA,4,2                ## @QEDR_MR_DMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"roce alloc tid returned an error %d\n"

	.comm	_QED_RDMA_TID_REGISTERED_MR,4,2 ## @QED_RDMA_TID_REGISTERED_MR
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ## @IB_ACCESS_REMOTE_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"roce register tid returned an error %d\n"

	.comm	_QEDR_MSG_MR,4,2                ## @QEDR_MSG_MR
L_.str.2:                               ## @.str.2
	.asciz	"get dma mr: lkey = %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_get_dma_mr                ; -- Begin function qedr_get_dma_mr
	.p2align	2
_qedr_get_dma_mr:                       ; @qedr_get_dma_mr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_get_qedr_dev
	mov	x19, x0
	mov	x0, x20
	bl	_get_qedr_pd
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #52
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _QEDR_MR_DMA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QEDR_MR_DMA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x19]
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_DP_ERR
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x8, _QED_RDMA_TID_REGISTERED_MR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QED_RDMA_TID_REGISTERED_MR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x23]
	stp	w9, w8, [x20, #32]
Lloh14:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh16:
	adrp	x9, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
	mov	w10, #1
Lloh18:
	adrp	x11, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh19:
	ldr	x11, [x11, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh20:
	adrp	x12, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGE
Lloh21:
	ldr	x12, [x12, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGEOFF]
Lloh22:
	ldr	s0, [x8]
	ld1.s	{ v0 }[1], [x9]
	ld1.s	{ v0 }[2], [x11]
	ld1.s	{ v0 }[3], [x12]
	str	w10, [x20, #4]
	dup.4s	v1, w21
	and.16b	v0, v0, v1
	cmeq.4s	v0, v0, #0
	movi.4s	v1, #1
	bic.16b	v0, v1, v0
	stur	q0, [x20, #8]
	str	w10, [x20, #24]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19]
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_8
; %bb.5:
	mov	x22, x0
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@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_6:
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_8:
	ldr	w8, [x20]
	ldr	w9, [x20, #28]
	orr	w3, w9, w8, lsl #8
	mov	x21, x20
	str	w3, [x21, #40]!
	ldur	w8, [x21, #-24]
	cbnz	w8, LBB0_11
; %bb.9:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_12
LBB0_11:
	str	w3, [x20, #44]
LBB0_12:
Lloh25:
	adrp	x8, _QEDR_MSG_MR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _QEDR_MSG_MR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_DEBUG
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh22
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QEDR_MR_DMA,4,2                ; @QEDR_MR_DMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"roce alloc tid returned an error %d\n"

	.comm	_QED_RDMA_TID_REGISTERED_MR,4,2 ; @QED_RDMA_TID_REGISTERED_MR
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ; @IB_ACCESS_REMOTE_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"roce register tid returned an error %d\n"

	.comm	_QEDR_MSG_MR,4,2                ; @QEDR_MSG_MR
l_.str.2:                               ; @.str.2
	.asciz	"get dma mr: lkey = %x\n"

.subsections_via_symbols
