	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_get_credit               ## -- Begin function ipath_get_credit
	.p2align	4, 0x90
_ipath_get_credit:                      ## @ipath_get_credit
	.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	_IPATH_AETH_CREDIT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%rsi, %rax
	shrq	%cl, %rax
	movq	%rdi, %r14
	movq	_IPATH_AETH_CREDIT_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_IPATH_AETH_CREDIT_INVAL@GOTPCREL(%rip), %rdx
	movq	$-1, %rcx
	cmpq	(%rdx), %rax
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	(%r14), %rsi
	cmpq	$-1, %rsi
	je	LBB0_4
## %bb.2:
	movq	_credit_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rcx,%rax,8), %rbx
	movq	_IPATH_MSN_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ipath_cmp24
	movq	%rbx, %rcx
	testq	%rax, %rax
	jle	LBB0_4
LBB0_3:
	movq	%rcx, (%r14)
LBB0_4:
	movq	_IPATH_S_WAIT_SSN_CREDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_8
## %bb.5:
	movq	16(%r14), %rsi
	cmpq	24(%r14), %rsi
	je	LBB0_8
## %bb.6:
	cmpq	$-1, (%r14)
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_get_swqe_ptr
	movq	(%rax), %rdi
	movq	(%r14), %rsi
	incq	%rsi
	callq	_ipath_cmp24
	testq	%rax, %rax
	jle	LBB0_9
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ipath_schedule_send            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPATH_AETH_CREDIT_SHIFT,8,3    ## @IPATH_AETH_CREDIT_SHIFT
	.comm	_IPATH_AETH_CREDIT_MASK,8,3     ## @IPATH_AETH_CREDIT_MASK
	.comm	_IPATH_AETH_CREDIT_INVAL,8,3    ## @IPATH_AETH_CREDIT_INVAL
	.comm	_credit_table,8,3               ## @credit_table
	.comm	_IPATH_MSN_MASK,8,3             ## @IPATH_MSN_MASK
	.comm	_IPATH_S_WAIT_SSN_CREDIT,4,2    ## @IPATH_S_WAIT_SSN_CREDIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_get_credit               ; -- Begin function ipath_get_credit
	.p2align	2
_ipath_get_credit:                      ; @ipath_get_credit
	.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, x0
Lloh0:
	adrp	x8, _IPATH_AETH_CREDIT_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPATH_AETH_CREDIT_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x8, x1, x8
Lloh3:
	adrp	x9, _IPATH_AETH_CREDIT_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPATH_AETH_CREDIT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x9, x8, x9
Lloh6:
	adrp	x8, _IPATH_AETH_CREDIT_INVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPATH_AETH_CREDIT_INVAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x20, #-1
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19]
	cmn	x8, #1
	b.eq	LBB0_5
; %bb.3:
Lloh9:
	adrp	x10, _credit_table@GOTPAGE
Lloh10:
	ldr	x10, [x10, _credit_table@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	x9, [x10, x9, lsl #3]
Lloh12:
	adrp	x10, _IPATH_MSN_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IPATH_MSN_MASK@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	add	x9, x9, x1
	and	x20, x9, x10
	mov	x0, x20
	mov	x1, x8
	bl	_ipath_cmp24
	cmp	x0, #1
	b.lt	LBB0_5
LBB0_4:
	str	x20, [x19]
LBB0_5:
	ldr	w8, [x19, #8]
Lloh15:
	adrp	x9, _IPATH_S_WAIT_SSN_CREDIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IPATH_S_WAIT_SSN_CREDIT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	ldp	x1, x8, [x19, #16]
	cmp	x1, x8
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x19]
	cmn	x8, #1
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_get_swqe_ptr
	ldr	x0, [x0]
	ldr	x8, [x19]
	add	x1, x8, #1
	bl	_ipath_cmp24
	cmp	x0, #0
	b.le	LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ipath_schedule_send
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IPATH_AETH_CREDIT_SHIFT,8,3    ; @IPATH_AETH_CREDIT_SHIFT
	.comm	_IPATH_AETH_CREDIT_MASK,8,3     ; @IPATH_AETH_CREDIT_MASK
	.comm	_IPATH_AETH_CREDIT_INVAL,8,3    ; @IPATH_AETH_CREDIT_INVAL
	.comm	_credit_table,8,3               ; @credit_table
	.comm	_IPATH_MSN_MASK,8,3             ; @IPATH_MSN_MASK
	.comm	_IPATH_S_WAIT_SSN_CREDIT,4,2    ; @IPATH_S_WAIT_SSN_CREDIT
.subsections_via_symbols
