	.file	"extr_nl80211.c_nl80211_set_interface.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nl80211_set_interface, @function
nl80211_set_interface:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 4
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rsi]
	lea	r13, 20[rsp]
	xor	esi, esi
	mov	rdi, r13
	mov	rbx, QWORD PTR 8[rax]
	mov	rbp, QWORD PTR [rax]
	call	memset@PLT
	mov	rdx, QWORD PTR [r14]
	xor	r8d, r8d
	mov	rax, QWORD PTR [rbx]
	mov	r15d, DWORD PTR [rax]
	mov	rax, QWORD PTR NL80211_ATTR_IFTYPE[rip]
	mov	rdi, QWORD PTR [rdx+rax*8]
	test	rdi, rdi
	jne	.L22
.L2:
	mov	rax, QWORD PTR NL80211_ATTR_MESH_ID[rip]
	cmp	QWORD PTR [rdx+rax*8], 0
	je	.L3
	cmp	DWORD PTR NL80211_IFTYPE_MESH_POINT[rip], r15d
	je	.L4
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], r8d
	call	wdev_lock@PLT
	mov	rax, QWORD PTR IEEE80211_MAX_MESH_ID_LEN[rip]
	xor	edi, edi
	cmp	QWORD PTR IEEE80211_MAX_SSID_LEN[rip], rax
	setne	dil
	call	BUILD_BUG_ON@PLT
	mov	rdx, QWORD PTR NL80211_ATTR_MESH_ID[rip]
	mov	rax, QWORD PTR [r14]
	mov	rdi, QWORD PTR [rax+rdx*8]
	call	nla_len@PLT
	mov	rcx, QWORD PTR NL80211_ATTR_MESH_ID[rip]
	mov	DWORD PTR 8[r12], eax
	mov	DWORD PTR 8[rsp], eax
	mov	rax, QWORD PTR [r14]
	mov	rdi, QWORD PTR [rax+rcx*8]
	call	nla_data@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR 12[r12]
	mov	esi, eax
	call	memcpy@PLT
	mov	rdi, r12
	call	wdev_unlock@PLT
	mov	rdx, QWORD PTR [r14]
	mov	r8d, DWORD PTR 12[rsp]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR NL80211_ATTR_4ADDR[rip]
	mov	rdi, QWORD PTR [rdx+rax*8]
	test	rdi, rdi
	jne	.L24
	mov	rcx, r13
	mov	rdx, r14
	mov	esi, r15d
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], r8d
	mov	DWORD PTR 20[rsp], -1
	call	nl80211_parse_mon_options@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	r8d, DWORD PTR 8[rsp]
	or	r12d, r8d
	je	.L9
.L14:
	mov	rcx, r13
	mov	edx, r15d
	mov	rsi, rbx
	mov	rdi, rbp
	call	cfg80211_change_iface@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 20[rsp]
	mov	rsi, QWORD PTR [rbx]
	cmp	eax, -1
	je	.L12
	mov	DWORD PTR 4[rsi], eax
.L12:
	mov	edx, DWORD PTR NL80211_CMD_SET_INTERFACE[rip]
	mov	rdi, rbp
	call	nl80211_notify_iface@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	call	nla_get_u32@PLT
	xor	r8d, r8d
	mov	rdx, QWORD PTR [r14]
	cmp	r15d, eax
	mov	r15d, eax
	setne	r8b
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L24:
	call	nla_get_u8@PLT
	xor	edx, edx
	mov	ecx, r15d
	mov	rsi, rbx
	test	eax, eax
	mov	rdi, rbp
	setne	dl
	mov	DWORD PTR 20[rsp], edx
	call	nl80211_valid_4addr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rcx, r13
	mov	rdx, r14
	mov	esi, r15d
	mov	rdi, rbp
	call	nl80211_parse_mon_options@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L14
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	mov	DWORD PTR 8[rsp], r8d
	mov	r12, QWORD PTR [rbx]
	call	netif_running@PLT
	mov	r8d, DWORD PTR 8[rsp]
	test	rax, rax
	je	.L6
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR 20[rsp]
	cmp	eax, -1
	je	.L1
	mov	rdx, QWORD PTR [rbx]
	mov	DWORD PTR 4[rdx], eax
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nl80211_set_interface, .-nl80211_set_interface
	.comm	NL80211_IFTYPE_MESH_POINT,4,4
	.comm	NL80211_CMD_SET_INTERFACE,4,4
	.comm	NL80211_ATTR_MESH_ID,8,8
	.comm	NL80211_ATTR_IFTYPE,8,8
	.comm	NL80211_ATTR_4ADDR,8,8
	.comm	IEEE80211_MAX_SSID_LEN,8,8
	.comm	IEEE80211_MAX_MESH_ID_LEN,8,8
	.comm	EINVAL,4,4
	.comm	EBUSY,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_nl80211.c_nl80211_set_interface.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nl80211_set_interface, %function
nl80211_set_interface:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r1, #0
	ldm	r5, {r0, r3}
	ldr	r2, .L28
	sub	sp, sp, #8
	ldr	r2, [r2]
	ldr	r9, [r3]
	ldr	r8, [r3, #4]
	str	r1, [sp]
	ldr	r6, [r0, r2, lsl #2]
	ldr	r3, [r8]
	ldr	r2, .L28+4
	cmp	r6, r1
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r7, [r3]
	bne	.L25
.L2:
	ldr	r4, .L28+8
	ldr	r3, [r4]
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L28+12
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L4
	ldr	r3, .L28+16
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r0, r10
	bl	wdev_lock
	ldr	r2, .L28+20
	ldr	r3, .L28+24
	ldr	r0, [r2]
	ldr	r3, [r3]
	subs	r0, r0, r3
	movne	r0, #1
	bl	BUILD_BUG_ON
	ldr	r2, [r4]
	ldr	r3, [r5]
	ldr	r0, [r3, r2, lsl #2]
	bl	nla_len
	ldr	r3, [r5]
	ldr	r2, [r4]
	str	r0, [r10, #8]
	ldr	r0, [r3, r2, lsl #2]
	ldr	r4, [r10, #12]
	bl	nla_data
	ldr	r2, [r10, #8]
	mov	r1, r0
	mov	r0, r4
	bl	memcpy
	mov	r0, r10
	bl	wdev_unlock
	ldr	r0, [r5]
.L3:
	ldr	r3, .L28+28
	ldr	r3, [r3]
	ldr	r0, [r0, r3, lsl #2]
	cmp	r0, #0
	bne	.L27
	mov	r10, sp
	mvn	ip, #0
	mov	r2, r5
	mov	r3, r10
	mov	r1, r7
	mov	r0, r9
	str	ip, [sp]
	bl	nl80211_parse_mon_options
	subs	r4, r0, #0
	blt	.L1
	orrs	r4, r4, r6
	beq	.L9
.L14:
	mov	r3, r10
	mov	r2, r7
	mov	r1, r8
	mov	r0, r9
	bl	cfg80211_change_iface
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [sp]
	ldr	r1, [r8]
	cmn	r3, #1
	strne	r3, [r1, #4]
	ldr	r3, .L28+32
	mov	r0, r9
	ldr	r2, [r3]
	bl	nl80211_notify_iface
	b	.L1
.L25:
	mov	r0, r6
	bl	nla_get_u32
	subs	r6, r7, r0
	movne	r6, #1
	mov	r7, r0
	ldr	r0, [r5]
	b	.L2
.L27:
	bl	nla_get_u8
	subs	r2, r0, #0
	movne	r2, #1
	mov	r3, r7
	mov	r1, r8
	mov	r0, r9
	str	r2, [sp]
	bl	nl80211_valid_4addr
	subs	r4, r0, #0
	bne	.L1
	mov	r10, sp
	mov	r2, r5
	mov	r3, r10
	mov	r1, r7
	mov	r0, r9
	bl	nl80211_parse_mon_options
	subs	r4, r0, #0
	bge	.L14
	b	.L1
.L4:
	mov	r0, r8
	ldr	r10, [r8]
	bl	netif_running
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L28+36
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L9:
	ldr	r3, [sp]
	cmn	r3, #1
	ldrne	r2, [r8]
	strne	r3, [r2, #4]
	b	.L1
.L26:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	NL80211_ATTR_IFTYPE
	.word	.LC0
	.word	NL80211_ATTR_MESH_ID
	.word	NL80211_IFTYPE_MESH_POINT
	.word	EINVAL
	.word	IEEE80211_MAX_SSID_LEN
	.word	IEEE80211_MAX_MESH_ID_LEN
	.word	NL80211_ATTR_4ADDR
	.word	NL80211_CMD_SET_INTERFACE
	.word	EBUSY
	.size	nl80211_set_interface, .-nl80211_set_interface
	.comm	NL80211_IFTYPE_MESH_POINT,4,4
	.comm	NL80211_CMD_SET_INTERFACE,4,4
	.comm	NL80211_ATTR_MESH_ID,4,4
	.comm	NL80211_ATTR_IFTYPE,4,4
	.comm	NL80211_ATTR_4ADDR,4,4
	.comm	IEEE80211_MAX_SSID_LEN,4,4
	.comm	IEEE80211_MAX_MESH_ID_LEN,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
