	.file	"extr_chan.c_cfg80211_edmg_usable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cfg80211_edmg_usable, @function
cfg80211_edmg_usable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	eax, 1
	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
	mov	esi, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	or	esi, ebx
	je	.L1
	mov	ebp, edx
	test	ebx, ebx
	sete	dl
	test	ebp, ebp
	sete	al
	cmp	dl, al
	je	.L3
.L4:
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L3:
	.cfi_restore_state
	mov	r13, rdi
	lea	edi, -1[rcx]
	mov	r12, r8
	call	BIT@PLT
	test	eax, ebx
	je	.L4
	xor	r15d, r15d
	xor	r14d, r14d
.L6:
	mov	edi, r15d
	call	BIT@PLT
	test	eax, ebx
	jne	.L21
	add	r15d, 1
.L5:
	cmp	r15d, 6
	jne	.L6
	cmp	r14d, 4
	jg	.L4
	mov	ecx, DWORD PTR 4[r12]
	mov	esi, ebp
	and	esi, 3
	mov	edx, ecx
	sar	edx, 31
	shr	edx, 30
	lea	eax, [rcx+rdx]
	and	eax, 3
	sub	eax, edx
	cmp	esi, eax
	ja	.L4
	xor	eax, eax
	cmp	ecx, ebp
	setnb	al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	eax, DWORD PTR [r12]
	mov	edi, r15d
	mov	DWORD PTR 12[rsp], eax
	call	BIT@PLT
	test	DWORD PTR 12[rsp], eax
	je	.L4
	mov	esi, DWORD PTR NL80211_BAND_60GHZ[rip]
	add	r15d, 1
	add	r14d, 1
	mov	edi, r15d
	call	ieee80211_channel_to_frequency@PLT
	mov	rdi, r13
	mov	esi, eax
	call	ieee80211_get_channel@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR IEEE80211_CHAN_DISABLED[rip], eax
	je	.L5
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	cfg80211_edmg_usable, .-cfg80211_edmg_usable
	.comm	NL80211_BAND_60GHZ,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_chan.c_cfg80211_edmg_usable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cfg80211_edmg_usable, %function
cfg80211_edmg_usable:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	orrs	r2, r5, r1
	beq	.L7
	mov	r4, r1
	clz	r2, r5
	clz	r1, r1
	lsr	r2, r2, #5
	lsr	r1, r1, #5
	cmp	r1, r2
	beq	.L3
.L4:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r6, r0
	sub	r0, r3, #1
	bl	BIT
	tst	r0, r4
	beq	.L4
	mov	r7, #0
	mov	r9, r7
	ldr	r10, .L23
	ldr	fp, .L23+4
.L6:
	mov	r0, r7
	bl	BIT
	tst	r0, r4
	add	r8, r7, #1
	beq	.L5
	ldr	r3, [sp, #40]
	mov	r0, r7
	ldr	r7, [r3]
	bl	BIT
	tst	r7, r0
	beq	.L4
	ldr	r1, [r10]
	mov	r0, r8
	bl	ieee80211_channel_to_frequency
	mov	r1, r0
	mov	r0, r6
	bl	ieee80211_get_channel
	cmp	r0, #0
	add	r9, r9, #1
	beq	.L4
	ldr	r2, [r0]
	ldr	r3, [fp]
	tst	r2, r3
	bne	.L4
.L5:
	cmp	r8, #6
	mov	r7, r8
	bne	.L6
	cmp	r9, #4
	bgt	.L4
	ldr	r3, [sp, #40]
	and	r2, r5, #3
	ldr	r0, [r3, #4]
	rsbs	r1, r0, #0
	and	r1, r1, #3
	and	r3, r0, #3
	rsbpl	r3, r1, #0
	cmp	r2, r3
	bhi	.L4
	cmp	r0, r5
	movcc	r0, #0
	movcs	r0, #1
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r0, #1
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	.align	2
.L23:
	.word	NL80211_BAND_60GHZ
	.word	IEEE80211_CHAN_DISABLED
	.size	cfg80211_edmg_usable, .-cfg80211_edmg_usable
	.comm	NL80211_BAND_60GHZ,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
