	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_odp_init_mr_cache_entry   ## -- Begin function mlx5_odp_init_mr_cache_entry
	.p2align	4, 0x90
_mlx5_odp_init_mr_cache_entry:          ## @mlx5_odp_init_mr_cache_entry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rdi), %rax
	movq	_IB_ODP_SUPPORT_IMPLICIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.1:
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$131, %eax
	jne	LBB0_9
## %bb.4:
	movq	_MLX5_MKC_ACCESS_MODE_KSM@GOTPCREL(%rip), %rcx
	movq	_mlx5_imr_ksm_entries@GOTPCREL(%rip), %rax
	movq	_MLX5_KSM_PAGE_SHIFT@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_2:
	movq	_MLX5_MKC_ACCESS_MODE_MTT@GOTPCREL(%rip), %rcx
	movq	_MLX5_IMR_MTT_ENTRIES@GOTPCREL(%rip), %rax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rdx), %edx
	movl	%edx, 16(%rdi)
	movslq	(%rax), %rax
	shlq	$2, %rax
	movq	_MLX5_IB_UMR_OCTOWORD@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_8
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	movl	%eax, 4(%rdi)
	movl	(%rcx), %eax
	movl	%eax, 12(%rdi)
	movl	$0, 8(%rdi)
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_ODP_SUPPORT_IMPLICIT,4,2    ## @IB_ODP_SUPPORT_IMPLICIT
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_MLX5_IMR_MTT_ENTRIES,4,2       ## @MLX5_IMR_MTT_ENTRIES
	.comm	_MLX5_IB_UMR_OCTOWORD,4,2       ## @MLX5_IB_UMR_OCTOWORD
	.comm	_MLX5_MKC_ACCESS_MODE_MTT,4,2   ## @MLX5_MKC_ACCESS_MODE_MTT
	.comm	_MLX5_KSM_PAGE_SHIFT,4,2        ## @MLX5_KSM_PAGE_SHIFT
	.comm	_mlx5_imr_ksm_entries,4,2       ## @mlx5_imr_ksm_entries
	.comm	_MLX5_MKC_ACCESS_MODE_KSM,4,2   ## @MLX5_MKC_ACCESS_MODE_KSM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_odp_init_mr_cache_entry   ; -- Begin function mlx5_odp_init_mr_cache_entry
	.p2align	2
_mlx5_odp_init_mr_cache_entry:          ; @mlx5_odp_init_mr_cache_entry
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _IB_ODP_SUPPORT_IMPLICIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_ODP_SUPPORT_IMPLICIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _MLX5_MKC_ACCESS_MODE_KSM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_MKC_ACCESS_MODE_KSM@GOTPAGEOFF]
Lloh5:
	adrp	x9, _mlx5_imr_ksm_entries@GOTPAGE
Lloh6:
	ldr	x9, [x9, _mlx5_imr_ksm_entries@GOTPAGEOFF]
Lloh7:
	adrp	x10, _MLX5_KSM_PAGE_SHIFT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MLX5_KSM_PAGE_SHIFT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _MLX5_MKC_ACCESS_MODE_MTT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_MKC_ACCESS_MODE_MTT@GOTPAGEOFF]
Lloh11:
	adrp	x9, _MLX5_IMR_MTT_ENTRIES@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MLX5_IMR_MTT_ENTRIES@GOTPAGEOFF]
Lloh13:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
LBB0_5:
	ldr	w10, [x10]
	ldrsw	x9, [x9]
	lsl	x9, x9, #2
Lloh15:
	adrp	x11, _MLX5_IB_UMR_OCTOWORD@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MLX5_IB_UMR_OCTOWORD@GOTPAGEOFF]
Lloh17:
	ldrsw	x11, [x11]
	ldr	w8, [x8]
	stp	w8, w10, [x0, #12]
	udiv	x8, x9, x11
	stp	w8, wzr, [x0, #4]
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_ODP_SUPPORT_IMPLICIT,4,2    ; @IB_ODP_SUPPORT_IMPLICIT
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_MLX5_IMR_MTT_ENTRIES,4,2       ; @MLX5_IMR_MTT_ENTRIES
	.comm	_MLX5_IB_UMR_OCTOWORD,4,2       ; @MLX5_IB_UMR_OCTOWORD
	.comm	_MLX5_MKC_ACCESS_MODE_MTT,4,2   ; @MLX5_MKC_ACCESS_MODE_MTT
	.comm	_MLX5_KSM_PAGE_SHIFT,4,2        ; @MLX5_KSM_PAGE_SHIFT
	.comm	_mlx5_imr_ksm_entries,4,2       ; @mlx5_imr_ksm_entries
	.comm	_MLX5_MKC_ACCESS_MODE_KSM,4,2   ; @MLX5_MKC_ACCESS_MODE_KSM
.subsections_via_symbols
