	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phpdbg_remote_init
_phpdbg_remote_init:                    ## @phpdbg_remote_init
	.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	%r8, %r14
	movq	%rcx, %r15
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rcx), %edi
	movq	(%r8), %rsi
	callq	_phpdbg_remote_close
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fileno
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_phpdbg_rlog
	movl	$4, -84(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	$0, -64(%rbp)
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-84(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_accept
	movl	%eax, (%r15)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rbx
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	$20, %ecx
	callq	_inet_ntop
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fileno
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_phpdbg_rlog
	movl	(%r15), %ebx
	movq	_stdout@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_fileno
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dup2
	movl	(%r15), %ebx
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fileno
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dup2
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_setbuf
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fdopen
	movq	%rax, (%r14)
	movl	(%r15), %edi
	callq	_phpdbg_set_async_io
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_phpdbg_rlog
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing connection on %s:%u failed"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"accepting connections on %s:%u"

	.comm	_AF_INET,4,2                    ## @AF_INET
L_.str.2:                               ## @.str.2
	.asciz	"connection established from %s"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_stdin,4,2                      ## @stdin
L_.str.3:                               ## @.str.3
	.asciz	"r+"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_phpdbg_remote_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phpdbg_remote_init
_phpdbg_remote_init:                    ; @phpdbg_remote_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	w0, [x3]
	ldr	x1, [x4]
	bl	_phpdbg_remote_close
Lloh3:
	adrp	x24, _stderr@GOTPAGE
Lloh4:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_fileno
	tbnz	w21, #31, LBB0_2
; %bb.1:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_phpdbg_rlog
	mov	w8, #4
	str	w8, [sp, #20]
	stp	xzr, xzr, [sp, #32]
	str	wzr, [sp, #48]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x21
	bl	_accept
	str	w0, [x19]
Lloh7:
	adrp	x8, _AF_INET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #32
	mov	w3, #20
	bl	_inet_ntop
	ldr	w0, [x24]
	bl	_fileno
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #32
	bl	_phpdbg_rlog
	ldr	w21, [x19]
Lloh12:
	adrp	x22, _stdout@GOTPAGE
Lloh13:
	ldr	x22, [x22, _stdout@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_fileno
	mov	x1, x0
	mov	x0, x21
	bl	_dup2
	ldr	w21, [x19]
Lloh14:
	adrp	x8, _stdin@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_fileno
	mov	x1, x0
	mov	x0, x21
	bl	_dup2
	ldr	w0, [x22]
	mov	x1, #0
	bl	_setbuf
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fdopen
	str	x0, [x20]
	ldr	w0, [x19]
	bl	_phpdbg_set_async_io
Lloh19:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	str	x23, [sp]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_phpdbg_rlog
Lloh23:
	adrp	x8, _FAILURE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldr	x8, [sp, #56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing connection on %s:%u failed"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"accepting connections on %s:%u"

	.comm	_AF_INET,4,2                    ; @AF_INET
l_.str.2:                               ; @.str.2
	.asciz	"connection established from %s"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_stdin,4,2                      ; @stdin
l_.str.3:                               ; @.str.3
	.asciz	"r+"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_phpdbg_remote_init
.subsections_via_symbols
