	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_compute_aeth               ## -- Begin function rvt_compute_aeth
	.p2align	4, 0x90
_rvt_compute_aeth:                      ## @rvt_compute_aeth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	_IB_MSN_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	$0, 40(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_IB_AETH_CREDIT_INVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	jmp	LBB0_13
LBB0_2:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	8(%rax), %edi
	callq	_READ_ONCE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	cmpq	$0, 32(%rbx)
	je	LBB0_5
## %bb.4:
	movq	24(%rbx), %rax
	movl	4(%rax), %edi
	callq	_RDMA_READ_UAPI_ATOMIC
	movq	%rax, %r15
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_RDMA_READ_UAPI_ATOMIC
	jmp	LBB0_6
LBB0_5:
	movq	16(%rbx), %rax
	movl	4(%rax), %edi
	callq	_READ_ONCE
	movq	%rax, %r15
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_READ_ONCE
LBB0_6:
	movq	8(%rbx), %rcx
	xorl	%edx, %edx
	cmpq	%rcx, %r15
	cmovgeq	%rdx, %r15
	cmpq	%rcx, %rax
	cmovlq	%rax, %rdx
	subq	%rdx, %r15
	movslq	%r15d, %rax
	sarq	$31, %rax
	andq	%rcx, %rax
	addq	%r15, %rax
LBB0_7:
	movq	_credit_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	120(%rcx), %rbx
	movl	$15, %edx
	cmpq	%rax, %rbx
	je	LBB0_13
## %bb.8:
	movl	$31, %esi
	movl	$15, %edx
	xorl	%edi, %edi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rdx, %rsi
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rsi,%rdi), %rbx
	movq	%rbx, %rdx
	shrq	$63, %rdx
	addq	%rbx, %rdx
	sarq	%rdx
	movq	(%rcx,%rdx,8), %rbx
	cmpq	%rax, %rbx
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %rbx
	jg	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rdx, %rdi
	movq	%rdx, %rdi
	jne	LBB0_12
LBB0_13:
	movq	_IB_AETH_CREDIT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdx
	andq	%r12, %r14
	orq	%rdx, %r14
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu_to_be32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MSN_MASK,8,3                ## @IB_MSN_MASK
	.comm	_IB_AETH_CREDIT_INVAL,8,3       ## @IB_AETH_CREDIT_INVAL
	.comm	_IB_AETH_CREDIT_SHIFT,8,3       ## @IB_AETH_CREDIT_SHIFT
	.comm	_credit_table,8,3               ## @credit_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_compute_aeth               ; -- Begin function rvt_compute_aeth
	.p2align	2
_rvt_compute_aeth:                      ; @rvt_compute_aeth
	.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
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _IB_MSN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MSN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IB_AETH_CREDIT_INVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_AETH_CREDIT_INVAL@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	b	LBB0_14
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8, #8]
	bl	_READ_ONCE
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	bl	_RDMA_READ_UAPI_ATOMIC
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_RDMA_READ_UAPI_ATOMIC
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_READ_ONCE
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_READ_ONCE
LBB0_6:
	ldr	x8, [x19, #8]
	cmp	x20, x8
	csel	x9, x20, xzr, lt
	cmp	x0, x8
	csel	x10, x0, xzr, lt
	sub	x9, x9, x10
	lsl	x10, x9, #32
	and	x8, x8, x10, asr #63
	add	x0, x8, x9
LBB0_7:
Lloh6:
	adrp	x8, _credit_table@GOTPAGE
Lloh7:
	ldr	x8, [x8, _credit_table@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x12, [x8, #120]
	cmp	x12, x0
	b.ne	LBB0_9
; %bb.8:
	mov	w10, #15
	b	LBB0_14
LBB0_9:
	mov	x9, #0
	mov	w11, #31
	mov	w10, #15
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x11, x10
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x10, x11, x9
	cmp	x10, #0
	cinc	x10, x10, lt
	asr	x10, x10, #1
	ldr	x12, [x8, x10, lsl #3]
	cmp	x12, x0
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	x12, x0
	b.gt	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	x9, x10
	mov	x9, x10
	b.ne	LBB0_11
LBB0_14:
Lloh9:
	adrp	x8, _IB_AETH_CREDIT_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_AETH_CREDIT_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	lsl	x8, x10, x8
	and	x9, x22, x21
	orr	x0, x8, x9
	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
	b	_cpu_to_be32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MSN_MASK,8,3                ; @IB_MSN_MASK
	.comm	_IB_AETH_CREDIT_INVAL,8,3       ; @IB_AETH_CREDIT_INVAL
	.comm	_IB_AETH_CREDIT_SHIFT,8,3       ; @IB_AETH_CREDIT_SHIFT
	.comm	_credit_table,8,3               ; @credit_table
.subsections_via_symbols
