	.file	"extr_if_an.c_an_alloc_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	an_alloc_irq
	.type	an_alloc_irq, @function
an_alloc_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	DWORD PTR 12[rsp], esi
	call	device_get_softc@PLT
	or	ebx, DWORD PTR RF_ACTIVE[rip]
	mov	esi, DWORD PTR SYS_RES_IRQ[rip]
	mov	edi, ebp
	mov	ecx, ebx
	lea	rdx, 12[rsp]
	mov	r12, rax
	call	bus_alloc_resource_any@PLT
	mov	r8d, DWORD PTR ENOENT[rip]
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR 12[rsp]
	mov	QWORD PTR 8[r12], rax
	xor	r8d, r8d
	mov	DWORD PTR [r12], edx
.L1:
	add	rsp, 16
	.cfi_def_cfa_offset 32
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	an_alloc_irq, .-an_alloc_irq
	.comm	SYS_RES_IRQ,4,4
	.comm	RF_ACTIVE,4,4
	.comm	ENOENT,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_an.c_an_alloc_irq.c"
	.text
	.align	2
	.global	an_alloc_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	an_alloc_irq, %function
an_alloc_irq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r5, r2
	mov	r6, r0
	str	r1, [sp, #4]
	bl	device_get_softc
	ldr	r3, .L6
	ldr	r2, .L6+4
	ldr	r3, [r3]
	mov	r4, r0
	ldr	r1, [r2]
	orr	r3, r5, r3
	add	r2, sp, #4
	mov	r0, r6
	bl	bus_alloc_resource_any
	subs	r3, r0, #0
	movne	r0, #0
	ldreq	r3, .L6+8
	ldrne	r2, [sp, #4]
	ldreq	r0, [r3]
	stmne	r4, {r2, r3}
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	RF_ACTIVE
	.word	SYS_RES_IRQ
	.word	ENOENT
	.size	an_alloc_irq, .-an_alloc_irq
	.comm	SYS_RES_IRQ,4,4
	.comm	RF_ACTIVE,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
