	.file	"extr_p80211wext.c_p80211wext_giwfreq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	p80211wext_giwfreq, @function
p80211wext_giwfreq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	mov	edx, 16
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	r12, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR DIDmsg_dot11req_mibget[rip]
	lea	rbp, 16[rsp]
	mov	r13, rsp
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR DIDmib_dot11phy_dot11PhyDSSSTable_dot11CurrentChannel[rip]
	mov	DWORD PTR 8[rsp], eax
	call	memcpy@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	p80211req_dorequest@PLT
	test	eax, eax
	je	.L2
.L7:
	mov	r12d, DWORD PTR EFAULT[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r13
	mov	edx, 16
	mov	rsi, rbp
	mov	r12d, eax
	call	memcpy@PLT
	mov	rdi, QWORD PTR [rsp]
	cmp	rdi, QWORD PTR NUM_CHANNELS[rip]
	jg	.L7
.L3:
	endbr64
	mov	DWORD PTR [rbx], 1
	xor	esi, esi
	call	p80211_channel_to_mhz@PLT
	imul	eax, eax, 100000
	mov	DWORD PTR 4[rbx], eax
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	p80211wext_giwfreq, .-p80211wext_giwfreq
	.comm	NUM_CHANNELS,8,8
	.comm	EFAULT,4,4
	.comm	DIDmsg_dot11req_mibget,4,4
	.comm	DIDmib_dot11phy_dot11PhyDSSSTable_dot11CurrentChannel,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_p80211wext.c_p80211wext_giwfreq.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	p80211wext_giwfreq, %function
p80211wext_giwfreq:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, lr}
	ldr	ip, .L10
	ldr	r1, .L10+4
	sub	sp, sp, #20
	ldr	lr, [ip]
	mov	r5, r2
	ldr	ip, [r1]
	ldr	r2, .L10+8
	mov	r1, sp
	ldr	r0, [r0]
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	stm	sp, {r3, ip, lr}
	bl	p80211req_dorequest
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, .L10+12
	ldr	r0, [sp]
	ldr	r3, [r3]
	cmp	r3, r0
	bge	.L8
.L4:
	ldr	r3, .L10+16
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L10+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L8:
.L3:
	mov	r3, #1
	mov	r1, r4
	str	r3, [r5]
	bl	p80211_channel_to_mhz
	ldr	r3, .L10+20
	mul	r0, r3, r0
	str	r0, [r5, #4]
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	DIDmsg_dot11req_mibget
	.word	DIDmib_dot11phy_dot11PhyDSSSTable_dot11CurrentChannel
	.word	.LC0
	.word	NUM_CHANNELS
	.word	EFAULT
	.word	100000
	.size	p80211wext_giwfreq, .-p80211wext_giwfreq
	.comm	NUM_CHANNELS,4,4
	.comm	EFAULT,4,4
	.comm	DIDmsg_dot11req_mibget,4,4
	.comm	DIDmib_dot11phy_dot11PhyDSSSTable_dot11CurrentChannel,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
