	.file	"extr_hard-interface.c_batadv_hardif_remove_interface.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	batadv_hardif_remove_interface, @function
batadv_hardif_remove_interface:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	mov	rbp, rdi
	call	ASSERT_RTNL@PLT
	mov	rax, QWORD PTR BATADV_IF_NOT_IN_USE[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L2
.L3:
	mov	rax, QWORD PTR BATADV_IF_TO_BE_REMOVED[rip]
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], rax
	call	batadv_debugfs_del_hardif@PLT
	lea	rdi, 8[rbp]
	call	batadv_sysfs_del_hardif@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	batadv_hardif_put@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR BATADV_IF_CLEANUP_KEEP[rip]
	mov	rdi, rbp
	call	batadv_hardif_disable_interface@PLT
	mov	rax, QWORD PTR BATADV_IF_NOT_IN_USE[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L3
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	batadv_hardif_remove_interface, .-batadv_hardif_remove_interface
	.comm	BATADV_IF_TO_BE_REMOVED,8,8
	.comm	BATADV_IF_NOT_IN_USE,8,8
	.comm	BATADV_IF_CLEANUP_KEEP,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_hard-interface.c_batadv_hardif_remove_interface.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	batadv_hardif_remove_interface, %function
batadv_hardif_remove_interface:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, .L7
	bl	ASSERT_RTNL
	ldr	r2, [r4]
	ldr	r3, [r5]
	cmp	r2, r3
	bne	.L2
.L3:
	ldr	r3, .L7+4
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4]
	bl	batadv_debugfs_del_hardif
	add	r0, r4, #4
	bl	batadv_sysfs_del_hardif
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	batadv_hardif_put
.L2:
	ldr	r3, .L7+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	batadv_hardif_disable_interface
	ldr	r3, [r5]
	ldr	r2, [r4]
	cmp	r2, r3
	popne	{r4, r5, r6, pc}
	b	.L3
.L8:
	.align	2
.L7:
	.word	BATADV_IF_NOT_IN_USE
	.word	BATADV_IF_TO_BE_REMOVED
	.word	BATADV_IF_CLEANUP_KEEP
	.size	batadv_hardif_remove_interface, .-batadv_hardif_remove_interface
	.comm	BATADV_IF_TO_BE_REMOVED,4,4
	.comm	BATADV_IF_NOT_IN_USE,4,4
	.comm	BATADV_IF_CLEANUP_KEEP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
