	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_network_listen_socket
_php_network_listen_socket:             ## @php_network_listen_socket
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	_SOCK_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-72(%rbp), %rdx
	movl	%r13d, %esi
	movq	%r9, %rcx
	callq	_php_network_getaddresses
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	%r12d, %edi
	callq	_closesocket
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r14), %rax
	addq	$8, %r14
	testq	%rax, %rax
	je	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pefree
	movq	(%r14), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r12d
	movq	_SOCK_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rax
	cmpl	$129, (%rax)
	jne	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$8, %edi
	movl	$1, %esi
	callq	_pemalloc
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, (%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$8, (%rax)
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_bind
	movq	_SOCK_CONN_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_php_socket_errno
	movl	%eax, %r15d
	movq	_SOCK_EINVAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_35
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_SOCK_EADDRINUSE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_35
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %edi
	callq	_closesocket
	movq	_SOCK_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_5
LBB0_14:
	movl	$-1, %r12d
	jmp	LBB0_30
LBB0_15:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
LBB0_16:
	movq	_SOCK_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_18
## %bb.17:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_18:
	movq	_SOMAXCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_listen
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	callq	_php_socket_errno
	movl	%eax, %r15d
LBB0_20:
	testq	%rbx, %rbx
	je	LBB0_22
LBB0_21:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pefree
LBB0_22:
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	_php_network_freeaddresses
LBB0_24:
	testl	%r15d, %r15d
	je	LBB0_30
## %bb.25:
	movl	%r12d, %edi
	callq	_ZEND_VALID_SOCKET
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movl	%r12d, %edi
	callq	_closesocket
LBB0_27:
	testq	%r14, %r14
	je	LBB0_29
## %bb.28:
	movl	%r15d, %edi
	callq	_php_socket_error_str
	movq	%rax, (%r14)
LBB0_29:
	movq	_SOCK_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_30:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movl	(%rbx), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.32:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_getsockname
	testq	%rax, %rax
	je	LBB0_36
## %bb.33:
	xorl	%eax, %eax
	callq	_php_socket_errno
	movl	%eax, %r15d
LBB0_35:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_36:
	cmpl	$129, (%rbx)
	jne	LBB0_16
## %bb.37:
	movq	(%rbx), %rdi
	callq	_ntohs
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_ERR,4,2                   ## @SOCK_ERR
	.comm	_SOCK_CONN_ERR,8,3              ## @SOCK_CONN_ERR
	.comm	_SOCK_EINVAL,4,2                ## @SOCK_EINVAL
	.comm	_SOCK_EADDRINUSE,4,2            ## @SOCK_EADDRINUSE
	.comm	_SOMAXCONN,4,2                  ## @SOMAXCONN
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_SO_REUSEPORT,4,2               ## @SO_REUSEPORT
	.comm	_php_cli_server_workers_max,4,2 ## @php_cli_server_workers_max
	.no_dead_strip	_php_network_listen_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_network_listen_socket
_php_network_listen_socket:             ; @php_network_listen_socket
	.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	x19, x5
	mov	x24, x4
	mov	x21, x3
	mov	x26, x2
	mov	x23, x1
Lloh0:
	adrp	x27, _SOCK_ERR@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SOCK_ERR@GOTPAGEOFF]
	ldr	w20, [x27]
	add	x2, sp, #24
	mov	x1, x26
	mov	x3, x5
	bl	_php_network_getaddresses
	cbz	w0, LBB0_12
; %bb.1:
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x28, [sp, #24]
	ldr	x8, [x28]
	cbz	x8, LBB0_13
; %bb.2:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x22, #0
	mov	w21, #0
	mov	w25, #8
Lloh2:
	adrp	x19, _SOCK_CONN_ERR@GOTPAGE
Lloh3:
	ldr	x19, [x19, _SOCK_CONN_ERR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x24]
	mov	x0, x20
	bl	_closesocket
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, #0
	ldr	x8, [x28, #8]!
	cbz	x8, LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	w1, #1
	bl	_pefree
	ldr	x8, [x28]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x8]
	mov	x1, x26
	mov	w2, #0
	bl	_socket
	mov	x20, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	ldr	w8, [x8]
	cmp	w8, #129
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #8
	mov	w1, #1
	bl	_pemalloc
	mov	x22, x0
	ldr	x8, [x28]
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	w0, [x23]
	bl	_htons
	str	x0, [x22]
	str	w25, [x24]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #8
	bl	_bind
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_php_socket_errno
	mov	x21, x0
Lloh4:
	adrp	x8, _SOCK_EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SOCK_EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _SOCK_EADDRINUSE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SOCK_EADDRINUSE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_31
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_closesocket
	ldr	w20, [x27]
	ldr	x8, [x28, #8]!
	cbnz	x8, LBB0_5
	b	LBB0_14
LBB0_12:
	mov	w20, #-1
	b	LBB0_28
LBB0_13:
	mov	w21, #0
	mov	x22, #0
LBB0_14:
	ldr	w8, [x27]
	cmp	w20, w8
	b.ne	LBB0_16
; %bb.15:
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_18
LBB0_16:
Lloh10:
	adrp	x8, _SOMAXCONN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SOMAXCONN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_listen
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_18
; %bb.17:
	bl	_php_socket_errno
	mov	x21, x0
LBB0_18:
	cbz	x22, LBB0_20
LBB0_19:
	mov	x0, x22
	mov	w1, #1
	bl	_pefree
LBB0_20:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_php_network_freeaddresses
LBB0_22:
	cbz	w21, LBB0_28
; %bb.23:
	mov	x0, x20
	bl	_ZEND_VALID_SOCKET
	cbz	x0, LBB0_25
; %bb.24:
	mov	x0, x20
	bl	_closesocket
LBB0_25:
	cbz	x19, LBB0_27
; %bb.26:
	mov	x0, x21
	bl	_php_socket_error_str
	str	x0, [x19]
LBB0_27:
	ldr	w20, [x27]
LBB0_28:
	mov	x0, x20
	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_29:
	ldr	w8, [x22]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w8, [x23]
	cbz	w8, LBB0_32
LBB0_30:
	mov	w21, #0
	b	LBB0_14
LBB0_31:
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_19
LBB0_32:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_getsockname
	cbz	x0, LBB0_34
; %bb.33:
	bl	_php_socket_errno
	mov	x21, x0
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_19
LBB0_34:
	ldr	w8, [x22]
	cmp	w8, #129
	b.ne	LBB0_30
; %bb.35:
	ldr	x0, [x22]
	bl	_ntohs
	mov	w21, #0
	str	w0, [x23]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_ERR,4,2                   ; @SOCK_ERR
	.comm	_SOCK_CONN_ERR,8,3              ; @SOCK_CONN_ERR
	.comm	_SOCK_EINVAL,4,2                ; @SOCK_EINVAL
	.comm	_SOCK_EADDRINUSE,4,2            ; @SOCK_EADDRINUSE
	.comm	_SOMAXCONN,4,2                  ; @SOMAXCONN
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_SO_REUSEPORT,4,2               ; @SO_REUSEPORT
	.comm	_php_cli_server_workers_max,4,2 ; @php_cli_server_workers_max
	.no_dead_strip	_php_network_listen_socket
.subsections_via_symbols
