	.file	"extr_ifenum_reactos.c_getNthInterfaceEntity.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Index %d is entity #%d - %04x:%08x\n"
	.text
	.p2align 4
	.globl	getNthInterfaceEntity
	.type	getNthInterfaceEntity, @function
getNthInterfaceEntity:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 8[rsp], rdx
	lea	rsi, 32[rsp]
	lea	rdx, 28[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 28[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	call	tdiGetEntityIDSet@PLT
	mov	edi, eax
	mov	r12d, eax
	call	NT_SUCCESS@PLT
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jle	.L11
	xor	r15d, r15d
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 32[rsp]
	lea	rbx, 0[0+r15*8]
	mov	r12d, r15d
	mov	ebp, r15d
	add	rdi, rbx
	call	isInterface@PLT
	test	rax, rax
	je	.L4
	cmp	r13d, r14d
	je	.L5
	add	r13d, 1
.L4:
	lea	ebp, 1[r12]
	add	r15, 1
	cmp	DWORD PTR 28[rsp], r15d
	jg	.L6
	movsx	rbx, ebp
	sal	rbx, 3
.L3:
	mov	rax, QWORD PTR 32[rsp]
	mov	edx, ebp
	mov	esi, r14d
	lea	rdi, .LC0[rip]
	add	rax, rbx
	mov	ecx, DWORD PTR 4[rax]
	mov	r8d, DWORD PTR [rax]
	call	TRACE@PLT
	cmp	r14d, r13d
	je	.L9
	mov	rdi, QWORD PTR 32[rsp]
.L8:
	call	tdiFreeThingSet@PLT
	mov	r12d, DWORD PTR STATUS_UNSUCCESSFUL[rip]
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rsp]
	mov	edx, r15d
	mov	esi, r13d
	lea	rdi, .LC0[rip]
	add	rax, rbx
	mov	ecx, DWORD PTR 4[rax]
	mov	r8d, DWORD PTR [rax]
	call	TRACE@PLT
.L9:
	mov	rdi, QWORD PTR 32[rsp]
	cmp	DWORD PTR 28[rsp], ebp
	jle	.L8
	lea	rsi, [rdi+rbx]
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, 8
	call	memcpy@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	tdiFreeThingSet@PLT
	mov	r12d, DWORD PTR STATUS_SUCCESS[rip]
	jmp	.L1
.L11:
	xor	ebx, ebx
	xor	ebp, ebp
	xor	r13d, r13d
	jmp	.L3
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	getNthInterfaceEntity, .-getNthInterfaceEntity
	.comm	STATUS_UNSUCCESSFUL,4,4
	.comm	STATUS_SUCCESS,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_ifenum_reactos.c_getNthInterfaceEntity.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Index %d is entity #%d - %04x:%08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getNthInterfaceEntity
	.syntax unified
	.arm
	.fpu softvfp
	.type	getNthInterfaceEntity, %function
getNthInterfaceEntity:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, #0
	sub	sp, sp, #24
	ldr	r3, .L22
	mov	r5, r1
	mov	r7, r2
	add	r1, sp, #16
	add	r2, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	str	r4, [sp, #12]
	str	r4, [sp, #16]
	bl	tdiGetEntityIDSet
	mov	r6, r0
	bl	NT_SUCCESS
	cmp	r0, r4
	beq	.L1
	ldr	r3, [sp, #12]
	cmp	r3, r4
	ble	.L11
	mov	r6, r4
.L6:
	ldr	r0, [sp, #16]
	lsl	r8, r4, #3
	add	r0, r0, r4, lsl #3
	bl	isInterface
	cmp	r0, #0
	beq	.L4
	cmp	r6, r5
	beq	.L5
	add	r6, r6, #1
.L4:
	ldr	r3, [sp, #12]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
	lsl	r8, r4, #3
.L3:
	ldr	r1, [sp, #16]
	mov	r2, r4
	add	r3, r1, r8
	ldr	r1, [r1, r8]
	ldr	r3, [r3, #4]
	ldr	r0, .L22+4
	str	r1, [sp]
	mov	r1, r5
	bl	TRACE
	cmp	r5, r6
	beq	.L9
	ldr	r5, [sp, #16]
.L8:
	mov	r0, r5
	bl	tdiFreeThingSet
	ldr	r3, .L22+8
	ldr	r6, [r3]
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r6
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r2, [sp, #16]
	mov	r1, r6
	add	r3, r2, r8
	ldr	r2, [r2, r8]
	ldr	r3, [r3, #4]
	ldr	r0, .L22+4
	str	r2, [sp]
	mov	r2, r4
	bl	TRACE
.L9:
	ldr	r3, [sp, #12]
	ldr	r5, [sp, #16]
	cmp	r3, r4
	ble	.L8
	mov	r2, #8
	add	r1, r5, r8
	mov	r0, r7
	bl	memcpy
	mov	r0, r5
	bl	tdiFreeThingSet
	ldr	r3, .L22+12
	ldr	r6, [r3]
	b	.L1
.L11:
	mov	r8, r4
	mov	r6, r4
	b	.L3
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	.LC0
	.word	STATUS_UNSUCCESSFUL
	.word	STATUS_SUCCESS
	.size	getNthInterfaceEntity, .-getNthInterfaceEntity
	.comm	STATUS_UNSUCCESSFUL,4,4
	.comm	STATUS_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
