	.file	"extr_ieee80211_mesh.c_ieee80211_mesh_register_proto_metric.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ieee80211_mesh_register_proto_metric
	.type	ieee80211_mesh_register_proto_metric, @function
ieee80211_mesh_register_proto_metric:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, -1
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR mesh_proto_metrics[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 1
	movsx	rbp, r12d
.L2:
	mov	r12d, ebx
	call	nitems@PLT
	cmp	eax, ebx
	jle	.L15
	mov	rax, QWORD PTR mesh_proto_metrics[rip]
	mov	edx, DWORD PTR IEEE80211_MESH_PROTO_DSZ[rip]
	mov	edi, DWORD PTR 0[r13]
	mov	esi, DWORD PTR 4[rax+rbx*8]
	call	strncmp@PLT
	test	rax, rax
	je	.L16
	mov	rdi, QWORD PTR mesh_proto_metrics[rip]
	mov	eax, DWORD PTR [rdi+rbx*8]
	test	eax, eax
	jne	.L9
	cmp	ebp, -1
	je	.L5
.L9:
	mov	r12d, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR ENOSPC[rip]
	cmp	ebp, -1
	je	.L1
	mov	rax, QWORD PTR mesh_proto_metrics[rip]
	mov	edx, 4
	mov	rsi, r13
	lea	rdi, [rax+rbp*8]
	call	memcpy@PLT
	mov	rax, QWORD PTR mesh_proto_metrics[rip]
	mov	DWORD PTR [rax+rbp*8], 1
	xor	eax, eax
.L1:
	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
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	eax, DWORD PTR EEXIST[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	ieee80211_mesh_register_proto_metric, .-ieee80211_mesh_register_proto_metric
	.comm	mesh_proto_metrics,8,8
	.comm	IEEE80211_MESH_PROTO_DSZ,4,4
	.comm	ENOSPC,4,4
	.comm	EEXIST,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_ieee80211_mesh.c_ieee80211_mesh_register_proto_metric.c"
	.text
	.align	2
	.global	ieee80211_mesh_register_proto_metric
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee80211_mesh_register_proto_metric, %function
ieee80211_mesh_register_proto_metric:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L13
	mov	r7, r0
	mvn	r5, #0
	mov	r4, #0
	ldr	r0, [r6]
	ldr	r8, .L13+4
	b	.L2
.L6:
	ldr	r3, [r6]
	ldr	r2, [r8]
	add	r3, r3, r4, lsl #3
	ldr	r1, [r3, #4]
	ldr	r0, [r7]
	bl	strncmp
	cmp	r0, #0
	beq	.L11
	ldr	r0, [r6]
	ldr	r3, [r0, r4, lsl #3]
	cmp	r3, #0
	cmneq	r5, #1
	moveq	r5, r4
	add	r4, r4, #1
.L2:
	bl	nitems
	cmp	r0, r4
	bgt	.L6
	cmp	r5, #0
	blt	.L12
	ldr	r0, [r6]
	mov	r1, r7
	mov	r2, #4
	add	r0, r0, r5, lsl #3
	bl	memcpy
	mov	r2, #1
	ldr	r3, [r6]
	mov	r0, #0
	str	r2, [r3, r5, lsl #3]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L13+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	mesh_proto_metrics
	.word	IEEE80211_MESH_PROTO_DSZ
	.word	ENOSPC
	.word	EEXIST
	.size	ieee80211_mesh_register_proto_metric, .-ieee80211_mesh_register_proto_metric
	.comm	mesh_proto_metrics,4,4
	.comm	IEEE80211_MESH_PROTO_DSZ,4,4
	.comm	ENOSPC,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
