	.file	"extr_driver_openbsd.c_wpa_driver_openbsd_get_ssid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wpa_driver_openbsd_get_ssid, @function
wpa_driver_openbsd_get_ssid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r12, 16[rsp]
	mov	rdi, r12
	call	os_memset@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 24[rsp]
	mov	edx, 4
	call	os_strlcpy@PLT
	mov	esi, DWORD PTR SIOCG80211NWID[rip]
	mov	edi, DWORD PTR [rbx]
	mov	rax, rsp
	mov	rdx, r12
	mov	QWORD PTR 16[rsp], rax
	call	ioctl@PLT
	test	rax, rax
	js	.L5
	mov	rdx, QWORD PTR [rsp]
	cmp	rdx, QWORD PTR IEEE80211_NWID_LEN[rip]
	jg	.L5
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, rbp
	call	os_memcpy@PLT
	mov	eax, DWORD PTR [rsp]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wpa_driver_openbsd_get_ssid, .-wpa_driver_openbsd_get_ssid
	.comm	SIOCG80211NWID,4,4
	.comm	IEEE80211_NWID_LEN,8,8
	.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_driver_openbsd.c_wpa_driver_openbsd_get_ssid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wpa_driver_openbsd_get_ssid, %function
wpa_driver_openbsd_get_ssid:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	sub	sp, sp, #28
	ldr	r3, .L9
	mov	r2, #8
	mov	r5, r1
	add	r0, sp, #12
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	os_memset
	mov	r2, #4
	ldr	r1, [r4, #4]
	ldr	r0, [sp, #16]
	bl	os_strlcpy
	ldr	r3, .L9+4
	ldr	r0, [r4]
	ldr	r1, [r3]
	add	r2, sp, #12
	add	r3, sp, #4
	str	r3, [sp, #12]
	bl	ioctl
	cmp	r0, #0
	blt	.L5
	ldr	r3, .L9+8
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L5
	mov	r0, r5
	ldr	r1, [sp, #8]
	bl	os_memcpy
	ldr	r0, [sp, #4]
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	mvn	r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	SIOCG80211NWID
	.word	IEEE80211_NWID_LEN
	.size	wpa_driver_openbsd_get_ssid, .-wpa_driver_openbsd_get_ssid
	.comm	SIOCG80211NWID,4,4
	.comm	IEEE80211_NWID_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
