	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function com_object_cast
_com_object_cast:                       ## @com_object_cast
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_VT_EMPTY@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rsi, %rdi
	callq	_ZVAL_NULL
	leaq	-44(%rbp), %rdi
	callq	_VariantInit
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_V_VT
	movq	_VT_DISPATCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	movq	_DISPID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DISPATCH_METHOD@GOTPCREL(%rip), %rax
	movq	_DISPATCH_PROPERTYGET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$1
	callq	_php_com_do_invoke_by_id
	addq	$16, %rsp
	cmpq	%rax, %rbx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_3
LBB0_2:
	leaq	-44(%rbp), %rdi
	movq	%r14, %rsi
	callq	_VariantCopy
LBB0_3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_10
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_VT_BOOL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_VT_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_VT_BSTR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_VT_R8@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %r13
LBB0_10:
	movq	_VT_EMPTY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_13
## %bb.11:
	leaq	-44(%rbp), %rdi
	callq	_V_VT
	cmpq	%rax, %r13
	je	LBB0_13
## %bb.12:
	leaq	-44(%rbp), %rdi
	movq	%rdi, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_VariantChangeType
	movl	%eax, %r15d
LBB0_13:
	movl	%r15d, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_php_com_zval_from_variant
LBB0_15:
	leaq	-44(%rbp), %rdi
	callq	_VariantClear
	movl	%r15d, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_zend_std_cast_object_tostring
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_VT_EMPTY,8,3                   ## @VT_EMPTY
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_VT_DISPATCH,8,3                ## @VT_DISPATCH
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_DISPID_VALUE,4,2               ## @DISPID_VALUE
	.comm	_DISPATCH_METHOD,4,2            ## @DISPATCH_METHOD
	.comm	_DISPATCH_PROPERTYGET,4,2       ## @DISPATCH_PROPERTYGET
	.comm	_VT_INT,8,3                     ## @VT_INT
	.comm	_VT_R8,8,3                      ## @VT_R8
	.comm	_VT_BOOL,8,3                    ## @VT_BOOL
	.comm	_VT_BSTR,8,3                    ## @VT_BSTR
	.no_dead_strip	_com_object_cast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function com_object_cast
_com_object_cast:                       ; @com_object_cast
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x26, _VT_EMPTY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VT_EMPTY@GOTPAGEOFF]
	ldr	x23, [x26]
Lloh2:
	adrp	x8, _S_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x1
	bl	_ZVAL_NULL
	add	x0, sp, #12
	bl	_VariantInit
	add	x24, x21, #4
	mov	x0, x24
	bl	_V_VT
Lloh5:
	adrp	x8, _VT_DISPATCH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VT_DISPATCH@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x25, _SUCCESS@GOTPAGE
Lloh9:
	ldr	x25, [x25, _SUCCESS@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x27, [x25]
Lloh10:
	adrp	x8, _DISPID_VALUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DISPID_VALUE@GOTPAGEOFF]
Lloh12:
	adrp	x9, _DISPATCH_METHOD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DISPATCH_METHOD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	ldr	w8, [x9]
Lloh16:
	adrp	x9, _DISPATCH_PROPERTYGET@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DISPATCH_PROPERTYGET@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x3, sp, #12
	mov	x0, x21
	mov	w4, #0
	mov	x5, #0
	mov	w6, #1
	mov	w7, #0
	bl	_php_com_do_invoke_by_id
	cmp	x27, x0
	b.eq	LBB0_3
LBB0_2:
	add	x0, sp, #12
	mov	x1, x24
	bl	_VariantCopy
LBB0_3:
	sub	w8, w19, #128
	cmp	w8, #6
	b.hi	LBB0_10
; %bb.4:
Lloh19:
	adrp	x9, lJTI0_0@PAGE
Lloh20:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh21:
	adrp	x8, _VT_BOOL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VT_BOOL@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh23:
	adrp	x8, _VT_INT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VT_INT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh25:
	adrp	x8, _VT_BSTR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VT_BSTR@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh27:
	adrp	x8, _VT_R8@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VT_R8@GOTPAGEOFF]
LBB0_9:
	ldr	x23, [x8]
LBB0_10:
	ldr	x8, [x26]
	cmp	x23, x8
	b.eq	LBB0_13
; %bb.11:
	add	x0, sp, #12
	bl	_V_VT
	cmp	x23, x0
	b.eq	LBB0_13
; %bb.12:
	add	x0, sp, #12
	add	x1, sp, #12
	mov	w2, #0
	mov	x3, x23
	bl	_VariantChangeType
	mov	x22, x0
LBB0_13:
	mov	x0, x22
	bl	_SUCCEEDED
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x20
	bl	_php_com_zval_from_variant
LBB0_15:
	add	x0, sp, #12
	bl	_VariantClear
	mov	x0, x22
	bl	_SUCCEEDED
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w0, [x25]
	b	LBB0_18
LBB0_17:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_zend_std_cast_object_tostring
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
                                        ; -- End function
	.comm	_VT_EMPTY,8,3                   ; @VT_EMPTY
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_VT_DISPATCH,8,3                ; @VT_DISPATCH
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_DISPID_VALUE,4,2               ; @DISPID_VALUE
	.comm	_DISPATCH_METHOD,4,2            ; @DISPATCH_METHOD
	.comm	_DISPATCH_PROPERTYGET,4,2       ; @DISPATCH_PROPERTYGET
	.comm	_VT_INT,8,3                     ; @VT_INT
	.comm	_VT_R8,8,3                      ; @VT_R8
	.comm	_VT_BOOL,8,3                    ; @VT_BOOL
	.comm	_VT_BSTR,8,3                    ; @VT_BSTR
	.no_dead_strip	_com_object_cast
.subsections_via_symbols
