	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_sockop_read
_php_sockop_read:                       ## @php_sockop_read
	.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	8(%rdi), %rbx
	movl	$-1, %r12d
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r13d
	cmpl	$-1, %r13d
	je	LBB0_17
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r15
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_php_sock_stream_wait_for_data
	xorl	%r12d, %r12d
	cmpq	$0, 16(%rbx)
	jne	LBB0_17
## %bb.4:
	movl	(%rbx), %r13d
LBB0_5:
	movq	%r14, %rdi
	callq	_XP_SOCK_BUF_SIZE
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.7:
	xorl	%ecx, %ecx
	cmpl	$-1, 4(%rbx)
	je	LBB0_9
## %bb.8:
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_9
LBB0_6:
	xorl	%ecx, %ecx
LBB0_9:
	movl	%r13d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_recv
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_php_socket_errno
	testl	%r14d, %r14d
	js	LBB0_10
## %bb.13:
	je	LBB0_14
## %bb.15:
	movq	%r15, %rdi
	callq	_PHP_STREAM_CONTEXT
	movl	%eax, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_php_stream_notify_progress_increment
	jmp	LBB0_16
LBB0_10:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.11:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.12:
	movl	$1, (%r15)
LBB0_16:
	movl	%r14d, %r12d
	jmp	LBB0_17
LBB0_14:
	movl	$1, (%r15)
	xorl	%r12d, %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.no_dead_strip	_php_sockop_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_sockop_read
_php_sockop_read:                       ; @php_sockop_read
	.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
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_7
; %bb.1:
	ldr	w21, [x22]
	cmn	w21, #1
	b.eq	LBB0_7
; %bb.2:
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_php_sock_stream_wait_for_data
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_13
; %bb.4:
	ldr	w21, [x22]
LBB0_5:
	mov	x0, x23
	bl	_XP_SOCK_BUF_SIZE
	mov	x2, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w8, [x22, #4]
Lloh0:
	adrp	x9, _MSG_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmn	w8, #1
	csel	w3, wzr, w9, eq
	b	LBB0_9
LBB0_7:
	mov	w20, #-1
	b	LBB0_15
LBB0_8:
	mov	w3, #0
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	bl	_recv
	mov	x20, x0
	bl	_php_socket_errno
	tbnz	w20, #31, LBB0_12
; %bb.10:
	cbz	w20, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_PHP_STREAM_CONTEXT
	mov	x1, x20
	mov	w2, #0
	bl	_php_stream_notify_progress_increment
	b	LBB0_15
LBB0_12:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_14
LBB0_13:
	mov	w20, #0
	b	LBB0_15
LBB0_14:
	mov	w8, #1
	str	w8, [x19]
LBB0_15:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.no_dead_strip	_php_sockop_read
.subsections_via_symbols
