	.file	"extr_nl80211.c_nl80211_send_coalesce_rules.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nl80211_send_coalesce_rules, @function
nl80211_send_coalesce_rules:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR [rsi]
	mov	QWORD PTR 8[rsp], rsi
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L26
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L26:
	.cfi_restore_state
	mov	rbx, rsi
	mov	esi, DWORD PTR NL80211_ATTR_COALESCE_RULE[rip]
	mov	rbp, rdi
	call	nla_nest_start_noflag@PLT
	mov	QWORD PTR 40[rsp], rax
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L5
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 4[rsp], 0
.L4:
	add	DWORD PTR 4[rsp], 1
	mov	eax, DWORD PTR 4[rsp]
	mov	rdi, rbp
	mov	esi, eax
	call	nla_nest_start_noflag@PLT
	mov	QWORD PTR 24[rsp], rax
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR 8[rsp]
	mov	r13, QWORD PTR 16[rsp]
	mov	rdi, rbp
	mov	esi, DWORD PTR NL80211_ATTR_COALESCE_RULE_DELAY[rip]
	mov	rax, QWORD PTR [rax]
	add	r13, QWORD PTR 8[rax]
	mov	edx, DWORD PTR 20[r13]
	call	nla_put_u32@PLT
	test	rax, rax
	jne	.L14
	mov	edx, DWORD PTR 16[r13]
	mov	esi, DWORD PTR NL80211_ATTR_COALESCE_RULE_CONDITION[rip]
	mov	rdi, rbp
	call	nla_put_u32@PLT
	test	rax, rax
	jne	.L14
	mov	esi, DWORD PTR NL80211_ATTR_COALESCE_RULE_PKT_PATTERN[rip]
	mov	rdi, rbp
	call	nla_nest_start_noflag@PLT
	mov	QWORD PTR 32[rsp], rax
	test	rax, rax
	je	.L14
	mov	eax, DWORD PTR 0[r13]
	xor	ebx, ebx
	test	eax, eax
	jg	.L10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR 8[r13]
	mov	r14, rbx
	mov	esi, 8
	sal	r14, 4
	add	rax, r14
	mov	r15d, DWORD PTR [rax]
	mov	ecx, DWORD PTR 12[rax]
	mov	edi, r15d
	mov	DWORD PTR [rsp], ecx
	call	DIV_ROUND_UP@PLT
	mov	ecx, DWORD PTR [rsp]
	mov	esi, DWORD PTR NL80211_PKTPAT_MASK[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	nla_put@PLT
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR 8[r13]
	mov	esi, DWORD PTR NL80211_PKTPAT_PATTERN[rip]
	mov	edx, r15d
	mov	rdi, rbp
	mov	ecx, DWORD PTR 8[rax+r14]
	call	nla_put@PLT
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR 8[r13]
	mov	esi, DWORD PTR NL80211_PKTPAT_OFFSET[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR 4[rax+r14]
	call	nla_put_u32@PLT
	test	rax, rax
	jne	.L14
	mov	rsi, r12
	mov	rdi, rbp
	add	rbx, 1
	call	nla_nest_end@PLT
	cmp	DWORD PTR 0[r13], ebx
	jle	.L11
.L10:
	lea	esi, 1[rbx]
	mov	rdi, rbp
	call	nla_nest_start_noflag@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L12
.L14:
	mov	eax, DWORD PTR ENOBUFS[rip]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L11:
	.cfi_restore_state
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, rbp
	call	nla_nest_end@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, rbp
	call	nla_nest_end@PLT
	mov	rax, QWORD PTR 8[rsp]
	add	QWORD PTR 16[rsp], 24
	mov	ebx, DWORD PTR 4[rsp]
	mov	rax, QWORD PTR [rax]
	cmp	ebx, DWORD PTR [rax]
	jl	.L4
.L5:
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdi, rbp
	call	nla_nest_end@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nl80211_send_coalesce_rules, .-nl80211_send_coalesce_rules
	.comm	NL80211_PKTPAT_PATTERN,4,4
	.comm	NL80211_PKTPAT_OFFSET,4,4
	.comm	NL80211_PKTPAT_MASK,4,4
	.comm	NL80211_ATTR_COALESCE_RULE_PKT_PATTERN,4,4
	.comm	NL80211_ATTR_COALESCE_RULE_DELAY,4,4
	.comm	NL80211_ATTR_COALESCE_RULE_CONDITION,4,4
	.comm	NL80211_ATTR_COALESCE_RULE,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_send_coalesce_rules.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nl80211_send_coalesce_rules, %function
nl80211_send_coalesce_rules:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L27
	mov	r0, r3
	bx	lr
.L27:
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L28
	sub	sp, sp, #28
	mov	r10, r1
	ldr	r1, [r3]
	mov	fp, r0
	bl	nla_nest_start_noflag
	subs	r3, r0, #0
	str	r3, [sp, #20]
	beq	.L14
	ldr	r3, [r10]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L5
	mov	r3, #0
	stmib	sp, {r3, r10}
.L4:
	ldr	r3, [sp, #4]
	mov	r0, fp
	add	r3, r3, #1
	mov	r1, r3
	str	r3, [sp, #4]
	bl	nla_nest_start_noflag
	subs	r3, r0, #0
	str	r3, [sp, #12]
	beq	.L14
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	lsl	r4, r2, #4
	ldr	r7, [r3, #4]
	sub	r4, r4, #16
	ldr	r3, .L28+4
	add	r6, r7, r4
	mov	r0, fp
	ldr	r2, [r6, #12]
	ldr	r1, [r3]
	bl	nla_put_u32
	cmp	r0, #0
	bne	.L14
	ldr	r3, .L28+8
	mov	r0, fp
	ldr	r2, [r6, #8]
	ldr	r1, [r3]
	bl	nla_put_u32
	subs	r5, r0, #0
	bne	.L14
	ldr	r3, .L28+12
	mov	r0, fp
	ldr	r1, [r3]
	bl	nla_nest_start_noflag
	subs	r3, r0, #0
	str	r3, [sp, #16]
	beq	.L14
	ldr	r3, [r7, r4]
	cmp	r3, #0
	ble	.L11
	ldr	r9, .L28+16
	b	.L10
.L12:
	ldr	r3, [r6, #4]
	mov	r1, #8
	ldr	r8, [r3, r4]
	ldr	r3, .L28+20
	mov	r0, r8
	ldr	r10, [r3]
	bl	DIV_ROUND_UP
	ldr	r3, [r6, #4]
	mov	r2, r0
	add	r3, r3, r4
	mov	r1, r10
	mov	r0, fp
	ldr	r3, [r3, #12]
	bl	nla_put
	cmp	r0, #0
	bne	.L14
	ldr	r3, [r6, #4]
	ldr	r1, .L28+24
	add	r3, r3, r4
	mov	r2, r8
	mov	r0, fp
	ldr	r3, [r3, #8]
	ldr	r1, [r1]
	bl	nla_put
	cmp	r0, #0
	bne	.L14
	ldr	r3, [r6, #4]
	mov	r0, fp
	add	r4, r3, r4
	ldr	r1, [r9]
	ldr	r2, [r4, #4]
	bl	nla_put_u32
	cmp	r0, #0
	bne	.L14
	mov	r1, r7
	mov	r0, fp
	bl	nla_nest_end
	ldr	r3, [r6]
	cmp	r5, r3
	bge	.L11
.L10:
	add	r5, r5, #1
	mov	r1, r5
	mov	r0, fp
	bl	nla_nest_start_noflag
	lsl	r4, r5, #4
	subs	r7, r0, #0
	sub	r4, r4, #16
	bne	.L12
.L14:
	ldr	r3, .L28+28
	ldr	r3, [r3]
	rsb	r3, r3, #0
.L1:
	mov	r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r1, [sp, #16]
	mov	r0, fp
	bl	nla_nest_end
	mov	r0, fp
	ldr	r1, [sp, #12]
	bl	nla_nest_end
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L4
.L5:
	mov	r0, fp
	ldr	r1, [sp, #20]
	bl	nla_nest_end
	mov	r3, #0
	b	.L1
.L29:
	.align	2
.L28:
	.word	NL80211_ATTR_COALESCE_RULE
	.word	NL80211_ATTR_COALESCE_RULE_DELAY
	.word	NL80211_ATTR_COALESCE_RULE_CONDITION
	.word	NL80211_ATTR_COALESCE_RULE_PKT_PATTERN
	.word	NL80211_PKTPAT_OFFSET
	.word	NL80211_PKTPAT_MASK
	.word	NL80211_PKTPAT_PATTERN
	.word	ENOBUFS
	.size	nl80211_send_coalesce_rules, .-nl80211_send_coalesce_rules
	.comm	NL80211_PKTPAT_PATTERN,4,4
	.comm	NL80211_PKTPAT_OFFSET,4,4
	.comm	NL80211_PKTPAT_MASK,4,4
	.comm	NL80211_ATTR_COALESCE_RULE_PKT_PATTERN,4,4
	.comm	NL80211_ATTR_COALESCE_RULE_DELAY,4,4
	.comm	NL80211_ATTR_COALESCE_RULE_CONDITION,4,4
	.comm	NL80211_ATTR_COALESCE_RULE,4,4
	.comm	ENOBUFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
