	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kftp_connect                   ## -- Begin function kftp_connect
	.p2align	4, 0x90
_kftp_connect:                          ## @kftp_connect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %esi
	movl	8(%rdi), %edi
	callq	_socket_connect
	movl	%eax, (%rbx)
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_kftp_get_response
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_kftp_send_cmd
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_kftp_send_cmd
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_kftp_send_cmd
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USER anonymous\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"PASS kftp@\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"TYPE I\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kftp_connect                   ; -- Begin function kftp_connect
	.p2align	2
_kftp_connect:                          ; @kftp_connect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x19, #4]
	bl	_socket_connect
	str	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_kftp_get_response
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_kftp_send_cmd
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_kftp_send_cmd
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_kftp_send_cmd
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USER anonymous\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"PASS kftp@\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"TYPE I\r\n"

.subsections_via_symbols
