	.file	"extr_netdev.c_netdev_set_ifindex.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"tun"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Could not get rtnl message type: %m"
	.align 8
.LC2:
	.string	"Cannot set ifindex from unexpected rtnl message type."
	.section	.rodata.str1.1
.LC3:
	.string	"Could not get ifindex: %m"
.LC4:
	.string	"Got invalid ifindex: %d"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Could not set ifindex to %d, already set to %d"
	.section	.rodata.str1.1
.LC6:
	.string	"Could not get IFNAME: %m"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Received newlink with wrong IFNAME %s"
	.section	.rodata.str1.1
.LC8:
	.string	"Could not get LINKINFO: %m"
.LC9:
	.string	"Could not get KIND: %m"
.LC10:
	.string	"Could not exit container: %m"
.LC11:
	.string	"Could not get kind"
	.section	.rodata.str1.8
	.align 8
.LC12:
	.string	"Received newlink with wrong KIND %s, expected %s"
	.section	.rodata.str1.1
.LC13:
	.string	"netdev has index %d"
	.text
	.p2align 4
	.globl	netdev_set_ifindex
	.type	netdev_set_ifindex, @function
netdev_set_ifindex:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	assert@PLT
	mov	rdi, rbp
	call	assert@PLT
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	call	sd_netlink_message_get_type@PLT
	test	eax, eax
	js	.L20
	mov	rax, QWORD PTR RTM_NEWLINK[rip]
	cmp	QWORD PTR 16[rsp], rax
	jne	.L21
	lea	rsi, 12[rsp]
	mov	rdi, rbp
	call	sd_rtnl_message_link_get_ifindex@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L22
	mov	edx, DWORD PTR 12[rsp]
	test	edx, edx
	jle	.L23
	mov	ecx, DWORD PTR 0[r13]
	test	ecx, ecx
	jle	.L7
	xor	r12d, r12d
	cmp	edx, ecx
	je	.L1
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	xor	eax, eax
	call	log_netdev_error@PLT
	mov	rdi, r13
	call	netdev_enter_failed@PLT
	mov	r12d, DWORD PTR EEXIST[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	xor	eax, eax
	call	log_netdev_error@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	lea	rdx, .LC1[rip]
	mov	esi, eax
	mov	rdi, r13
	call	log_netdev_error_errno@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR IFLA_IFNAME[rip]
	lea	rdx, 32[rsp]
	mov	rdi, rbp
	call	sd_netlink_message_read_string@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L25
	mov	rdi, QWORD PTR 8[r13]
	mov	rsi, QWORD PTR 32[rsp]
	call	streq@PLT
	test	eax, eax
	je	.L26
	mov	esi, DWORD PTR IFLA_LINKINFO[rip]
	mov	rdi, rbp
	call	sd_netlink_message_enter_container@PLT
	test	eax, eax
	js	.L27
	mov	esi, DWORD PTR IFLA_INFO_KIND[rip]
	lea	rdx, 24[rsp]
	mov	rdi, rbp
	call	sd_netlink_message_read_string@PLT
	test	eax, eax
	js	.L28
	mov	rdi, rbp
	call	sd_netlink_message_exit_container@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L29
	mov	rdi, QWORD PTR 16[r13]
	cmp	rdi, QWORD PTR NETDEV_KIND_TAP[rip]
	je	.L17
	call	netdev_kind_to_string@PLT
	mov	r14, rax
	test	rax, rax
	je	.L30
.L13:
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r14
	call	streq@PLT
	test	eax, eax
	je	.L31
	mov	edx, DWORD PTR 12[rsp]
	lea	rsi, .LC13[rip]
	mov	rdi, r13
	xor	r12d, r12d
	mov	DWORD PTR 0[r13], edx
	call	log_netdev_debug@PLT
	mov	rdi, r13
	call	netdev_enter_ready@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r13
	lea	rdx, .LC3[rip]
	mov	esi, eax
	call	log_netdev_error_errno@PLT
	mov	rdi, r13
	call	netdev_enter_failed@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	xor	eax, eax
	call	log_netdev_error@PLT
	mov	rdi, r13
	call	netdev_enter_failed@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdx, QWORD PTR 32[rsp]
	mov	rdi, r13
	lea	rsi, .LC7[rip]
	call	log_netdev_error@PLT
	mov	rdi, r13
	call	netdev_enter_failed@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdx, .LC6[rip]
	mov	esi, eax
	mov	rdi, r13
	call	log_netdev_error_errno@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdx, .LC8[rip]
	mov	esi, eax
	mov	rdi, r13
	call	log_netdev_error_errno@PLT
	mov	r12d, eax
	jmp	.L1
.L28:
	lea	rdx, .LC9[rip]
	mov	esi, eax
	mov	rdi, r13
	call	log_netdev_error_errno@PLT
	mov	r12d, eax
	jmp	.L1
.L17:
	lea	r14, .LC0[rip]
	jmp	.L13
.L31:
	mov	rdx, QWORD PTR 24[rsp]
	mov	rdi, r13
	mov	rcx, r14
	lea	rsi, .LC12[rip]
	call	log_netdev_error@PLT
	mov	rdi, r13
	call	netdev_enter_failed@PLT
	jmp	.L1
.L29:
	lea	rdx, .LC10[rip]
	mov	esi, eax
	mov	rdi, r13
	call	log_netdev_error_errno@PLT
	mov	r12d, eax
	jmp	.L1
.L30:
	lea	rsi, .LC11[rip]
	mov	rdi, r13
	xor	eax, eax
	call	log_netdev_error@PLT
	mov	rdi, r13
	call	netdev_enter_failed@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	netdev_set_ifindex, .-netdev_set_ifindex
	.comm	RTM_NEWLINK,8,8
	.comm	NETDEV_KIND_TAP,8,8
	.comm	IFLA_LINKINFO,4,4
	.comm	IFLA_INFO_KIND,4,4
	.comm	IFLA_IFNAME,4,4
	.comm	EINVAL,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_netdev.c_netdev_set_ifindex.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tun\000"
	.align	2
.LC1:
	.ascii	"Could not get rtnl message type: %m\000"
	.align	2
.LC2:
	.ascii	"Cannot set ifindex from unexpected rtnl message typ"
	.ascii	"e.\000"
	.align	2
.LC3:
	.ascii	"Could not get ifindex: %m\000"
	.align	2
.LC4:
	.ascii	"Got invalid ifindex: %d\000"
	.align	2
.LC5:
	.ascii	"Could not set ifindex to %d, already set to %d\000"
	.align	2
.LC6:
	.ascii	"Could not get IFNAME: %m\000"
	.align	2
.LC7:
	.ascii	"Received newlink with wrong IFNAME %s\000"
	.align	2
.LC8:
	.ascii	"Could not get LINKINFO: %m\000"
	.align	2
.LC9:
	.ascii	"Could not get KIND: %m\000"
	.align	2
.LC10:
	.ascii	"Could not exit container: %m\000"
	.align	2
.LC11:
	.ascii	"Could not get kind\000"
	.align	2
.LC12:
	.ascii	"Received newlink with wrong KIND %s, expected %s\000"
	.align	2
.LC13:
	.ascii	"netdev has index %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	netdev_set_ifindex
	.syntax unified
	.arm
	.fpu softvfp
	.type	netdev_set_ifindex, %function
netdev_set_ifindex:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r3, .L32
	sub	sp, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r6, r0
	bl	assert
	mov	r0, r5
	bl	assert
	add	r1, sp, #4
	mov	r0, r5
	bl	sd_netlink_message_get_type
	subs	r1, r0, #0
	blt	.L20
	ldr	r3, .L32+4
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L21
	mov	r0, r5
	add	r1, sp, #16
	bl	sd_rtnl_message_link_get_ifindex
	subs	r4, r0, #0
	blt	.L22
	ldr	r2, [sp, #16]
	cmp	r2, #0
	ble	.L23
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L7
	cmp	r2, r3
	moveq	r4, #0
	beq	.L1
	ldr	r1, .L32+8
	mov	r0, r6
	bl	log_netdev_error
	mov	r0, r6
	bl	netdev_enter_failed
	ldr	r3, .L32+12
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L21:
	mov	r0, r6
	ldr	r1, .L32+16
	bl	log_netdev_error
	ldr	r3, .L32+20
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L20:
	mov	r0, r6
	ldr	r2, .L32+24
	bl	log_netdev_error_errno
	mov	r4, r0
	b	.L1
.L7:
	ldr	r3, .L32+28
	mov	r0, r5
	ldr	r1, [r3]
	add	r2, sp, #12
	bl	sd_netlink_message_read_string
	subs	r4, r0, #0
	blt	.L25
	ldr	r1, [sp, #12]
	ldr	r0, [r6, #4]
	bl	streq
	cmp	r0, #0
	beq	.L26
	ldr	r3, .L32+32
	mov	r0, r5
	ldr	r1, [r3]
	bl	sd_netlink_message_enter_container
	subs	r1, r0, #0
	blt	.L27
	ldr	r3, .L32+36
	mov	r0, r5
	ldr	r1, [r3]
	add	r2, sp, #8
	bl	sd_netlink_message_read_string
	subs	r1, r0, #0
	blt	.L28
	mov	r0, r5
	bl	sd_netlink_message_exit_container
	subs	r4, r0, #0
	blt	.L29
	ldr	r3, .L32+40
	ldr	r0, [r6, #8]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L17
	bl	netdev_kind_to_string
	subs	r5, r0, #0
	beq	.L30
.L13:
	mov	r0, r5
	ldr	r1, [sp, #8]
	bl	streq
	cmp	r0, #0
	beq	.L31
	ldr	r2, [sp, #16]
	ldr	r1, .L32+44
	str	r2, [r6]
	mov	r0, r6
	bl	log_netdev_debug
	mov	r0, r6
	bl	netdev_enter_ready
	mov	r4, #0
	b	.L1
.L22:
	mov	r1, r4
	mov	r0, r6
	ldr	r2, .L32+48
	bl	log_netdev_error_errno
	mov	r0, r6
	bl	netdev_enter_failed
	b	.L1
.L23:
	ldr	r1, .L32+52
	mov	r0, r6
	bl	log_netdev_error
	mov	r0, r6
	bl	netdev_enter_failed
	ldr	r3, .L32+20
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L26:
	mov	r0, r6
	ldr	r2, [sp, #12]
	ldr	r1, .L32+56
	bl	log_netdev_error
	mov	r0, r6
	bl	netdev_enter_failed
	b	.L1
.L25:
	mov	r1, r4
	mov	r0, r6
	ldr	r2, .L32+60
	bl	log_netdev_error_errno
	mov	r4, r0
	b	.L1
.L27:
	mov	r0, r6
	ldr	r2, .L32+64
	bl	log_netdev_error_errno
	mov	r4, r0
	b	.L1
.L28:
	mov	r0, r6
	ldr	r2, .L32+68
	bl	log_netdev_error_errno
	mov	r4, r0
	b	.L1
.L17:
	ldr	r5, .L32+72
	b	.L13
.L31:
	mov	r3, r5
	mov	r0, r6
	ldr	r2, [sp, #8]
	ldr	r1, .L32+76
	bl	log_netdev_error
	mov	r0, r6
	bl	netdev_enter_failed
	b	.L1
.L29:
	mov	r1, r4
	mov	r0, r6
	ldr	r2, .L32+80
	bl	log_netdev_error_errno
	mov	r4, r0
	b	.L1
.L30:
	ldr	r1, .L32+84
	mov	r0, r6
	bl	log_netdev_error
	mov	r0, r6
	bl	netdev_enter_failed
	ldr	r3, .L32+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC14
	.word	RTM_NEWLINK
	.word	.LC5
	.word	EEXIST
	.word	.LC2
	.word	EINVAL
	.word	.LC1
	.word	IFLA_IFNAME
	.word	IFLA_LINKINFO
	.word	IFLA_INFO_KIND
	.word	NETDEV_KIND_TAP
	.word	.LC13
	.word	.LC3
	.word	.LC4
	.word	.LC7
	.word	.LC6
	.word	.LC8
	.word	.LC9
	.word	.LC0
	.word	.LC12
	.word	.LC10
	.word	.LC11
	.size	netdev_set_ifindex, .-netdev_set_ifindex
	.comm	RTM_NEWLINK,4,4
	.comm	NETDEV_KIND_TAP,4,4
	.comm	IFLA_LINKINFO,4,4
	.comm	IFLA_INFO_KIND,4,4
	.comm	IFLA_IFNAME,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
