	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_ib_attempt_ack             ## -- Begin function rds_ib_attempt_ack
	.p2align	4, 0x90
_rds_ib_attempt_ack:                    ## @rds_ib_attempt_ack
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IB_ACK_REQUESTED@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_IB_ACK_IN_FLIGHT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	_s_ib_ack_send_delayed@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rds_ib_stats_inc               ## TAILCALL
LBB0_2:
	movq	_RDS_MAX_ADV_CREDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_rds_ib_send_grab_credits
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	callq	_rds_ib_send_ack
	jmp	LBB0_5
LBB0_3:
	movq	_s_ib_tx_throttle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_ib_stats_inc
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_ACK_REQUESTED,4,2           ## @IB_ACK_REQUESTED
	.comm	_IB_ACK_IN_FLIGHT,4,2           ## @IB_ACK_IN_FLIGHT
	.comm	_s_ib_ack_send_delayed,4,2      ## @s_ib_ack_send_delayed
	.comm	_RDS_MAX_ADV_CREDIT,4,2         ## @RDS_MAX_ADV_CREDIT
	.comm	_s_ib_tx_throttle,4,2           ## @s_ib_tx_throttle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_ib_attempt_ack             ; -- Begin function rds_ib_attempt_ack
	.p2align	2
_rds_ib_attempt_ack:                    ; @rds_ib_attempt_ack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _IB_ACK_REQUESTED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IB_ACK_REQUESTED@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_test_bit
	cbz	w0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x21, _IB_ACK_IN_FLIGHT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IB_ACK_IN_FLIGHT@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _s_ib_ack_send_delayed@GOTPAGE
Lloh5:
	ldr	x8, [x8, _s_ib_ack_send_delayed@GOTPAGEOFF]
Lloh6:
	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
	add	sp, sp, #64
	b	_rds_ib_stats_inc
LBB0_3:
Lloh7:
	adrp	x8, _RDS_MAX_ADV_CREDIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RDS_MAX_ADV_CREDIT@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	mov	w3, #0
	bl	_rds_ib_send_grab_credits
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_clear_bit
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_rds_ib_send_ack
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _s_ib_tx_throttle@GOTPAGE
Lloh11:
	ldr	x8, [x8, _s_ib_tx_throttle@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_rds_ib_stats_inc
	ldr	w0, [x21]
	mov	x1, x19
	bl	_clear_bit
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_ACK_REQUESTED,4,2           ; @IB_ACK_REQUESTED
	.comm	_IB_ACK_IN_FLIGHT,4,2           ; @IB_ACK_IN_FLIGHT
	.comm	_s_ib_ack_send_delayed,4,2      ; @s_ib_ack_send_delayed
	.comm	_RDS_MAX_ADV_CREDIT,4,2         ; @RDS_MAX_ADV_CREDIT
	.comm	_s_ib_tx_throttle,4,2           ; @s_ib_tx_throttle
.subsections_via_symbols
