	.file	"extr_br_ioctl.c_add_del_if.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	add_del_if, @function
add_del_if:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	call	dev_net@PLT
	mov	esi, DWORD PTR CAP_NET_ADMIN[rip]
	mov	edi, DWORD PTR [rax]
	mov	rbp, rax
	call	ns_capable@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR EPERM[rip]
	neg	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
.L2:
	.cfi_restore_state
	mov	esi, r13d
	mov	rdi, rbp
	call	__dev_get_by_index@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	test	rsi, rsi
	je	.L1
	test	ebx, ebx
	je	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	xor	edx, edx
	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
	jmp	br_add_if@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	br_del_if@PLT
	.cfi_endproc
.LFE0:
	.size	add_del_if, .-add_del_if
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	CAP_NET_ADMIN,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_br_ioctl.c_add_del_if.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_del_if, %function
add_del_if:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r6, r1
	mov	r7, r2
	bl	dev_net
	ldr	r3, .L9
	mov	r4, r0
	ldr	r1, [r3]
	ldr	r0, [r0]
	bl	ns_capable
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r1, r6
	mov	r0, r4
	bl	__dev_get_by_index
	subs	r1, r0, #0
	beq	.L8
	cmp	r7, #0
	mov	r0, r5
	beq	.L5
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #0
	b	br_add_if
.L5:
	pop	{r4, r5, r6, r7, r8, lr}
	b	br_del_if
.L8:
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	CAP_NET_ADMIN
	.word	EPERM
	.word	EINVAL
	.size	add_del_if, .-add_del_if
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	CAP_NET_ADMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
