	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kurl_read                      ## -- Begin function kurl_read
	.p2align	4, 0x90
_kurl_read:                             ## @kurl_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.3:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rsi
	movq	%rax, %rdx
	subq	%rsi, %rdx
	cmpq	%r14, %rdx
	jae	LBB0_4
## %bb.8:
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rsi, %rax
	jbe	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rax
	subq	%r13, %rax
	leaq	(%r15,%rax,4), %rdi
	addq	16(%r12), %rsi
	callq	_memcpy
	movq	(%r12), %rax
	movq	8(%r12), %rsi
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	subq	%rax, %rsi
	movq	%rsi, %rbx
	addq	%r13, %rbx
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_fill_buffer
	testl	%eax, %eax
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r12), %rax
	movq	8(%r12), %rsi
	movq	%rax, %rdx
	subq	%rsi, %rdx
	movq	%rbx, %r13
	cmpq	%rbx, %rdx
	jb	LBB0_9
## %bb.5:
	testq	%r15, %r15
	je	LBB0_7
LBB0_6:
	movq	%r14, %rax
	subq	%rbx, %rax
	leaq	(%r15,%rax,4), %rdi
	addq	16(%r12), %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	8(%r12), %rsi
LBB0_7:
	addq	%rbx, %rsi
	movq	%rsi, 8(%r12)
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	subq	%rbx, %r14
	jmp	LBB0_16
LBB0_1:
	xorl	%r14d, %r14d
LBB0_16:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rbx
	testq	%r15, %r15
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kurl_read                      ; -- Begin function kurl_read
	.p2align	2
_kurl_read:                             ; @kurl_read
	.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
	ldr	x9, [x0]
	cbz	x9, LBB0_12
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_13
; %bb.2:
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	sub	x2, x9, x8
	mov	x21, x19
	cmp	x2, x19
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x9, x8
	b.ls	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x9, x19, x21
	add	x0, x22, x9, lsl #2
	ldr	x9, [x20, #16]
	add	x1, x9, x8
	bl	_memcpy
	ldp	x9, x8, [x20]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x8, x9
	add	x21, x8, x21
	str	x9, [x20, #8]
	mov	x0, x20
	bl	_fill_buffer
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x21, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x20]
	sub	x2, x9, x8
	cmp	x2, x21
	b.lo	LBB0_3
LBB0_9:
	cbz	x22, LBB0_11
; %bb.10:
	sub	x9, x19, x21
	add	x0, x22, x9, lsl #2
	ldr	x9, [x20, #16]
	add	x1, x9, x8
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x20, #8]
LBB0_11:
	add	x8, x8, x21
	mov	x21, #0
	str	x8, [x20, #8]
	b	LBB0_14
LBB0_12:
	mov	x0, #0
	b	LBB0_15
LBB0_13:
	mov	x21, #0
LBB0_14:
	sub	x0, x19, x21
LBB0_15:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
