	.file	"extr_bat_v_ogm.c_batadv_v_ogm_metric_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Drop packet: packet within window protection time from %pM\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Last reset: %ld, %ld\n"
	.text
	.p2align 4
	.type	batadv_v_ogm_metric_update, @function
batadv_v_ogm_metric_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	mov	rsi, r9
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r14d, DWORD PTR EINVAL[rip]
	mov	QWORD PTR 16[rsp], rdi
	mov	rdi, rdx
	mov	QWORD PTR 24[rsp], r8
	neg	r14d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 36[rsp], 0
	call	batadv_orig_ifinfo_new@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR 4[rbx]
	mov	rbp, rax
	call	ntohl@PLT
	lea	rdi, 8[r12]
	sub	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR 8[rsp], rax
	call	hlist_empty@PLT
	test	eax, eax
	je	.L18
.L3:
	cmp	QWORD PTR 8[rsp], 0
	jns	.L4
	mov	edx, DWORD PTR 36[rsp]
	test	edx, edx
	je	.L6
.L4:
	mov	rax, QWORD PTR jiffies[rip]
	mov	edi, DWORD PTR 4[rbx]
	mov	QWORD PTR [r15], rax
	mov	QWORD PTR [r12], rax
	call	ntohl@PLT
	mov	rsi, r13
	mov	rdi, r15
	mov	QWORD PTR 0[rbp], rax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 8[rbp], eax
	call	batadv_neigh_ifinfo_new@PLT
	mov	r12, rax
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR 8[rbx]
	mov	r14d, 1
	call	ntohl@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	rdx, r13
	mov	rcx, rax
	call	batadv_v_forward_penalty@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	DWORD PTR 16[r12], eax
	call	ntohl@PLT
	cmp	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 8[r12], rax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR [r12], eax
	jg	.L7
	mov	eax, DWORD PTR 36[rsp]
	xor	r14d, r14d
	test	eax, eax
	setne	r14b
.L7:
	mov	rdi, rbp
	call	batadv_orig_ifinfo_put@PLT
	mov	rdi, r12
	call	batadv_neigh_ifinfo_put@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L18:
	.cfi_restore_state
	mov	edx, DWORD PTR BATADV_OGM_MAX_AGE[rip]
	mov	rsi, QWORD PTR 8[rsp]
	lea	rcx, 12[rbp]
	lea	r8, 36[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	call	batadv_window_protected@PLT
	test	rax, rax
	je	.L3
	mov	ecx, DWORD PTR 12[rbx]
	mov	rbx, QWORD PTR 16[rsp]
	lea	rdx, .LC0[rip]
	xor	eax, eax
	mov	edi, DWORD PTR BATADV_DBG_BATMAN[rip]
	mov	rsi, rbx
	call	batadv_dbg@PLT
	mov	ecx, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR BATADV_DBG_BATMAN[rip]
	xor	eax, eax
	mov	r8, QWORD PTR jiffies[rip]
	lea	rdx, .LC1[rip]
	mov	rsi, rbx
	call	batadv_dbg@PLT
	mov	rdi, rbp
	call	batadv_orig_ifinfo_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	batadv_orig_ifinfo_put@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	batadv_v_ogm_metric_update, .-batadv_v_ogm_metric_update
	.comm	jiffies,8,8
	.comm	EINVAL,4,4
	.comm	BATADV_OGM_MAX_AGE,4,4
	.comm	BATADV_DBG_BATMAN,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_bat_v_ogm.c_batadv_v_ogm_metric_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Drop packet: packet within window protection time f"
	.ascii	"rom %pM\012\000"
	.align	2
.LC1:
	.ascii	"Last reset: %ld, %ld\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	batadv_v_ogm_metric_update, %function
batadv_v_ogm_metric_update:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r2
	mov	r2, #0
	sub	sp, sp, #28
	mov	r8, r3
	ldr	r3, .L20
	ldr	fp, [sp, #68]
	mov	r5, r1
	ldr	r1, .L20+4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r3, [sp, #64]
	ldr	r7, [r1]
	mov	r9, r0
	mov	r1, fp
	mov	r0, r6
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	bl	batadv_orig_ifinfo_new
	subs	r4, r0, #0
	rsb	r7, r7, #0
	beq	.L1
	ldr	r0, [r5, #4]
	bl	ntohl
	mov	r10, r0
	ldr	r3, [r4]
	add	r0, r6, #4
	sub	r10, r10, r3
	bl	hlist_empty
	cmp	r0, #0
	beq	.L18
.L3:
	cmp	r10, #0
	bge	.L4
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L6
.L4:
	ldr	r3, .L20+8
	ldr	r0, [r5, #4]
	ldr	r3, [r3]
	str	r3, [r8]
	str	r3, [r6]
	bl	ntohl
	ldr	r3, [r5]
	mov	r1, fp
	str	r0, [r4]
	str	r3, [r4, #4]
	mov	r0, r8
	bl	batadv_neigh_ifinfo_new
	subs	r6, r0, #0
	beq	.L6
	ldr	r0, [r5, #8]
	bl	ntohl
	mov	r2, fp
	mov	r3, r0
	ldr	r1, [sp, #12]
	mov	r0, r9
	bl	batadv_v_forward_penalty
	mov	r3, r0
	ldr	r0, [r5, #4]
	str	r3, [r6, #8]
	bl	ntohl
	ldr	r3, [r5]
	cmp	r10, #0
	movgt	r7, #1
	str	r0, [r6, #4]
	str	r3, [r6]
	bgt	.L7
	ldr	r7, [sp, #16]
	subs	r7, r7, #0
	movne	r7, #1
.L7:
	mov	r0, r4
	bl	batadv_orig_ifinfo_put
	mov	r0, r6
	bl	batadv_neigh_ifinfo_put
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r2, .L20+12
	add	r3, sp, #16
	ldr	r2, [r2]
	mov	r1, r10
	str	r3, [sp]
	mov	r0, r9
	add	r3, r4, #8
	bl	batadv_window_protected
	cmp	r0, #0
	beq	.L3
	ldr	r6, .L20+16
	mov	r1, r9
	ldr	r3, [r5, #12]
	ldr	r0, [r6]
	ldr	r2, .L20+20
	bl	batadv_dbg
	ldr	r2, .L20+8
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	ldr	r0, [r6]
	mov	r1, r9
	str	r2, [sp]
	ldr	r2, .L20+24
	bl	batadv_dbg
	mov	r0, r4
	bl	batadv_orig_ifinfo_put
	b	.L1
.L6:
	mov	r0, r4
	bl	batadv_orig_ifinfo_put
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	EINVAL
	.word	jiffies
	.word	BATADV_OGM_MAX_AGE
	.word	BATADV_DBG_BATMAN
	.word	.LC0
	.word	.LC1
	.size	batadv_v_ogm_metric_update, .-batadv_v_ogm_metric_update
	.comm	jiffies,4,4
	.comm	EINVAL,4,4
	.comm	BATADV_OGM_MAX_AGE,4,4
	.comm	BATADV_DBG_BATMAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
