	.file	"extr_main.c_handle_irq_beacon.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	handle_irq_beacon, @function
handle_irq_beacon:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR NL80211_IFTYPE_AP[rip]
	mov	rdi, r12
	call	b43_is_mode@PLT
	test	eax, eax
	jne	.L6
	mov	esi, DWORD PTR NL80211_IFTYPE_MESH_POINT[rip]
	mov	rdi, r12
	call	b43_is_mode@PLT
	test	eax, eax
	je	.L17
.L6:
	mov	eax, DWORD PTR B43_IRQ_BEACON[rip]
	mov	esi, DWORD PTR B43_MMIO_MACCMD[rip]
	mov	rdi, rbp
	not	eax
	and	DWORD PTR 0[rbp], eax
	call	b43_read32@PLT
	mov	r13d, DWORD PTR B43_MACCMD_BEACON1_VALID[rip]
	and	r13d, eax
	and	eax, DWORD PTR B43_MACCMD_BEACON0_VALID[rip]
	mov	ebx, eax
	je	.L5
	test	r13d, r13d
	je	.L5
	mov	edx, DWORD PTR B43_IRQ_BEACON[rip]
	mov	esi, DWORD PTR B43_MMIO_GEN_IRQ_REASON[rip]
	mov	rdi, rbp
	call	b43_write32@PLT
	mov	eax, DWORD PTR B43_IRQ_BEACON[rip]
	or	DWORD PTR 0[rbp], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR [r12]
	call	unlikely@PLT
	test	rax, rax
	jne	.L18
	test	ebx, ebx
	je	.L19
	test	r13d, r13d
	jne	.L1
	mov	rdi, rbp
	call	b43_upload_beacon1@PLT
	mov	esi, DWORD PTR B43_MMIO_MACCMD[rip]
	mov	rdi, rbp
	call	b43_read32@PLT
	or	eax, DWORD PTR B43_MACCMD_BEACON1_VALID[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L18:
	mov	DWORD PTR [r12], 0
	mov	rdi, rbp
	call	b43_upload_beacon0@PLT
	mov	rdi, rbp
	call	b43_upload_beacon1@PLT
	mov	esi, DWORD PTR B43_MMIO_MACCMD[rip]
	mov	rdi, rbp
	call	b43_read32@PLT
	or	eax, DWORD PTR B43_MACCMD_BEACON0_VALID[rip]
.L15:
	mov	esi, DWORD PTR B43_MMIO_MACCMD[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	mov	edx, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	b43_write32@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR NL80211_IFTYPE_ADHOC[rip]
	mov	rdi, r12
	call	b43_is_mode@PLT
	test	eax, eax
	jne	.L6
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	call	b43_upload_beacon0@PLT
	mov	esi, DWORD PTR B43_MMIO_MACCMD[rip]
	mov	rdi, rbp
	call	b43_read32@PLT
	or	eax, DWORD PTR B43_MACCMD_BEACON0_VALID[rip]
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	handle_irq_beacon, .-handle_irq_beacon
	.comm	NL80211_IFTYPE_MESH_POINT,4,4
	.comm	NL80211_IFTYPE_AP,4,4
	.comm	NL80211_IFTYPE_ADHOC,4,4
	.comm	B43_MMIO_MACCMD,4,4
	.comm	B43_MMIO_GEN_IRQ_REASON,4,4
	.comm	B43_MACCMD_BEACON1_VALID,4,4
	.comm	B43_MACCMD_BEACON0_VALID,4,4
	.comm	B43_IRQ_BEACON,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_main.c_handle_irq_beacon.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_irq_beacon, %function
handle_irq_beacon:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L19
	ldr	r8, [r0, #4]
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, r8
	sub	sp, sp, #12
	bl	b43_is_mode
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L19+4
	mov	r0, r8
	ldr	r1, [r3]
	bl	b43_is_mode
	cmp	r0, #0
	beq	.L14
.L5:
	ldr	r10, .L19+8
	ldr	r3, [r4]
	ldr	r2, [r10]
	ldr	r9, .L19+12
	bic	r3, r3, r2
	str	r3, [r4]
	mov	r0, r4
	ldr	r1, [r9]
	bl	b43_read32
	ldr	fp, .L19+16
	ldr	r5, .L19+20
	ldr	r6, [fp]
	ldr	r3, [r5]
	ands	r6, r0, r6
	moveq	r7, #0
	movne	r7, #1
	ands	r3, r0, r3
	moveq	r7, #0
	cmp	r7, #0
	str	r3, [sp, #4]
	bne	.L15
	ldr	r0, [r8]
	bl	unlikely
	cmp	r0, #0
	bne	.L16
	cmp	r6, #0
	beq	.L17
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L18
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	mov	r0, r4
	str	r7, [r8]
	bl	b43_upload_beacon0
	mov	r0, r4
	bl	b43_upload_beacon1
	mov	r0, r4
	ldr	r1, [r9]
	bl	b43_read32
	ldr	r2, [fp]
.L12:
	orr	r2, r0, r2
	mov	r0, r4
	ldr	r1, [r9]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	b43_write32
.L15:
	ldr	r3, .L19+24
	ldr	r2, [r10]
	ldr	r1, [r3]
	mov	r0, r4
	bl	b43_write32
	ldr	r2, [r10]
	ldr	r3, [r4]
	orr	r3, r3, r2
	str	r3, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, .L19+28
	mov	r0, r8
	ldr	r1, [r3]
	bl	b43_is_mode
	cmp	r0, #0
	bne	.L5
	b	.L1
.L18:
	mov	r0, r4
	bl	b43_upload_beacon1
	mov	r0, r4
	ldr	r1, [r9]
	bl	b43_read32
	ldr	r2, [r5]
	b	.L12
.L17:
	mov	r0, r4
	bl	b43_upload_beacon0
	mov	r0, r4
	ldr	r1, [r9]
	bl	b43_read32
	ldr	r2, [fp]
	b	.L12
.L20:
	.align	2
.L19:
	.word	NL80211_IFTYPE_AP
	.word	NL80211_IFTYPE_MESH_POINT
	.word	B43_IRQ_BEACON
	.word	B43_MMIO_MACCMD
	.word	B43_MACCMD_BEACON0_VALID
	.word	B43_MACCMD_BEACON1_VALID
	.word	B43_MMIO_GEN_IRQ_REASON
	.word	NL80211_IFTYPE_ADHOC
	.size	handle_irq_beacon, .-handle_irq_beacon
	.comm	NL80211_IFTYPE_MESH_POINT,4,4
	.comm	NL80211_IFTYPE_AP,4,4
	.comm	NL80211_IFTYPE_ADHOC,4,4
	.comm	B43_MMIO_MACCMD,4,4
	.comm	B43_MMIO_GEN_IRQ_REASON,4,4
	.comm	B43_MACCMD_BEACON1_VALID,4,4
	.comm	B43_MACCMD_BEACON0_VALID,4,4
	.comm	B43_IRQ_BEACON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
