	.file	"extr_ioctl.c_usbdrvwext_giwrange.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	usbdrvwext_giwrange
	.type	usbdrvwext_giwrange, @function
usbdrvwext_giwrange:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 264
	.cfi_def_cfa_offset 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 248[rsp], rax
	xor	eax, eax
	call	netif_running@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rsi, QWORD PTR 248[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L11
	add	rsp, 264
	.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
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR IW_TXPOW_DBM[rip]
	mov	QWORD PTR 96[r15], 0
	mov	rbx, rsp
	mov	rdi, rbp
	mov	rsi, rbx
	mov	DWORD PTR 124[r15], eax
	mov	eax, DWORD PTR WIRELESS_EXT[rip]
	mov	DWORD PTR 120[r15], eax
	mov	rax, QWORD PTR IW_RETRY_LIMIT[rip]
	mov	QWORD PTR 112[r15], rax
	mov	QWORD PTR 104[r15], rax
	movabs	rax, 1095216660493
	mov	QWORD PTR [r15], rax
	call	zfiWlanQueryAllowChannels@PLT
	cmp	DWORD PTR IW_MAX_FREQUENCIES[rip], eax
	cmovle	eax, DWORD PTR IW_MAX_FREQUENCIES[rip]
	mov	r13d, eax
	test	eax, eax
	jle	.L6
	lea	edx, -1[r13]
	mov	rax, QWORD PTR 88[r15]
	xor	r12d, r12d
	lea	r14, 4[rsp+rdx*4]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR [rbx]
	lea	rbp, [rax+r12]
	add	rbx, 4
	call	usbdrv_freq2chan@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	rax, QWORD PTR 88[r15]
	mov	ecx, DWORD PTR -4[rbx]
	lea	rdx, [rax+r12]
	add	r12, 12
	mov	DWORD PTR 4[rdx], ecx
	mov	DWORD PTR 8[rdx], 6
	cmp	rbx, r14
	jne	.L5
.L6:
	movabs	rax, 661424963684
	mov	DWORD PTR 8[r15], r13d
	movabs	rsi, 55834574853
	mov	QWORD PTR 72[r15], rax
	movabs	rax, 10080288243715
	mov	QWORD PTR 16[r15], rax
	movabs	rax, 10075993276672
	mov	QWORD PTR 24[r15], rax
	movabs	rax, 8589934596
	mov	QWORD PTR 32[r15], rax
	mov	rax, QWORD PTR 40[r15]
	mov	DWORD PTR 12[r15], r13d
	mov	QWORD PTR 64[r15], 0
	mov	DWORD PTR 80[r15], 154
	mov	QWORD PTR [rax], rsi
	xor	eax, eax
	mov	QWORD PTR 56[r15], 0
	mov	DWORD PTR 48[r15], 300000000
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	usbdrvwext_giwrange, .-usbdrvwext_giwrange
	.comm	num_band_a,4,4
	.comm	channel_frequency_11A,8,8
	.comm	WIRELESS_EXT,4,4
	.comm	IW_TXPOW_DBM,4,4
	.comm	IW_RETRY_LIMIT,8,8
	.comm	IW_MAX_FREQUENCIES,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_ioctl.c_usbdrvwext_giwrange.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	usbdrvwext_giwrange
	.syntax unified
	.arm
	.fpu softvfp
	.type	usbdrvwext_giwrange, %function
usbdrvwext_giwrange:
	@ args = 0, pretend = 0, frame = 248
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r3
	ldr	r3, .L12
	sub	sp, sp, #248
	ldr	r3, [r3]
	str	r3, [sp, #244]
	mov	r3,#0
	mov	r6, r0
	bl	netif_running
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L12+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #244]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #248
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r1, #13
	mov	r4, #0
	mov	r2, #255
	ldr	r3, .L12+8
	ldr	r0, .L12+12
	ldr	ip, [r3]
	ldr	r3, .L12+16
	ldr	lr, [r0]
	ldr	r3, [r3]
	mov	r0, r6
	str	r3, [r5, #80]
	str	r3, [r5, #76]
	str	r1, [r5]
	str	lr, [r5, #88]
	str	ip, [r5, #84]
	str	r4, [r5, #72]
	str	r2, [r5, #4]
	add	r1, sp, #4
	bl	zfiWlanQueryAllowChannels
	ldr	r3, .L12+20
	ldr	r3, [r3]
	cmp	r0, r3
	movlt	r10, r0
	movge	r10, r3
	cmp	r10, r4
	ble	.L6
	mov	r9, #6
	mov	r6, sp
	add	r8, r10, r10, lsl #1
	ldr	r7, [r5, #68]
	lsl	r8, r8, #2
.L5:
	ldr	r0, [r6, #4]!
	bl	usbdrv_freq2chan
	str	r0, [r7, r4]
	ldr	r7, [r5, #68]
	ldr	r2, [r6]
	add	r3, r7, r4
	add	r4, r4, #12
	cmp	r4, r8
	stmib	r3, {r2, r9}
	bne	.L5
.L6:
	mov	r2, #154
	mov	r1, #2
	mov	r3, #0
	mov	r0, #13
	mov	r7, #100
	mov	r6, #3
	mov	r4, #256
	mov	lr, #4
	mov	ip, #5
	str	r2, [r5, #60]
	str	r2, [r5, #64]
	str	r1, [r5, #36]
	ldr	r2, .L12+24
	ldr	r1, .L12+28
	str	r2, [r5, #20]
	str	r1, [r5, #28]
	ldr	r2, [r5, #40]
	ldr	r1, .L12+32
	str	r10, [r5, #8]
	str	r10, [r5, #12]
	str	r7, [r5, #56]
	str	r6, [r5, #16]
	str	r3, [r5, #52]
	str	r4, [r5, #24]
	str	lr, [r5, #32]
	str	r0, [r2, #4]
	str	ip, [r2]
	mov	r0, r3
	str	r3, [r5, #48]
	str	r1, [r5, #44]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	EINVAL
	.word	WIRELESS_EXT
	.word	IW_TXPOW_DBM
	.word	IW_RETRY_LIMIT
	.word	IW_MAX_FREQUENCIES
	.word	2347
	.word	2346
	.word	300000000
	.size	usbdrvwext_giwrange, .-usbdrvwext_giwrange
	.comm	num_band_a,4,4
	.comm	channel_frequency_11A,4,4
	.comm	WIRELESS_EXT,4,4
	.comm	IW_TXPOW_DBM,4,4
	.comm	IW_RETRY_LIMIT,4,4
	.comm	IW_MAX_FREQUENCIES,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
