	.file	"extr_ib_recv.c_rds_ib_attempt_ack.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rds_ib_attempt_ack
	.type	rds_ib_attempt_ack, @function
rds_ib_attempt_ack:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rsi, rdi
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR IB_ACK_REQUESTED[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	test_bit@PLT
	test	eax, eax
	jne	.L12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR IB_ACK_IN_FLIGHT[rip]
	mov	rsi, rbp
	call	test_and_set_bit@PLT
	test	rax, rax
	jne	.L14
	xor	ecx, ecx
	lea	rdx, 4[rsp]
	mov	esi, 1
	mov	rdi, rbp
	mov	r8d, DWORD PTR RDS_MAX_ADV_CREDIT[rip]
	call	rds_ib_send_grab_credits@PLT
	test	eax, eax
	je	.L15
	mov	edi, DWORD PTR IB_ACK_REQUESTED[rip]
	mov	rsi, rbp
	call	clear_bit@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	rds_ib_send_ack@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR s_ib_ack_send_delayed[rip]
	call	rds_ib_stats_inc@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR s_ib_tx_throttle[rip]
	call	rds_ib_stats_inc@PLT
	mov	edi, DWORD PTR IB_ACK_IN_FLIGHT[rip]
	mov	rsi, rbp
	call	clear_bit@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rds_ib_attempt_ack, .-rds_ib_attempt_ack
	.comm	s_ib_tx_throttle,4,4
	.comm	s_ib_ack_send_delayed,4,4
	.comm	RDS_MAX_ADV_CREDIT,4,4
	.comm	IB_ACK_REQUESTED,4,4
	.comm	IB_ACK_IN_FLIGHT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ib_recv.c_rds_ib_attempt_ack.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rds_ib_attempt_ack
	.syntax unified
	.arm
	.fpu softvfp
	.type	rds_ib_attempt_ack, %function
rds_ib_attempt_ack:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L16
	ldr	r3, .L16+4
	mov	r1, r0
	sub	sp, sp, #16
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	test_bit
	cmp	r0, #0
	bne	.L12
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r6, .L16+8
	mov	r1, r4
	ldr	r0, [r6]
	bl	test_and_set_bit
	subs	r3, r0, #0
	bne	.L14
	ldr	r2, .L16+12
	mov	r0, r4
	ldr	r1, [r2]
	add	r2, sp, #8
	str	r1, [sp]
	mov	r1, #1
	bl	rds_ib_send_grab_credits
	cmp	r0, #0
	beq	.L15
	mov	r1, r4
	ldr	r0, [r5]
	bl	clear_bit
	mov	r0, r4
	ldr	r1, [sp, #8]
	bl	rds_ib_send_ack
	b	.L1
.L14:
	ldr	r3, .L16+16
	ldr	r0, [r3]
	bl	rds_ib_stats_inc
	b	.L1
.L15:
	ldr	r3, .L16+20
	ldr	r0, [r3]
	bl	rds_ib_stats_inc
	mov	r1, r4
	ldr	r0, [r6]
	bl	clear_bit
	b	.L1
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	IB_ACK_REQUESTED
	.word	.LC0
	.word	IB_ACK_IN_FLIGHT
	.word	RDS_MAX_ADV_CREDIT
	.word	s_ib_ack_send_delayed
	.word	s_ib_tx_throttle
	.size	rds_ib_attempt_ack, .-rds_ib_attempt_ack
	.comm	s_ib_tx_throttle,4,4
	.comm	s_ib_ack_send_delayed,4,4
	.comm	RDS_MAX_ADV_CREDIT,4,4
	.comm	IB_ACK_REQUESTED,4,4
	.comm	IB_ACK_IN_FLIGHT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
