	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_sock_stream_wait_for_data
_php_sock_stream_wait_for_data:         ## @php_sock_stream_wait_for_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movl	(%rsi), %edi
	cmpl	$-1, %edi
	je	LBB0_8
## %bb.2:
	movl	$0, 4(%rbx)
	leaq	8(%rbx), %rax
	xorl	%r14d, %r14d
	cmpl	$-1, 8(%rbx)
	cmovneq	%rax, %r14
	movq	_PHP_POLLREADABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdx
	callq	_php_pollfd_for
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	_EINTR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jns	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_php_socket_errno
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	%r14, %rdx
	callq	_php_pollfd_for
	testl	%eax, %eax
	jne	LBB0_4
LBB0_7:
	movl	$1, 4(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHP_POLLREADABLE,4,2           ## @PHP_POLLREADABLE
	.comm	_EINTR,8,3                      ## @EINTR
	.no_dead_strip	_php_sock_stream_wait_for_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_sock_stream_wait_for_data
_php_sock_stream_wait_for_data:         ; @php_sock_stream_wait_for_data
	.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
	cbz	x1, LBB0_8
; %bb.1:
	mov	x19, x1
	ldr	w0, [x1]
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	mov	x8, x19
	ldr	w9, [x8, #8]!
	stur	wzr, [x8, #-4]
	cmn	w9, #1
	csel	x20, xzr, x8, eq
Lloh0:
	adrp	x21, _PHP_POLLREADABLE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHP_POLLREADABLE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, x20
	bl	_php_pollfd_for
	cbz	w0, LBB0_7
; %bb.3:
Lloh2:
	adrp	x22, _EINTR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w0, #31, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_php_socket_errno
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x21]
	mov	x2, x20
	bl	_php_pollfd_for
	cbnz	w0, LBB0_4
LBB0_7:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PHP_POLLREADABLE,4,2           ; @PHP_POLLREADABLE
	.comm	_EINTR,8,3                      ; @EINTR
	.no_dead_strip	_php_sock_stream_wait_for_data
.subsections_via_symbols
