	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_com_locate_typeinfo        ## -- Begin function php_com_locate_typeinfo
	.p2align	4, 0x90
_php_com_locate_typeinfo:               ## @php_com_locate_typeinfo
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	$0, -64(%rbp)
	movq	$0, -72(%rbp)
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movq	%rsi, %rbx
	testq	%r14, %r14
	jne	LBB0_7
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_V_DISPATCH
	movq	_IID_IProvideClassInfo2@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movl	%eax, %edi
	callq	_IDispatch_QueryInterface
	movl	%eax, %edi
	callq	_SUCCEEDED
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rdi
	movq	_GUIDKIND_DEFAULT_SOURCE_DISP_IID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-84(%rbp), %rdx
	callq	_IProvideClassInfo2_GetGUID
	movl	%eax, %edi
	callq	_SUCCEEDED
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi
	callq	_IProvideClassInfo2_Release
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.40:
	leaq	-84(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	xorl	%edi, %edi
	callq	_ITypeLib_GetTypeInfoOfGuid
	jmp	LBB0_38
LBB0_16:
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	movq	_CP_THREAD_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_php_com_load_typelib
	movq	%rax, -72(%rbp)
	jmp	LBB0_18
LBB0_7:
	movq	8(%rbx), %rax
	testq	%r14, %r14
	je	LBB0_8
## %bb.11:
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	callq	_ITypeInfo_GetContainingTypeLib
	jmp	LBB0_18
LBB0_5:
	movq	%rbx, %rdi
	callq	_V_DISPATCH
	movq	_IID_IProvideClassInfo@GOTPCREL(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movl	%eax, %edi
	callq	_IDispatch_QueryInterface
	movl	%eax, %edi
	callq	_SUCCEEDED
	testl	%eax, %eax
	je	LBB0_38
## %bb.6:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	movq	-80(%rbp), %rdi
	callq	_IProvideClassInfo_Release
	jmp	LBB0_38
LBB0_8:
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rdi
	callq	_ITypeInfo_AddRef
	movq	8(%rbx), %rax
	jmp	LBB0_39
LBB0_13:
	testq	%rdi, %rdi
	jne	LBB0_18
## %bb.14:
	movq	%rbx, %rdi
	callq	_V_DISPATCH
	movq	_LANG_NEUTRAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-64(%rbp), %rcx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_IDispatch_GetTypeInfo
	movq	-64(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_ITypeInfo_GetContainingTypeLib
	cmpq	$0, -72(%rbp)
	je	LBB0_18
## %bb.15:
	movq	-64(%rbp), %rdi
	callq	_ITypeInfo_Release
	movq	$0, -64(%rbp)
LBB0_18:
	movq	-72(%rbp), %rdi
	testq	%r14, %r14
	je	LBB0_36
## %bb.19:
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.20:
	movq	%r14, %rdi
	callq	_strlen
	movq	_CP_ACP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_php_com_string_to_olestring
	movq	%rax, %r14
	movw	$1, -50(%rbp)
	movq	-72(%rbp), %rdi
	leaq	-64(%rbp), %rcx
	leaq	-84(%rbp), %r8
	leaq	-50(%rbp), %r9
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ITypeLib_FindName
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	cmpw	$0, -50(%rbp)
	jne	LBB0_35
LBB0_22:
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_CLSIDFromProgID
	movl	%eax, %edi
	callq	_SUCCEEDED
	testl	%eax, %eax
	je	LBB0_35
## %bb.23:
	movq	-72(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_ITypeLib_GetTypeInfoOfGuid
	movl	%eax, %edi
	callq	_SUCCEEDED
	testl	%eax, %eax
	je	LBB0_35
## %bb.24:
	movq	-48(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_ITypeInfo_GetTypeAttr
	movq	-80(%rbp), %rsi
	cmpl	$0, (%rsi)
	jle	LBB0_34
## %bb.25:
	xorl	%ebx, %ebx
	leaq	-88(%rbp), %r12
	movq	_IMPLTYPEFLAG_FSOURCE@GOTPCREL(%rip), %r13
	jmp	LBB0_26
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	testl	%eax, %ecx
	je	LBB0_31
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=1
	incl	%ebx
	movq	-80(%rbp), %rsi
	cmpl	(%rsi), %ebx
	jge	LBB0_34
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_ITypeInfo_GetImplTypeFlags
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	-88(%rbp), %eax
	movl	(%r13), %ecx
	testl	%r15d, %r15d
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	_IMPLTYPEFLAG_FDEFAULT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_29
LBB0_31:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	-48(%rbp), %rdi
	movl	%ebx, %esi
	leaq	-92(%rbp), %rdx
	callq	_ITypeInfo_GetRefTypeOfImplType
	movl	%eax, %edi
	callq	_SUCCEEDED
	testl	%eax, %eax
	je	LBB0_29
## %bb.32:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-48(%rbp), %rdi
	movl	-92(%rbp), %esi
	leaq	-64(%rbp), %rdx
	callq	_ITypeInfo_GetRefTypeInfo
	movl	%eax, %edi
	callq	_SUCCEEDED
	testl	%eax, %eax
	je	LBB0_29
## %bb.33:
	movq	-80(%rbp), %rsi
LBB0_34:
	movq	-48(%rbp), %rdi
	callq	_ITypeInfo_ReleaseTypeAttr
	movq	-48(%rbp), %rdi
	callq	_ITypeInfo_Release
LBB0_35:
	movq	%r14, %rdi
	callq	_efree
	movq	-72(%rbp), %rdi
LBB0_36:
	testq	%rdi, %rdi
	je	LBB0_38
## %bb.37:
	callq	_ITypeLib_Release
LBB0_38:
	movq	-64(%rbp), %rax
LBB0_39:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	callq	_V_DISPATCH
	movq	_LANG_NEUTRAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-64(%rbp), %rcx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_IDispatch_GetTypeInfo
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_39
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_IID_IProvideClassInfo2,4,2     ## @IID_IProvideClassInfo2
	.comm	_GUIDKIND_DEFAULT_SOURCE_DISP_IID,4,2 ## @GUIDKIND_DEFAULT_SOURCE_DISP_IID
	.comm	_IID_IProvideClassInfo,4,2      ## @IID_IProvideClassInfo
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IProvideClassInfo: this code not yet written!"

	.comm	_LANG_NEUTRAL,4,2               ## @LANG_NEUTRAL
	.comm	_CP_THREAD_ACP,4,2              ## @CP_THREAD_ACP
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.comm	_IMPLTYPEFLAG_FSOURCE,4,2       ## @IMPLTYPEFLAG_FSOURCE
	.comm	_IMPLTYPEFLAG_FDEFAULT,4,2      ## @IMPLTYPEFLAG_FDEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_com_locate_typeinfo        ; -- Begin function php_com_locate_typeinfo
	.p2align	2
_php_com_locate_typeinfo:               ; @php_com_locate_typeinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x3
	mov	x20, x2
	stp	xzr, xzr, [sp, #48]
	cbz	x1, LBB0_6
; %bb.1:
	mov	x21, x1
	cbnz	x20, LBB0_8
; %bb.2:
	cbz	w19, LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_V_DISPATCH
Lloh0:
	adrp	x1, _IID_IProvideClassInfo2@GOTPAGE
Lloh1:
	ldr	x1, [x1, _IID_IProvideClassInfo2@GOTPAGEOFF]
	add	x2, sp, #32
	bl	_IDispatch_QueryInterface
	bl	_SUCCEEDED
	cbz	w0, LBB0_11
; %bb.4:
	ldr	x0, [sp, #32]
Lloh2:
	adrp	x8, _GUIDKIND_DEFAULT_SOURCE_DISP_IID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GUIDKIND_DEFAULT_SOURCE_DISP_IID@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #44
	bl	_IProvideClassInfo2_GetGUID
	bl	_SUCCEEDED
	mov	x19, x0
	ldr	x0, [sp, #32]
	bl	_IProvideClassInfo2_Release
	cbz	w19, LBB0_11
; %bb.5:
	add	x1, sp, #44
	add	x2, sp, #56
	mov	x0, #0
	bl	_ITypeLib_GetTypeInfoOfGuid
	b	LBB0_37
LBB0_6:
	cbz	x0, LBB0_18
; %bb.7:
Lloh5:
	adrp	x8, _CP_THREAD_ACP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CP_THREAD_ACP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_php_com_load_typelib
	str	x0, [sp, #48]
	b	LBB0_18
LBB0_8:
	ldr	x8, [x21, #8]
	cbz	x20, LBB0_13
; %bb.9:
	cbz	x8, LBB0_15
; %bb.10:
	add	x1, sp, #48
	add	x2, sp, #32
	mov	x0, x8
	bl	_ITypeInfo_GetContainingTypeLib
	b	LBB0_18
LBB0_11:
	mov	x0, x21
	bl	_V_DISPATCH
Lloh8:
	adrp	x1, _IID_IProvideClassInfo@GOTPAGE
Lloh9:
	ldr	x1, [x1, _IID_IProvideClassInfo@GOTPAGEOFF]
	add	x2, sp, #24
	bl	_IDispatch_QueryInterface
	bl	_SUCCEEDED
	cbz	w0, LBB0_37
; %bb.12:
Lloh10:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	ldr	x0, [sp, #24]
	bl	_IProvideClassInfo_Release
	b	LBB0_37
LBB0_13:
	cbz	x8, LBB0_39
; %bb.14:
	mov	x0, x8
	bl	_ITypeInfo_AddRef
	ldr	x0, [x21, #8]
	b	LBB0_38
LBB0_15:
	cbnz	x0, LBB0_18
; %bb.16:
	mov	x0, x21
	bl	_V_DISPATCH
Lloh15:
	adrp	x8, _LANG_NEUTRAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LANG_NEUTRAL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, sp, #56
	mov	w1, #0
	bl	_IDispatch_GetTypeInfo
	ldr	x0, [sp, #56]
	add	x1, sp, #48
	add	x2, sp, #32
	bl	_ITypeInfo_GetContainingTypeLib
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x0, [sp, #56]
	bl	_ITypeInfo_Release
	str	xzr, [sp, #56]
LBB0_18:
	ldr	x0, [sp, #48]
	cbz	x20, LBB0_35
; %bb.19:
	cbz	x0, LBB0_35
; %bb.20:
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
Lloh18:
	adrp	x8, _CP_ACP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CP_ACP@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_php_com_string_to_olestring
	mov	x20, x0
	mov	w8, #1
	strh	w8, [sp, #22]
	ldr	x0, [sp, #48]
	add	x3, sp, #56
	add	x4, sp, #44
	add	x5, sp, #22
	mov	x1, x20
	mov	w2, #0
	bl	_ITypeLib_FindName
	bl	_FAILED
	ldrh	w8, [sp, #22]
	cmp	x0, #0
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_34
; %bb.21:
	add	x1, sp, #16
	mov	x0, x20
	bl	_CLSIDFromProgID
	bl	_SUCCEEDED
	cbz	w0, LBB0_34
; %bb.22:
	ldr	x0, [sp, #48]
	add	x1, sp, #16
	add	x2, sp, #32
	bl	_ITypeLib_GetTypeInfoOfGuid
	bl	_SUCCEEDED
	cbz	w0, LBB0_34
; %bb.23:
	ldr	x0, [sp, #32]
	add	x1, sp, #24
	bl	_ITypeInfo_GetTypeAttr
	ldr	x1, [sp, #24]
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.24:
	mov	w21, #0
Lloh21:
	adrp	x22, _IMPLTYPEFLAG_FSOURCE@GOTPAGE
Lloh22:
	ldr	x22, [x22, _IMPLTYPEFLAG_FSOURCE@GOTPAGEOFF]
Lloh23:
	adrp	x23, _IMPLTYPEFLAG_FDEFAULT@GOTPAGE
Lloh24:
	ldr	x23, [x23, _IMPLTYPEFLAG_FDEFAULT@GOTPAGEOFF]
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=1
	tst	w9, w8
	b.eq	LBB0_30
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	w21, w21, #1
	ldr	x1, [sp, #24]
	ldr	w8, [x1]
	cmp	w21, w8
	b.ge	LBB0_33
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #32]
	add	x2, sp, #8
	mov	x1, x21
	bl	_ITypeInfo_GetImplTypeFlags
	bl	_FAILED
	cbnz	x0, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x22]
	cbz	w19, LBB0_25
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w10, [x23]
	orr	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_26
LBB0_30:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	x0, [sp, #32]
	add	x2, sp, #12
	mov	x1, x21
	bl	_ITypeInfo_GetRefTypeOfImplType
	bl	_SUCCEEDED
	cbz	w0, LBB0_26
; %bb.31:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x0, [sp, #32]
	ldr	w1, [sp, #12]
	add	x2, sp, #56
	bl	_ITypeInfo_GetRefTypeInfo
	bl	_SUCCEEDED
	cbz	w0, LBB0_26
; %bb.32:
	ldr	x1, [sp, #24]
LBB0_33:
	ldr	x0, [sp, #32]
	bl	_ITypeInfo_ReleaseTypeAttr
	ldr	x0, [sp, #32]
	bl	_ITypeInfo_Release
LBB0_34:
	mov	x0, x20
	bl	_efree
	ldr	x0, [sp, #48]
LBB0_35:
	cbz	x0, LBB0_37
; %bb.36:
	bl	_ITypeLib_Release
LBB0_37:
	ldr	x0, [sp, #56]
LBB0_38:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_39:
	mov	x0, x21
	bl	_V_DISPATCH
Lloh25:
	adrp	x8, _LANG_NEUTRAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LANG_NEUTRAL@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	add	x3, sp, #56
	mov	w1, #0
	bl	_IDispatch_GetTypeInfo
	ldr	x0, [sp, #56]
	cbnz	x0, LBB0_38
	b	LBB0_37
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IID_IProvideClassInfo2,4,2     ; @IID_IProvideClassInfo2
	.comm	_GUIDKIND_DEFAULT_SOURCE_DISP_IID,4,2 ; @GUIDKIND_DEFAULT_SOURCE_DISP_IID
	.comm	_IID_IProvideClassInfo,4,2      ; @IID_IProvideClassInfo
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IProvideClassInfo: this code not yet written!"

	.comm	_LANG_NEUTRAL,4,2               ; @LANG_NEUTRAL
	.comm	_CP_THREAD_ACP,4,2              ; @CP_THREAD_ACP
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.comm	_IMPLTYPEFLAG_FSOURCE,4,2       ; @IMPLTYPEFLAG_FSOURCE
	.comm	_IMPLTYPEFLAG_FDEFAULT,4,2      ; @IMPLTYPEFLAG_FDEFAULT
.subsections_via_symbols
