	.file	"extr_main.c_b43_set_beacon_int.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Set beacon interval to %u\n"
	.text
	.p2align 4
	.type	b43_set_beacon_int, @function
b43_set_beacon_int:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	b43_time_lock@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, r12d
	cmp	DWORD PTR [rax], 2
	jle	.L2
	mov	esi, DWORD PTR B43_MMIO_TSF_CFP_REP[rip]
	sal	edx, 16
	mov	rdi, rbx
	call	b43_write32@PLT
	mov	edx, r12d
	mov	esi, DWORD PTR B43_MMIO_TSF_CFP_START[rip]
	mov	rdi, rbx
	sal	edx, 10
	call	b43_write32@PLT
.L3:
	mov	rdi, rbx
	call	b43_time_unlock@PLT
	mov	edi, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	lea	rsi, .LC0[rip]
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	b43dbg@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	sar	edx, 6
	mov	rdi, rbx
	mov	esi, 1542
	call	b43_write16@PLT
	mov	edx, r12d
	mov	esi, 1552
	mov	rdi, rbx
	call	b43_write16@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	b43_set_beacon_int, .-b43_set_beacon_int
	.comm	B43_MMIO_TSF_CFP_START,4,4
	.comm	B43_MMIO_TSF_CFP_REP,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_b43_set_beacon_int.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Set beacon interval to %u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_set_beacon_int, %function
b43_set_beacon_int:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	bl	b43_time_lock
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L2
	ldr	r3, .L6
	lsl	r2, r5, #16
	ldr	r1, [r3]
	mov	r0, r4
	bl	b43_write32
	ldr	r3, .L6+4
	mov	r0, r4
	ldr	r1, [r3]
	lsl	r2, r5, #10
	bl	b43_write32
.L3:
	mov	r0, r4
	bl	b43_time_unlock
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, .L6+8
	pop	{r4, r5, r6, lr}
	b	b43dbg
.L2:
	asr	r2, r5, #6
	mov	r0, r4
	ldr	r1, .L6+12
	bl	b43_write16
	mov	r2, r5
	mov	r1, #1552
	mov	r0, r4
	bl	b43_write16
	b	.L3
.L7:
	.align	2
.L6:
	.word	B43_MMIO_TSF_CFP_REP
	.word	B43_MMIO_TSF_CFP_START
	.word	.LC0
	.word	1542
	.size	b43_set_beacon_int, .-b43_set_beacon_int
	.comm	B43_MMIO_TSF_CFP_START,4,4
	.comm	B43_MMIO_TSF_CFP_REP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
