	.file	"extr_cap_sendmsg.c_probe_defrouters.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	probe_defrouters, @function
probe_defrouters:
.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, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	jne	.L2
.L21:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L23
	add	rsp, 88
	.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
.L2:
	.cfi_restore_state
	mov	r14, rsi
	mov	esi, DWORD PTR IPPROTO_NONE[rip]
	mov	rbp, rdi
	lea	rdi, probesock.1967[rip]
	call	getsocket@PLT
	test	rax, rax
	jne	.L5
	mov	eax, DWORD PTR CTL_NET[rip]
	lea	rbx, 48[rsp]
	lea	r12, 8[rsp]
	mov	rdi, rbx
	mov	DWORD PTR 48[rsp], eax
	mov	eax, DWORD PTR PF_INET6[rip]
	mov	DWORD PTR 52[rsp], eax
	mov	eax, DWORD PTR IPPROTO_ICMPV6[rip]
	mov	DWORD PTR 56[rsp], eax
	mov	eax, DWORD PTR ICMPV6CTL_ND6_DRLIST[rip]
	mov	DWORD PTR 60[rsp], eax
	call	nitems@PLT
	xor	r9d, r9d
	xor	r8d, r8d
	xor	edx, edx
	mov	esi, eax
	mov	rcx, r12
	mov	rdi, rbx
	call	sysctl@PLT
	test	rax, rax
	js	.L5
	cmp	QWORD PTR 8[rsp], 0
	je	.L21
	lea	r15, 16[rsp]
	mov	edx, 24
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
	mov	eax, DWORD PTR AF_INET6[rip]
	mov	rdi, QWORD PTR 8[rsp]
	mov	DWORD PTR 16[rsp], 24
	mov	DWORD PTR 36[rsp], eax
	call	malloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L5
	mov	rdi, rbx
	call	nitems@PLT
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rcx, r12
	mov	esi, eax
	mov	rdx, r13
	mov	rdi, rbx
	call	sysctl@PLT
	test	rax, rax
	js	.L5
	mov	r12, QWORD PTR 8[rsp]
	add	r12, r13
	cmp	r13, r12
	jnb	.L7
	mov	rbx, r13
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	add	rbx, 16
	cmp	r12, rbx
	jbe	.L7
.L11:
	cmp	QWORD PTR [rbx], rbp
	jne	.L9
	lea	rdi, 8[rbx]
	call	IN6_IS_ADDR_LINKLOCAL@PLT
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR probesock.1967[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	ecx, 1
	mov	rdx, rbp
	mov	rsi, r15
	add	rbx, 16
	mov	DWORD PTR 32[rsp], eax
	mov	QWORD PTR 24[rsp], r14
	call	sendpacket@PLT
	cmp	r12, rbx
	ja	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r13
	call	free@PLT
	jmp	.L21
.L5:
	mov	eax, -1
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	probe_defrouters, .-probe_defrouters
	.data
	.align 4
	.type	probesock.1967, @object
	.size	probesock.1967, 4
probesock.1967:
	.long	-1
	.comm	PF_INET6,4,4
	.comm	IPPROTO_NONE,4,4
	.comm	IPPROTO_ICMPV6,4,4
	.comm	ICMPV6CTL_ND6_DRLIST,4,4
	.comm	CTL_NET,4,4
	.comm	AF_INET6,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_cap_sendmsg.c_probe_defrouters.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	probe_defrouters, %function
probe_defrouters:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L26
	sub	sp, sp, #52
	subs	r6, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bne	.L2
.L6:
	mov	r5, #0
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	mov	r0, r5
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L26+4
	mov	r8, r1
	ldr	r0, .L26+8
	ldr	r1, [r3]
	bl	getsocket
	subs	r5, r0, #0
	bne	.L5
	ldr	r0, .L26+12
	ldr	r1, .L26+16
	ldr	r2, .L26+20
	ldr	r3, .L26+24
	ldr	ip, [r0]
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	add	r0, sp, #28
	str	ip, [sp, #28]
	str	r1, [sp, #32]
	str	r2, [sp, #36]
	str	r3, [sp, #40]
	bl	nitems
	mov	r2, r5
	mov	r1, r0
	str	r5, [sp, #4]
	str	r5, [sp]
	add	r0, sp, #28
	add	r3, sp, #8
	bl	sysctl
	cmp	r0, #0
	blt	.L5
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L6
	mov	r3, #16
	ldr	r2, .L26+28
	str	r5, [sp, #16]
	ldr	r2, [r2]
	str	r5, [sp, #20]
	str	r2, [sp, #24]
	str	r3, [sp, #12]
	bl	malloc
	subs	r9, r0, #0
	beq	.L5
	add	r0, sp, #28
	bl	nitems
	mov	r2, r9
	mov	r1, r0
	str	r5, [sp, #4]
	str	r5, [sp]
	add	r3, sp, #8
	add	r0, sp, #28
	bl	sysctl
	cmp	r0, #0
	blt	.L5
	ldr	r7, [sp, #8]
	add	r3, r9, r7
	cmp	r9, r3
	bcs	.L7
	sub	r7, r7, #1
	bic	r3, r7, #7
	add	r7, r9, #12
	mov	r10, r5
	ldr	fp, .L26+8
	add	r7, r3, r7
	add	r4, r9, #4
	b	.L11
.L9:
	add	r4, r4, #8
	cmp	r4, r7
	beq	.L7
.L11:
	ldr	r3, [r4, #-4]
	cmp	r3, r6
	bne	.L9
	mov	r0, r4
	bl	IN6_IS_ADDR_LINKLOCAL
	cmp	r0, #0
	beq	.L9
	ldr	ip, [r4]
	mov	r3, #1
	mov	r2, r6
	ldr	r0, [fp]
	str	r10, [sp, #4]
	str	r10, [sp]
	add	r1, sp, #12
	add	r4, r4, #8
	str	r8, [sp, #16]
	str	ip, [sp, #20]
	bl	sendpacket
	cmp	r4, r7
	bne	.L11
.L7:
	mov	r0, r9
	bl	free
	b	.L1
.L5:
	mvn	r5, #0
	b	.L1
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	IPPROTO_NONE
	.word	.LANCHOR0
	.word	CTL_NET
	.word	PF_INET6
	.word	IPPROTO_ICMPV6
	.word	ICMPV6CTL_ND6_DRLIST
	.word	AF_INET6
	.size	probe_defrouters, .-probe_defrouters
	.comm	PF_INET6,4,4
	.comm	IPPROTO_NONE,4,4
	.comm	IPPROTO_ICMPV6,4,4
	.comm	ICMPV6CTL_ND6_DRLIST,4,4
	.comm	CTL_NET,4,4
	.comm	AF_INET6,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	probesock.4251, %object
	.size	probesock.4251, 4
probesock.4251:
	.word	-1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
