	.file	"extr_nl80211.c_nl80211_add_scan_req.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nl80211_add_scan_req, @function
nl80211_add_scan_req:
.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
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 8[rsi]
	call	lockdep_assert_held@PLT
	xor	edi, edi
	test	rbp, rbp
	sete	dil
	call	WARN_ON@PLT
	test	rax, rax
	je	.L2
.L22:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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	esi, DWORD PTR NL80211_ATTR_SCAN_SSIDS[rip]
	mov	rdi, r12
	call	nla_nest_start@PLT
	mov	r13, rax
	test	rax, rax
	je	.L4
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jle	.L5
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L5
.L6:
	mov	rax, rbx
	mov	esi, ebx
	mov	rdi, r12
	sal	rax, 4
	add	rax, QWORD PTR 40[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rcx, QWORD PTR [rax]
	call	nla_put@PLT
	test	rax, rax
	je	.L24
.L4:
	mov	eax, DWORD PTR ENOBUFS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, r12
	call	nla_nest_end@PLT
	mov	esi, DWORD PTR NL80211_ATTR_SCAN_FREQUENCIES[rip]
	mov	rdi, r12
	call	nla_nest_start@PLT
	mov	r13, rax
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	jle	.L7
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	add	rbx, 1
	cmp	DWORD PTR 4[rbp], ebx
	jle	.L7
.L8:
	mov	rax, QWORD PTR 32[rbp]
	mov	esi, ebx
	mov	rdi, r12
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	rdx, QWORD PTR [rax]
	call	nla_put_u32@PLT
	test	rax, rax
	je	.L25
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r13
	mov	rdi, r12
	call	nla_nest_end@PLT
	mov	rcx, QWORD PTR 16[rbp]
	test	rcx, rcx
	jne	.L9
.L12:
	mov	rdx, QWORD PTR 8[rbp]
	test	rdx, rdx
	je	.L22
	mov	esi, DWORD PTR NL80211_ATTR_SCAN_FLAGS[rip]
	mov	rdi, r12
	call	nla_put_u32@PLT
	jmp	.L22
.L9:
	mov	edx, DWORD PTR 24[rbp]
	mov	esi, DWORD PTR NL80211_ATTR_IE[rip]
	mov	rdi, r12
	call	nla_put@PLT
	test	rax, rax
	je	.L12
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	nl80211_add_scan_req, .-nl80211_add_scan_req
	.comm	NL80211_ATTR_SCAN_SSIDS,4,4
	.comm	NL80211_ATTR_SCAN_FREQUENCIES,4,4
	.comm	NL80211_ATTR_SCAN_FLAGS,4,4
	.comm	NL80211_ATTR_IE,4,4
	.comm	ENOBUFS,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_add_scan_req.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nl80211_add_scan_req, %function
nl80211_add_scan_req:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r1, #4]
	mov	r6, r0
	mov	r0, r1
	bl	lockdep_assert_held
	clz	r0, r5
	lsr	r0, r0, #5
	bl	WARN_ON
	subs	r7, r0, #0
	beq	.L2
.L11:
	mov	r7, #0
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L25
	mov	r0, r6
	ldr	r1, [r3]
	bl	nla_nest_start
	subs	r8, r0, #0
	beq	.L4
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L5
	mov	r4, r7
	b	.L6
.L23:
	ldr	r3, [r5]
	cmp	r3, r4
	ble	.L5
.L6:
	ldr	r3, [r5, #24]
	mov	r1, r4
	add	r2, r3, r4, lsl #3
	mov	r0, r6
	ldr	r3, [r3, r4, lsl #3]
	ldr	r2, [r2, #4]
	bl	nla_put
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L23
.L4:
	ldr	r3, .L25+4
	ldr	r7, [r3]
	rsb	r7, r7, #0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r1, r8
	mov	r0, r6
	bl	nla_nest_end
	ldr	r3, .L25+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	nla_nest_start
	subs	r8, r0, #0
	beq	.L4
	ldr	r3, [r5, #4]
	cmp	r3, #0
	ble	.L7
	mov	r4, #0
	b	.L8
.L24:
	ldr	r3, [r5, #4]
	cmp	r3, r4
	ble	.L7
.L8:
	ldr	r3, [r5, #20]
	mov	r1, r4
	ldr	r3, [r3, r4, lsl #2]
	mov	r0, r6
	ldr	r2, [r3]
	bl	nla_put_u32
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L24
	b	.L4
.L7:
	mov	r1, r8
	mov	r0, r6
	bl	nla_nest_end
	ldr	r3, [r5, #12]
	cmp	r3, #0
	bne	.L9
.L12:
	ldr	r2, [r5, #8]
	cmp	r2, #0
	beq	.L11
	ldr	r3, .L25+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	nla_put_u32
	b	.L1
.L9:
	ldr	r2, .L25+16
	mov	r0, r6
	ldr	r1, [r2]
	ldr	r2, [r5, #16]
	bl	nla_put
	cmp	r0, #0
	beq	.L12
	b	.L4
.L26:
	.align	2
.L25:
	.word	NL80211_ATTR_SCAN_SSIDS
	.word	ENOBUFS
	.word	NL80211_ATTR_SCAN_FREQUENCIES
	.word	NL80211_ATTR_SCAN_FLAGS
	.word	NL80211_ATTR_IE
	.size	nl80211_add_scan_req, .-nl80211_add_scan_req
	.comm	NL80211_ATTR_SCAN_SSIDS,4,4
	.comm	NL80211_ATTR_SCAN_FREQUENCIES,4,4
	.comm	NL80211_ATTR_SCAN_FLAGS,4,4
	.comm	NL80211_ATTR_IE,4,4
	.comm	ENOBUFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
