	.file	"extr_ioctl_linux.c_rtw_wx_get_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtw_wx_get_range, @function
rtw_wx_get_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	rtw_netdev_priv@PLT
	movsx	rdx, DWORD PTR [r12]
	mov	esi, DWORD PTR _drv_info_[rip]
	mov	edi, DWORD PTR _module_rtl871x_mlme_c_[rip]
	mov	r14, rax
	call	RT_TRACE@PLT
	mov	DWORD PTR [rbx], 120
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, 120
	call	memset@PLT
	mov	edx, DWORD PTR RATE_COUNT[rip]
	movabs	rax, 429496729700
	mov	DWORD PTR 0[rbp], 5000000
	mov	QWORD PTR 104[rbp], rax
	mov	rsi, QWORD PTR rtw_rates[rip]
	movabs	rax, 30064771172
	mov	QWORD PTR 112[rbp], rax
	movabs	rax, 764504178780
	mov	QWORD PTR 80[rbp], rax
	xor	eax, eax
	mov	QWORD PTR 96[rbp], 0
	mov	DWORD PTR 88[rbp], 7
	mov	DWORD PTR 4[rbp], edx
	test	edx, edx
	jg	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR [rsi+rax*4]
	mov	rdx, QWORD PTR 72[rbp]
	mov	DWORD PTR [rdx+rax*4], ecx
	add	rax, 1
	cmp	DWORD PTR RATE_COUNT[rip], eax
	jle	.L6
.L5:
	cmp	DWORD PTR IW_MAX_BITRATES[rip], eax
	jg	.L7
.L6:
	mov	eax, DWORD PTR MIN_FRAG_THRESHOLD[rip]
	mov	QWORD PTR 56[rbp], 0
	xor	ebx, ebx
	xor	r12d, r12d
	mov	DWORD PTR 8[rbp], 16
	mov	DWORD PTR 68[rbp], eax
	mov	eax, DWORD PTR MAX_FRAG_THRESHOLD[rip]
	mov	DWORD PTR 64[rbp], eax
	mov	eax, DWORD PTR WIRELESS_EXT[rip]
	mov	DWORD PTR 48[rbp], eax
	mov	eax, DWORD PTR MAX_CHANNEL_NUM[rip]
	test	eax, eax
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	QWORD PTR IW_MAX_FREQUENCIES[rip], r12
	je	.L4
.L19:
	add	rbx, 1
	cmp	DWORD PTR MAX_CHANNEL_NUM[rip], ebx
	jle	.L4
.L3:
	mov	rax, QWORD PTR [r14]
	mov	rdi, QWORD PTR [rax+rbx*8]
	test	rdi, rdi
	je	.L8
	mov	rax, QWORD PTR 40[rbp]
	mov	r13, r12
	add	r12, 1
	sal	r13, 4
	mov	QWORD PTR [rax+r13], rdi
	call	rtw_ch2freq@PLT
	add	r13, QWORD PTR 40[rbp]
	imul	eax, eax, 100000
	cmp	QWORD PTR IW_MAX_FREQUENCIES[rip], r12
	mov	DWORD PTR 12[r13], 1
	mov	DWORD PTR 8[r13], eax
	jne	.L19
.L4:
	mov	eax, DWORD PTR IW_ENC_CAPA_WPA[rip]
	or	eax, DWORD PTR IW_ENC_CAPA_WPA2[rip]
	mov	QWORD PTR 16[rbp], r12
	or	eax, DWORD PTR IW_ENC_CAPA_CIPHER_TKIP[rip]
	or	eax, DWORD PTR IW_ENC_CAPA_CIPHER_CCMP[rip]
	mov	QWORD PTR 24[rbp], r12
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR IW_SCAN_CAPA_ESSID[rip]
	or	eax, DWORD PTR IW_SCAN_CAPA_TYPE[rip]
	or	eax, DWORD PTR IW_SCAN_CAPA_BSSID[rip]
	or	eax, DWORD PTR IW_SCAN_CAPA_CHANNEL[rip]
	or	eax, DWORD PTR IW_SCAN_CAPA_MODE[rip]
	or	eax, DWORD PTR IW_SCAN_CAPA_RATE[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	DWORD PTR 36[rbp], eax
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	eax, eax
	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	rtw_wx_get_range, .-rtw_wx_get_range
	.comm	rtw_rates,8,8
	.comm	_module_rtl871x_mlme_c_,4,4
	.comm	_drv_info_,4,4
	.comm	WIRELESS_EXT,4,4
	.comm	RATE_COUNT,4,4
	.comm	MIN_FRAG_THRESHOLD,4,4
	.comm	MAX_FRAG_THRESHOLD,4,4
	.comm	MAX_CHANNEL_NUM,4,4
	.comm	IW_SCAN_CAPA_TYPE,4,4
	.comm	IW_SCAN_CAPA_RATE,4,4
	.comm	IW_SCAN_CAPA_MODE,4,4
	.comm	IW_SCAN_CAPA_ESSID,4,4
	.comm	IW_SCAN_CAPA_CHANNEL,4,4
	.comm	IW_SCAN_CAPA_BSSID,4,4
	.comm	IW_MAX_FREQUENCIES,8,8
	.comm	IW_MAX_BITRATES,4,4
	.comm	IW_ENC_CAPA_WPA2,4,4
	.comm	IW_ENC_CAPA_WPA,4,4
	.comm	IW_ENC_CAPA_CIPHER_TKIP,4,4
	.comm	IW_ENC_CAPA_CIPHER_CCMP,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_ioctl_linux.c_rtw_wx_get_range.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtw_wx_get_range, %function
rtw_wx_get_range:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	mov	r6, r1
	mov	r4, r2
	bl	rtw_netdev_priv
	ldr	r3, .L17
	ldr	r1, .L17+4
	ldr	r2, [r6]
	ldr	r1, [r1]
	mov	r7, r0
	ldr	r0, [r3]
	bl	RT_TRACE
	mov	r3, #84
	mov	r2, #76
	mov	r1, #0
	str	r3, [r4]
	add	r0, r5, #8
	bl	memset
	mov	r2, #92
	mov	r3, #100
	mov	r1, #7
	mov	r0, #178
	ldr	ip, .L17+8
	str	r2, [r5, #52]
	ldr	r2, [ip]
	ldr	lr, .L17+12
	cmp	r2, #0
	str	lr, [r5]
	str	r0, [r5, #56]
	str	r3, [r5, #68]
	str	r3, [r5, #72]
	str	r3, [r5, #76]
	str	r1, [r5, #80]
	str	r1, [r5, #60]
	str	r2, [r5, #4]
	ble	.L6
	ldr	r3, .L17+16
	mov	r2, #0
	ldr	r3, [r3]
	ldr	lr, .L17+20
	sub	r3, r3, #4
	b	.L5
.L7:
	ldr	r1, [r3, #4]!
	str	r1, [r0]
	ldr	r1, [ip]
	cmp	r1, r2
	ble	.L6
.L5:
	ldr	r1, [lr]
	lsl	r0, r2, #2
	cmp	r1, r2
	add	r2, r2, #1
	bgt	.L7
.L6:
	mov	r4, #0
	mov	r3, #16
	ldr	r10, .L17+24
	ldr	r1, .L17+28
	ldr	r2, [r10]
	ldr	r0, [r1]
	cmp	r2, r4
	ldr	r1, .L17+32
	ldr	r2, .L17+36
	ldr	r1, [r1]
	ldr	r2, [r2]
	movle	r6, r4
	str	r0, [r5, #44]
	str	r1, [r5, #40]
	str	r2, [r5, #32]
	str	r4, [r5, #36]
	str	r3, [r5, #8]
	ble	.L4
	mov	r9, #1
	mov	r6, r4
	ldr	fp, .L17+40
	b	.L3
.L8:
	ldr	r3, [fp]
	cmp	r3, r6
	beq	.L4
.L16:
	ldr	r3, [r10]
	cmp	r3, r4
	ble	.L4
.L3:
	ldr	r3, [r7]
	ldr	r0, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r0, #0
	beq	.L8
	ldr	r2, [r5, #28]
	add	r3, r6, r6, lsl #1
	str	r0, [r2, r3, lsl #2]
	lsl	r8, r3, #2
	bl	rtw_ch2freq
	ldr	r3, .L17+44
	add	r6, r6, #1
	mul	r3, r0, r3
	mov	r0, r3
	ldr	r3, [r5, #28]
	add	r3, r3, r8
	stmib	r3, {r0, r9}
	ldr	r3, [fp]
	cmp	r3, r6
	bne	.L16
.L4:
	ldr	r3, .L17+48
	ldr	r2, .L17+52
	ldr	r1, .L17+56
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	ip, .L17+60
	orr	r3, r3, r1
	ldr	r2, .L17+64
	ldr	r0, .L17+68
	ldr	r1, .L17+72
	ldr	ip, [ip]
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, ip
	ldr	ip, .L17+76
	orr	r2, r2, r0
	orr	r3, r3, r1
	ldr	r0, .L17+80
	ldr	r1, .L17+84
	ldr	ip, [ip]
	ldr	r0, [r0]
	ldr	r1, [r1]
	orr	r2, r2, ip
	orr	r3, r3, r0
	orr	r2, r2, r1
	mov	r0, #0
	str	r6, [r5, #12]
	str	r6, [r5, #16]
	str	r3, [r5, #24]
	str	r2, [r5, #20]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	_module_rtl871x_mlme_c_
	.word	_drv_info_
	.word	RATE_COUNT
	.word	5000000
	.word	rtw_rates
	.word	IW_MAX_BITRATES
	.word	MAX_CHANNEL_NUM
	.word	MIN_FRAG_THRESHOLD
	.word	MAX_FRAG_THRESHOLD
	.word	WIRELESS_EXT
	.word	IW_MAX_FREQUENCIES
	.word	100000
	.word	IW_SCAN_CAPA_ESSID
	.word	IW_SCAN_CAPA_TYPE
	.word	IW_SCAN_CAPA_BSSID
	.word	IW_SCAN_CAPA_CHANNEL
	.word	IW_ENC_CAPA_WPA
	.word	IW_ENC_CAPA_WPA2
	.word	IW_SCAN_CAPA_MODE
	.word	IW_ENC_CAPA_CIPHER_TKIP
	.word	IW_SCAN_CAPA_RATE
	.word	IW_ENC_CAPA_CIPHER_CCMP
	.size	rtw_wx_get_range, .-rtw_wx_get_range
	.comm	rtw_rates,4,4
	.comm	_module_rtl871x_mlme_c_,4,4
	.comm	_drv_info_,4,4
	.comm	WIRELESS_EXT,4,4
	.comm	RATE_COUNT,4,4
	.comm	MIN_FRAG_THRESHOLD,4,4
	.comm	MAX_FRAG_THRESHOLD,4,4
	.comm	MAX_CHANNEL_NUM,4,4
	.comm	IW_SCAN_CAPA_TYPE,4,4
	.comm	IW_SCAN_CAPA_RATE,4,4
	.comm	IW_SCAN_CAPA_MODE,4,4
	.comm	IW_SCAN_CAPA_ESSID,4,4
	.comm	IW_SCAN_CAPA_CHANNEL,4,4
	.comm	IW_SCAN_CAPA_BSSID,4,4
	.comm	IW_MAX_FREQUENCIES,4,4
	.comm	IW_MAX_BITRATES,4,4
	.comm	IW_ENC_CAPA_WPA2,4,4
	.comm	IW_ENC_CAPA_WPA,4,4
	.comm	IW_ENC_CAPA_CIPHER_TKIP,4,4
	.comm	IW_ENC_CAPA_CIPHER_CCMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
