	.file	"extr_wilc_hif.c_wilc_parse_join_bss_param.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	wilc_parse_join_bss_param
	.type	wilc_parse_join_bss_param, @function
wilc_parse_join_bss_param:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	rcu_dereference@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 160
	mov	rbx, rax
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR 20[rbp]
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	QWORD PTR 152[r12], rax
	call	cpu_to_le16@PLT
	mov	QWORD PTR 144[r12], rax
	mov	eax, DWORD PTR WILC_FW_BSS_TYPE_INFRA[rip]
	mov	DWORD PTR 136[r12], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax]
	call	ieee80211_frequency_to_channel@PLT
	mov	edi, DWORD PTR 128[r12]
	mov	esi, DWORD PTR 0[rbp]
	mov	DWORD PTR 132[r12], eax
	call	ether_addr_copy@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR WLAN_EID_SSID[rip]
	call	cfg80211_find_ie@PLT
	test	rax, rax
	je	.L3
	mov	rdx, QWORD PTR 8[rax]
	cmp	rdx, QWORD PTR IEEE80211_MAX_SSID_LEN[rip]
	jle	.L61
.L3:
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR WLAN_EID_TIM[rip]
	call	cfg80211_find_ie@PLT
	test	rax, rax
	je	.L4
	cmp	QWORD PTR 8[rax], 1
	jle	.L4
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR 8[r12], rax
.L4:
	mov	rdi, QWORD PTR 16[r12]
	mov	edx, 3
	mov	esi, 255
	xor	ebp, ebp
	call	memset@PLT
	mov	rdi, QWORD PTR 24[r12]
	mov	edx, 3
	mov	esi, 255
	call	memset@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR WLAN_EID_SUPP_RATES[rip]
	call	cfg80211_find_ie@PLT
	test	rax, rax
	je	.L5
	mov	rbp, QWORD PTR 8[rax]
	mov	rdi, QWORD PTR 32[r12]
	lea	rsi, 16[rax]
	mov	QWORD PTR [rdi], rbp
	mov	rdx, rbp
	add	rdi, 8
	call	memcpy@PLT
.L5:
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR WLAN_EID_EXT_SUPP_RATES[rip]
	call	cfg80211_find_ie@PLT
	test	rax, rax
	je	.L6
	mov	rdi, QWORD PTR WILC_MAX_RATES_SUPPORTED[rip]
	mov	rsi, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR 32[r12]
	mov	rdx, rdi
	sub	rdx, rbp
	cmp	rsi, rdx
	jg	.L62
	add	rsi, QWORD PTR [rcx]
	mov	QWORD PTR [rcx], rsi
	mov	rdx, rsi
	sub	rdx, rbp
.L8:
	lea	rsi, 16[rax]
	lea	rdi, 8[rcx+rbp*8]
	call	memcpy@PLT
.L6:
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR WLAN_EID_HT_CAPABILITY[rip]
	call	cfg80211_find_ie@PLT
	test	rax, rax
	je	.L9
	mov	DWORD PTR 40[r12], 1
.L9:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	rcx, rsp
	mov	r8d, 24
	mov	edx, DWORD PTR IEEE80211_P2P_ATTR_ABSENCE_NOTICE[rip]
	call	cfg80211_get_p2p_attr@PLT
	test	eax, eax
	jg	.L63
.L10:
	mov	edx, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	esi, DWORD PTR WLAN_OUI_TYPE_MICROSOFT_WMM[rip]
	mov	edi, DWORD PTR WLAN_OUI_MICROSOFT[rip]
	call	cfg80211_find_vendor_ie@PLT
	test	rax, rax
	je	.L13
	cmp	DWORD PTR [rax], 1
	jbe	.L64
.L13:
	mov	edx, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	esi, DWORD PTR WLAN_OUI_TYPE_MICROSOFT_WPA[rip]
	mov	edi, DWORD PTR WLAN_OUI_MICROSOFT[rip]
	call	cfg80211_find_vendor_ie@PLT
	test	rax, rax
	je	.L15
	movabs	rax, 4294967297
	mov	QWORD PTR 60[r12], rax
.L15:
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR WLAN_EID_RSN[rip]
	call	cfg80211_find_ie@PLT
	test	rax, rax
	je	.L16
	movabs	rcx, 4294967298
	mov	rdi, QWORD PTR 72[r12]
	mov	QWORD PTR 60[r12], rcx
	mov	ecx, DWORD PTR 64[rax]
	lea	edx, 0[0+rcx*4]
	lea	ecx, 10[rdx]
	movsx	rcx, ecx
	mov	rcx, QWORD PTR [rax+rcx*8]
	lea	edx, 12[rdx+rcx*4]
	movsx	rdx, edx
	lea	rsi, [rax+rdx*8]
	mov	edx, 2
	call	memcpy@PLT
.L16:
	mov	ecx, DWORD PTR 64[r12]
	test	ecx, ecx
	je	.L1
	movzx	eax, BYTE PTR 0[r13]
	mov	edx, DWORD PTR 4[r13]
	mov	DWORD PTR 80[r12], eax
	test	edx, edx
	jle	.L21
	mov	rsi, QWORD PTR 8[r13]
	mov	rcx, QWORD PTR 16[r12]
	mov	eax, 1
.L19:
	movzx	edx, BYTE PTR -4[rsi+rax*4]
	mov	DWORD PTR -4[rcx+rax*4], edx
	mov	edx, eax
	add	rax, 1
	cmp	DWORD PTR 4[r13], edx
	jle	.L21
	cmp	edx, 3
	jne	.L19
.L21:
	mov	eax, DWORD PTR 16[r13]
	test	eax, eax
	jle	.L1
	mov	rsi, QWORD PTR 24[r13]
	mov	rcx, QWORD PTR 24[r12]
	mov	eax, 1
.L22:
	movzx	edx, BYTE PTR -4[rsi+rax*4]
	mov	DWORD PTR -4[rcx+rax*4], edx
	mov	edx, eax
	add	rax, 1
	cmp	DWORD PTR 16[r13], edx
	jle	.L1
	cmp	edx, 3
	jne	.L22
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L65
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L63:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	call	cpu_to_le32@PLT
	mov	DWORD PTR 44[r12], 1
	mov	DWORD PTR 124[r12], eax
	mov	eax, DWORD PTR 16[rsp]
	mov	DWORD PTR 120[r12], eax
	mov	eax, DWORD PTR [rsp]
	test	DWORD PTR IEEE80211_P2P_OPPPS_ENABLE_BIT[rip], eax
	je	.L11
	mov	DWORD PTR 100[r12], eax
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 48[r12], 1
	mov	edx, DWORD PTR 12[rax]
	mov	DWORD PTR 116[r12], edx
	mov	edx, DWORD PTR 8[rax]
	mov	DWORD PTR 112[r12], edx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 108[r12], edx
	mov	DWORD PTR 104[r12], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L62:
	mov	QWORD PTR [rcx], rdi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L64:
	cmp	DWORD PTR 4[rax], 1
	jne	.L13
	mov	DWORD PTR 52[r12], 1
	mov	ebp, DWORD PTR 8[rax]
	mov	edi, 7
	call	BIT@PLT
	test	ebp, eax
	je	.L13
	mov	DWORD PTR 56[r12], 1
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L61:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, 16[rax]
	call	memcpy@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR 48[r12], 0
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 12[rax]
	mov	DWORD PTR 96[r12], edx
	mov	edx, DWORD PTR 8[rax]
	mov	DWORD PTR 92[r12], edx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 88[r12], edx
	mov	DWORD PTR 84[r12], eax
	jmp	.L10
.L65:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wilc_parse_join_bss_param, .-wilc_parse_join_bss_param
	.comm	WLAN_OUI_TYPE_MICROSOFT_WPA,4,4
	.comm	WLAN_OUI_TYPE_MICROSOFT_WMM,4,4
	.comm	WLAN_OUI_MICROSOFT,4,4
	.comm	WLAN_EID_TIM,4,4
	.comm	WLAN_EID_SUPP_RATES,4,4
	.comm	WLAN_EID_SSID,4,4
	.comm	WLAN_EID_RSN,4,4
	.comm	WLAN_EID_HT_CAPABILITY,4,4
	.comm	WLAN_EID_EXT_SUPP_RATES,4,4
	.comm	WILC_MAX_RATES_SUPPORTED,8,8
	.comm	WILC_FW_BSS_TYPE_INFRA,4,4
	.comm	IEEE80211_P2P_OPPPS_ENABLE_BIT,4,4
	.comm	IEEE80211_P2P_ATTR_ABSENCE_NOTICE,4,4
	.comm	IEEE80211_MAX_SSID_LEN,8,8
	.comm	GFP_KERNEL,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_wilc_hif.c_wilc_parse_join_bss_param.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wilc_parse_join_bss_param
	.syntax unified
	.arm
	.fpu softvfp
	.type	wilc_parse_join_bss_param, %function
wilc_parse_join_bss_param:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L59
	sub	sp, sp, #28
	mov	r6, r0
	ldr	r0, [r0, #16]
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	rcu_dereference
	ldr	r3, .L59+4
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, #120
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, [r6, #12]
	bl	cpu_to_le16
	mov	r3, r0
	ldr	r0, [r6, #8]
	str	r3, [r4, #116]
	bl	cpu_to_le16
	ldr	r2, .L59+8
	ldr	r3, [r6, #4]
	ldr	r2, [r2]
	str	r0, [r4, #112]
	str	r2, [r4, #108]
	ldr	r0, [r3]
	bl	ieee80211_frequency_to_channel
	ldr	r1, [r6]
	str	r0, [r4, #104]
	ldr	r0, [r4, #100]
	bl	ether_addr_copy
	ldr	r3, .L59+12
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r1, [r5, #4]
	bl	cfg80211_find_ie
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L59+16
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L55
.L3:
	ldr	r3, .L59+20
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r1, [r5, #4]
	bl	cfg80211_find_ie
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r0, #4]
	cmp	r3, #1
	ldrgt	r3, [r0, #12]
	strgt	r3, [r4, #4]
.L4:
	mov	r3, #255
	ldr	r2, [r4, #8]
	ldr	r0, .L59+24
	strb	r3, [r2]
	strb	r3, [r2, #1]
	strb	r3, [r2, #2]
	ldr	r2, [r4, #12]
	strb	r3, [r2]
	strb	r3, [r2, #1]
	strb	r3, [r2, #2]
	ldr	r1, [r5, #4]
	ldr	r2, [r5]
	ldr	r0, [r0]
	bl	cfg80211_find_ie
	subs	r1, r0, #0
	moveq	r6, r1
	beq	.L5
	ldr	r6, [r1, #4]
	ldr	r0, [r4, #16]
	mov	r2, r6
	add	r1, r1, #8
	str	r6, [r0], #4
	bl	memcpy
.L5:
	ldr	r3, .L59+28
	ldr	r1, [r5, #4]
	ldr	r2, [r5]
	ldr	r0, [r3]
	bl	cfg80211_find_ie
	subs	r1, r0, #0
	beq	.L6
	ldr	r2, .L59+32
	ldr	r3, [r1, #4]
	ldr	ip, [r2]
	ldr	r0, [r4, #16]
	sub	r2, ip, r6
	cmp	r3, r2
	ldrle	r2, [r0]
	strgt	ip, [r0]
	addle	r3, r3, r2
	suble	r2, r3, r6
	add	r6, r6, #1
	strle	r3, [r0]
	add	r1, r1, #8
	add	r0, r0, r6, lsl #2
	bl	memcpy
.L6:
	ldr	r3, .L59+36
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r1, [r5, #4]
	bl	cfg80211_find_ie
	cmp	r0, #0
	movne	r3, #1
	mov	r2, #12
	strne	r3, [r4, #20]
	ldr	r3, .L59+40
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	str	r2, [sp]
	ldr	r2, [r3]
	add	r3, sp, #8
	bl	cfg80211_get_p2p_attr
	cmp	r0, #0
	bgt	.L56
.L10:
	ldr	r3, .L59+44
	ldr	r6, .L59+48
	ldr	r1, [r3]
	ldr	r0, [r6]
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	bl	cfg80211_find_vendor_ie
	subs	r3, r0, #0
	beq	.L13
	ldr	r2, [r3]
	cmp	r2, #1
	bls	.L57
.L13:
	ldr	r3, .L59+52
	ldr	r2, [r5, #4]
	ldr	r1, [r3]
	ldr	r0, [r6]
	ldr	r3, [r5]
	bl	cfg80211_find_vendor_ie
	cmp	r0, #0
	movne	r3, #1
	strne	r3, [r4, #40]
	strne	r3, [r4, #44]
	ldr	r3, .L59+56
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r1, [r5, #4]
	bl	cfg80211_find_ie
	cmp	r0, #0
	beq	.L16
	mov	r2, #2
	mov	ip, #1
	ldr	r3, [r0, #32]
	str	r2, [r4, #40]
	lsl	r3, r3, r2
	add	r3, r3, #10
	ldr	r1, [r0, r3, lsl #2]
	str	ip, [r4, #44]
	add	r3, r3, r1, lsl r2
	add	r3, r3, r2
	add	r1, r0, r3, lsl r2
	ldr	r0, [r4, #48]
	bl	memcpy
.L16:
	ldr	r3, [r4, #44]
	cmp	r3, #0
	beq	.L1
	ldr	r2, [r7, #4]
	ldrb	r3, [r7]	@ zero_extendqisi2
	cmp	r2, #0
	str	r3, [r4, #52]
	ble	.L20
	mov	r3, #0
	ldr	r0, [r7, #8]
	ldr	r1, [r4, #8]
	sub	r0, r0, #4
	sub	r1, r1, #4
.L19:
	ldr	r2, [r0, #4]!
	add	r3, r3, #1
	and	r2, r2, #255
	str	r2, [r1, #4]!
	ldr	r2, [r7, #4]
	cmp	r3, #3
	cmpne	r2, r3
	bgt	.L19
.L20:
	ldr	r3, [r7, #12]
	cmp	r3, #0
	ble	.L1
	mov	r3, #0
	ldr	r0, [r7, #16]
	ldr	r1, [r4, #12]
	sub	r0, r0, #4
	sub	r1, r1, #4
.L21:
	ldr	r2, [r0, #4]!
	add	r3, r3, #1
	and	r2, r2, #255
	str	r2, [r1, #4]!
	ldr	r2, [r7, #12]
	cmp	r3, #3
	cmpne	r2, r3
	bgt	.L21
.L1:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L58
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L56:
	ldr	r0, [r5, #8]
	bl	cpu_to_le32
	mov	r1, #1
	ldr	r3, .L59+60
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	ldr	ip, [sp, #16]
	ands	r3, r2, r3
	str	r0, [r4, #96]
	str	r1, [r4, #24]
	str	ip, [r4, #92]
	beq	.L11
	ldr	r3, [sp, #12]
	str	r1, [r4, #28]
	ldr	r0, [r3, #12]
	ldr	r1, [r3, #8]
	str	r2, [r4, #72]
	ldr	r2, [r3, #4]
	ldr	r3, [r3]
	str	r0, [r4, #88]
	str	r1, [r4, #84]
	str	r2, [r4, #80]
	str	r3, [r4, #76]
	b	.L10
.L57:
	ldr	r8, [r3, #4]
	cmp	r8, #1
	bne	.L13
	mov	r0, #7
	str	r8, [r4, #32]
	ldr	r9, [r3, #8]
	bl	BIT
	tst	r9, r0
	strne	r8, [r4, #36]
	b	.L13
.L55:
	add	r1, r0, #8
	ldr	r0, [r4]
	bl	memcpy
	b	.L3
.L11:
	ldr	r2, [sp, #12]
	str	r3, [r4, #28]
	ldr	r3, [r2, #12]
	ldr	r0, [r2, #8]
	ldr	r1, [r2, #4]
	str	r3, [r4, #68]
	ldr	r3, [r2]
	str	r0, [r4, #64]
	str	r1, [r4, #60]
	str	r3, [r4, #56]
	b	.L10
.L58:
	bl	__stack_chk_fail
.L60:
	.align	2
.L59:
	.word	.LC0
	.word	GFP_KERNEL
	.word	WILC_FW_BSS_TYPE_INFRA
	.word	WLAN_EID_SSID
	.word	IEEE80211_MAX_SSID_LEN
	.word	WLAN_EID_TIM
	.word	WLAN_EID_SUPP_RATES
	.word	WLAN_EID_EXT_SUPP_RATES
	.word	WILC_MAX_RATES_SUPPORTED
	.word	WLAN_EID_HT_CAPABILITY
	.word	IEEE80211_P2P_ATTR_ABSENCE_NOTICE
	.word	WLAN_OUI_TYPE_MICROSOFT_WMM
	.word	WLAN_OUI_MICROSOFT
	.word	WLAN_OUI_TYPE_MICROSOFT_WPA
	.word	WLAN_EID_RSN
	.word	IEEE80211_P2P_OPPPS_ENABLE_BIT
	.size	wilc_parse_join_bss_param, .-wilc_parse_join_bss_param
	.comm	WLAN_OUI_TYPE_MICROSOFT_WPA,4,4
	.comm	WLAN_OUI_TYPE_MICROSOFT_WMM,4,4
	.comm	WLAN_OUI_MICROSOFT,4,4
	.comm	WLAN_EID_TIM,4,4
	.comm	WLAN_EID_SUPP_RATES,4,4
	.comm	WLAN_EID_SSID,4,4
	.comm	WLAN_EID_RSN,4,4
	.comm	WLAN_EID_HT_CAPABILITY,4,4
	.comm	WLAN_EID_EXT_SUPP_RATES,4,4
	.comm	WILC_MAX_RATES_SUPPORTED,4,4
	.comm	WILC_FW_BSS_TYPE_INFRA,4,4
	.comm	IEEE80211_P2P_OPPPS_ENABLE_BIT,4,4
	.comm	IEEE80211_P2P_ATTR_ABSENCE_NOTICE,4,4
	.comm	IEEE80211_MAX_SSID_LEN,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
