	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftp_filename
_ftp_filename:                          ## @ftp_filename
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rbx
	testq	%rax, %rax
	cmoveq	%r12, %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, (%r15)
	cmpl	$8, %eax
	jl	LBB0_3
## %bb.1:
	movl	%eax, %eax
	leaq	(%rbx,%rax), %rdi
	addq	$-7, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$6, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	$0, (%r14)
	jmp	LBB0_4
LBB0_2:
	movslq	(%r15), %rax
	movsbl	-1(%rax,%rbx), %eax
	movl	%eax, (%r14)
	addl	$-7, (%r15)
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	";type="

	.no_dead_strip	_ftp_filename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftp_filename
_ftp_filename:                          ; @ftp_filename
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x21, x21, x0, eq
	mov	x0, x21
	bl	_strlen
	str	w0, [x20]
	cmp	w0, #8
	b.lt	LBB0_2
; %bb.1:
	add	x8, x21, w0, uxtw
	sub	x0, x8, #7
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #6
	bl	_strncmp
	cbz	x0, LBB0_3
LBB0_2:
	str	wzr, [x19]
	b	LBB0_4
LBB0_3:
	ldrsw	x8, [x20]
	add	x8, x8, x21
	ldursb	w8, [x8, #-1]
	str	w8, [x19]
	ldr	w8, [x20]
	sub	w8, w8, #7
	str	w8, [x20]
LBB0_4:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	";type="

	.no_dead_strip	_ftp_filename
.subsections_via_symbols
