	.file	"extr_if_upgt.c_upgt_tx_done.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TX done: memaddr=0x%08x, status=0x%04x, rssi=%d, "
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"seq=%d\n"
	.text
	.p2align 4
	.type	upgt_tx_done, @function
upgt_tx_done:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	UPGT_ASSERT_LOCKED@PLT
	mov	eax, DWORD PTR UPGT_TX_MAXCOUNT[rip]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	DWORD PTR UPGT_TX_MAXCOUNT[rip], ebx
	jle	.L13
.L4:
	mov	rdx, QWORD PTR 8[r14]
	lea	rax, [rbx+rbx*2]
	mov	edi, DWORD PTR 12[rbp]
	lea	r13, [rdx+rax*8]
	mov	r15, QWORD PTR 0[r13]
	call	le32toh@PLT
	cmp	r15, rax
	jne	.L3
	mov	rsi, QWORD PTR 0[r13]
	mov	rdi, r14
	add	r12d, 1
	add	rbx, 1
	call	upgt_mem_free@PLT
	mov	QWORD PTR 16[r13], 0
	mov	edi, DWORD PTR 4[rbp]
	mov	QWORD PTR 0[r13], 0
	mov	QWORD PTR 8[r13], 0
	call	le16toh@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	DWORD PTR 12[rsp], eax
	call	le16toh@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	r15d, eax
	call	le32toh@PLT
	mov	r9d, DWORD PTR 12[rsp]
	mov	r8d, r15d
	mov	rdi, r14
	mov	esi, DWORD PTR UPGT_DEBUG_TX_PROC[rip]
	mov	rcx, rax
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	DPRINTF@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	le16toh@PLT
	mov	esi, DWORD PTR UPGT_DEBUG_TX_PROC[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r14
	movsx	rcx, eax
	xor	eax, eax
	call	DPRINTF@PLT
	cmp	DWORD PTR UPGT_TX_MAXCOUNT[rip], ebx
	jg	.L4
.L13:
	test	r12d, r12d
	jne	.L14
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, r14
	call	UPGT_UNLOCK@PLT
	mov	QWORD PTR [r14], 0
	mov	rdi, r14
	call	upgt_start@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	UPGT_LOCK@PLT
	.cfi_endproc
.LFE0:
	.size	upgt_tx_done, .-upgt_tx_done
	.comm	UPGT_TX_MAXCOUNT,4,4
	.comm	UPGT_DEBUG_TX_PROC,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_if_upgt.c_upgt_tx_done.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TX done: memaddr=0x%08x, status=0x%04x, rssi=%d, \000"
	.align	2
.LC1:
	.ascii	"seq=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	upgt_tx_done, %function
upgt_tx_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, .L15
	sub	sp, sp, #12
	mov	r6, r1
	mov	r7, r0
	bl	UPGT_ASSERT_LOCKED
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L1
	mov	r9, #0
	mov	r4, r9
	b	.L4
.L3:
	ldr	r3, [r8]
	cmp	r3, r4
	ble	.L13
.L4:
	ldr	r5, [r7, #4]
	add	r10, r4, r4, lsl #1
	ldr	r0, [r6, #12]
	ldr	fp, [r5, r10, lsl #2]
	bl	le32toh
	cmp	fp, r0
	add	r4, r4, #1
	add	fp, r5, r10, lsl #2
	bne	.L3
	ldr	r1, [r5, r10, lsl #2]
	mov	r0, r7
	bl	upgt_mem_free
	mov	r3, #0
	ldr	r0, [r6, #12]
	str	r3, [fp, #8]
	str	r3, [r5, r10, lsl #2]
	str	r3, [fp, #4]
	ldr	r3, .L15+4
	add	r9, r9, #1
	ldr	fp, [r3]
	bl	le32toh
	mov	r5, r0
	ldr	r0, [r6, #8]
	bl	le16toh
	mov	r10, r0
	ldr	r0, [r6, #4]
	bl	le16toh
	mov	r3, r5
	mov	r1, fp
	ldr	r2, .L15+8
	str	r0, [sp, #4]
	str	r10, [sp]
	mov	r0, r7
	bl	DPRINTF
	ldr	r3, .L15+4
	ldr	r0, [r6]
	ldr	r5, [r3]
	bl	le16toh
	mov	r1, r5
	mov	r3, r0
	ldr	r2, .L15+12
	mov	r0, r7
	bl	DPRINTF
	ldr	r3, [r8]
	cmp	r3, r4
	bgt	.L4
.L13:
	cmp	r9, #0
	bne	.L14
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r0, r7
	bl	UPGT_UNLOCK
	mov	r3, #0
	mov	r0, r7
	str	r3, [r7]
	bl	upgt_start
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	UPGT_LOCK
.L16:
	.align	2
.L15:
	.word	UPGT_TX_MAXCOUNT
	.word	UPGT_DEBUG_TX_PROC
	.word	.LC0
	.word	.LC1
	.size	upgt_tx_done, .-upgt_tx_done
	.comm	UPGT_TX_MAXCOUNT,4,4
	.comm	UPGT_DEBUG_TX_PROC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
