	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getNthInterfaceEntity          ## -- Begin function getNthInterfaceEntity
	.p2align	4, 0x90
_getNthInterfaceEntity:                 ## @getNthInterfaceEntity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	$0, -44(%rbp)
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_tdiGetEntityIDSet
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	cmpl	$0, -44(%rbp)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	-44(%rbp), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	addq	%rbx, %rdi
	callq	_isInterface
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r15d, %r12d
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r12d
	jmp	LBB0_8
LBB0_2:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_6:
	movl	%r15d, %r12d
LBB0_9:
	movq	-56(%rbp), %rax
	movl	%r13d, %r14d
	movl	(%rax,%r14,8), %r8d
	movl	4(%rax,%r14,8), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_TRACE
	movq	_STATUS_UNSUCCESSFUL@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %rdi
	cmpl	%r15d, %r12d
	jne	LBB0_12
## %bb.10:
	cmpl	-44(%rbp), %r13d
	jge	LBB0_12
## %bb.11:
	leaq	(%rdi,%r14,8), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	movq	_STATUS_SUCCESS@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %rdi
LBB0_12:
	callq	_tdiFreeThingSet
	movl	(%rbx), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Index %d is entity #%d - %04x:%08x\n"

	.comm	_STATUS_SUCCESS,4,2             ## @STATUS_SUCCESS
	.comm	_STATUS_UNSUCCESSFUL,4,2        ## @STATUS_UNSUCCESSFUL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getNthInterfaceEntity          ; -- Begin function getNthInterfaceEntity
	.p2align	2
_getNthInterfaceEntity:                 ; @getNthInterfaceEntity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	str	wzr, [sp, #12]
	str	xzr, [sp]
	mov	x1, sp
	add	x2, sp, #12
	bl	_tdiGetEntityIDSet
	mov	x21, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_13
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x23, #0
	mov	x21, #0
	mov	w22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [sp, #12]
	add	x23, x23, #8
	cmp	x21, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	add	x0, x8, x23
	bl	_isInterface
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, w20
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	b	LBB0_3
LBB0_7:
	mov	w22, #0
	mov	w21, #0
	b	LBB0_9
LBB0_8:
	mov	x22, x20
LBB0_9:
	ldr	x8, [sp]
	add	x8, x8, w21, uxtw #3
	ldp	w4, w3, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_TRACE
Lloh2:
	adrp	x23, _STATUS_UNSUCCESSFUL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _STATUS_UNSUCCESSFUL@GOTPAGEOFF]
	ldr	x0, [sp]
	cmp	w22, w20
	b.ne	LBB0_12
; %bb.10:
	ldr	w8, [sp, #12]
	cmp	w21, w8
	b.ge	LBB0_12
; %bb.11:
	mov	w8, w21
	add	x1, x0, x8, lsl #3
	mov	x0, x19
	mov	w2, #8
	bl	_memcpy
Lloh4:
	adrp	x23, _STATUS_SUCCESS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _STATUS_SUCCESS@GOTPAGEOFF]
	ldr	x0, [sp]
LBB0_12:
	bl	_tdiFreeThingSet
	ldr	w21, [x23]
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Index %d is entity #%d - %04x:%08x\n"

	.comm	_STATUS_SUCCESS,4,2             ; @STATUS_SUCCESS
	.comm	_STATUS_UNSUCCESSFUL,4,2        ; @STATUS_UNSUCCESSFUL
.subsections_via_symbols
