	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetTargetInterface
_GetTargetInterface:                    ## @GetTargetInterface
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_E_NOINTERFACE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	8(%r15), %rdx
	addq	$8, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, -8(%rdx)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addq	$24, %rdx
	cmpq	%rbx, %rcx
	jne	LBB0_2
## %bb.4:
	movl	%ecx, %ebx
	jmp	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	(%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	movq	%rcx, (%r14)
LBB0_8:
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	movq	_MAX_ITF_CACHE_ENTRIES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jge	LBB0_15
## %bb.10:
	cmpl	$0, 4(%r15)
	jle	LBB0_17
## %bb.11:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r12,4), %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_IBaseFilter_QueryInterface
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_E_NOINTERFACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	movslq	4(%r15), %rcx
	cmpq	%rcx, %r12
	jl	LBB0_12
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	8(%r15), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movq	%r13, (%rax,%rcx,8)
	movq	16(%r15), %rdx
	movl	(%rdx,%r12,4), %edx
	movl	%edx, 16(%rax,%rcx,8)
	movq	(%r14), %rdx
	movq	%rdx, 8(%rax,%rcx,8)
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_8
## %bb.19:
	incl	%eax
	movl	%eax, (%r15)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_E_NOINTERFACE,8,3              ## @E_NOINTERFACE
	.comm	_S_OK,8,3                       ## @S_OK
	.comm	_MAX_ITF_CACHE_ENTRIES,4,2      ## @MAX_ITF_CACHE_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough space to store interface in the cache\n"

	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
	.no_dead_strip	_GetTargetInterface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetTargetInterface
_GetTargetInterface:                    ; @GetTargetInterface
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _E_NOINTERFACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _E_NOINTERFACE@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	ldr	x9, [x19, #8]
	add	x9, x9, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-8]
	cmp	x10, x21
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	add	x9, x9, #24
	cmp	x8, x23
	b.ne	LBB0_2
; %bb.4:
	mov	x23, x8
	b	LBB0_8
LBB0_5:
	mov	w23, #0
	b	LBB0_8
LBB0_6:
	ldr	x8, [x9]
	cbz	x8, LBB0_8
; %bb.7:
	str	x8, [x20]
Lloh2:
	adrp	x8, _S_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
Lloh4:
	adrp	x8, _MAX_ITF_CACHE_ENTRIES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_ITF_CACHE_ENTRIES@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ge	LBB0_14
; %bb.9:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.10:
	mov	x25, #0
Lloh7:
	adrp	x24, _S_OK@GOTPAGE
Lloh8:
	ldr	x24, [x24, _S_OK@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x25, lsl #2]
	mov	x1, x21
	mov	x2, x20
	bl	_IBaseFilter_QueryInterface
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19, #4]
	cmp	x25, x8
	b.lt	LBB0_11
	b	LBB0_16
LBB0_14:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh11:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_15:
	ldr	x0, [x8]
LBB0_16:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w8, #24
	ldp	x9, x10, [x19, #8]
	umaddl	x8, w23, w8, x9
	ldr	w9, [x10, x25, lsl #2]
	str	x21, [x8]
	str	w9, [x8, #16]
	ldr	x9, [x20]
	str	x9, [x8, #8]
	ldr	w8, [x19]
	cmp	w23, w8
	b.lt	LBB0_19
; %bb.18:
	add	w8, w8, #1
	str	w8, [x19]
LBB0_19:
	ldr	x0, [x24]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_E_NOINTERFACE,8,3              ; @E_NOINTERFACE
	.comm	_S_OK,8,3                       ; @S_OK
	.comm	_MAX_ITF_CACHE_ENTRIES,4,2      ; @MAX_ITF_CACHE_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough space to store interface in the cache\n"

	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
	.no_dead_strip	_GetTargetInterface
.subsections_via_symbols
