	.file	"extr_bnad.c_bnad_txrx_irq_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnad_txrx_irq_alloc, @function
bnad_txrx_irq_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 12[rdi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, r15
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	spin_lock_irqsave@PLT
	xor	esi, esi
	mov	rdi, r15
	mov	r12d, DWORD PTR 0[r13]
	call	spin_unlock_irqrestore@PLT
	and	r12d, DWORD PTR BNAD_CF_MSIX[rip]
	je	.L2
	mov	eax, DWORD PTR BNA_INTR_T_MSIX[rip]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 4
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR 16[rbp], eax
	call	kcalloc@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L18
	cmp	r14d, 128
	je	.L5
	cmp	r14d, 129
	je	.L6
	xor	eax, eax
	call	BUG@PLT
	xor	edx, edx
.L8:
	mov	ecx, DWORD PTR 0[rbp]
	test	ecx, ecx
	jle	.L11
	mov	rax, QWORD PTR 8[rbp]
	add	ecx, edx
	.p2align 4,,10
	.p2align 3
.L10:
	mov	DWORD PTR [rax], edx
	add	edx, 1
	add	rax, 4
	cmp	edx, ecx
	jne	.L10
.L11:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR BNA_INTR_T_INTX[rip]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 4
	mov	DWORD PTR 0[rbp], 1
	mov	edi, 1
	mov	DWORD PTR 16[rbp], eax
	call	kcalloc@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L18
	cmp	r14d, 128
	je	.L13
	cmp	r14d, 129
	jne	.L1
	mov	edx, DWORD PTR BNAD_INTX_RX_IB_BITMASK[rip]
	mov	DWORD PTR [rax], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	add	ebx, DWORD PTR BNAD_MAILBOX_MSIX_VECTORS[rip]
	mov	edx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, DWORD PTR BNAD_INTX_TX_IB_BITMASK[rip]
	mov	DWORD PTR [rax], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR 4[r13]
	imul	edx, DWORD PTR 8[r13]
	add	edx, DWORD PTR BNAD_MAILBOX_MSIX_VECTORS[rip]
	add	edx, ebx
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	bnad_txrx_irq_alloc, .-bnad_txrx_irq_alloc
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	BNA_INTR_T_MSIX,4,4
	.comm	BNA_INTR_T_INTX,4,4
	.comm	BNAD_MAILBOX_MSIX_VECTORS,4,4
	.comm	BNAD_INTX_TX_IB_BITMASK,4,4
	.comm	BNAD_INTX_RX_IB_BITMASK,4,4
	.comm	BNAD_CF_MSIX,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_bnad.c_bnad_txrx_irq_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnad_txrx_irq_alloc, %function
bnad_txrx_irq_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, #0
	mov	r7, r0
	add	r9, r0, #12
	mov	r8, r1
	mov	r0, r9
	mov	r1, r6
	mov	r5, r3
	mov	r4, r2
	bl	spin_lock_irqsave
	mov	r1, r6
	mov	r0, r9
	ldr	r6, [r7]
	bl	spin_unlock_irqrestore
	ldr	r3, .L20
	ldr	r3, [r3]
	ands	r6, r6, r3
	beq	.L2
	ldr	r3, .L20+4
	ldr	r2, .L20+8
	ldr	r3, [r3]
	mov	r1, #4
	ldr	r2, [r2]
	ldr	r0, [r5]
	str	r3, [r5, #8]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L18
	cmp	r8, #128
	beq	.L5
	cmp	r8, #129
	beq	.L6
	bl	BUG
	mov	r2, #0
.L8:
	ldr	r1, [r5]
	cmp	r1, #0
	ble	.L11
	ldr	r3, [r5, #4]
	add	r1, r1, r2
	sub	r3, r3, #4
.L10:
	str	r2, [r3, #4]!
	add	r2, r2, #1
	cmp	r2, r1
	bne	.L10
.L11:
	mov	r6, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, #1
	ldr	r3, .L20+12
	ldr	r2, .L20+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r1, #4
	str	r3, [r5, #8]
	str	r0, [r5]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L18
	cmp	r8, #128
	beq	.L13
	cmp	r8, #129
	bne	.L1
	ldr	r3, .L20+16
	ldr	r3, [r3]
	str	r3, [r0]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r3, .L20+20
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r3, .L20+24
	ldr	r2, [r3]
	add	r2, r4, r2
	b	.L8
.L13:
	ldr	r3, .L20+28
	ldr	r3, [r3]
	str	r3, [r0]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	ldr	r3, .L20+24
	ldr	r2, [r7, #4]
	ldr	r3, [r3]
	ldr	r1, [r7, #8]
	mla	r2, r1, r2, r3
	add	r2, r2, r4
	b	.L8
.L21:
	.align	2
.L20:
	.word	BNAD_CF_MSIX
	.word	BNA_INTR_T_MSIX
	.word	GFP_KERNEL
	.word	BNA_INTR_T_INTX
	.word	BNAD_INTX_RX_IB_BITMASK
	.word	ENOMEM
	.word	BNAD_MAILBOX_MSIX_VECTORS
	.word	BNAD_INTX_TX_IB_BITMASK
	.size	bnad_txrx_irq_alloc, .-bnad_txrx_irq_alloc
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	BNA_INTR_T_MSIX,4,4
	.comm	BNA_INTR_T_INTX,4,4
	.comm	BNAD_MAILBOX_MSIX_VECTORS,4,4
	.comm	BNAD_INTX_TX_IB_BITMASK,4,4
	.comm	BNAD_INTX_RX_IB_BITMASK,4,4
	.comm	BNAD_CF_MSIX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
