	.file	"extr_mlme.c_chandef_downgrade.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	chandef_downgrade, @function
chandef_downgrade:
.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, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	add	eax, -128
	cmp	eax, 5
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L2-.L4
	.long	.L11-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, 1
	call	WARN_ON_ONCE@PLT
.L11:
	mov	DWORD PTR 0[rbp], 131
	mov	r12d, DWORD PTR IEEE80211_STA_DISABLE_HT[rip]
	or	r12d, DWORD PTR IEEE80211_STA_DISABLE_VHT[rip]
.L9:
	mov	rdi, rbp
	call	cfg80211_chandef_valid@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	WARN_ON_ONCE@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rdi]
	mov	r12d, DWORD PTR IEEE80211_STA_DISABLE_40MHZ[rip]
	mov	DWORD PTR [rdi], 132
	or	r12d, DWORD PTR IEEE80211_STA_DISABLE_VHT[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 4[rdi], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[rdi]
	mov	ecx, DWORD PTR 4[rdi]
	mov	r12d, DWORD PTR IEEE80211_STA_DISABLE_80P80MHZ[rip]
	or	r12d, DWORD PTR IEEE80211_STA_DISABLE_160MHZ[rip]
	mov	edx, DWORD PTR [rax]
	mov	DWORD PTR [rdi], 129
	add	edx, 70
	sub	edx, ecx
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1717986919
	sar	rax, 37
	sub	eax, edx
	lea	eax, [rax+rax*4]
	sal	eax, 4
	lea	eax, -40[rcx+rax]
	mov	DWORD PTR 4[rdi], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r12d, DWORD PTR IEEE80211_STA_DISABLE_80P80MHZ[rip]
	mov	DWORD PTR 16[rdi], 0
	mov	DWORD PTR [rdi], 129
	or	r12d, DWORD PTR IEEE80211_STA_DISABLE_160MHZ[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[rdi]
	mov	ecx, DWORD PTR 4[rdi]
	mov	r12d, DWORD PTR IEEE80211_STA_DISABLE_VHT[rip]
	mov	edx, DWORD PTR [rax]
	mov	DWORD PTR [rdi], 130
	add	edx, 30
	sub	edx, ecx
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1717986919
	sar	rax, 36
	sub	eax, edx
	lea	eax, [rax+rax*4]
	lea	eax, -20[rcx+rax*8]
	mov	DWORD PTR 4[rdi], eax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	chandef_downgrade, .-chandef_downgrade
	.comm	IEEE80211_STA_DISABLE_VHT,4,4
	.comm	IEEE80211_STA_DISABLE_HT,4,4
	.comm	IEEE80211_STA_DISABLE_80P80MHZ,4,4
	.comm	IEEE80211_STA_DISABLE_40MHZ,4,4
	.comm	IEEE80211_STA_DISABLE_160MHZ,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_mlme.c_chandef_downgrade.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chandef_downgrade, %function
chandef_downgrade:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	sub	r3, r3, #128
	mov	r4, r0
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L2
	.word	.L11
	.word	.L3
.L2:
	mov	r0, #1
	bl	WARN_ON_ONCE
.L11:
	mov	r2, #131
	ldr	r1, .L13
	ldr	r3, .L13+4
	ldr	r5, [r1]
	ldr	r3, [r3]
	str	r2, [r4]
	orr	r5, r5, r3
.L9:
	mov	r0, r4
	bl	cfg80211_chandef_valid
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON_ONCE
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L6:
	mov	r3, #132
	ldr	r1, [r0, #8]
	ldr	r2, .L13+4
	ldr	r0, .L13+8
	ldr	r1, [r1]
	ldr	r5, [r0]
	ldr	r2, [r2]
	str	r1, [r4, #4]
	orr	r5, r5, r2
	str	r3, [r4]
	b	.L9
.L3:
	mov	r0, #129
	ldmib	r4, {r1, r3}
	ldr	r2, [r3]
	ldr	r3, .L13+12
	add	r2, r2, #70
	sub	r2, r2, r1
	smull	ip, r3, r2, r3
	asr	r2, r2, #31
	rsb	r3, r2, r3, asr #5
	ldr	ip, .L13+16
	ldr	r2, .L13+20
	ldr	r5, [ip]
	ldr	r2, [r2]
	sub	r1, r1, #40
	add	r3, r3, r3, lsl #2
	add	r3, r1, r3, lsl #4
	str	r3, [r4, #4]
	orr	r5, r5, r2
	str	r0, [r4]
	b	.L9
.L8:
	mov	r1, #0
	mov	r3, #129
	ldr	r0, .L13+16
	ldr	r2, .L13+20
	ldr	r5, [r0]
	ldr	r2, [r2]
	str	r1, [r4, #12]
	orr	r5, r5, r2
	str	r3, [r4]
	b	.L9
.L7:
	mov	r0, #130
	ldmib	r4, {r1, r3}
	ldr	r2, [r3]
	ldr	r3, .L13+12
	add	r2, r2, #30
	sub	r2, r2, r1
	smull	ip, r3, r2, r3
	asr	r2, r2, #31
	rsb	r3, r2, r3, asr #4
	sub	r1, r1, #20
	ldr	r2, .L13+4
	add	r3, r3, r3, lsl #2
	add	r3, r1, r3, lsl #3
	stm	r4, {r0, r3}
	ldr	r5, [r2]
	b	.L9
.L14:
	.align	2
.L13:
	.word	IEEE80211_STA_DISABLE_HT
	.word	IEEE80211_STA_DISABLE_VHT
	.word	IEEE80211_STA_DISABLE_40MHZ
	.word	1717986919
	.word	IEEE80211_STA_DISABLE_80P80MHZ
	.word	IEEE80211_STA_DISABLE_160MHZ
	.size	chandef_downgrade, .-chandef_downgrade
	.comm	IEEE80211_STA_DISABLE_VHT,4,4
	.comm	IEEE80211_STA_DISABLE_HT,4,4
	.comm	IEEE80211_STA_DISABLE_80P80MHZ,4,4
	.comm	IEEE80211_STA_DISABLE_40MHZ,4,4
	.comm	IEEE80211_STA_DISABLE_160MHZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
