	.file	"extr_uar.c_addr_to_dbi_in_syspage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	addr_to_dbi_in_syspage, @function
addr_to_dbi_in_syspage:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR log_bf_reg_size[rip]
	call	MLX5_CAP_GEN@PLT
	xor	edx, edx
	mov	ecx, DWORD PTR MLX5_ADAPTER_PAGE_SHIFT[rip]
	mov	r8d, eax
	mov	eax, DWORD PTR 0[rbp]
	mov	esi, eax
	sub	esi, DWORD PTR [rbx]
	div	QWORD PTR MLX5_ADAPTER_PAGE_SIZE[rip]
	shr	esi, cl
	imul	esi, DWORD PTR MLX5_BFREGS_PER_UAR[rip]
	mov	ecx, r8d
	mov	rax, rdx
	mov	edx, 1
	sub	rax, QWORD PTR MLX5_BF_OFFSET[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	ebx, edx
	xor	edx, edx
	sal	ebx, cl
	div	rbx
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	add	eax, esi
	ret
	.cfi_endproc
.LFE0:
	.size	addr_to_dbi_in_syspage, .-addr_to_dbi_in_syspage
	.comm	log_bf_reg_size,4,4
	.comm	MLX5_BF_OFFSET,8,8
	.comm	MLX5_BFREGS_PER_UAR,4,4
	.comm	MLX5_ADAPTER_PAGE_SIZE,8,8
	.comm	MLX5_ADAPTER_PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_uar.c_addr_to_dbi_in_syspage.c"
	.text
	.global	__aeabi_uidivmod
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	addr_to_dbi_in_syspage, %function
addr_to_dbi_in_syspage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L4
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r1, [r3]
	mov	r6, r2
	bl	MLX5_CAP_GEN
	ldr	r2, .L4+4
	mov	r5, r0
	ldr	r4, [r4]
	ldr	r0, [r6]
	ldr	r3, .L4+8
	ldr	r1, [r2]
	ldr	r2, .L4+12
	ldr	r3, [r3]
	sub	r4, r0, r4
	lsr	r4, r4, r1
	ldr	r1, [r2]
	mul	r4, r3, r4
	bl	__aeabi_uidivmod
	mov	r0, r1
	mov	r1, #1
	ldr	r3, .L4+16
	lsl	r1, r1, r5
	ldr	r3, [r3]
	sub	r0, r0, r3
	bl	__aeabi_uidiv
	add	r0, r4, r0
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	log_bf_reg_size
	.word	MLX5_ADAPTER_PAGE_SHIFT
	.word	MLX5_BFREGS_PER_UAR
	.word	MLX5_ADAPTER_PAGE_SIZE
	.word	MLX5_BF_OFFSET
	.size	addr_to_dbi_in_syspage, .-addr_to_dbi_in_syspage
	.comm	log_bf_reg_size,4,4
	.comm	MLX5_BF_OFFSET,4,4
	.comm	MLX5_BFREGS_PER_UAR,4,4
	.comm	MLX5_ADAPTER_PAGE_SIZE,4,4
	.comm	MLX5_ADAPTER_PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
