	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_cli_server_do_event_for_each_fd_callback
_php_cli_server_do_event_for_each_fd_callback: ## @php_cli_server_do_event_for_each_fd_callback
	.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	16(%rdi), %r13
	cmpl	%esi, 12(%r13)
	jne	LBB0_10
## %bb.1:
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_pemalloc
	movq	%rax, %r14
	movl	12(%r13), %edi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rsi
	callq	_accept
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ZEND_VALID_SOCKET
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_php_set_sock_blocking
	cmpl	%eax, %ebx
	jne	LBB0_8
## %bb.6:
	movl	$16, %edi
	movl	$1, %esi
	callq	_pemalloc
	movq	%rax, %r12
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	-44(%rbp), %r8d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_php_cli_server_client_ctor
	cmpq	%rax, %rbx
	jne	LBB0_9
## %bb.7:
	movq	_PHP_CLI_SERVER_LOG_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_php_cli_server_logf
LBB0_8:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pefree
	movl	%r15d, %edi
	callq	_closesocket
	jmp	LBB0_15
LBB0_10:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	leaq	4(%r13), %rdi
	callq	_zend_hash_index_find_ptr
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%rax, %r15
	movq	_POLLIN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	*8(%rbx)
LBB0_13:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	*(%rbx)
	jmp	LBB0_15
LBB0_2:
	movq	_php_cli_server_log_level@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PHP_CLI_SERVER_LOG_ERROR@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jl	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_php_socket_errno
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_php_socket_strerror
	movq	%rax, %rbx
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_php_cli_server_logf
	movq	%rbx, %rdi
	callq	_efree
LBB0_4:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pefree
	jmp	LBB0_15
LBB0_9:
	movq	_PHP_CLI_SERVER_LOG_MESSAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_php_cli_server_logf
	leaq	4(%r13), %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_zend_hash_index_update_ptr
	addq	$8, %r13
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%r13, %rdi
	callq	_php_cli_server_poller_add
LBB0_15:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_php_cli_server_log_level,8,3   ## @php_cli_server_log_level
	.comm	_PHP_CLI_SERVER_LOG_ERROR,8,3   ## @PHP_CLI_SERVER_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to accept a client (reason: %s)"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_FAILURE,8,3                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create a new request object"

	.comm	_PHP_CLI_SERVER_LOG_MESSAGE,8,3 ## @PHP_CLI_SERVER_LOG_MESSAGE
L_.str.2:                               ## @.str.2
	.asciz	"%s Accepted"

	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.no_dead_strip	_php_cli_server_do_event_for_each_fd_callback
.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_do_event_for_each_fd_callback
_php_cli_server_do_event_for_each_fd_callback: ; @php_cli_server_do_event_for_each_fd_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, [x0, #16]
	ldr	w8, [x19, #12]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [x19]
	str	w8, [sp, #12]
	ldr	w0, [x19]
	mov	w1, #1
	bl	_pemalloc
	mov	x20, x0
	ldr	w0, [x19, #12]
	add	x2, sp, #12
	mov	x1, x20
	bl	_accept
	mov	x21, x0
	bl	_ZEND_VALID_SOCKET
	cbz	w0, LBB0_11
; %bb.2:
Lloh0:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_php_set_sock_blocking
	cmp	w22, w0
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #16
	mov	w1, #1
	bl	_pemalloc
	mov	x22, x0
Lloh3:
	adrp	x8, _FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
	ldr	w4, [sp, #12]
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_php_cli_server_client_ctor
	cmp	x23, x0
	b.ne	LBB0_14
; %bb.4:
Lloh6:
	adrp	x8, _PHP_CLI_SERVER_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHP_CLI_SERVER_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_php_cli_server_logf
LBB0_5:
	mov	x0, x20
	mov	w1, #1
	bl	_pefree
	mov	x0, x21
	bl	_closesocket
	b	LBB0_15
LBB0_6:
	mov	x21, x2
	mov	x20, x0
	add	x0, x19, #4
	bl	_zend_hash_index_find_ptr
	cbz	x0, LBB0_15
; %bb.7:
	mov	x22, x0
Lloh11:
	adrp	x8, _POLLIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
	mov	x0, x19
	mov	x1, x22
	blr	x8
LBB0_9:
Lloh14:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_15
; %bb.10:
	ldr	x8, [x20]
	mov	x0, x19
	mov	x1, x22
	blr	x8
	b	LBB0_15
LBB0_11:
Lloh17:
	adrp	x8, _php_cli_server_log_level@GOTPAGE
Lloh18:
	ldr	x8, [x8, _php_cli_server_log_level@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x21, _PHP_CLI_SERVER_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x21, [x21, _PHP_CLI_SERVER_LOG_ERROR@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.lt	LBB0_13
; %bb.12:
	bl	_php_socket_errno
	mov	x1, #0
	mov	w2, #0
	bl	_php_socket_strerror
	mov	x19, x0
	ldr	x0, [x21]
	str	x19, [sp]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_php_cli_server_logf
	mov	x0, x19
	bl	_efree
LBB0_13:
	mov	x0, x20
	mov	w1, #1
	bl	_pefree
	b	LBB0_15
LBB0_14:
Lloh24:
	adrp	x8, _PHP_CLI_SERVER_LOG_MESSAGE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PHP_CLI_SERVER_LOG_MESSAGE@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
	ldr	x8, [x22]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_php_cli_server_logf
	add	x0, x19, #4
	mov	x1, x21
	mov	x2, x22
	bl	_zend_hash_index_update_ptr
	add	x0, x19, #8
Lloh29:
	adrp	x8, _POLLIN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [x22, #8]
	bl	_php_cli_server_poller_add
LBB0_15:
Lloh32:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_php_cli_server_log_level,8,3   ; @php_cli_server_log_level
	.comm	_PHP_CLI_SERVER_LOG_ERROR,8,3   ; @PHP_CLI_SERVER_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to accept a client (reason: %s)"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_FAILURE,8,3                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create a new request object"

	.comm	_PHP_CLI_SERVER_LOG_MESSAGE,8,3 ; @PHP_CLI_SERVER_LOG_MESSAGE
l_.str.2:                               ; @.str.2
	.asciz	"%s Accepted"

	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.no_dead_strip	_php_cli_server_do_event_for_each_fd_callback
.subsections_via_symbols
