	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zend_ffi_write_var
_zend_ffi_write_var:                    ## @zend_ffi_write_var
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%r15, %rsi
	callq	_zend_hash_find_ptr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rcx
	movq	_ZEND_FFI_SYM_VAR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.5:
	cmpq	$0, 16(%rax)
	je	LBB0_7
## %bb.6:
	movq	_zend_ffi_exception_ce@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_ZSTR_VAL
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	movq	_zend_ffi_exception_ce@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_ZSTR_VAL
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_zend_throw_error
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%rax), %edi
	movl	12(%rax), %ebx
	callq	_ZEND_FFI_TYPE
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_zend_ffi_zval_to_cdata
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ZEND_FFI_SYM_VAR,8,3           ## @ZEND_FFI_SYM_VAR
	.comm	_zend_ffi_exception_ce,4,2      ## @zend_ffi_exception_ce
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to assign undefined C variable '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"Attempt to assign read-only C variable '%s'"

	.no_dead_strip	_zend_ffi_write_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zend_ffi_write_var
_zend_ffi_write_var:                    ; @zend_ffi_write_var
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x1
	ldr	x0, [x0]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x1, x20
	bl	_zend_hash_find_ptr
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ZEND_FFI_SYM_VAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZEND_FFI_SYM_VAR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _zend_ffi_exception_ce@GOTPAGE
Lloh4:
	ldr	x8, [x8, _zend_ffi_exception_ce@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_ZSTR_VAL
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _zend_ffi_exception_ce@GOTPAGE
Lloh9:
	ldr	x8, [x8, _zend_ffi_exception_ce@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_ZSTR_VAL
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x21
	bl	_zend_throw_error
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldp	w0, w20, [x0, #8]
	bl	_ZEND_FFI_TYPE
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_zend_ffi_zval_to_cdata
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ZEND_FFI_SYM_VAR,8,3           ; @ZEND_FFI_SYM_VAR
	.comm	_zend_ffi_exception_ce,4,2      ; @zend_ffi_exception_ce
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to assign undefined C variable '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"Attempt to assign read-only C variable '%s'"

	.no_dead_strip	_zend_ffi_write_var
.subsections_via_symbols
