	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_ib_send_add_credits        ## -- Begin function rds_ib_send_add_credits
	.p2align	4, 0x90
_rds_ib_send_add_credits:               ## @rds_ib_send_add_credits
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	movl	%eax, %edi
	callq	_IB_GET_SEND_CREDITS
	movl	%eax, %r13d
	movq	_RDS_LL_SEND_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_rdsdebug
	movl	%ebx, %edi
	callq	_IB_SET_SEND_CREDITS
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_atomic_add
	movq	_RDS_LL_SEND_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_rds_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_queue_delayed_work
LBB0_3:
	movl	%ebx, %edi
	callq	_IB_GET_SEND_CREDITS
	xorl	%edi, %edi
	cmpl	$16384, %eax                    ## imm = 0x4000
	setge	%dil
	callq	_WARN_ON
	movq	_s_ib_rx_credit_updates@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rds_ib_stats_inc               ## TAILCALL
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rds_ib_send_add_credits(%u): current=%u%s\n"

	.comm	_RDS_LL_SEND_FULL,4,2           ## @RDS_LL_SEND_FULL
L_.str.1:                               ## @.str.1
	.asciz	", ll_send_full"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_rds_wq,4,2                     ## @rds_wq
	.comm	_s_ib_rx_credit_updates,4,2     ## @s_ib_rx_credit_updates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_ib_send_add_credits        ; -- Begin function rds_ib_send_add_credits
	.p2align	2
_rds_ib_send_add_credits:               ; @rds_ib_send_add_credits
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_4
; %bb.1:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x21
	bl	_atomic_read
	bl	_IB_GET_SEND_CREDITS
	mov	x22, x0
Lloh0:
	adrp	x24, _RDS_LL_SEND_FULL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RDS_LL_SEND_FULL@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x23, x20, #4
	mov	x1, x23
	bl	_test_bit
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x3, x9, x8, eq
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	bl	_rdsdebug
	mov	x0, x19
	bl	_IB_SET_SEND_CREDITS
	mov	x1, x21
	bl	_atomic_add
	ldr	w0, [x24]
	mov	x1, x23
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _rds_wq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rds_wq@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #0
	bl	_queue_delayed_work
LBB0_3:
	mov	x0, x19
	bl	_IB_GET_SEND_CREDITS
	cmp	w0, #4, lsl #12                 ; =16384
	cset	w0, ge
	bl	_WARN_ON
Lloh11:
	adrp	x8, _s_ib_rx_credit_updates@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s_ib_rx_credit_updates@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rds_ib_stats_inc
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rds_ib_send_add_credits(%u): current=%u%s\n"

	.comm	_RDS_LL_SEND_FULL,4,2           ; @RDS_LL_SEND_FULL
l_.str.1:                               ; @.str.1
	.asciz	", ll_send_full"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_rds_wq,4,2                     ; @rds_wq
	.comm	_s_ib_rx_credit_updates,4,2     ; @s_ib_rx_credit_updates
.subsections_via_symbols
