	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cqe_from_buf
_get_cqe_from_buf:                      ## @get_cqe_from_buf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	addq	$8, %rdi
	movq	_MTHCA_CQ_ENTRY_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	jmp	LBB0_3
LBB0_2:
	movq	_MTHCA_CQ_ENTRY_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	cltq
	shlq	$3, %rax
	addq	(%rdi), %rax
	movq	%rax, %rdi
	movl	%edx, %esi
LBB0_3:
	movslq	%esi, %rax
	shlq	$2, %rax
	addq	(%rdi), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTHCA_CQ_ENTRY_SIZE,4,2        ## @MTHCA_CQ_ENTRY_SIZE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_get_cqe_from_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cqe_from_buf
_get_cqe_from_buf:                      ; @get_cqe_from_buf
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	add	x8, x0, #8
Lloh0:
	adrp	x9, _MTHCA_CQ_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MTHCA_CQ_ENTRY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w9, w9, w1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _MTHCA_CQ_ENTRY_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MTHCA_CQ_ENTRY_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w9, w9, w1
Lloh6:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	add	x8, x8, w11, sxtw #3
	msub	w9, w11, w10, w9
LBB0_3:
	ldr	x8, [x8]
	add	x0, x8, w9, sxtw #2
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MTHCA_CQ_ENTRY_SIZE,4,2        ; @MTHCA_CQ_ENTRY_SIZE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_get_cqe_from_buf
.subsections_via_symbols
