	.file	"extr_phy_n.c_b43_nphy_set_channel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b43_nphy_set_channel, @function
b43_nphy_set_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	DWORD PTR [rdi], 2
	mov	ebx, edx
	jle	.L2
	mov	esi, DWORD PTR 8[rsi]
	xor	r13d, r13d
	call	b43_nphy_get_chantabent_rev3@PLT
	mov	r14, rax
	test	rax, rax
	je	.L15
.L3:
	mov	eax, DWORD PTR 12[r12]
	mov	edi, DWORD PTR 4[rbp]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR 8[r12]
	mov	DWORD PTR 8[rbp], eax
	call	b43_channel_type_is_40mhz@PLT
	mov	edi, ebx
	call	b43_channel_type_is_40mhz@PLT
	cmp	DWORD PTR NL80211_CHAN_HT40PLUS[rip], ebx
	je	.L17
	cmp	DWORD PTR NL80211_CHAN_HT40MINUS[rip], ebx
	je	.L18
.L6:
	cmp	DWORD PTR 0[rbp], 2
	mov	rdx, QWORD PTR [r12]
	mov	rax, QWORD PTR IEEE80211_BAND_5GHZ[rip]
	jg	.L19
	cmp	rdx, rax
	mov	ecx, 32
	mov	eax, 80
	mov	rdi, rbp
	cmovne	ecx, eax
	mov	esi, DWORD PTR B2055_MASTER1[rip]
	mov	edx, 65423
	call	b43_radio_maskset@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	b43_radio_2055_setup@PLT
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	call	b43_nphy_channel_setup@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR 12[rsi]
	xor	r14d, r14d
	call	b43_nphy_get_chantabent_rev2@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L3
.L15:
	mov	eax, DWORD PTR ESRCH[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	xor	ecx, ecx
	cmp	rdx, rax
	mov	rdi, rbp
	mov	edx, 65531
	sete	cl
	mov	esi, 8
	sal	ecx, 2
	call	b43_radio_maskset@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	b43_radio_2056_setup@PLT
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, rbp
	call	b43_nphy_channel_setup@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edx, DWORD PTR B43_NPHY_RXCTL_BSELU20[rip]
	mov	esi, DWORD PTR B43_NPHY_RXCTL[rip]
	mov	rdi, rbp
	call	b43_phy_set@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, DWORD PTR B43_NPHY_RXCTL_BSELU20[rip]
	mov	esi, DWORD PTR B43_NPHY_RXCTL[rip]
	mov	rdi, rbp
	not	edx
	call	b43_phy_mask@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	b43_nphy_set_channel, .-b43_nphy_set_channel
	.comm	NL80211_CHAN_HT40PLUS,4,4
	.comm	NL80211_CHAN_HT40MINUS,4,4
	.comm	IEEE80211_BAND_5GHZ,8,8
	.comm	ESRCH,4,4
	.comm	B43_NPHY_RXCTL_BSELU20,4,4
	.comm	B43_NPHY_RXCTL,4,4
	.comm	B2055_MASTER1,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_phy_n.c_b43_nphy_set_channel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_nphy_set_channel, %function
b43_nphy_set_channel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #2
	mov	r4, r0
	mov	r5, r1
	mov	r6, r2
	ble	.L2
	ldr	r1, [r1, #4]
	bl	b43_nphy_get_chantabent_rev3
	subs	r8, r0, #0
	movne	r7, #0
	beq	.L15
.L3:
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #8]
	ldr	r0, [r4, #4]
	str	r3, [r4, #8]
	str	r2, [r4, #12]
	bl	b43_channel_type_is_40mhz
	mov	r0, r6
	bl	b43_channel_type_is_40mhz
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L17
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L18
.L6:
	ldr	r2, [r4]
	ldr	r3, .L19+8
	cmp	r2, #2
	ldr	r3, [r3]
	ldr	r2, [r5]
	ble	.L7
	cmp	r2, r3
	moveq	r3, #4
	movne	r3, #0
	ldr	r2, .L19+12
	mov	r1, #8
	mov	r0, r4
	bl	b43_radio_maskset
	mov	r1, r8
	mov	r0, r4
	bl	b43_radio_2056_setup
	mov	r2, r5
	mov	r1, r8
	mov	r0, r4
	bl	b43_nphy_channel_setup
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, [r1, #8]
	bl	b43_nphy_get_chantabent_rev2
	subs	r7, r0, #0
	movne	r8, #0
	bne	.L3
.L15:
	ldr	r3, .L19+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r1, .L19+20
	cmp	r2, r3
	moveq	r3, #32
	movne	r3, #80
	ldr	r2, .L19+24
	mov	r0, r4
	ldr	r1, [r1]
	bl	b43_radio_maskset
	mov	r1, r7
	mov	r0, r4
	bl	b43_radio_2055_setup
	mov	r2, r5
	mov	r1, r7
	mov	r0, r4
	bl	b43_nphy_channel_setup
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, .L19+28
	ldr	r2, .L19+32
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	b43_phy_set
	b	.L6
.L18:
	ldr	r2, .L19+32
	ldr	r3, .L19+28
	ldr	r2, [r2]
	mov	r0, r4
	mvn	r2, r2
	ldr	r1, [r3]
	bl	b43_phy_mask
	b	.L6
.L20:
	.align	2
.L19:
	.word	NL80211_CHAN_HT40PLUS
	.word	NL80211_CHAN_HT40MINUS
	.word	IEEE80211_BAND_5GHZ
	.word	65531
	.word	ESRCH
	.word	B2055_MASTER1
	.word	65423
	.word	B43_NPHY_RXCTL
	.word	B43_NPHY_RXCTL_BSELU20
	.size	b43_nphy_set_channel, .-b43_nphy_set_channel
	.comm	NL80211_CHAN_HT40PLUS,4,4
	.comm	NL80211_CHAN_HT40MINUS,4,4
	.comm	IEEE80211_BAND_5GHZ,4,4
	.comm	ESRCH,4,4
	.comm	B43_NPHY_RXCTL_BSELU20,4,4
	.comm	B43_NPHY_RXCTL,4,4
	.comm	B2055_MASTER1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
