	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_offset
_map_offset:                            ## @map_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %eax
	movq	_MLX5_BFREGS_PER_UAR@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r14d
	movl	%edx, %ebx
	movq	_MLX5_ADAPTER_PAGE_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %r14d
	movq	_log_bf_reg_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	movl	%eax, %ecx
	shll	%cl, %ebx
	addl	%r14d, %ebx
	movslq	%ebx, %rax
	movq	_MLX5_BF_OFFSET@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_BFREGS_PER_UAR,4,2        ## @MLX5_BFREGS_PER_UAR
	.comm	_MLX5_ADAPTER_PAGE_SIZE,4,2     ## @MLX5_ADAPTER_PAGE_SIZE
	.comm	_log_bf_reg_size,4,2            ## @log_bf_reg_size
	.comm	_MLX5_BF_OFFSET,8,3             ## @MLX5_BF_OFFSET
	.no_dead_strip	_map_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_offset
_map_offset:                            ; @map_offset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _MLX5_BFREGS_PER_UAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_BFREGS_PER_UAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MLX5_ADAPTER_PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX5_ADAPTER_PAGE_SIZE@GOTPAGEOFF]
	sdiv	w19, w1, w8
Lloh5:
	ldr	w20, [x9]
	msub	w21, w19, w8, w1
Lloh6:
	adrp	x8, _log_bf_reg_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _log_bf_reg_size@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	lsl	w8, w21, w0
	madd	w8, w20, w19, w8
Lloh9:
	adrp	x9, _MLX5_BF_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX5_BF_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, w8, sxtw
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_BFREGS_PER_UAR,4,2        ; @MLX5_BFREGS_PER_UAR
	.comm	_MLX5_ADAPTER_PAGE_SIZE,4,2     ; @MLX5_ADAPTER_PAGE_SIZE
	.comm	_log_bf_reg_size,4,2            ; @log_bf_reg_size
	.comm	_MLX5_BF_OFFSET,8,3             ; @MLX5_BF_OFFSET
	.no_dead_strip	_map_offset
.subsections_via_symbols
