	.file	"extr_4965-mac.c_il4965_alloc_bcast_station.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to prepare broadcast station\n"
	.align 8
.LC1:
	.string	"Unable to initialize rate scaling for bcast station.\n"
	.text
	.p2align 4
	.globl	il4965_alloc_bcast_station
	.type	il4965_alloc_bcast_station, @function
il4965_alloc_bcast_station:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR il_bcast_addr[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbp
	call	il_prep_station@PLT
	cmp	QWORD PTR IL_INVALID_STATION[rip], rax
	je	.L7
	mov	rdx, QWORD PTR 8[rbp]
	mov	rbx, rax
	mov	r12, rax
	mov	eax, DWORD PTR IL_STA_DRIVER_ACTIVE[rip]
	sal	rbx, 4
	or	eax, DWORD PTR IL_STA_BCAST[rip]
	xor	esi, esi
	mov	rdi, rbp
	add	rdx, rbx
	or	DWORD PTR 8[rdx], eax
	call	spin_unlock_irqrestore@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	il4965_sta_alloc_lq@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
	xor	esi, esi
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rsi
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	mov	QWORD PTR [rax+rbx], r12
	call	spin_unlock_irqrestore@PLT
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	IL_ERR@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	IL_ERR@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 16
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	il4965_alloc_bcast_station, .-il4965_alloc_bcast_station
	.comm	il_bcast_addr,4,4
	.comm	IL_STA_DRIVER_ACTIVE,4,4
	.comm	IL_STA_BCAST,4,4
	.comm	IL_INVALID_STATION,8,8
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_4965-mac.c_il4965_alloc_bcast_station.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to prepare broadcast station\012\000"
	.align	2
.LC1:
	.ascii	"Unable to initialize rate scaling for bcast station"
	.ascii	".\012\000"
	.text
	.align	2
	.global	il4965_alloc_bcast_station
	.syntax unified
	.arm
	.fpu softvfp
	.type	il4965_alloc_bcast_station, %function
il4965_alloc_bcast_station:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	mov	r4, r0
	bl	spin_lock_irqsave
	mov	r3, #0
	ldr	r1, .L9
	mov	r2, r3
	mov	r0, r4
	ldr	r1, [r1]
	bl	il_prep_station
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L7
	mov	r5, r0
	ldr	r3, [r4, #4]
	ldr	r2, .L9+8
	ldr	r1, .L9+12
	add	r3, r3, r0, lsl #3
	ldr	r1, [r1]
	ldr	r0, [r2]
	ldr	r2, [r3, #4]
	orr	r1, r1, r0
	orr	r2, r2, r1
	str	r2, [r3, #4]
	mov	r1, #0
	mov	r0, r4
	bl	spin_unlock_irqrestore
	mov	r1, r5
	mov	r0, r4
	bl	il4965_sta_alloc_lq
	subs	r6, r0, #0
	beq	.L8
	mov	r7, #0
	mov	r0, r4
	mov	r1, r7
	bl	spin_lock_irqsave
	ldr	r3, [r4, #4]
	mov	r1, r7
	mov	r0, r4
	str	r6, [r3, r5, lsl #3]
	bl	spin_unlock_irqrestore
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, .L9+16
	bl	IL_ERR
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L9+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, .L9+24
	bl	IL_ERR
	ldr	r3, .L9+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	il_bcast_addr
	.word	IL_INVALID_STATION
	.word	IL_STA_BCAST
	.word	IL_STA_DRIVER_ACTIVE
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.word	ENOMEM
	.size	il4965_alloc_bcast_station, .-il4965_alloc_bcast_station
	.comm	il_bcast_addr,4,4
	.comm	IL_STA_DRIVER_ACTIVE,4,4
	.comm	IL_STA_BCAST,4,4
	.comm	IL_INVALID_STATION,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
