	.file	"extr_util.c_ieee80211_get_ratemask.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ieee80211_get_ratemask
	.type	ieee80211_get_ratemask, @function
ieee80211_get_ratemask:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L4
	test	edx, edx
	je	.L4
	cmp	DWORD PTR NL80211_MAX_SUPP_RATES[rip], edx
	jb	.L4
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	eax, -1[rdx]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r13, 4[rsi+rax*4]
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	DWORD PTR [rcx], 0
.L7:
	mov	eax, DWORD PTR [rbx]
	and	eax, 127
	lea	edx, [rax+rax*4]
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L5
	mov	r8, QWORD PTR 8[rbp]
	lea	r9d, -1[rax]
	xor	edi, edi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rax, 1[rdi]
	cmp	r9, rdi
	je	.L5
	mov	rdi, rax
.L8:
	cmp	DWORD PTR [r8+rdi*4], edx
	jne	.L6
	call	BIT@PLT
	add	rbx, 4
	or	DWORD PTR [r12], eax
	cmp	rbx, r13
	jne	.L7
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ieee80211_get_ratemask, .-ieee80211_get_ratemask
	.comm	NL80211_MAX_SUPP_RATES,4,4
	.comm	EINVAL,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_util.c_ieee80211_get_ratemask.c"
	.text
	.align	2
	.global	ieee80211_get_ratemask
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee80211_get_ratemask, %function
ieee80211_get_ratemask:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	beq	.L5
	cmp	r2, #0
	mov	r6, r2
	beq	.L5
	mov	r7, r3
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, r2
	bcc	.L5
	mov	r3, #0
	mov	r8, r3
	sub	r5, r1, #4
	str	r3, [r7]
.L7:
	ldr	lr, [r5, #4]!
	ldr	r3, [r4]
	and	lr, lr, #127
	cmp	r3, #0
	add	lr, lr, lr, lsl #2
	ble	.L5
	ldr	r1, [r4, #4]
	mov	r0, #0
	sub	r1, r1, #4
	b	.L8
.L6:
	add	r0, r0, #1
	cmp	r0, r3
	beq	.L5
.L8:
	ldr	ip, [r1, #4]!
	cmp	ip, lr
	bne	.L6
	bl	BIT
	ldr	r3, [r7]
	add	r8, r8, #1
	orr	r3, r3, r0
	cmp	r6, r8
	str	r3, [r7]
	bne	.L7
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L16+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	NL80211_MAX_SUPP_RATES
	.word	EINVAL
	.size	ieee80211_get_ratemask, .-ieee80211_get_ratemask
	.comm	NL80211_MAX_SUPP_RATES,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
