	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kftp_parse_url                 ## -- Begin function kftp_parse_url
	.p2align	4, 0x90
_kftp_parse_url:                        ## @kftp_parse_url
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	addq	$6, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rbx), %eax
	testb	%al, %al
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$47, %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	jmp	LBB0_2
LBB0_5:
	movl	$1, %edi
	movl	$56, %esi
	callq	_calloc
	movq	%rax, %r14
	movq	_KNF_TYPE_FTP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movl	$-1, (%r14)
	leaq	L_.str.1(%rip), %rdi
	callq	_strdup
	movl	%eax, 48(%r14)
	leal	1(%rbx), %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	movl	$99, %esi
	callq	_strchr
	leaq	(%r12,%rbx), %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$1, 16(%r14)
LBB0_7:
	movq	8(%r14), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_strncpy
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	8(%rax), %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 24(%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_sprintf
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	8(%rax), %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 32(%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_sprintf
	movq	$0, 40(%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ftp://"

	.comm	_KNF_TYPE_FTP,4,2               ## @KNF_TYPE_FTP
L_.str.1:                               ## @.str.1
	.asciz	"21"

L_.str.2:                               ## @.str.2
	.asciz	"RETR %s\r\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kftp_parse_url                 ; -- Begin function kftp_parse_url
	.p2align	2
_kftp_parse_url:                        ; @kftp_parse_url
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_strncmp
	cbz	w0, LBB0_3
LBB0_1:
	mov	x19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, #0
	add	x21, x19, #6
	ldrb	w8, [x21, x20]
	cbz	w8, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #47
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldrb	w8, [x21, x20]
	cbnz	w8, LBB0_4
	b	LBB0_1
LBB0_6:
	mov	w23, #1
	mov	w0, #1
	mov	w1, #56
	bl	_calloc
	mov	x19, x0
Lloh2:
	adrp	x8, _KNF_TYPE_FTP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KNF_TYPE_FTP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #52]
	mov	w8, #-1
	str	w8, [x0]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strdup
	str	w0, [x19, #48]
	add	w0, w20, #1
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #8]
	mov	x0, x22
	mov	w1, #99
	bl	_strchr
	add	x22, x21, x20
	cbz	x0, LBB0_8
; %bb.7:
	str	w23, [x19, #16]
LBB0_8:
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_strncpy
	mov	x0, x22
	bl	_strlen
	add	w0, w0, #8
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #24]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_sprintf
	mov	x0, x22
	bl	_strlen
	add	w0, w0, #8
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #32]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	bl	_sprintf
	str	xzr, [x19, #40]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ftp://"

	.comm	_KNF_TYPE_FTP,4,2               ; @KNF_TYPE_FTP
l_.str.1:                               ; @.str.1
	.asciz	"21"

l_.str.2:                               ; @.str.2
	.asciz	"RETR %s\r\n"

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

.subsections_via_symbols
