	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addr_to_dbi_in_syspage
_addr_to_dbi_in_syspage:                ## @addr_to_dbi_in_syspage
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	_log_bf_reg_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	movl	(%rbx), %edx
	movl	(%r14), %ecx
	movl	%edx, %esi
	subl	%ecx, %esi
	movq	_MLX5_ADAPTER_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %esi
	movl	%eax, %ecx
	movq	_MLX5_ADAPTER_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	%rdi, %rdx
	jb	LBB0_2
## %bb.1:
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_2:
	movq	_MLX5_BF_OFFSET@GOTPCREL(%rip), %rax
	subq	(%rax), %rdx
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rdx
	movq	_MLX5_BFREGS_PER_UAR@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	addl	%edx, %esi
	movl	%esi, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log_bf_reg_size,4,2            ## @log_bf_reg_size
	.comm	_MLX5_ADAPTER_PAGE_SHIFT,4,2    ## @MLX5_ADAPTER_PAGE_SHIFT
	.comm	_MLX5_ADAPTER_PAGE_SIZE,8,3     ## @MLX5_ADAPTER_PAGE_SIZE
	.comm	_MLX5_BF_OFFSET,8,3             ## @MLX5_BF_OFFSET
	.comm	_MLX5_BFREGS_PER_UAR,4,2        ## @MLX5_BFREGS_PER_UAR
	.no_dead_strip	_addr_to_dbi_in_syspage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addr_to_dbi_in_syspage
_addr_to_dbi_in_syspage:                ; @addr_to_dbi_in_syspage
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _log_bf_reg_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _log_bf_reg_size@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	ldr	w9, [x20]
Lloh3:
	adrp	x10, _MLX5_ADAPTER_PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MLX5_ADAPTER_PAGE_SHIFT@GOTPAGEOFF]
	sub	w9, w8, w9
Lloh5:
	ldr	w10, [x10]
	lsr	w9, w9, w10
Lloh6:
	adrp	x10, _MLX5_ADAPTER_PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX5_ADAPTER_PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	udiv	x11, x8, x10
	msub	x8, x11, x10, x8
Lloh9:
	adrp	x10, _MLX5_BF_OFFSET@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MLX5_BF_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	sub	x8, x8, x10
	lsr	x8, x8, x0
Lloh12:
	adrp	x10, _MLX5_BFREGS_PER_UAR@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MLX5_BFREGS_PER_UAR@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	madd	w0, w10, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_log_bf_reg_size,4,2            ; @log_bf_reg_size
	.comm	_MLX5_ADAPTER_PAGE_SHIFT,4,2    ; @MLX5_ADAPTER_PAGE_SHIFT
	.comm	_MLX5_ADAPTER_PAGE_SIZE,8,3     ; @MLX5_ADAPTER_PAGE_SIZE
	.comm	_MLX5_BF_OFFSET,8,3             ; @MLX5_BF_OFFSET
	.comm	_MLX5_BFREGS_PER_UAR,4,2        ; @MLX5_BFREGS_PER_UAR
	.no_dead_strip	_addr_to_dbi_in_syspage
.subsections_via_symbols
