	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_stream_ftp_rename
_php_stream_ftp_rename:                 ## @php_stream_ftp_rename
	.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	$584, %rsp                      ## imm = 0x248
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -584(%rbp)                 ## 8-byte Spill
	movl	%ecx, -564(%rbp)                ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -576(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_php_url_parse
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_php_url_parse
	movq	%rax, %r14
	xorl	%r15d, %r15d
	testq	%r13, %r13
	je	LBB0_37
## %bb.1:
	testq	%r14, %r14
	je	LBB0_37
## %bb.2:
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.3:
	movq	24(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.4:
	callq	_zend_string_equals
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.6:
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.7:
	callq	_zend_string_equals
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movl	(%r13), %ecx
	movl	(%r14), %eax
	cmpl	%eax, %ecx
	je	LBB0_18
## %bb.9:
	movl	%eax, %edx
	imull	%ecx, %edx
	testl	%edx, %edx
	je	LBB0_18
## %bb.10:
	addl	%ecx, %eax
	cmpl	$21, %eax
	jne	LBB0_12
LBB0_18:
	cmpq	$0, 8(%r13)
	je	LBB0_12
## %bb.19:
	cmpq	$0, 8(%r14)
	je	LBB0_12
## %bb.20:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	-584(%rbp), %r9                 ## 8-byte Reload
	callq	_php_ftp_fopen_connect
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movq	%rax, %r15
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.22:
	callq	_ZSTR_VAL
	movq	%rax, %rdx
	jmp	LBB0_28
LBB0_25:
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rax
	movl	-564(%rbp), %ecx                ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.26:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	16(%r13), %rdi
	callq	_ZSTR_VAL
	leaq	L_.str.1(%rip), %rdx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movl	%ebx, %esi
	movq	%rax, %rcx
	jmp	LBB0_36
LBB0_12:
	xorl	%r15d, %r15d
LBB0_37:
	testq	%r13, %r13
	je	LBB0_39
## %bb.38:
	movq	%r13, %rdi
	callq	_php_url_free
LBB0_39:
	testq	%r14, %r14
	je	LBB0_41
## %bb.40:
	movq	%r14, %rdi
	callq	_php_url_free
LBB0_41:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_43
## %bb.42:
	movq	%r15, %rdi
	callq	_php_stream_close
LBB0_43:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_46
## %bb.44:
	movl	%ebx, %eax
	addq	$584, %rsp                      ## imm = 0x248
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	leaq	L_.str.3(%rip), %rdx
LBB0_28:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_php_stream_printf
	movq	%r15, %rdi
	callq	_GET_FTP_RESULT
	addl	$-400, %eax                     ## imm = 0xFE70
	cmpl	$-101, %eax
	jbe	LBB0_34
## %bb.29:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.30:
	callq	_ZSTR_VAL
	movq	%rax, %rdx
	jmp	LBB0_33
LBB0_32:
	leaq	L_.str.3(%rip), %rdx
LBB0_33:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_php_stream_printf
	movq	%r15, %rdi
	callq	_GET_FTP_RESULT
	addl	$-300, %eax                     ## imm = 0xFED4
	cmpl	$-101, %eax
	ja	LBB0_45
LBB0_34:
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rax
	movl	-564(%rbp), %ecx                ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_37
## %bb.35:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	leaq	-560(%rbp), %rcx
	xorl	%edi, %edi
LBB0_36:
	callq	_php_error_docref
	jmp	LBB0_37
LBB0_45:
	movq	%r13, %rdi
	callq	_php_url_free
	movq	%r14, %rdi
	callq	_php_url_free
	movq	%r15, %rdi
	callq	_php_stream_close
	movl	$1, %ebx
	jmp	LBB0_43
LBB0_46:
	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	"RNFR %s\r\n"

L_.str.3:                               ## @.str.3
	.asciz	"/"

L_.str.4:                               ## @.str.4
	.asciz	"Error Renaming file: %s"

L_.str.5:                               ## @.str.5
	.asciz	"RNTO %s\r\n"

	.no_dead_strip	_php_stream_ftp_rename
.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_rename
_php_stream_ftp_rename:                 ; @php_stream_ftp_rename
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #544
	mov	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	x0, x1
	bl	_php_url_parse
	mov	x20, x0
	mov	x0, x19
	bl	_php_url_parse
	mov	x19, x0
	mov	x21, #0
	cbz	x20, LBB0_19
; %bb.1:
	cbz	x19, LBB0_19
; %bb.2:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_18
; %bb.3:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_18
; %bb.4:
	bl	_zend_string_equals
	cbz	w0, LBB0_18
; %bb.5:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_18
; %bb.6:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_18
; %bb.7:
	bl	_zend_string_equals
	cbz	w0, LBB0_18
; %bb.8:
	ldr	w8, [x20]
	ldr	w9, [x19]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.9:
	mul	w10, w9, w8
	cbz	w10, LBB0_11
; %bb.10:
	add	w8, w9, w8
	cmp	w8, #21
	b.ne	LBB0_18
LBB0_11:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_18
; %bb.12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.13:
	stp	xzr, xzr, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x25
	mov	x1, x24
	mov	w3, #0
	mov	x4, #0
	mov	x5, x23
	mov	x6, #0
	mov	x7, #0
	bl	_php_ftp_fopen_connect
	cbz	x0, LBB0_16
; %bb.14:
	mov	x21, x0
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_28
; %bb.15:
	bl	_ZSTR_VAL
	mov	x2, x0
	b	LBB0_29
LBB0_16:
Lloh5:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_18
; %bb.17:
Lloh8:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	ldr	x0, [x20, #16]
	bl	_ZSTR_VAL
	mov	x3, x0
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	mov	x1, x21
	bl	_php_error_docref
LBB0_18:
	mov	x21, #0
LBB0_19:
	cbz	x20, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_php_url_free
LBB0_21:
	cbz	x19, LBB0_23
; %bb.22:
	mov	x0, x19
	bl	_php_url_free
LBB0_23:
	cbz	x21, LBB0_25
; %bb.24:
	mov	x0, x21
	bl	_php_stream_close
LBB0_25:
	mov	w0, #0
LBB0_26:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.27:
	add	sp, sp, #544
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_28:
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_29:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_php_stream_printf
	mov	x0, x21
	bl	_GET_FTP_RESULT
	sub	w8, w0, #400
	cmn	w8, #101
	b.ls	LBB0_34
; %bb.30:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_32
; %bb.31:
	bl	_ZSTR_VAL
	mov	x2, x0
	b	LBB0_33
LBB0_32:
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_33:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_php_stream_printf
	mov	x0, x21
	bl	_GET_FTP_RESULT
	sub	w8, w0, #300
	cmn	w8, #101
	b.hi	LBB0_36
LBB0_34:
Lloh24:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_19
; %bb.35:
Lloh27:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.4@PAGE
Lloh31:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x3, sp, #24
	mov	x0, #0
	bl	_php_error_docref
	b	LBB0_19
LBB0_36:
	mov	x0, x20
	bl	_php_url_free
	mov	x0, x19
	bl	_php_url_free
	mov	x0, x21
	bl	_php_stream_close
	mov	w0, #1
	b	LBB0_26
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.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	"RNFR %s\r\n"

l_.str.3:                               ; @.str.3
	.asciz	"/"

l_.str.4:                               ; @.str.4
	.asciz	"Error Renaming file: %s"

l_.str.5:                               ; @.str.5
	.asciz	"RNTO %s\r\n"

	.no_dead_strip	_php_stream_ftp_rename
.subsections_via_symbols
