	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kftp_pasv_prep
_kftp_pasv_prep:                        ## @kftp_pasv_prep
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_kftp_send_cmd
	movq	(%rbx), %rdi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rdi
	movzbl	-1(%rdi), %eax
	testb	%al, %al
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$40, %al
	jne	LBB0_1
## %bb.3:
	leaq	-44(%rbp), %rcx
	leaq	-40(%rbp), %r8
	leaq	-36(%rbp), %r9
	leaq	-32(%rbp), %r10
	leaq	-28(%rbp), %rax
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdx
	pushq	%rax
	pushq	%r10
	callq	_sscanf
	addq	$16, %rsp
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	-32(%rbp), %eax
	shll	$8, %eax
	movzwl	%ax, %eax
	addl	-28(%rbp), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movl	$-1, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PASV\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d,%d,%d,%d,%d,%d"

	.no_dead_strip	_kftp_pasv_prep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kftp_pasv_prep
_kftp_pasv_prep:                        ; @kftp_pasv_prep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_kftp_send_cmd
	ldr	x8, [x19]
	add	x0, x8, #1
	ldurb	w8, [x0, #-1]
	cbz	w8, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #40
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x0, #1
	ldurb	w8, [x0, #-1]
	cbnz	w8, LBB0_1
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	mov	x8, sp
	add	x3, x8, #4
	add	x4, x8, #8
	add	x5, x8, #12
	add	x6, x8, #16
	add	x7, x8, #20
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	bl	_sscanf
	ldr	w0, [x19, #12]
	mov	x1, sp
	mov	w2, #16
	bl	_memcpy
	mov	w0, #0
	ldp	w8, w9, [sp, #16]
	ubfiz	w8, w8, #8, #8
	add	w8, w8, w9
	str	w8, [x19, #8]
LBB0_5:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PASV\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d,%d,%d,%d,%d,%d"

	.no_dead_strip	_kftp_pasv_prep
.subsections_via_symbols
