	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kftp_get_response
_kftp_get_response:                     ## @kftp_get_response
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	16(%rdi), %edi
	movl	$1, %esi
	callq	_socket_wait
	testq	%rax, %rax
	jle	LBB0_21
## %bb.1:
	movl	16(%r13), %edi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_read
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_22
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-41(%rbp), %r15
	movl	$256, %r12d                     ## imm = 0x100
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r13), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_read
	testq	%rax, %rax
	je	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	leal	(%rax,%rax), %esi
	testl	%eax, %eax
	cmovel	%r12d, %esi
	movl	%esi, (%r13)
	movq	8(%r13), %rdi
	callq	_realloc
	movq	%rax, 8(%r13)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movzbl	-41(%rbp), %ecx
	leal	1(%rbx), %r14d
	movslq	%ebx, %rdx
	movb	%cl, (%rax,%rdx)
	cmpb	$10, %cl
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$3, %ebx
	jge	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	movzbl	(%rax), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	movzbl	1(%rax), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	movzbl	2(%rax), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	cmpb	$45, 3(%rax)
	movl	$0, %ebx
	je	LBB0_4
	jmp	LBB0_20
LBB0_18:
	cmpl	$2, %ebx
	movl	$-1, %ecx
	jl	LBB0_22
## %bb.19:
	movq	8(%r13), %rax
	movl	%ebx, %r14d
LBB0_20:
	addl	$-2, %r14d
	movb	$0, (%rax,%r14)
	movq	8(%r13), %rdi
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %ecx
	jmp	LBB0_22
LBB0_21:
	xorl	%ecx, %ecx
LBB0_22:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_kftp_get_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kftp_get_response
_kftp_get_response:                     ; @kftp_get_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
	mov	w1, #1
	bl	_socket_wait
	cmp	x0, #1
	b.lt	LBB0_17
; %bb.1:
	ldr	w0, [x19, #16]
	add	x1, sp, #15
	mov	w2, #1
	bl	_read
	cbz	x0, LBB0_16
; %bb.2:
	mov	w21, #0
	mov	w20, #256
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x22
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	add	x1, sp, #15
	mov	w2, #1
	bl	_read
	cbz	x0, LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w21, w8
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	w9, w8, #1
	cmp	w8, #0
	csel	w1, w20, w9, eq
	str	w1, [x19]
	ldr	x0, [x19, #8]
	bl	_realloc
	str	x0, [x19, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [sp, #15]
	add	w22, w21, #1
	strb	w8, [x0, w21, sxtw]
	cmp	w8, #10
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w21, #3
	b.ge	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #0
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldrb	w0, [x8]
	bl	_isdigit
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldrb	w0, [x8, #1]
	bl	_isdigit
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldrb	w0, [x8, #2]
	bl	_isdigit
	cbz	x0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldrb	w9, [x8, #3]
	cmp	w9, #45
	b.eq	LBB0_10
	b	LBB0_19
LBB0_15:
	cmp	w21, #2
	b.ge	LBB0_18
LBB0_16:
	mov	w0, #-1
	b	LBB0_20
LBB0_17:
	mov	w0, #0
	b	LBB0_20
LBB0_18:
	ldr	x8, [x19, #8]
	mov	x22, x21
LBB0_19:
	sub	w9, w22, #2
	strb	wzr, [x8, w9, uxtw]
	ldr	x0, [x19, #8]
	mov	x1, sp
	mov	w2, #0
	bl	_strtol
LBB0_20:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_kftp_get_response
.subsections_via_symbols
