	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mhop_get_ceqe
_mhop_get_ceqe:                         ## @mhop_get_ceqe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	(%rdi), %ecx
	movl	$1, %r8d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r8d
	movslq	4(%rdi), %rax
	decq	%rax
	movslq	%esi, %rdx
	andq	%rax, %rdx
	movq	_HNS_ROCE_CEQ_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	imulq	%rdx, %rcx
	movq	8(%rdi), %rax
	movq	_HNS_ROCE_HOP_NUM_0@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_2
## %bb.1:
	addq	$24, %rdi
	movslq	%r8d, %rsi
	jmp	LBB0_6
LBB0_2:
	movq	16(%rdi), %rdi
	movslq	%r8d, %rsi
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_5
LBB0_3:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	leaq	(%rdi,%rax,8), %rdi
LBB0_6:
	movq	(%rdi), %rdi
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_9
LBB0_7:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_9:
	leaq	(%rdi,%rdx,4), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_HNS_ROCE_CEQ_ENTRY_SIZE,4,2    ## @HNS_ROCE_CEQ_ENTRY_SIZE
	.comm	_HNS_ROCE_HOP_NUM_0,8,3         ## @HNS_ROCE_HOP_NUM_0
	.no_dead_strip	_mhop_get_ceqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mhop_get_ceqe
_mhop_get_ceqe:                         ; @mhop_get_ceqe
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	w8, w8, w9
	mov	w9, #1
	lsl	w9, w9, w8
	sub	x8, x10, #1
	sxtw	x10, w1
	and	x8, x8, x10
Lloh3:
	adrp	x10, _HNS_ROCE_CEQ_ENTRY_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HNS_ROCE_CEQ_ENTRY_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	mul	x8, x8, x10
	ldr	x10, [x0, #8]
Lloh6:
	adrp	x11, _HNS_ROCE_HOP_NUM_0@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HNS_ROCE_HOP_NUM_0@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.1:
	add	x10, x0, #24
	sxtw	x9, w9
	b	LBB0_3
LBB0_2:
	ldr	x10, [x0, #16]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x9, w9
	udiv	x11, x8, x9
	add	x10, x10, x11, lsl #3
LBB0_3:
	ldr	x10, [x10]
	udiv	x11, x8, x9
	msub	x8, x11, x9, x8
	add	x0, x10, x8, lsl #2
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_HNS_ROCE_CEQ_ENTRY_SIZE,4,2    ; @HNS_ROCE_CEQ_ENTRY_SIZE
	.comm	_HNS_ROCE_HOP_NUM_0,8,3         ; @HNS_ROCE_HOP_NUM_0
	.no_dead_strip	_mhop_get_ceqe
.subsections_via_symbols
