	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function com_read_dimension
_com_read_dimension:                    ## @com_read_dimension
	.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	%rcx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rcx, %rdi
	callq	_ZVAL_NULL
	leaq	4(%r12), %rbx
	movq	%rbx, %rdi
	callq	_V_VT
	movq	_VT_DISPATCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	callq	_VariantInit
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	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
	movq	%r12, %rdi
	movq	%r13, %rcx
	movl	$1, %r8d
	movq	%r15, %r9
	pushq	$0
	pushq	$0
	callq	_php_com_do_invoke_by_id
	addq	$16, %rsp
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.2:
	movl	(%r12), %edx
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_php_com_zval_from_variant
	jmp	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	callq	_V_ISARRAY
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	callq	_convert_to_long
	movq	%rbx, %rdi
	callq	_V_ARRAY
	movl	%eax, %edi
	callq	_SafeArrayGetDim
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_Z_LVAL_P
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_php_com_safearray_get_elem
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	(%r12), %edx
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_php_com_wrap_variant
LBB0_3:
	movq	%rbx, %rdi
	callq	_VariantClear
	jmp	LBB0_10
LBB0_9:
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_php_com_throw_exception
	jmp	LBB0_10
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_php_com_saproxy_create
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_E_INVALIDARG,4,2               ## @E_INVALIDARG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"this variant is not an array type"

	.no_dead_strip	_com_read_dimension
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function com_read_dimension
_com_read_dimension:                    ; @com_read_dimension
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	mov	x0, x3
	bl	_ZVAL_NULL
	add	x22, x20, #4
	mov	x0, x22
	bl	_V_VT
Lloh0:
	adrp	x8, _VT_DISPATCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VT_DISPATCH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	add	x0, sp, #12
	bl	_VariantInit
Lloh3:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
Lloh6:
	adrp	x8, _DISPID_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DISPID_VALUE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DISPATCH_METHOD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DISPATCH_METHOD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _DISPATCH_PROPERTYGET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DISPATCH_PROPERTYGET@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x3, sp, #12
	mov	x0, x20
	mov	w4, #1
	mov	x5, x21
	mov	w6, #0
	mov	w7, #0
	bl	_php_com_do_invoke_by_id
	cmp	x22, x0
	b.ne	LBB0_10
; %bb.2:
	ldr	w2, [x20]
	add	x1, sp, #12
	mov	x0, x19
	bl	_php_com_zval_from_variant
	b	LBB0_7
LBB0_3:
	mov	x0, x22
	bl	_V_ISARRAY
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_convert_to_long
	mov	x0, x22
	bl	_V_ARRAY
	bl	_SafeArrayGetDim
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x21
	bl	_Z_LVAL_P
	mov	x2, x0
	add	x1, sp, #12
	mov	x0, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_php_com_safearray_get_elem
	cbz	x0, LBB0_10
; %bb.6:
	ldr	w2, [x20]
	add	x1, sp, #12
	mov	x0, x19
	bl	_php_com_wrap_variant
LBB0_7:
	add	x0, sp, #12
	bl	_VariantClear
	b	LBB0_10
LBB0_8:
Lloh15:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_php_com_throw_exception
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_php_com_saproxy_create
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.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	_E_INVALIDARG,4,2               ; @E_INVALIDARG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"this variant is not an array type"

	.no_dead_strip	_com_read_dimension
.subsections_via_symbols
