	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zend_ffi_cdata_write_dim
_zend_ffi_cdata_write_dim:              ## @zend_ffi_cdata_write_dim
	.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, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	16(%rdi), %edi
	callq	_ZEND_FFI_TYPE
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_zval_get_long
	movl	%eax, %r15d
	movq	(%r14), %rax
	movq	_ZEND_FFI_TYPE_ARRAY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_EXPECTED
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movslq	%r15d, %rax
	xorl	%edi, %edi
	cmpq	%rax, 24(%r14)
	setle	%dil
	callq	_UNEXPECTED
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movl	%r15d, %edi
	shrl	$31, %edi
	callq	_UNEXPECTED
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	cmpq	$0, 24(%r14)
	setne	%dil
	callq	_UNEXPECTED
	testq	%rax, %rax
	je	LBB0_13
LBB0_7:
	movq	_zend_ffi_exception_ce@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	_zend_ffi_exception_ce@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	movq	(%r14), %rax
	movq	_ZEND_FFI_TYPE_POINTER@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_EXPECTED
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ZEND_FFI_FLAG_CONST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	8(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%r14), %edi
	movq	_ZEND_FFI_ATTR_CONST@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_ZEND_FFI_TYPE
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpq	$0, 8(%r12)
	sete	%dil
	callq	_UNEXPECTED
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_zend_ffi_exception_ce@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_13:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_ZEND_FFI_FLAG_CONST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	movq	_ZEND_FFI_ATTR_CONST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	andl	8(%r14), %r13d
	orl	%eax, %r13d
	movl	32(%r14), %edi
	callq	_ZEND_FFI_TYPE
	movq	%rax, %r14
	movq	8(%r12), %r12
	jmp	LBB0_14
LBB0_12:
	movq	_zend_ffi_exception_ce@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_11:
	andl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	andl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	orl	%ebx, %r13d
	movq	8(%r12), %rax
	movq	(%rax), %r12
LBB0_14:
	movslq	12(%r14), %rbx
	movl	%r13d, %edi
	callq	_UNEXPECTED
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_zend_ffi_exception_ce@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zend_throw_error               ## TAILCALL
LBB0_16:
	movslq	%r15d, %rax
	imulq	%rax, %rbx
	addq	%rbx, %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zend_ffi_zval_to_cdata         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_zend_ffi_exception_ce,4,2      ## @zend_ffi_exception_ce
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot add next element to object of type FFI\\CData"

	.comm	_ZEND_FFI_TYPE_ARRAY,8,3        ## @ZEND_FFI_TYPE_ARRAY
L_.str.1:                               ## @.str.1
	.asciz	"C array index out of bounds"

	.comm	_ZEND_FFI_FLAG_CONST,4,2        ## @ZEND_FFI_FLAG_CONST
	.comm	_ZEND_FFI_ATTR_CONST,4,2        ## @ZEND_FFI_ATTR_CONST
	.comm	_ZEND_FFI_TYPE_POINTER,8,3      ## @ZEND_FFI_TYPE_POINTER
L_.str.2:                               ## @.str.2
	.asciz	"NULL pointer dereference"

L_.str.3:                               ## @.str.3
	.asciz	"Attempt to assign element of non C array"

L_.str.4:                               ## @.str.4
	.asciz	"Attempt to assign read-only location"

	.no_dead_strip	_zend_ffi_cdata_write_dim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zend_ffi_cdata_write_dim
_zend_ffi_cdata_write_dim:              ; @zend_ffi_cdata_write_dim
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #16]
	bl	_ZEND_FFI_TYPE
	cbz	x20, LBB0_6
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	bl	_zval_get_long
	mov	x20, x0
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _ZEND_FFI_TYPE_ARRAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZEND_FFI_TYPE_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_EXPECTED
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x22, #24]
	cmp	x8, w20, sxtw
	cset	w0, le
	bl	_UNEXPECTED
	cbz	x0, LBB0_10
; %bb.3:
	lsr	w0, w20, #31
	bl	_UNEXPECTED
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x22, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_UNEXPECTED
	cbz	x0, LBB0_10
LBB0_5:
Lloh3:
	adrp	x8, _zend_ffi_exception_ce@GOTPAGE
Lloh4:
	ldr	x8, [x8, _zend_ffi_exception_ce@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_6:
Lloh8:
	adrp	x8, _zend_ffi_exception_ce@GOTPAGE
Lloh9:
	ldr	x8, [x8, _zend_ffi_exception_ce@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_7:
	ldr	x8, [x22]
Lloh13:
	adrp	x9, _ZEND_FFI_TYPE_POINTER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ZEND_FFI_TYPE_POINTER@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_EXPECTED
	cbz	x0, LBB0_11
; %bb.8:
	ldr	w23, [x21]
Lloh16:
	adrp	x8, _ZEND_FFI_FLAG_CONST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ZEND_FFI_FLAG_CONST@GOTPAGEOFF]
Lloh18:
	ldr	w24, [x8]
	ldr	w25, [x22, #8]
Lloh19:
	adrp	x8, _ZEND_FFI_ATTR_CONST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ZEND_FFI_ATTR_CONST@GOTPAGEOFF]
Lloh21:
	ldr	w26, [x8]
	ldr	w0, [x22, #16]
	bl	_ZEND_FFI_TYPE
	mov	x22, x0
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_UNEXPECTED
	cbz	x0, LBB0_12
; %bb.9:
Lloh22:
	adrp	x8, _zend_ffi_exception_ce@GOTPAGE
Lloh23:
	ldr	x8, [x8, _zend_ffi_exception_ce@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_10:
	ldr	w8, [x21]
Lloh27:
	adrp	x9, _ZEND_FFI_FLAG_CONST@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ZEND_FFI_FLAG_CONST@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	w9, [x22, #8]
Lloh30:
	adrp	x10, _ZEND_FFI_ATTR_CONST@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ZEND_FFI_ATTR_CONST@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w23, w9, w8
	ldr	w0, [x22, #32]
	bl	_ZEND_FFI_TYPE
	mov	x22, x0
	ldr	x21, [x21, #8]
	b	LBB0_13
LBB0_11:
Lloh33:
	adrp	x8, _zend_ffi_exception_ce@GOTPAGE
Lloh34:
	ldr	x8, [x8, _zend_ffi_exception_ce@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_12:
	and	w8, w24, w23
	and	w9, w26, w25
	orr	w23, w9, w8
	ldr	x8, [x21, #8]
	ldr	x21, [x8]
LBB0_13:
	ldrsw	x24, [x22, #12]
	mov	x0, x23
	bl	_UNEXPECTED
	cbz	x0, LBB0_16
; %bb.14:
Lloh38:
	adrp	x8, _zend_ffi_exception_ce@GOTPAGE
Lloh39:
	ldr	x8, [x8, _zend_ffi_exception_ce@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
	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
	b	_zend_throw_error
LBB0_16:
	sxtw	x8, w20
	madd	x0, x24, x8, x21
	mov	x1, x22
	mov	x2, x19
	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
	b	_zend_ffi_zval_to_cdata
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_zend_ffi_exception_ce,4,2      ; @zend_ffi_exception_ce
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot add next element to object of type FFI\\CData"

	.comm	_ZEND_FFI_TYPE_ARRAY,8,3        ; @ZEND_FFI_TYPE_ARRAY
l_.str.1:                               ; @.str.1
	.asciz	"C array index out of bounds"

	.comm	_ZEND_FFI_FLAG_CONST,4,2        ; @ZEND_FFI_FLAG_CONST
	.comm	_ZEND_FFI_ATTR_CONST,4,2        ; @ZEND_FFI_ATTR_CONST
	.comm	_ZEND_FFI_TYPE_POINTER,8,3      ; @ZEND_FFI_TYPE_POINTER
l_.str.2:                               ; @.str.2
	.asciz	"NULL pointer dereference"

l_.str.3:                               ; @.str.3
	.asciz	"Attempt to assign element of non C array"

l_.str.4:                               ; @.str.4
	.asciz	"Attempt to assign read-only location"

	.no_dead_strip	_zend_ffi_cdata_write_dim
.subsections_via_symbols
