	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_stream_ftp_unlink
_php_stream_ftp_unlink:                 ## @php_stream_ftp_unlink
	.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	%r12
	pushq	%rbx
	subq	$576, %rsp                      ## imm = 0x240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r9
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -568(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	leaq	-568(%rbp), %rax
	movq	%rax, 8(%rsp)
	movq	$0, (%rsp)
	leaq	L_.str(%rip), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_php_ftp_fopen_connect
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	-568(%rbp), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.7:
	callq	_ZSTR_VAL
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_php_stream_printf
	movq	%r12, %rdi
	callq	_GET_FTP_RESULT
	addl	$-300, %eax                     ## imm = 0xFED4
	cmpl	$-101, %eax
	ja	LBB0_17
## %bb.8:
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.9:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	leaq	-560(%rbp), %rcx
	xorl	%edi, %edi
	jmp	LBB0_10
LBB0_1:
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.2:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_5:
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.6:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_3:
	xorl	%edi, %edi
	movq	%r15, %rcx
LBB0_10:
	callq	_php_error_docref
LBB0_11:
	movq	-568(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_php_url_free
LBB0_13:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	jne	LBB0_14
	jmp	LBB0_15
LBB0_17:
	movq	-568(%rbp), %rdi
	callq	_php_url_free
	movl	$1, %ebx
LBB0_14:
	movq	%r12, %rdi
	callq	_php_stream_close
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_18
## %bb.16:
	movl	%ebx, %eax
	addq	$576, %rsp                      ## imm = 0x240
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_REPORT_ERRORS,4,2              ## @REPORT_ERRORS
	.comm	_E_WARNING,4,2                  ## @E_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Unable to connect to %s"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid path provided in %s"

L_.str.3:                               ## @.str.3
	.asciz	"DELE %s\r\n"

L_.str.5:                               ## @.str.5
	.asciz	"Error Deleting file: %s"

	.no_dead_strip	_php_stream_ftp_unlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_stream_ftp_unlink
_php_stream_ftp_unlink:                 ; @php_stream_ftp_unlink
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #544
	mov	x5, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x7, sp, #16
	mov	w3, #0
	mov	x4, #0
	mov	x6, #0
	bl	_php_ftp_fopen_connect
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #16]
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.2:
	bl	_ZSTR_VAL
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_php_stream_printf
	mov	x0, x19
	bl	_GET_FTP_RESULT
	sub	w8, w0, #300
	cmn	w8, #101
	b.hi	LBB0_14
; %bb.3:
Lloh7:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.4:
Lloh10:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x3, sp, #24
	mov	x0, #0
	b	LBB0_10
LBB0_5:
Lloh15:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.6:
Lloh18:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh23:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.8:
Lloh26:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.2@PAGE
Lloh30:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, #0
	mov	x3, x21
LBB0_10:
	bl	_php_error_docref
LBB0_11:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_php_url_free
LBB0_13:
	mov	w20, #0
	mov	w0, #0
	cbnz	x19, LBB0_15
	b	LBB0_16
LBB0_14:
	ldr	x0, [sp, #16]
	bl	_php_url_free
	mov	w20, #1
LBB0_15:
	mov	x0, x19
	bl	_php_stream_close
	mov	x0, x20
LBB0_16:
	ldur	x8, [x29, #-40]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	add	sp, sp, #544
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_REPORT_ERRORS,4,2              ; @REPORT_ERRORS
	.comm	_E_WARNING,4,2                  ; @E_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Unable to connect to %s"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid path provided in %s"

l_.str.3:                               ; @.str.3
	.asciz	"DELE %s\r\n"

l_.str.5:                               ; @.str.5
	.asciz	"Error Deleting file: %s"

	.no_dead_strip	_php_stream_ftp_unlink
.subsections_via_symbols
