	.file	"extr_irq.c_txn_alloc_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	txn_alloc_irq
	.type	txn_alloc_irq, @function
txn_alloc_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR CPU_IRQ_BASE[rip]
	lea	r12d, 1[rax]
	cmp	r12d, DWORD PTR CPU_IRQ_MAX[rip]
	jg	.L2
	mov	ebx, 1
	mov	ecx, edi
	sal	ebx, cl
.L5:
	xor	edx, edx
	xor	esi, esi
	mov	edi, r12d
	call	cpu_claim_irq@PLT
	test	rax, rax
	js	.L3
	mov	eax, r12d
	sub	eax, DWORD PTR CPU_IRQ_BASE[rip]
	cmp	eax, ebx
	jge	.L3
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	r12d, 1
	cmp	DWORD PTR CPU_IRQ_MAX[rip], r12d
	jge	.L5
.L2:
	mov	r12d, -1
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	txn_alloc_irq, .-txn_alloc_irq
	.comm	CPU_IRQ_MAX,4,4
	.comm	CPU_IRQ_BASE,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_irq.c_txn_alloc_irq.c"
	.text
	.align	2
	.global	txn_alloc_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	txn_alloc_irq, %function
txn_alloc_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L9
	ldr	r7, .L9+4
	ldr	r4, [r6]
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r4, r3
	bgt	.L2
	mov	r5, #1
	lsl	r5, r5, r0
.L5:
	mov	r2, #0
	mov	r0, r4
	mov	r1, r2
	bl	cpu_claim_irq
	cmp	r0, #0
	blt	.L3
	ldr	r3, [r6]
	sub	r3, r4, r3
	cmp	r3, r5
	bge	.L3
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bge	.L5
.L2:
	mvn	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	CPU_IRQ_BASE
	.word	CPU_IRQ_MAX
	.size	txn_alloc_irq, .-txn_alloc_irq
	.comm	CPU_IRQ_MAX,4,4
	.comm	CPU_IRQ_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
