	.file	"extr_addrconf.c_inet6_set_link_af.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	inet6_set_link_af, @function
inet6_set_link_af:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	__in6_dev_get@PLT
	mov	esi, DWORD PTR IFLA_INET6_MAX[rip]
	mov	rcx, rsp
	mov	rbx, rax
	lea	eax, 1[rsi]
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L17
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L18
.L4:
	mov	r13, rsp
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rdx, r12
	mov	rdi, r13
	call	nla_parse_nested_deprecated@PLT
	test	rax, rax
	jns	.L5
	xor	eax, eax
	call	BUG@PLT
.L5:
	mov	rax, QWORD PTR IFLA_INET6_TOKEN[rip]
	mov	rdi, QWORD PTR 0[r13+rax*8]
	test	rdi, rdi
	je	.L9
	call	nla_data@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	inet6_set_iftoken@PLT
	test	eax, eax
	jne	.L1
.L9:
	mov	rax, QWORD PTR IFLA_INET6_ADDR_GEN_MODE[rip]
	mov	rdi, QWORD PTR 0[r13+rax*8]
	test	rdi, rdi
	je	.L15
	call	nla_get_u8@PLT
	mov	DWORD PTR [rbx], eax
.L15:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	inet6_set_link_af, .-inet6_set_link_af
	.comm	IFLA_INET6_TOKEN,8,8
	.comm	IFLA_INET6_MAX,4,4
	.comm	IFLA_INET6_ADDR_GEN_MODE,8,8
	.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_addrconf.c_inet6_set_link_af.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	inet6_set_link_af, %function
inet6_set_link_af:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r3, .L12
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	__in6_dev_get
	mov	r3, #0
	ldr	r1, .L12+4
	mov	r2, r4
	ldr	r1, [r1]
	mov	r4, r0
	lsl	ip, r1, #2
	add	ip, ip, #11
	bic	ip, ip, #7
	sub	sp, sp, ip
	add	r5, sp, #8
	mov	r0, r5
	str	r3, [sp]
	bl	nla_parse_nested_deprecated
	cmp	r0, #0
	blt	.L10
.L2:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r0, [r5, r3, lsl #2]
	cmp	r0, #0
	beq	.L6
	bl	nla_data
	mov	r1, r0
	mov	r0, r4
	bl	inet6_set_iftoken
	cmp	r0, #0
	bne	.L1
.L6:
	ldr	r3, .L12+12
	ldr	r3, [r3]
	ldr	r0, [r5, r3, lsl #2]
	cmp	r0, #0
	beq	.L1
	bl	nla_get_u8
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4]
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L10:
	bl	BUG
	b	.L2
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	IFLA_INET6_MAX
	.word	IFLA_INET6_TOKEN
	.word	IFLA_INET6_ADDR_GEN_MODE
	.size	inet6_set_link_af, .-inet6_set_link_af
	.comm	IFLA_INET6_TOKEN,4,4
	.comm	IFLA_INET6_MAX,4,4
	.comm	IFLA_INET6_ADDR_GEN_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
