	.file	"extr_rostcp.c_LibTCPListen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	LibTCPListen
	.type	LibTCPListen, @function
LibTCPListen:
.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
	mov	ebp, edi
	lea	rdi, MessageLookasideList[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ExAllocateFromNPagedLookasideList@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	lea	r13, 8[rax]
	mov	edx, DWORD PTR FALSE[rip]
	mov	esi, DWORD PTR NotificationEvent[rip]
	mov	rdi, r13
	call	KeInitializeEvent@PLT
	mov	DWORD PTR 12[r12], ebx
	mov	rsi, r12
	xor	ebx, ebx
	mov	DWORD PTR 16[r12], ebp
	mov	edi, DWORD PTR LibTCPListenCallback[rip]
	mov	edx, 1
	call	tcpip_callback_with_block@PLT
	mov	rdi, r13
	call	WaitForEventSafely@PLT
	test	rax, rax
	jne	.L11
.L3:
	mov	rsi, r12
	lea	rdi, MessageLookasideList[rip]
	mov	r12, rbx
	call	ExFreeToNPagedLookasideList@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L11:
	.cfi_restore_state
	mov	rbx, QWORD PTR [r12]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	LibTCPListen, .-LibTCPListen
	.comm	NotificationEvent,4,4
	.comm	MessageLookasideList,4,4
	.comm	LibTCPListenCallback,4,4
	.comm	FALSE,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_rostcp.c_LibTCPListen.c"
	.text
	.align	2
	.global	LibTCPListen
	.syntax unified
	.arm
	.fpu softvfp
	.type	LibTCPListen, %function
LibTCPListen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, .L10
	mov	r6, r1
	bl	ExAllocateFromNPagedLookasideList
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	add	r5, r4, #4
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r5
	bl	KeInitializeEvent
	ldr	r3, .L10+12
	mov	r1, r4
	ldr	r0, [r3]
	mov	r2, #1
	str	r7, [r4, #12]
	str	r6, [r4, #8]
	bl	tcpip_callback_with_block
	mov	r0, r5
	bl	WaitForEventSafely
	subs	r3, r0, #0
	ldrne	r3, [r4]
	mov	r1, r4
	ldr	r0, .L10
	mov	r4, r3
	bl	ExFreeToNPagedLookasideList
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	MessageLookasideList
	.word	NotificationEvent
	.word	FALSE
	.word	LibTCPListenCallback
	.size	LibTCPListen, .-LibTCPListen
	.comm	NotificationEvent,4,4
	.comm	MessageLookasideList,4,4
	.comm	LibTCPListenCallback,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
