	.file	"extr_scope6.c_scope6_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scope6_set, @function
scope6_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	IF_AFDATA_WLOCK@PLT
	mov	rdi, rbp
	call	SID@PLT
	test	rax, rax
	je	.L7
	mov	r8, QWORD PTR [rbx]
	mov	edi, DWORD PTR IPV6_ADDR_SCOPE_INTFACELOCAL[rip]
	xor	edx, edx
	mov	r10d, DWORD PTR IPV6_ADDR_SCOPE_LINKLOCAL[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	r10d, r9d
	je	.L15
.L6:
	mov	QWORD PTR [rsi], rcx
.L4:
	add	rdx, 1
	cmp	rdx, 16
	je	.L16
.L8:
	mov	rcx, QWORD PTR [r8+rdx*8]
	lea	rsi, 0[0+rdx*8]
	test	rcx, rcx
	je	.L4
	add	rsi, QWORD PTR [rax]
	cmp	rcx, QWORD PTR [rsi]
	je	.L4
	mov	r9d, edx
	cmp	edi, edx
	jne	.L5
	cmp	rcx, QWORD PTR 0[rbp]
	je	.L5
.L7:
	mov	rdi, rbp
	call	IF_AFDATA_WUNLOCK@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	cmp	rcx, QWORD PTR V_if_index[rip]
	jle	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	call	IF_AFDATA_WUNLOCK@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	scope6_set, .-scope6_set
	.comm	V_if_index,8,8
	.comm	IPV6_ADDR_SCOPE_LINKLOCAL,4,4
	.comm	IPV6_ADDR_SCOPE_INTFACELOCAL,4,4
	.comm	EINVAL,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_scope6.c_scope6_set.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scope6_set, %function
scope6_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r4, r1
	bl	IF_AFDATA_WLOCK
	mov	r0, r6
	bl	SID
	subs	r5, r0, #0
	beq	.L7
	ldr	r0, .L17
	ldr	r2, .L17+4
	ldr	r1, [r4]
	mov	r3, #0
	ldr	r0, [r0]
	ldr	r7, [r2]
	ldr	r8, .L17+8
	sub	r1, r1, #4
	b	.L8
.L5:
	cmp	r7, r3
	beq	.L15
.L6:
	str	r2, [lr, ip]
.L4:
	add	r3, r3, #1
	cmp	r3, #16
	beq	.L16
.L8:
	ldr	r2, [r1, #4]!
	lsl	ip, r3, #2
	cmp	r2, #0
	beq	.L4
	ldr	lr, [r5]
	ldr	r4, [lr, r3, lsl #2]
	cmp	r2, r4
	beq	.L4
	cmp	r0, r3
	bne	.L5
	ldr	r4, [r6]
	cmp	r2, r4
	beq	.L5
.L7:
	mov	r0, r6
	bl	IF_AFDATA_WUNLOCK
	ldr	r3, .L17+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r4, [r8]
	cmp	r2, r4
	ble	.L6
	b	.L7
.L16:
	mov	r0, r6
	bl	IF_AFDATA_WUNLOCK
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	IPV6_ADDR_SCOPE_INTFACELOCAL
	.word	IPV6_ADDR_SCOPE_LINKLOCAL
	.word	V_if_index
	.word	EINVAL
	.size	scope6_set, .-scope6_set
	.comm	V_if_index,4,4
	.comm	IPV6_ADDR_SCOPE_LINKLOCAL,4,4
	.comm	IPV6_ADDR_SCOPE_INTFACELOCAL,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
