	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_cli_server_send_event
_php_cli_server_send_event:             ## @php_cli_server_send_event
	.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
	cmpq	$0, 16(%rsi)
	je	LBB0_12
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %esi
	testl	%esi, %esi
	js	LBB0_6
## %bb.2:
	cmpl	$0, 4(%rbx)
	je	LBB0_3
LBB0_6:
	leaq	4(%rbx), %r15
	movl	8(%rbx), %esi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_php_cli_server_content_sender_send
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	_SOCK_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_9:
	cmpl	$0, (%r15)
	jne	LBB0_12
## %bb.10:
	cmpl	$0, (%rbx)
	jns	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_php_cli_server_close_connection
LBB0_12:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_3:
	leaq	4(%rbx), %rdi
	leaq	-32(%rbp), %rdx
	callq	_php_cli_server_content_sender_pull
	testq	%rax, %rax
	je	LBB0_4
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_php_cli_server_close_connection
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, -32(%rbp)
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	callq	_close
	movl	$-1, (%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_SOCK_EAGAIN,4,2                ## @SOCK_EAGAIN
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_php_cli_server_send_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_cli_server_send_event
_php_cli_server_send_event:             ; @php_cli_server_send_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x1]
	tbnz	w1, #31, LBB0_3
; %bb.2:
	mov	x0, x19
	ldr	w8, [x0, #4]!
	cbz	w8, LBB0_8
LBB0_3:
	add	x21, x19, #4
	ldr	w1, [x19, #8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_php_cli_server_content_sender_send
Lloh0:
	adrp	x8, _SOCK_EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x21]
	cbnz	w8, LBB0_7
; %bb.5:
	ldr	w8, [x19]
	tbz	w8, #31, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_php_cli_server_close_connection
LBB0_7:
Lloh3:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	add	x2, sp, #8
	bl	_php_cli_server_content_sender_pull
	cbz	x0, LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_php_cli_server_close_connection
Lloh5:
	adrp	x8, _FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_3
; %bb.12:
	ldr	w0, [x19]
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_SOCK_EAGAIN,4,2                ; @SOCK_EAGAIN
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_php_cli_server_send_event
.subsections_via_symbols
