	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_stream_ftp_mkdir
_php_stream_ftp_mkdir:                  ## @php_stream_ftp_mkdir
	.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, %r9
	movl	%ecx, %ebx
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -568(%rbp)
	movq	_PHP_STREAM_MKDIR_RECURSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	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, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	-568(%rbp), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.11:
	callq	_ZSTR_VAL
	movq	%rax, %r12
	testl	%ebx, %r14d
	je	LBB0_12
## %bb.13:
	movl	%ebx, -572(%rbp)                ## 4-byte Spill
	movq	-568(%rbp), %rax
	movq	(%rax), %rdi
	callq	_ZSTR_LEN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_estrndup
	movq	%rax, %r12
	movq	-568(%rbp), %rax
	movq	(%rax), %rdi
	callq	_ZSTR_LEN
	cltq
	addq	%r12, %rax
	movq	%rax, -584(%rbp)                ## 8-byte Spill
	leaq	L_.str.5(%rip), %r14
	leaq	L_.str.4(%rip), %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_php_stream_printf
	movq	%r15, %rdi
	callq	_GET_FTP_RESULT
	addl	$-200, %eax
	cmpl	$99, %eax
	jbe	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %rbx
	movb	$0, (%rax)
	cmpb	$0, (%r12)
	movq	%r14, %rdx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdx
	jmp	LBB0_18
LBB0_1:
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_9:
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.10:
	leaq	L_.str.2(%rip), %rdx
LBB0_3:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	movq	%r12, %rcx
	callq	_php_error_docref
LBB0_4:
	movq	-568(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_php_url_free
LBB0_6:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_29
## %bb.7:
	movq	%r15, %rdi
	callq	_php_stream_close
	jmp	LBB0_29
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_php_stream_printf
	movq	%r15, %rdi
	callq	_GET_FTP_RESULT
	movl	%eax, %r13d
	jmp	LBB0_28
LBB0_15:
	movq	%r12, %rbx
	jmp	LBB0_20
LBB0_19:
	movb	$47, (%rbx)
LBB0_20:
	cmpb	$0, (%r12)
	leaq	L_.str.5(%rip), %rax
	movq	%r12, %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_php_stream_printf
	movq	%r15, %rdi
	callq	_GET_FTP_RESULT
	movl	%eax, %r13d
	addl	$-300, %eax                     ## imm = 0xFED4
	cmpl	$-100, %eax
	movq	-584(%rbp), %r14                ## 8-byte Reload
	jae	LBB0_21
LBB0_27:
	movq	%r12, %rdi
	callq	_efree
LBB0_28:
	movq	-568(%rbp), %rdi
	callq	_php_url_free
	movq	%r15, %rdi
	callq	_php_stream_close
	addl	$-200, %r13d
	xorl	%ebx, %ebx
	cmpl	$100, %r13d
	setb	%bl
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.32:
	movl	%ebx, %eax
	addq	$584, %rsp                      ## imm = 0x248
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rbx
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rbx
	je	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpb	$0, (%rbx)
	jne	LBB0_31
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpb	$0, 1(%rbx)
	je	LBB0_31
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movb	$47, (%rbx)
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	callq	_php_stream_printf
	movq	%r15, %rdi
	callq	_GET_FTP_RESULT
	movl	%eax, %r13d
	addl	$-300, %eax                     ## imm = 0xFED4
	cmpl	$-101, %eax
	ja	LBB0_31
## %bb.25:
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rax
	movl	-572(%rbp), %ecx                ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_27
## %bb.26:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	leaq	-560(%rbp), %rcx
	xorl	%edi, %edi
	callq	_php_error_docref
	jmp	LBB0_27
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PHP_STREAM_MKDIR_RECURSIVE,4,2 ## @PHP_STREAM_MKDIR_RECURSIVE
	.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	"MKD %s\r\n"

L_.str.4:                               ## @.str.4
	.asciz	"CWD %s\r\n"

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

L_.str.6:                               ## @.str.6
	.asciz	"%s"

	.no_dead_strip	_php_stream_ftp_mkdir
.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_mkdir
_php_stream_ftp_mkdir:                  ; @php_stream_ftp_mkdir
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #544
	mov	x5, x4
	mov	x20, x3
	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, #-88]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x8, _PHP_STREAM_MKDIR_RECURSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHP_STREAM_MKDIR_RECURSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	stp	xzr, xzr, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	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_7
; %bb.1:
	ldr	x8, [sp, #16]
	ldr	x0, [x8]
	cbz	x0, LBB0_9
; %bb.2:
	and	w22, w22, w20
	bl	_ZSTR_VAL
	mov	x21, x0
	cbz	w22, LBB0_17
; %bb.3:
	ldr	x8, [sp, #16]
	ldr	x0, [x8]
	bl	_ZSTR_LEN
	mov	x1, x0
	mov	x0, x21
	bl	_estrndup
	mov	x21, x0
	ldr	x8, [sp, #16]
	ldr	x0, [x8]
	bl	_ZSTR_LEN
	add	x25, x21, w0, sxtw
Lloh8:
	adrp	x24, l_.str.5@PAGE
Lloh9:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh10:
	adrp	x23, l_.str.4@PAGE
Lloh11:
	add	x23, x23, l_.str.4@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	strb	wzr, [x0]
	ldrb	w8, [x21]
	cmp	w8, #0
	csel	x2, x24, x21, eq
	mov	x0, x19
	mov	x1, x23
	bl	_php_stream_printf
	mov	x0, x19
	bl	_GET_FTP_RESULT
	sub	w8, w0, #200
	cmp	w8, #99
	b.hi	LBB0_4
; %bb.6:
	mov	w8, #47
	strb	w8, [x22]
	b	LBB0_19
LBB0_7:
Lloh12:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.8:
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh17:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.10:
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_11:
Lloh22:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, #0
	mov	x3, x21
	bl	_php_error_docref
LBB0_12:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_php_url_free
LBB0_14:
	cbz	x19, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_php_stream_close
LBB0_16:
	mov	w0, #0
	b	LBB0_30
LBB0_17:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_php_stream_printf
	mov	x0, x19
	bl	_GET_FTP_RESULT
	mov	x23, x0
	b	LBB0_29
LBB0_18:
	mov	x22, x21
LBB0_19:
	ldrb	w8, [x21]
	cmp	w8, #0
	csel	x2, x24, x21, eq
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_php_stream_printf
	mov	x0, x19
	bl	_GET_FTP_RESULT
	mov	x23, x0
	sub	w8, w0, #300
	cmn	w8, #100
	b.lo	LBB0_28
; %bb.20:
	cmp	x22, x25
	b.eq	LBB0_28
; %bb.21:
	mov	w26, #47
Lloh29:
	adrp	x24, l_.str.3@PAGE
Lloh30:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x22, x22, #1
	cmp	x22, x25
	b.eq	LBB0_28
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22]
	cbnz	w8, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldrb	w8, [x22, #1]
	cbz	w8, LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	strb	w26, [x22]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	bl	_php_stream_printf
	mov	x0, x19
	bl	_GET_FTP_RESULT
	mov	x23, x0
	sub	w8, w0, #300
	cmn	w8, #101
	b.hi	LBB0_22
; %bb.26:
Lloh31:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_28
; %bb.27:
Lloh34:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x2, l_.str.6@PAGE
Lloh38:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x3, sp, #24
	mov	x0, #0
	bl	_php_error_docref
LBB0_28:
	mov	x0, x21
	bl	_efree
LBB0_29:
	ldr	x0, [sp, #16]
	bl	_php_url_free
	mov	x0, x19
	bl	_php_stream_close
	sub	w8, w23, #200
	cmp	w8, #100
	cset	w0, lo
LBB0_30:
	ldur	x8, [x29, #-88]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.31:
	add	sp, sp, #544
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_PHP_STREAM_MKDIR_RECURSIVE,4,2 ; @PHP_STREAM_MKDIR_RECURSIVE
	.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	"MKD %s\r\n"

l_.str.4:                               ; @.str.4
	.asciz	"CWD %s\r\n"

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

l_.str.6:                               ; @.str.6
	.asciz	"%s"

	.no_dead_strip	_php_stream_ftp_mkdir
.subsections_via_symbols
