	.file	"extr_misc.c_FindAdapterContextByName.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	FindAdapterContextByName
	.type	FindAdapterContextByName, @function
FindAdapterContextByName:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, GlobalAdapterList[rip]
	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, GlobalAdapterListLock[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rsi, 4[rsp]
	call	KeAcquireSpinLock@PLT
	mov	rbx, QWORD PTR GlobalAdapterList[rip]
	cmp	rbx, r13
	jne	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbx, QWORD PTR [rbx]
	cmp	rbx, r13
	je	.L2
.L5:
	mov	edx, DWORD PTR ListEntry[rip]
	mov	esi, DWORD PTR NDISUIO_ADAPTER_CONTEXT[rip]
	mov	rdi, rbx
	call	CONTAINING_RECORD@PLT
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, ebp
	mov	rdi, rax
	mov	r12, rax
	call	RtlEqualUnicodeString@PLT
	test	rax, rax
	je	.L3
	mov	esi, DWORD PTR 4[rsp]
	lea	rdi, GlobalAdapterListLock[rip]
	call	KeReleaseSpinLock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR 4[rsp]
	lea	rdi, GlobalAdapterListLock[rip]
	xor	r12d, r12d
	call	KeReleaseSpinLock@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	FindAdapterContextByName, .-FindAdapterContextByName
	.comm	TRUE,4,4
	.comm	NDISUIO_ADAPTER_CONTEXT,4,4
	.comm	ListEntry,4,4
	.comm	GlobalAdapterListLock,4,4
	.comm	GlobalAdapterList,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_misc.c_FindAdapterContextByName.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FindAdapterContextByName
	.syntax unified
	.arm
	.fpu softvfp
	.type	FindAdapterContextByName, %function
FindAdapterContextByName:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L11
	sub	sp, sp, #8
	ldr	r7, .L11+4
	mov	r6, r0
	mov	r1, sp
	ldr	r0, .L11+8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	KeAcquireSpinLock
	ldr	r4, [r7]
	cmp	r4, r7
	beq	.L2
	ldr	r10, .L11+12
	ldr	r9, .L11+16
	ldr	r8, .L11+20
	b	.L5
.L3:
	ldr	r4, [r4]
	cmp	r4, r7
	beq	.L2
.L5:
	ldr	r2, [r10]
	ldr	r1, [r9]
	mov	r0, r4
	bl	CONTAINING_RECORD
	mov	r1, r6
	ldr	r2, [r8]
	mov	r5, r0
	bl	RtlEqualUnicodeString
	cmp	r0, #0
	beq	.L3
	ldr	r1, [sp]
	ldr	r0, .L11+8
	bl	KeReleaseSpinLock
	b	.L1
.L2:
	ldr	r1, [sp]
	ldr	r0, .L11+8
	bl	KeReleaseSpinLock
	mov	r5, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	GlobalAdapterList
	.word	GlobalAdapterListLock
	.word	ListEntry
	.word	NDISUIO_ADAPTER_CONTEXT
	.word	TRUE
	.size	FindAdapterContextByName, .-FindAdapterContextByName
	.comm	TRUE,4,4
	.comm	NDISUIO_ADAPTER_CONTEXT,4,4
	.comm	ListEntry,4,4
	.comm	GlobalAdapterListLock,4,4
	.comm	GlobalAdapterList,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
