	.file	"extr_Proto_EtherIP.c_EtherIPProcInterrupts.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"*"
.LC1:
	.string	"LE_RECONNECT"
	.text
	.p2align 4
	.globl	EtherIPProcInterrupts
	.type	EtherIPProcInterrupts, @function
EtherIPProcInterrupts:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	cmp	QWORD PTR 40[rdi], 0
	mov	rbx, rdi
	je	.L4
	mov	rax, QWORD PTR 72[rdi]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR [rdi]
	jne	.L28
.L4:
	mov	edi, DWORD PTR 56[rbx]
	call	Lock@PLT
	cmp	QWORD PTR 40[rbx], 0
	je	.L29
.L10:
	mov	edi, DWORD PTR 56[rbx]
	call	Unlock@PLT
	mov	rdi, QWORD PTR 40[rbx]
	test	rdi, rdi
	je	.L1
	mov	esi, DWORD PTR 52[rbx]
	call	IPCSetSockEventWhenRecvL2Packet@PLT
	mov	rdi, QWORD PTR 40[rbx]
	call	IPCProcessInterrupts@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L30:
	lea	r12d, 2[rsi]
	mov	edi, r12d
	call	Malloc@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	QWORD PTR [rax], 48
	mov	edx, DWORD PTR 0[rbp]
	lea	rdi, 8[rax]
	mov	r13, rax
	call	Copy@PLT
.L16:
	mov	esi, r12d
	mov	rdi, r13
	xor	edx, edx
	call	NewBlock@PLT
	mov	edi, DWORD PTR 48[rbx]
	mov	rsi, rax
	call	Add@PLT
.L14:
	mov	rdi, rbp
	call	FreeBlock@PLT
.L17:
	mov	rdi, QWORD PTR 40[rbx]
	call	IPCRecvL2@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L13
	mov	esi, DWORD PTR [rax]
	cmp	esi, 13
	jle	.L14
	mov	eax, DWORD PTR 36[rbx]
	test	eax, eax
	je	.L30
	mov	rdi, QWORD PTR 8[rbp]
	call	Clone@PLT
	mov	r12d, DWORD PTR 0[rbp]
	mov	r13, rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 40[rbx]
	call	IsIPCConnected@PLT
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR 40[rbx]
	call	FreeIPC@PLT
	mov	QWORD PTR 40[rbx], 0
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 40
	.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
.L28:
	.cfi_restore_state
	mov	QWORD PTR [rdi], rax
	mov	rdx, QWORD PTR 8[rdi]
	lea	rbp, 12[rsp]
	mov	rdi, QWORD PTR 80[rdi]
	mov	rsi, rbp
	call	SearchEtherIPId@PLT
	test	eax, eax
	jne	.L8
	mov	rdi, QWORD PTR 80[rbx]
	lea	rdx, .LC0[rip]
	mov	rsi, rbp
	call	SearchEtherIPId@PLT
	test	eax, eax
	jne	.L8
.L6:
	mov	rdi, QWORD PTR 40[rbx]
	call	FreeIPC@PLT
	mov	QWORD PTR 40[rbx], 0
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	call	EtherIPLog@PLT
	mov	edi, DWORD PTR 56[rbx]
	call	Lock@PLT
	cmp	QWORD PTR 40[rbx], 0
	jne	.L10
.L29:
	cmp	QWORD PTR 64[rbx], 0
	jne	.L10
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	je	.L11
	add	rax, QWORD PTR ETHERIP_VPN_CONNECT_RETRY_INTERVAL[rip]
	cmp	rax, QWORD PTR 24[rbx]
	jg	.L10
.L11:
	mov	rax, QWORD PTR 80[rbx]
	mov	edi, DWORD PTR [rax]
	call	Lock@PLT
	mov	rax, QWORD PTR 80[rbx]
	mov	edx, 4
	lea	rdi, 32[rbx]
	lea	rsi, 4[rax]
	call	Copy@PLT
	mov	rax, QWORD PTR 80[rbx]
	mov	edi, DWORD PTR [rax]
	call	Unlock@PLT
	mov	edi, DWORD PTR EtherIPIpcConnectThread[rip]
	mov	rsi, rbx
	call	NewThread@PLT
	mov	QWORD PTR 64[rbx], rax
	mov	rsi, rax
	mov	rax, QWORD PTR 72[rbx]
	mov	edi, DWORD PTR [rax]
	call	AddThreadToThreadList@PLT
	mov	edi, DWORD PTR 60[rbx]
	call	AddRef@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 96[rbx]
	mov	esi, DWORD PTR 20[rsp]
	call	StrCmpi@PLT
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR 92[rbx]
	mov	esi, DWORD PTR 16[rsp]
	call	StrCmpi@PLT
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR 88[rbx]
	mov	esi, DWORD PTR 12[rsp]
	call	StrCmp@PLT
	test	rax, rax
	jne	.L6
	jmp	.L4
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	EtherIPProcInterrupts, .-EtherIPProcInterrupts
	.comm	EtherIPIpcConnectThread,4,4
	.comm	ETHERIP_VPN_CONNECT_RETRY_INTERVAL,8,8
	.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_Proto_EtherIP.c_EtherIPProcInterrupts.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"*\000"
	.align	2
.LC1:
	.ascii	"LE_RECONNECT\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	EtherIPProcInterrupts
	.syntax unified
	.arm
	.fpu softvfp
	.type	EtherIPProcInterrupts, %function
EtherIPProcInterrupts:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L35
	sub	sp, sp, #20
	subs	r6, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L1
	ldr	r3, [r6, #24]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r6, #48]
	ldr	r2, [r6]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	cmp	r3, r2
	bne	.L31
.L4:
	ldr	r0, [r6, #36]
	bl	Lock
	ldr	r3, [r6, #24]
	cmp	r3, #0
	beq	.L32
.L10:
	ldr	r0, [r6, #36]
	bl	Unlock
	ldr	r0, [r6, #24]
	cmp	r0, #0
	beq	.L1
	ldr	r1, [r6, #32]
	bl	IPCSetSockEventWhenRecvL2Packet
	ldr	r0, [r6, #24]
	bl	IPCProcessInterrupts
	mov	r8, #48
	b	.L17
.L33:
	add	r5, r1, #2
	mov	r0, r5
	bl	Malloc
	stm	r0, {r8, r9}
	mov	r7, r0
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	add	r0, r0, #8
	bl	Copy
.L16:
	mov	r1, r5
	mov	r0, r7
	mov	r2, #0
	bl	NewBlock
	mov	r1, r0
	ldr	r0, [r6, #28]
	bl	Add
.L14:
	mov	r0, r4
	bl	FreeBlock
.L17:
	ldr	r0, [r6, #24]
	bl	IPCRecvL2
	subs	r4, r0, #0
	beq	.L13
	ldr	r1, [r4]
	cmp	r1, #13
	ble	.L14
	ldr	r9, [r6, #20]
	cmp	r9, #0
	beq	.L33
	ldr	r0, [r4, #4]
	bl	Clone
	ldr	r5, [r4]
	mov	r7, r0
	b	.L16
.L13:
	ldr	r0, [r6, #24]
	bl	IsIPCConnected
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [r6, #24]
	bl	FreeIPC
	str	r4, [r6, #24]
.L1:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L34
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L31:
	mov	r1, sp
	ldr	r2, [r6, #4]
	ldr	r0, [r6, #52]
	str	r3, [r6]
	bl	SearchEtherIPId
	cmp	r0, #0
	bne	.L8
	mov	r1, sp
	ldr	r2, .L35+4
	ldr	r0, [r6, #52]
	bl	SearchEtherIPId
	cmp	r0, #0
	bne	.L8
.L6:
	ldr	r0, [r6, #24]
	bl	FreeIPC
	mov	r3, #0
	mov	r0, r6
	ldr	r1, .L35+8
	str	r3, [r6, #24]
	bl	EtherIPLog
	b	.L4
.L8:
	ldr	r1, [sp, #8]
	ldr	r0, [r6, #64]
	bl	StrCmpi
	cmp	r0, #0
	bne	.L6
	ldr	r1, [sp, #4]
	ldr	r0, [r6, #60]
	bl	StrCmpi
	cmp	r0, #0
	bne	.L6
	ldr	r1, [sp]
	ldr	r0, [r6, #56]
	bl	StrCmp
	cmp	r0, #0
	bne	.L6
	b	.L4
.L32:
	ldr	r3, [r6, #44]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L11
	ldr	r1, .L35+12
	ldr	r2, [r6, #12]
	ldr	r1, [r1]
	add	r3, r3, r1
	cmp	r3, r2
	bgt	.L10
.L11:
	ldr	r3, [r6, #52]
	ldr	r0, [r3]
	bl	Lock
	mov	r2, #4
	ldr	r1, [r6, #52]
	add	r0, r6, #16
	add	r1, r1, r2
	bl	Copy
	ldr	r3, [r6, #52]
	ldr	r0, [r3]
	bl	Unlock
	ldr	r3, .L35+16
	mov	r1, r6
	ldr	r0, [r3]
	bl	NewThread
	ldr	r3, [r6, #48]
	mov	r1, r0
	str	r0, [r6, #44]
	ldr	r0, [r3]
	bl	AddThreadToThreadList
	ldr	r0, [r6, #40]
	bl	AddRef
	b	.L10
.L34:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	ETHERIP_VPN_CONNECT_RETRY_INTERVAL
	.word	EtherIPIpcConnectThread
	.size	EtherIPProcInterrupts, .-EtherIPProcInterrupts
	.comm	EtherIPIpcConnectThread,4,4
	.comm	ETHERIP_VPN_CONNECT_RETRY_INTERVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
