	.file	"extr_hinic_main.c_hinic_close.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to set func port state\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Failed to set port state\n"
.LC2:
	.string	"HINIC_INTF is DOWN\n"
	.text
	.p2align 4
	.type	hinic_close, @function
hinic_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	lea	r12, 12[rax]
	mov	rbp, rax
	mov	rdi, r12
	call	down@PLT
	mov	eax, DWORD PTR HINIC_INTF_UP[rip]
	mov	ebx, DWORD PTR 0[rbp]
	mov	rdi, r13
	not	eax
	and	eax, ebx
	mov	DWORD PTR 0[rbp], eax
	call	netif_carrier_off@PLT
	mov	rdi, r13
	call	netif_tx_disable@PLT
	mov	rdi, rbp
	call	update_nic_stats@PLT
	mov	rdi, r12
	call	up@PLT
	mov	esi, DWORD PTR HINIC_FUNC_PORT_DISABLE[rip]
	mov	rdi, rbp
	call	hinic_port_set_func_state@PLT
	lea	rcx, .LC0[rip]
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	mov	esi, DWORD PTR HINIC_PORT_DISABLE[rip]
	mov	rdi, rbp
	call	hinic_port_set_state@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR HINIC_RSS_ENABLE[rip], eax
	jne	.L17
.L5:
	mov	rdi, rbp
	call	free_rxqs@PLT
	mov	rdi, rbp
	call	free_txqs@PLT
	test	DWORD PTR HINIC_INTF_UP[rip], ebx
	jne	.L18
.L6:
	mov	esi, DWORD PTR drv[rip]
	mov	rdx, r13
	mov	rdi, rbp
	lea	rcx, .LC2[rip]
	call	netif_info@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L16:
	.cfi_restore_state
	lea	rcx, .LC1[rip]
.L14:
	mov	esi, DWORD PTR drv[rip]
	mov	rdx, r13
	mov	rdi, rbp
	call	netif_err@PLT
	and	ebx, DWORD PTR HINIC_INTF_UP[rip]
	or	DWORD PTR 0[rbp], ebx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbp]
	call	hinic_hwdev_ifdown@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	call	hinic_rss_deinit@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	rdi, rbp
	call	hinic_rss_template_free@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	hinic_close, .-hinic_close
	.comm	drv,4,4
	.comm	HINIC_RSS_ENABLE,4,4
	.comm	HINIC_PORT_DISABLE,4,4
	.comm	HINIC_INTF_UP,4,4
	.comm	HINIC_FUNC_PORT_DISABLE,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_hinic_main.c_hinic_close.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to set func port state\012\000"
	.align	2
.LC1:
	.ascii	"Failed to set port state\012\000"
	.align	2
.LC2:
	.ascii	"HINIC_INTF is DOWN\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hinic_close, %function
hinic_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	netdev_priv
	mov	r4, r0
	add	r5, r0, #12
	ldr	r8, .L20
	mov	r0, r5
	bl	down
	ldr	r7, [r4]
	ldr	r3, [r8]
	mov	r0, r6
	bic	r3, r7, r3
	str	r3, [r4]
	bl	netif_carrier_off
	mov	r0, r6
	bl	netif_tx_disable
	mov	r0, r4
	bl	update_nic_stats
	mov	r0, r5
	bl	up
	ldr	r3, .L20+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	hinic_port_set_func_state
	subs	r5, r0, #0
	bne	.L16
	ldr	r3, .L20+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	hinic_port_set_state
	subs	r5, r0, #0
	bne	.L17
	ldr	r3, .L20+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L18
.L5:
	mov	r0, r4
	bl	free_rxqs
	mov	r0, r4
	bl	free_txqs
	ldr	r3, [r8]
	tst	r7, r3
	bne	.L19
.L6:
	ldr	r3, .L20+16
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L20+20
	bl	netif_info
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r2, r6
	ldr	r3, .L20+16
	ldr	r1, [r3]
	ldr	r3, .L20+24
.L14:
	mov	r0, r4
	bl	netif_err
	ldr	r2, [r8]
	ldr	r3, [r4]
	and	r7, r7, r2
	orr	r7, r3, r7
	mov	r0, r5
	str	r7, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r0, [r4, #4]
	bl	hinic_hwdev_ifdown
	b	.L6
.L18:
	mov	r0, r4
	bl	hinic_rss_deinit
	mov	r0, r4
	ldr	r1, [r4, #8]
	bl	hinic_rss_template_free
	b	.L5
.L17:
	ldr	r3, .L20+16
	mov	r2, r6
	ldr	r1, [r3]
	ldr	r3, .L20+28
	b	.L14
.L21:
	.align	2
.L20:
	.word	HINIC_INTF_UP
	.word	HINIC_FUNC_PORT_DISABLE
	.word	HINIC_PORT_DISABLE
	.word	HINIC_RSS_ENABLE
	.word	drv
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	hinic_close, .-hinic_close
	.comm	drv,4,4
	.comm	HINIC_RSS_ENABLE,4,4
	.comm	HINIC_PORT_DISABLE,4,4
	.comm	HINIC_INTF_UP,4,4
	.comm	HINIC_FUNC_PORT_DISABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
