	.file	"extr_main.c_wl1271_ssid_set.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No SSID in IEs!"
.LC1:
	.string	"SSID is too long!"
	.text
	.p2align 4
	.type	wl1271_ssid_set, @function
wl1271_ssid_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	r8, QWORD PTR [rsi]
	movsx	rdx, edx
	mov	rbx, rdi
	mov	edi, DWORD PTR WLAN_EID_SSID[rip]
	sub	r8, rdx
	add	rdx, QWORD PTR 8[rsi]
	mov	rsi, rdx
	mov	rdx, r8
	call	cfg80211_find_ie@PLT
	test	rax, rax
	je	.L7
	mov	rdx, QWORD PTR 8[rax]
	cmp	QWORD PTR IEEE80211_MAX_SSID_LEN[rip], rdx
	jl	.L8
	mov	QWORD PTR 8[rbx], rdx
	mov	edi, DWORD PTR [rbx]
	lea	rsi, 16[rax]
	call	memcpy@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	wl1271_error@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	wl1271_error@PLT
	mov	eax, DWORD PTR ENOENT[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	wl1271_ssid_set, .-wl1271_ssid_set
	.comm	WLAN_EID_SSID,4,4
	.comm	IEEE80211_MAX_SSID_LEN,8,8
	.comm	ENOENT,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_main.c_wl1271_ssid_set.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No SSID in IEs!\000"
	.align	2
.LC1:
	.ascii	"SSID is too long!\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl1271_ssid_set, %function
wl1271_ssid_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r2
	push	{r4, lr}
	ldr	r2, [r1]
	mov	r4, r0
	ldr	r1, [r1, #4]
	ldr	r0, .L9
	sub	r2, r2, r3
	ldr	r0, [r0]
	add	r1, r3, r1
	bl	cfg80211_find_ie
	cmp	r0, #0
	beq	.L7
	ldr	r3, .L9+4
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	cmp	r3, r2
	blt	.L8
	add	r1, r0, #8
	str	r2, [r4, #4]
	ldr	r0, [r4]
	bl	memcpy
	mov	r0, #0
	pop	{r4, pc}
.L8:
	ldr	r0, .L9+8
	bl	wl1271_error
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L7:
	ldr	r0, .L9+16
	bl	wl1271_error
	ldr	r3, .L9+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	WLAN_EID_SSID
	.word	IEEE80211_MAX_SSID_LEN
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.word	ENOENT
	.size	wl1271_ssid_set, .-wl1271_ssid_set
	.comm	WLAN_EID_SSID,4,4
	.comm	IEEE80211_MAX_SSID_LEN,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
