	.file	"extr_pio.c_free_credit_return.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	free_credit_return
	.type	free_credit_return, @function
free_credit_return:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR [rdi]
	test	rdi, rdi
	je	.L1
	mov	eax, DWORD PTR node_affinity[rip]
	test	eax, eax
	jle	.L3
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	DWORD PTR node_affinity[rip], ebx
	jle	.L3
.L5:
	mov	rax, rbx
	sal	rax, 4
	add	rax, rdi
	mov	rdx, QWORD PTR 8[rax]
	test	rdx, rdx
	je	.L4
	mov	ecx, DWORD PTR TXE_NUM_CONTEXTS[rip]
	mov	rdi, QWORD PTR 8[rbp]
	add	rbx, 1
	lea	esi, 0[0+rcx*4]
	mov	ecx, DWORD PTR [rax]
	call	dma_free_coherent@PLT
	cmp	DWORD PTR node_affinity[rip], ebx
	mov	rdi, QWORD PTR 0[rbp]
	jg	.L5
.L3:
	call	kfree@PLT
	mov	QWORD PTR 0[rbp], 0
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	free_credit_return, .-free_credit_return
	.comm	node_affinity,4,4
	.comm	TXE_NUM_CONTEXTS,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_pio.c_free_credit_return.c"
	.text
	.align	2
	.global	free_credit_return
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_credit_return, %function
free_credit_return:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r6, .L15
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L3
	mov	r4, #0
	ldr	r7, .L15+4
	b	.L5
.L4:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L3
.L5:
	add	r3, r0, r4, lsl #3
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L4
	ldr	r1, [r7]
	ldr	r3, [r0, r4, lsl #3]
	lsl	r1, r1, #2
	ldr	r0, [r5, #4]
	bl	dma_free_coherent
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ldr	r0, [r5]
	bgt	.L5
.L3:
	bl	kfree
	mov	r3, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	node_affinity
	.word	TXE_NUM_CONTEXTS
	.size	free_credit_return, .-free_credit_return
	.comm	node_affinity,4,4
	.comm	TXE_NUM_CONTEXTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
