	.file	"extr_ieee80211_node.c_ieee80211_setupcurchan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ieee80211_setupcurchan
	.type	ieee80211_setupcurchan, @function
ieee80211_setupcurchan:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR IEEE80211_HTC_HT[rip], eax
	jne	.L8
.L3:
	cmp	QWORD PTR 8[rbx], 0
	jne	.L9
.L5:
	mov	QWORD PTR 16[rbx], rbp
	mov	rdi, rbp
	mov	QWORD PTR 32[rbx], rbp
	call	ieee80211_chan2mode@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	DWORD PTR 28[rbx], eax
	call	ieee80211_get_ratetable@PLT
	mov	DWORD PTR 24[rbx], eax
	pop	rbx
	.cfi_remember_state
	.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
.L8:
	.cfi_restore_state
	call	gethtadjustflags@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	ieee80211_htchanflags@PLT
	cmp	eax, r12d
	jge	.L3
	mov	rsi, rbp
	mov	edx, r12d
	mov	rdi, rbx
	call	ieee80211_ht_adjust_channel@PLT
	cmp	QWORD PTR 8[rbx], 0
	mov	rbp, rax
	je	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbx
	call	getvhtadjustflags@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	ieee80211_vhtchanflags@PLT
	cmp	eax, r12d
	jge	.L5
	mov	rsi, rbp
	mov	edx, r12d
	mov	rdi, rbx
	call	ieee80211_vht_adjust_channel@PLT
	mov	rbp, rax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ieee80211_setupcurchan, .-ieee80211_setupcurchan
	.comm	IEEE80211_HTC_HT,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_ieee80211_node.c_ieee80211_setupcurchan.c"
	.text
	.align	2
	.global	ieee80211_setupcurchan
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee80211_setupcurchan, %function
ieee80211_setupcurchan:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	tst	r2, r3
	mov	r4, r0
	mov	r5, r1
	bne	.L11
.L3:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L12
.L5:
	mov	r0, r5
	str	r5, [r4, #8]
	str	r5, [r4, #20]
	bl	ieee80211_chan2mode
	mov	r3, r0
	ldr	r0, [r4, #8]
	str	r3, [r4, #16]
	bl	ieee80211_get_ratetable
	str	r0, [r4, #12]
	pop	{r4, r5, r6, pc}
.L11:
	bl	gethtadjustflags
	mov	r6, r0
	mov	r0, r5
	bl	ieee80211_htchanflags
	cmp	r0, r6
	bge	.L3
	mov	r1, r5
	mov	r2, r6
	mov	r0, r4
	bl	ieee80211_ht_adjust_channel
	ldr	r3, [r4, #4]
	mov	r5, r0
	cmp	r3, #0
	beq	.L5
.L12:
	mov	r0, r4
	bl	getvhtadjustflags
	mov	r6, r0
	mov	r0, r5
	bl	ieee80211_vhtchanflags
	cmp	r0, r6
	bge	.L5
	mov	r1, r5
	mov	r2, r6
	mov	r0, r4
	bl	ieee80211_vht_adjust_channel
	mov	r5, r0
	b	.L5
.L14:
	.align	2
.L13:
	.word	IEEE80211_HTC_HT
	.size	ieee80211_setupcurchan, .-ieee80211_setupcurchan
	.comm	IEEE80211_HTC_HT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
