	.file	"extr_if_hn.c_hn_link_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hn_link_status, @function
hn_link_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rsi, rsp
	call	hn_rndis_get_linkstatus@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR HN_LINK_FLAG_LINKUP[rip]
	mov	ecx, DWORD PTR [rbx]
	mov	rdi, QWORD PTR NDIS_MEDIA_STATE_CONNECTED[rip]
	mov	eax, edx
	not	eax
	and	eax, ecx
	cmp	QWORD PTR [rsp], rdi
	je	.L11
.L5:
	mov	esi, DWORD PTR LINK_STATE_UP[rip]
	test	edx, eax
	mov	edi, DWORD PTR 4[rbx]
	mov	DWORD PTR [rbx], eax
	cmove	esi, DWORD PTR LINK_STATE_DOWN[rip]
	call	if_link_state_change@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, ecx
	or	eax, edx
	jmp	.L5
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hn_link_status, .-hn_link_status
	.comm	NDIS_MEDIA_STATE_CONNECTED,8,8
	.comm	LINK_STATE_UP,4,4
	.comm	LINK_STATE_DOWN,4,4
	.comm	HN_LINK_FLAG_LINKUP,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_if_hn.c_hn_link_status.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hn_link_status, %function
hn_link_status:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L12
	sub	sp, sp, #8
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	bl	hn_rndis_get_linkstatus
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L12+4
	ldr	r1, [sp]
	ldr	r2, [r3]
	ldr	r3, .L12+8
	cmp	r1, r2
	ldr	r2, [r3]
	ldr	r3, [r4]
	ldr	r0, [r4, #4]
	orreq	r3, r3, r2
	bicne	r3, r3, r2
	tst	r2, r3
	str	r3, [r4]
	ldrne	r3, .L12+12
	ldreq	r3, .L12+16
	ldr	r1, [r3]
	bl	if_link_state_change
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	NDIS_MEDIA_STATE_CONNECTED
	.word	HN_LINK_FLAG_LINKUP
	.word	LINK_STATE_UP
	.word	LINK_STATE_DOWN
	.size	hn_link_status, .-hn_link_status
	.comm	NDIS_MEDIA_STATE_CONNECTED,4,4
	.comm	LINK_STATE_UP,4,4
	.comm	LINK_STATE_DOWN,4,4
	.comm	HN_LINK_FLAG_LINKUP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
