	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_com_register_mr            ## -- Begin function efa_com_register_mr
	.p2align	4, 0x90
_efa_com_register_mr:                   ## @efa_com_register_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movq	$0, -56(%rbp)
	movq	_EFA_ADMIN_REG_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	48(%rsi), %eax
	movl	%eax, -40(%rbp)
	movl	44(%rsi), %eax
	movl	%eax, -44(%rbp)
	movq	_EFA_ADMIN_REG_MR_CMD_PHYS_PAGE_SIZE_SHIFT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rsi), %eax
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	%eax, -80(%rbp)
	movl	40(%rsi), %eax
	movl	%eax, -48(%rbp)
	movq	_EFA_ADMIN_REG_MR_CMD_LOCAL_WRITE_ENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rsi), %eax
	leaq	4(%rdi), %rbx
	movl	%eax, -76(%rbp)
	cmpq	$0, 32(%rsi)
	je	LBB0_2
## %bb.1:
	movl	28(%rsi), %esi
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_4
LBB0_2:
	movl	24(%rsi), %eax
	movl	%eax, -56(%rbp)
	movl	20(%rsi), %eax
	movl	%eax, -60(%rbp)
	movl	16(%rsi), %eax
	movl	%eax, -64(%rbp)
	movq	_EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	cmpq	$0, 8(%rsi)
	je	LBB0_4
## %bb.3:
	movq	_EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -72(%rbp)
LBB0_4:
	leaq	-80(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$44, %edx
	movl	$8, %r8d
	callq	_efa_com_cmd_exec
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_ibdev_err_ratelimited
	jmp	LBB0_7
LBB0_6:
	movl	-28(%rbp), %eax
	movl	%eax, 4(%r14)
	movl	-32(%rbp), %eax
	movl	%eax, (%r14)
LBB0_7:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFA_ADMIN_REG_MR,4,2           ## @EFA_ADMIN_REG_MR
	.comm	_EFA_ADMIN_REG_MR_CMD_PHYS_PAGE_SIZE_SHIFT_MASK,4,2 ## @EFA_ADMIN_REG_MR_CMD_PHYS_PAGE_SIZE_SHIFT_MASK
	.comm	_EFA_ADMIN_REG_MR_CMD_LOCAL_WRITE_ENABLE_MASK,4,2 ## @EFA_ADMIN_REG_MR_CMD_LOCAL_WRITE_ENABLE_MASK
	.comm	_EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_MASK,4,2 ## @EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_MASK
	.comm	_EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK,4,2 ## @EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register mr [%d]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_com_register_mr            ; -- Begin function efa_com_register_mr
	.p2align	2
_efa_com_register_mr:                   ; @efa_com_register_mr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _EFA_ADMIN_REG_MR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFA_ADMIN_REG_MR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	w8, [x1, #48]
	str	w8, [sp, #48]
Lloh3:
	adrp	x8, _EFA_ADMIN_REG_MR_CMD_PHYS_PAGE_SIZE_SHIFT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFA_ADMIN_REG_MR_CMD_PHYS_PAGE_SIZE_SHIFT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w9, w10, [x1]
	and	w8, w8, w9
Lloh6:
	adrp	x9, _EFA_ADMIN_REG_MR_CMD_LOCAL_WRITE_ENABLE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EFA_ADMIN_REG_MR_CMD_LOCAL_WRITE_ENABLE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w10
	add	x21, x0, #4
	stp	xzr, xzr, [sp, #24]
	ldr	d0, [x1, #40]
	str	d0, [sp, #40]
	stp	w8, w9, [sp, #8]
	ldr	x8, [x1, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x1, #28]
	mov	w0, #0
	mov	w2, #4
	bl	_memcpy
	b	LBB0_4
LBB0_2:
	ldr	w8, [x1, #24]
	str	w8, [sp, #32]
	ldr	d0, [x1, #16]
	str	d0, [sp, #24]
Lloh9:
	adrp	x8, _EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	x9, [x1, #8]
	cbz	x9, LBB0_4
; %bb.3:
Lloh12:
	adrp	x9, _EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #16]
LBB0_4:
	add	x1, sp, #8
	sub	x3, x29, #40
	mov	x0, x21
	mov	w2, #44
	mov	w4, #8
	bl	_efa_com_cmd_exec
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_ibdev_err_ratelimited
	b	LBB0_7
LBB0_6:
	ldur	d0, [x29, #-40]
	str	d0, [x19]
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EFA_ADMIN_REG_MR,4,2           ; @EFA_ADMIN_REG_MR
	.comm	_EFA_ADMIN_REG_MR_CMD_PHYS_PAGE_SIZE_SHIFT_MASK,4,2 ; @EFA_ADMIN_REG_MR_CMD_PHYS_PAGE_SIZE_SHIFT_MASK
	.comm	_EFA_ADMIN_REG_MR_CMD_LOCAL_WRITE_ENABLE_MASK,4,2 ; @EFA_ADMIN_REG_MR_CMD_LOCAL_WRITE_ENABLE_MASK
	.comm	_EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_MASK,4,2 ; @EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_MASK
	.comm	_EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK,4,2 ; @EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register mr [%d]\n"

.subsections_via_symbols
