	.file	"extr_hysdn_net.c_hysdn_net_release.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"network device deleted"
	.text
	.p2align 4
	.globl	hysdn_net_release
	.type	hysdn_net_release, @function
hysdn_net_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12, QWORD PTR 8[rdi]
	test	r12, r12
	je	.L3
	mov	QWORD PTR 8[rdi], 0
	mov	rbp, rdi
	mov	rdi, r12
	call	net_close@PLT
	mov	rdi, r12
	call	flush_tx_buffers@PLT
	mov	rdi, r12
	call	unregister_netdev@PLT
	mov	rdi, r12
	call	free_netdev@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR LOG_NET_INIT[rip], eax
	jne	.L10
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	hysdn_addlog@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hysdn_net_release, .-hysdn_net_release
	.comm	LOG_NET_INIT,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_hysdn_net.c_hysdn_net_release.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"network device deleted\000"
	.text
	.align	2
	.global	hysdn_net_release
	.syntax unified
	.arm
	.fpu softvfp
	.type	hysdn_net_release, %function
hysdn_net_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #4]
	cmp	r5, #0
	beq	.L3
	mov	r3, #0
	mov	r4, r0
	mov	r0, r5
	str	r3, [r4, #4]
	bl	net_close
	mov	r0, r5
	bl	flush_tx_buffers
	mov	r0, r5
	bl	unregister_netdev
	mov	r0, r5
	bl	free_netdev
	ldr	r3, .L11
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L10
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	mov	r0, r4
	ldr	r1, .L11+4
	bl	hysdn_addlog
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	LOG_NET_INIT
	.word	.LC0
	.size	hysdn_net_release, .-hysdn_net_release
	.comm	LOG_NET_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
