	.file	"extr_main.c_b43_op_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Radio turned on by software\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"The hardware RF-kill button still turns the radio physically off. Press the button to turn it on.\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Radio turned off by software\n"
	.text
	.p2align 4
	.type	b43_op_config, @function
b43_op_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	hw_to_b43_wl@PLT
	mov	rbp, QWORD PTR 16[rax]
	lea	r13, 8[rax]
	mov	r12, rax
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	b43_mac_suspend@PLT
	test	DWORD PTR IEEE80211_CONF_CHANGE_LISTEN_INTERVAL[rip], ebx
	jne	.L29
	test	DWORD PTR IEEE80211_CONF_CHANGE_CHANNEL[rip], ebx
	jne	.L30
.L3:
	mov	eax, DWORD PTR IEEE80211_CONF_CHANGE_RETRY_LIMITS[rip]
	test	eax, ebx
	jne	.L31
.L5:
	not	eax
	test	eax, ebx
	je	.L27
	mov	edx, DWORD PTR [r15]
	test	DWORD PTR IEEE80211_CONF_MONITOR[rip], edx
	mov	rax, QWORD PTR 0[rbp]
	setne	dl
	movzx	edx, dl
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 8[r15]
	test	rax, rax
	je	.L7
	cmp	rax, QWORD PTR 16[rbp]
	jne	.L32
.L7:
	mov	esi, DWORD PTR B43_ANTENNA_DEFAULT[rip]
	mov	rdi, rbp
	call	b43_mgmtframe_txantenna@PLT
	mov	rax, QWORD PTR 32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L8
	mov	esi, DWORD PTR B43_ANTENNA_DEFAULT[rip]
	mov	rdi, rbp
	call	rax
.L8:
	mov	rax, QWORD PTR [r12]
	cmp	rax, QWORD PTR 24[rbp]
	je	.L27
	test	rax, rax
	je	.L10
	xor	esi, esi
	mov	rdi, rbp
	call	b43_software_rfkill@PLT
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	b43info@PLT
	mov	r14d, DWORD PTR 8[rbp]
	test	r14d, r14d
	jne	.L27
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	call	b43info@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, 1
	mov	rdi, rbp
	call	b43_software_rfkill@PLT
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC2[rip]
	call	b43info@PLT
.L27:
	xor	r14d, r14d
.L4:
	mov	rdi, rbp
	call	b43_mac_enable@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L29:
	.cfi_restore_state
	mov	esi, DWORD PTR 32[r15]
	mov	rdi, rbp
	call	b43_set_beacon_listen_interval@PLT
	test	DWORD PTR IEEE80211_CONF_CHANGE_CHANNEL[rip], ebx
	je	.L3
.L30:
	mov	rsi, QWORD PTR 24[r15]
	lea	rax, 24[r15]
	mov	rdi, rbp
	mov	QWORD PTR 48[rbp], rax
	mov	eax, DWORD PTR [rsi]
	mov	DWORD PTR 40[rbp], eax
	call	b43_switch_band@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L4
	mov	esi, DWORD PTR 40[rbp]
	mov	rdi, rbp
	call	b43_switch_channel@PLT
	mov	eax, DWORD PTR IEEE80211_CONF_CHANGE_RETRY_LIMITS[rip]
	test	eax, ebx
	je	.L5
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edx, DWORD PTR 16[r15]
	mov	esi, DWORD PTR 20[r15]
	mov	rdi, rbp
	call	b43_set_retry_limits@PLT
	mov	eax, DWORD PTR IEEE80211_CONF_CHANGE_RETRY_LIMITS[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L32:
	mov	QWORD PTR 16[rbp], rax
	mov	esi, DWORD PTR B43_TXPWR_IGNORE_TIME[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR B43_TXPWR_IGNORE_TSSI[rip]
	call	b43_phy_txpower_check@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	b43_op_config, .-b43_op_config
	.comm	IEEE80211_CONF_MONITOR,4,4
	.comm	IEEE80211_CONF_CHANGE_RETRY_LIMITS,4,4
	.comm	IEEE80211_CONF_CHANGE_LISTEN_INTERVAL,4,4
	.comm	IEEE80211_CONF_CHANGE_CHANNEL,4,4
	.comm	B43_TXPWR_IGNORE_TSSI,4,4
	.comm	B43_TXPWR_IGNORE_TIME,4,4
	.comm	B43_ANTENNA_DEFAULT,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_op_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Radio turned on by software\012\000"
	.align	2
.LC1:
	.ascii	"The hardware RF-kill button still turns the radio p"
	.ascii	"hysically off. Press the button to turn it on.\012\000"
	.align	2
.LC2:
	.ascii	"Radio turned off by software\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_op_config, %function
b43_op_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r6, r0
	bl	hw_to_b43_wl
	mov	r7, r0
	add	r9, r0, #4
	ldr	r4, [r7, #8]
	mov	r0, r9
	bl	mutex_lock
	mov	r0, r4
	bl	b43_mac_suspend
	ldr	r3, .L32
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L28
	ldr	r3, .L32+4
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L29
.L3:
	ldr	r8, .L32+8
	ldr	r3, [r8]
	tst	r3, r5
	bne	.L30
.L5:
	bics	r3, r5, r3
	beq	.L9
	ldr	r3, .L32+12
	ldr	r1, [r6]
	ldr	r2, [r3]
	ldr	r3, [r6, #4]
	tst	r1, r2
	movne	r1, #1
	moveq	r1, #0
	ldr	r2, [r4]
	cmp	r3, #0
	str	r1, [r2]
	beq	.L7
	ldr	r2, [r4, #8]
	cmp	r3, r2
	bne	.L31
.L7:
	ldr	r5, .L32+16
	mov	r0, r4
	ldr	r1, [r5]
	bl	b43_mgmtframe_txantenna
	ldr	r3, [r4, #16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	mov	r0, r4
	ldr	r1, [r5]
	blx	r3
.L8:
	ldr	r8, [r7]
	ldr	r3, [r4, #12]
	cmp	r8, r3
	beq	.L9
	cmp	r8, #0
	beq	.L10
	mov	r1, #0
	mov	r0, r4
	bl	b43_software_rfkill
	ldr	r1, .L32+20
	ldr	r0, [r4]
	bl	b43info
	ldr	r8, [r4, #4]
	cmp	r8, #0
	bne	.L9
	ldr	r1, .L32+24
	ldr	r0, [r4]
	bl	b43info
	b	.L4
.L9:
	mov	r8, #0
.L4:
	mov	r0, r4
	bl	b43_mac_enable
	mov	r0, r9
	bl	mutex_unlock
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L28:
	mov	r0, r4
	ldr	r1, [r6, #20]
	bl	b43_set_beacon_listen_interval
	ldr	r3, .L32+4
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L3
.L29:
	ldr	r1, [r6, #16]
	add	r3, r6, #16
	ldr	r2, [r1]
	mov	r0, r4
	str	r2, [r4, #20]
	str	r3, [r4, #24]
	bl	b43_switch_band
	subs	r8, r0, #0
	bne	.L4
	ldr	r8, .L32+8
	mov	r0, r4
	ldr	r1, [r4, #20]
	bl	b43_switch_channel
	ldr	r3, [r8]
	tst	r3, r5
	beq	.L5
.L30:
	mov	r0, r4
	ldr	r2, [r6, #8]
	ldr	r1, [r6, #12]
	bl	b43_set_retry_limits
	ldr	r3, [r8]
	b	.L5
.L10:
	mov	r1, #1
	mov	r0, r4
	bl	b43_software_rfkill
	ldr	r1, .L32+28
	ldr	r0, [r4]
	bl	b43info
	b	.L4
.L31:
	ldr	r1, .L32+32
	ldr	r2, .L32+36
	ldr	r1, [r1]
	ldr	r2, [r2]
	mov	r0, r4
	str	r3, [r4, #8]
	orr	r1, r1, r2
	bl	b43_phy_txpower_check
	b	.L7
.L33:
	.align	2
.L32:
	.word	IEEE80211_CONF_CHANGE_LISTEN_INTERVAL
	.word	IEEE80211_CONF_CHANGE_CHANNEL
	.word	IEEE80211_CONF_CHANGE_RETRY_LIMITS
	.word	IEEE80211_CONF_MONITOR
	.word	B43_ANTENNA_DEFAULT
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	B43_TXPWR_IGNORE_TIME
	.word	B43_TXPWR_IGNORE_TSSI
	.size	b43_op_config, .-b43_op_config
	.comm	IEEE80211_CONF_MONITOR,4,4
	.comm	IEEE80211_CONF_CHANGE_RETRY_LIMITS,4,4
	.comm	IEEE80211_CONF_CHANGE_LISTEN_INTERVAL,4,4
	.comm	IEEE80211_CONF_CHANGE_CHANNEL,4,4
	.comm	B43_TXPWR_IGNORE_TSSI,4,4
	.comm	B43_TXPWR_IGNORE_TIME,4,4
	.comm	B43_ANTENNA_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
