	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function from_zval_write_fd_array_aux
_from_zval_write_fd_array_aux:          ## @from_zval_write_fd_array_aux
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdx), %r13
	callq	_Z_TYPE_P
	movq	_IS_RESOURCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	xorl	%eax, %eax
	callq	_php_sockets_le_socket
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_zend_fetch_resource_ex
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%rax), %eax
	movl	%r15d, %ecx
	movl	%eax, (%r13,%rcx,4)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_from_zval_err               ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	callq	_php_file_le_stream
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_php_file_le_pstream
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_zend_fetch_resource2_ex
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	_PHP_STREAM_AS_FD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	decl	%r15d
	leaq	(,%r15,4), %rdx
	addq	%r13, %rdx
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	callq	_php_stream_cast
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_IS_RESOURCE,8,3                ## @IS_RESOURCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resource is not a stream or a socket"

	.comm	_PHP_STREAM_AS_FD,4,2           ## @PHP_STREAM_AS_FD
	.comm	_REPORT_ERRORS,4,2              ## @REPORT_ERRORS
	.comm	_FAILURE,8,3                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"cast stream to file descriptor failed"

L_.str.2:                               ## @.str.2
	.asciz	"expected a resource variable"

	.no_dead_strip	_from_zval_write_fd_array_aux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function from_zval_write_fd_array_aux
_from_zval_write_fd_array_aux:          ; @from_zval_write_fd_array_aux
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x2]
	bl	_Z_TYPE_P
Lloh0:
	adrp	x8, _IS_RESOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IS_RESOURCE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	bl	_php_sockets_le_socket
	mov	x2, x0
	mov	x0, x21
	mov	x1, #0
	bl	_zend_fetch_resource_ex
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x0]
	str	w8, [x23, w20, uxtw #2]
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_do_from_zval_err
LBB0_6:
	bl	_php_file_le_stream
	mov	x22, x0
	bl	_php_file_le_pstream
	mov	x3, x0
	mov	x0, x21
	mov	x1, #0
	mov	x2, x22
	bl	_zend_fetch_resource2_ex
	cbz	x0, LBB0_9
; %bb.7:
Lloh5:
	adrp	x8, _PHP_STREAM_AS_FD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHP_STREAM_AS_FD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	sub	w8, w20, #1
	add	x2, x23, w8, uxtw #2
Lloh8:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	bl	_php_stream_cast
Lloh11:
	adrp	x8, _FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.8:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_9:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IS_RESOURCE,8,3                ; @IS_RESOURCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resource is not a stream or a socket"

	.comm	_PHP_STREAM_AS_FD,4,2           ; @PHP_STREAM_AS_FD
	.comm	_REPORT_ERRORS,4,2              ; @REPORT_ERRORS
	.comm	_FAILURE,8,3                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"cast stream to file descriptor failed"

l_.str.2:                               ; @.str.2
	.asciz	"expected a resource variable"

	.no_dead_strip	_from_zval_write_fd_array_aux
.subsections_via_symbols
