	.file	"extr_util.c_ieee80211_sta_def_wmm_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ieee80211_sta_def_wmm_params
	.type	ieee80211_sta_def_wmm_params, @function
ieee80211_sta_def_wmm_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rsi, rsi
	je	.L2
	lea	rsi, [rdx+rsi*4]
	xor	ebx, ebx
	mov	ecx, 1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR [rdx]
	and	eax, 127
	lea	eax, [rax+rax*4]
	cmp	eax, 111
	cmovge	ebx, ecx
	add	rdx, 4
	cmp	rsi, rdx
	jne	.L4
	xor	eax, eax
	call	rcu_read_lock@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	rcu_dereference@PLT
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR IEEE80211_BAND_2GHZ[rip]
	cmp	QWORD PTR [rax], rdi
	jne	.L5
	and	ebx, 1
	jne	.L19
.L5:
	mov	eax, DWORD PTR IEEE80211_SDATA_OPERATING_GMODE[rip]
	not	eax
	and	eax, DWORD PTR 0[rbp]
.L6:
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
	call	rcu_read_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	ieee80211_set_wmm_default@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	or	eax, DWORD PTR IEEE80211_SDATA_OPERATING_GMODE[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
	call	rcu_read_lock@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	rcu_dereference@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ieee80211_sta_def_wmm_params, .-ieee80211_sta_def_wmm_params
	.comm	IEEE80211_SDATA_OPERATING_GMODE,4,4
	.comm	IEEE80211_BAND_2GHZ,8,8
	.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_util.c_ieee80211_sta_def_wmm_params.c"
	.text
	.align	2
	.global	ieee80211_sta_def_wmm_params
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee80211_sta_def_wmm_params, %function
ieee80211_sta_def_wmm_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	beq	.L2
	mov	r4, #0
	sub	r2, r2, #4
	add	r1, r2, r1, lsl #2
.L4:
	ldr	r3, [r2, #4]!
	and	r3, r3, #127
	add	r3, r3, r3, lsl #2
	cmp	r3, #111
	movge	r4, #1
	cmp	r2, r1
	bne	.L4
	bl	rcu_read_lock
	ldr	r0, [r5, #4]
	bl	rcu_dereference
	cmp	r0, #0
	beq	.L5
	ldr	r2, [r0]
	ldr	r3, .L17
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r4, #0
	andeq	r4, r4, #1
	cmp	r4, #0
	bne	.L16
.L5:
	ldr	r2, .L17+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	bic	r3, r3, r2
.L6:
	str	r3, [r5]
	bl	rcu_read_unlock
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	mov	r1, #1
	b	ieee80211_set_wmm_default
.L16:
	ldr	r2, .L17+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r2
	b	.L6
.L2:
	bl	rcu_read_lock
	ldr	r0, [r5, #4]
	bl	rcu_dereference
	b	.L5
.L18:
	.align	2
.L17:
	.word	IEEE80211_BAND_2GHZ
	.word	IEEE80211_SDATA_OPERATING_GMODE
	.size	ieee80211_sta_def_wmm_params, .-ieee80211_sta_def_wmm_params
	.comm	IEEE80211_SDATA_OPERATING_GMODE,4,4
	.comm	IEEE80211_BAND_2GHZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
