	.file	"extr_scan.c_cfg80211_get_bss_channel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cfg80211_get_bss_channel, @function
cfg80211_get_bss_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	edi, DWORD PTR WLAN_EID_DS_PARAMS[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	call	cfg80211_find_ie@PLT
	test	rax, rax
	je	.L2
	cmp	DWORD PTR 4[rax], 1
	je	.L15
.L2:
	mov	edi, DWORD PTR WLAN_EID_HT_OPERATION[rip]
	mov	rdx, r14
	mov	rsi, rbp
	call	cfg80211_find_ie@PLT
	test	rax, rax
	je	.L4
	cmp	DWORD PTR 4[rax], 3
	jbe	.L4
.L15:
	mov	edi, DWORD PTR 8[rax]
	test	edi, edi
	js	.L4
	mov	esi, DWORD PTR 4[rbx]
	call	ieee80211_channel_to_frequency@PLT
	mov	rdi, r12
	mov	esi, eax
	call	ieee80211_get_channel@PLT
	test	rax, rax
	je	.L17
	cmp	DWORD PTR NL80211_BSS_CHAN_WIDTH_10[rip], r13d
	je	.L4
	cmp	DWORD PTR NL80211_BSS_CHAN_WIDTH_5[rip], r13d
	je	.L4
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR IEEE80211_CHAN_DISABLED[rip], edx
	mov	edx, 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	cmovne	rax, rdx
	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	ecx, DWORD PTR NL80211_BAND_2GHZ[rip]
	cmp	DWORD PTR 4[rbx], ecx
	je	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, rbx
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	cfg80211_get_bss_channel, .-cfg80211_get_bss_channel
	.comm	WLAN_EID_HT_OPERATION,4,4
	.comm	WLAN_EID_DS_PARAMS,4,4
	.comm	NL80211_BSS_CHAN_WIDTH_5,4,4
	.comm	NL80211_BSS_CHAN_WIDTH_10,4,4
	.comm	NL80211_BAND_2GHZ,4,4
	.comm	IEEE80211_CHAN_DISABLED,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_scan.c_cfg80211_get_bss_channel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cfg80211_get_bss_channel, %function
cfg80211_get_bss_channel:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L17
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [ip]
	mov	r4, r3
	mov	r5, r1
	mov	r7, r2
	bl	cfg80211_find_ie
	subs	ip, r0, #0
	beq	.L2
	ldr	r3, [ip, #4]
	cmp	r3, #1
	ldreq	r0, [ip, #8]
	beq	.L3
.L2:
	ldr	r3, .L17+4
	mov	r2, r7
	ldr	r0, [r3]
	mov	r1, r5
	bl	cfg80211_find_ie
	subs	r3, r0, #0
	beq	.L4
	ldr	r2, [r3, #4]
	cmp	r2, #3
	bls	.L4
	ldr	r0, [r3, #8]
.L3:
	cmp	r0, #0
	blt	.L4
	ldr	r1, [r4, #4]
	bl	ieee80211_channel_to_frequency
	mov	r1, r0
	mov	r0, r6
	bl	ieee80211_get_channel
	cmp	r0, #0
	beq	.L16
	ldr	r3, .L17+8
	ldr	r2, [sp, #24]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L4
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L4
	ldr	r3, .L17+16
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r3, .L17+20
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	popeq	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	WLAN_EID_DS_PARAMS
	.word	WLAN_EID_HT_OPERATION
	.word	NL80211_BSS_CHAN_WIDTH_10
	.word	NL80211_BSS_CHAN_WIDTH_5
	.word	IEEE80211_CHAN_DISABLED
	.word	NL80211_BAND_2GHZ
	.size	cfg80211_get_bss_channel, .-cfg80211_get_bss_channel
	.comm	WLAN_EID_HT_OPERATION,4,4
	.comm	WLAN_EID_DS_PARAMS,4,4
	.comm	NL80211_BSS_CHAN_WIDTH_5,4,4
	.comm	NL80211_BSS_CHAN_WIDTH_10,4,4
	.comm	NL80211_BAND_2GHZ,4,4
	.comm	IEEE80211_CHAN_DISABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
