	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_cli_server_ctor
_php_cli_server_ctor:                   ## @php_cli_server_ctor
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	$0, -80(%rbp)
	movl	$3000, -44(%rbp)                ## imm = 0xBB8
	movq	_SOCK_ERR@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpb	$91, (%rsi)
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.1:
	leaq	1(%r14), %rdi
	movl	$1, %esi
	callq	_pestrdup
	testq	%rax, %rax
	je	LBB0_40
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$93, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	leaq	1(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movb	$0, (%rax)
	movb	1(%rax), %dl
	cmpb	$58, %dl
	jne	LBB0_14
## %bb.4:
	addq	$2, %rax
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	jmp	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pestrdup
	testq	%rax, %rax
	je	LBB0_40
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%rax, %rdi
	incq	%rdi
	movq	%rdi, -56(%rbp)
	movb	$0, (%rax)
	leaq	-56(%rbp), %rsi
LBB0_5:
	movl	$10, %edx
	callq	_strtol
	movl	%eax, -44(%rbp)
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	cmpl	$-65536, %eax                   ## imm = 0xFFFF0000
	ja	LBB0_10
## %bb.6:
	movq	$0, -56(%rbp)
	jmp	LBB0_15
LBB0_40:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_26
LBB0_10:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_15
LBB0_11:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	72(%rbx), %rcx
	leaq	68(%rbx), %r8
	leaq	-44(%rbp), %rsi
	leaq	-80(%rbp), %r9
	movq	%r15, %rdi
	callq	_php_network_listen_socket
	cmpl	(%r12), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jne	LBB0_27
## %bb.12:
	movq	_PHP_CLI_SERVER_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %r14d
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.13:
	callq	_ZSTR_VAL
	movq	%rax, %r8
	jmp	LBB0_33
LBB0_14:
	xorl	%eax, %eax
	testb	%dl, %dl
	cmoveq	%rcx, %rax
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	jne	LBB0_11
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
LBB0_16:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_17:
	xorl	%r14d, %r14d
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_26
## %bb.20:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_pefree
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pefree
LBB0_22:
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pefree
LBB0_24:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	js	LBB0_26
## %bb.25:
	callq	_closesocket
LBB0_26:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	%rbx, %rcx
	movl	%eax, %ebx
	movl	%eax, (%rcx)
	movq	%rcx, %r12
	leaq	64(%rcx), %r14
	movq	%r14, %rdi
	callq	_php_cli_server_poller_ctor
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_17
## %bb.28:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_php_cli_server_poller_add
	movq	%r15, 8(%r12)
	movl	-44(%rbp), %eax
	movl	%eax, 16(%r12)
	leaq	60(%r12), %rdi
	movq	_php_cli_server_client_dtor_wrapper@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_zend_hash_init
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%rax, %rbx
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_pestrndup
	testq	%rax, %rax
	je	LBB0_16
## %bb.29:
	movq	%rax, %r14
	movq	%rax, 24(%r12)
	movq	%rbx, 32(%r12)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.30:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_pestrndup
	testq	%rax, %rax
	je	LBB0_39
## %bb.31:
	movq	%rax, %rbx
	movq	%rax, 40(%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%r12)
	jmp	LBB0_36
LBB0_32:
	leaq	L_.str.2(%rip), %r8
LBB0_33:
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_php_cli_server_logf
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.34:
	xorl	%esi, %esi
	callq	_zend_string_release_ex
	jmp	LBB0_16
LBB0_35:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r12)
	xorl	%ebx, %ebx
LBB0_36:
	movq	_mime_type_map@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_php_cli_server_mime_type_ctor
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_38
## %bb.37:
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_38:
	movl	$1, 56(%r12)
	jmp	LBB0_19
LBB0_39:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_SOCK_ERR,4,2                   ## @SOCK_ERR
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid address: %s\n"

	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_PHP_CLI_SERVER_LOG_ERROR,4,2   ## @PHP_CLI_SERVER_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to listen on %s:%d (reason: %s)"

L_.str.2:                               ## @.str.2
	.asciz	"?"

	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_php_cli_server_client_dtor_wrapper,4,2 ## @php_cli_server_client_dtor_wrapper
	.comm	_mime_type_map,4,2              ## @mime_type_map
	.no_dead_strip	_php_cli_server_ctor
.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_ctor
_php_cli_server_ctor:                   ; @php_cli_server_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x22, x0
Lloh0:
	adrp	x26, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SUCCESS@GOTPAGEOFF]
	ldr	w21, [x26]
	str	xzr, [sp, #24]
	mov	w8, #3000
	str	w8, [sp, #20]
Lloh2:
	adrp	x27, _SOCK_ERR@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SOCK_ERR@GOTPAGEOFF]
	ldr	w19, [x27]
	ldrb	w8, [x1]
	cmp	w8, #91
	b.ne	LBB0_5
; %bb.1:
	add	x0, x25, #1
	mov	w1, #1
	bl	_pestrdup
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
	mov	w1, #93
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.3:
	mov	x8, x0
	ldrb	w9, [x8, #1]!
	str	x8, [sp, #8]
	strb	wzr, [x0]
	cmp	w9, #58
	b.ne	LBB0_15
; %bb.4:
	add	x0, x0, #2
	b	LBB0_8
LBB0_5:
	mov	x0, x25
	mov	w1, #1
	bl	_pestrdup
	cbz	x0, LBB0_10
; %bb.6:
	mov	x20, x0
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.7:
	strb	wzr, [x0], #1
	str	x0, [sp, #8]
LBB0_8:
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	str	w0, [sp, #20]
	sub	w8, w0, #16, lsl #12            ; =65536
	cmn	w8, #16, lsl #12                ; =65536
	b.hi	LBB0_11
; %bb.9:
	str	xzr, [sp, #8]
	b	LBB0_16
LBB0_10:
Lloh4:
	adrp	x8, _FAILURE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	b	LBB0_27
LBB0_11:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_16
LBB0_12:
Lloh7:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x3, x22, #72
	add	x4, x22, #68
	add	x1, sp, #20
	add	x5, sp, #24
	mov	x0, x20
	bl	_php_network_listen_socket
	mov	x19, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_28
; %bb.13:
Lloh10:
	adrp	x8, _PHP_CLI_SERVER_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PHP_CLI_SERVER_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	ldr	w21, [sp, #20]
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_34
; %bb.14:
	bl	_ZSTR_VAL
	mov	x4, x0
	b	LBB0_35
LBB0_15:
	cmp	w9, #0
	csel	x8, x8, xzr, eq
	str	x8, [sp, #8]
	cbnz	x8, LBB0_12
LBB0_16:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_fprintf
LBB0_17:
	mov	x24, #0
LBB0_18:
	mov	x23, #0
LBB0_19:
Lloh18:
	adrp	x8, _FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
LBB0_20:
	ldr	w8, [x26]
	cmp	w21, w8
	b.eq	LBB0_27
; %bb.21:
	mov	x0, x20
	mov	w1, #1
	bl	_pefree
	cbz	x24, LBB0_23
; %bb.22:
	mov	x0, x24
	mov	w1, #1
	bl	_pefree
LBB0_23:
	cbz	x23, LBB0_25
; %bb.24:
	mov	x0, x23
	mov	w1, #1
	bl	_pefree
LBB0_25:
	tbnz	w19, #31, LBB0_27
; %bb.26:
	mov	x0, x19
	bl	_closesocket
LBB0_27:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_28:
	mov	x25, x22
	str	w19, [x25], #64
	mov	x0, x25
	bl	_php_cli_server_poller_ctor
	ldr	w8, [x26]
	cmp	w8, w0
	b.ne	LBB0_33
; %bb.29:
Lloh21:
	adrp	x8, _POLLIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x19
	bl	_php_cli_server_poller_add
	str	x20, [x22, #8]
	ldr	w8, [sp, #20]
	str	w8, [x22, #16]
	add	x0, x22, #60
Lloh24:
	adrp	x8, _php_cli_server_client_dtor_wrapper@GOTPAGE
Lloh25:
	ldr	x8, [x8, _php_cli_server_client_dtor_wrapper@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	w1, #0
	mov	x2, #0
	mov	w4, #1
	bl	_zend_hash_init
	mov	x0, x24
	bl	_strlen
	mov	x25, x0
	mov	x0, x24
	mov	x1, x25
	mov	w2, #1
	bl	_pestrndup
	mov	x24, x0
	cbz	x0, LBB0_18
; %bb.30:
	stp	x24, x25, [x22, #24]
	cbz	x23, LBB0_37
; %bb.31:
	mov	x0, x23
	bl	_strlen
	mov	x25, x0
	mov	x0, x23
	mov	x1, x25
	mov	w2, #1
	bl	_pestrndup
	mov	x23, x0
	cbz	x0, LBB0_19
; %bb.32:
	stp	x23, x25, [x22, #40]
	b	LBB0_38
LBB0_33:
	mov	x24, #0
	mov	x23, #0
	b	LBB0_20
LBB0_34:
Lloh27:
	adrp	x4, l_.str.2@PAGE
Lloh28:
	add	x4, x4, l_.str.2@PAGEOFF
LBB0_35:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	bl	_php_cli_server_logf
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_17
; %bb.36:
	mov	w1, #0
	bl	_zend_string_release_ex
	b	LBB0_17
LBB0_37:
	stp	xzr, xzr, [x22, #40]
LBB0_38:
Lloh31:
	adrp	x8, _mime_type_map@GOTPAGE
Lloh32:
	ldr	x8, [x8, _mime_type_map@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_php_cli_server_mime_type_ctor
Lloh34:
	adrp	x8, _FAILURE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_40
; %bb.39:
	mov	x21, x0
	b	LBB0_20
LBB0_40:
	mov	w8, #1
	str	w8, [x22, #56]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_SOCK_ERR,4,2                   ; @SOCK_ERR
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid address: %s\n"

	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_PHP_CLI_SERVER_LOG_ERROR,4,2   ; @PHP_CLI_SERVER_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to listen on %s:%d (reason: %s)"

l_.str.2:                               ; @.str.2
	.asciz	"?"

	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_php_cli_server_client_dtor_wrapper,4,2 ; @php_cli_server_client_dtor_wrapper
	.comm	_mime_type_map,4,2              ; @mime_type_map
	.no_dead_strip	_php_cli_server_ctor
.subsections_via_symbols
