	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readline_buf
_readline_buf:                          ## @readline_buf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	movq	%rdi, %r8
	subq	%rsi, %r8
	jae	LBB0_7
## %bb.1:
	decq	%rcx
	cmpq	$2, %rcx
	movl	$1, %r9d
	movq	%rcx, %rax
	cmovbq	%r9, %rax
	subl	%edi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rdi,%r9), %ecx
	movb	%cl, (%rdx)
	cmpq	%r9, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpb	$10, %cl
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r8,%r9), %rcx
	incq	%rcx
	incq	%r9
	cmpq	$1, %rcx
	jne	LBB0_2
## %bb.5:
	movl	%esi, %eax
	jmp	LBB0_7
LBB0_6:
	movl	%r9d, %eax
LBB0_7:
	movb	$0, (%rdx)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_readline_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readline_buf
_readline_buf:                          ; @readline_buf
	.cfi_startproc
; %bb.0:
	cmp	x0, x1
	b.hs	LBB0_6
; %bb.1:
	mov	x8, x0
	mov	x9, #0
	sub	x10, x3, #1
	cmp	x10, #1
	csinc	x10, x10, xzr, hi
	sub	w0, w1, w8
	sub	x11, x10, #1
	sub	x12, x1, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x8, x9]
	strb	w13, [x2, x9]
	cmp	x11, x9
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w13, #10
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x12, x9
	b.ne	LBB0_2
; %bb.5:
	add	x2, x2, x9
	strb	wzr, [x2]
	ret
LBB0_6:
	mov	w0, #0
	strb	wzr, [x2]
	ret
LBB0_7:
	add	x2, x2, x9
	mov	x0, x10
	strb	wzr, [x2]
	ret
LBB0_8:
	add	w0, w9, #1
	add	x8, x2, x9
	add	x2, x8, #1
	strb	wzr, [x2]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_readline_buf
.subsections_via_symbols
