	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buf_copy_range
_buf_copy_range:                        ## @buf_copy_range
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%esi, %r15d
	xorl	%eax, %eax
	movl	%r8d, %esi
	orl	%ecx, %esi
	js	LBB0_6
## %bb.1:
	testl	%r15d, %r15d
	js	LBB0_6
## %bb.2:
	movl	%r8d, %ebx
	leal	(%rbx,%rcx), %esi
	cmpl	(%rdx), %esi
	jg	LBB0_6
## %bb.3:
	movq	%rdi, %r14
	movl	%r15d, %edi
	addq	8(%r14), %rdi
	movslq	%ebx, %rsi
	addq	%rdi, %rsi
	cmpq	16(%r14), %rsi
	jg	LBB0_6
## %bb.4:
	addq	24(%r14), %rdi
	movslq	%ecx, %rsi
	addq	24(%rdx), %rsi
	addq	8(%rdx), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addl	%ebx, %r15d
	movl	$1, %eax
	cmpl	(%r14), %r15d
	jle	LBB0_6
## %bb.5:
	movl	%r15d, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_buf_copy_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buf_copy_range
_buf_copy_range:                        ; @buf_copy_range
	.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
	orr	w8, w4, w3
	tbnz	w8, #31, LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	mov	w0, #0
	tbnz	w1, #31, LBB0_8
; %bb.2:
	mov	x20, x4
	ldr	w8, [x2]
	add	w9, w4, w3
	cmp	w9, w8
	b.gt	LBB0_8
; %bb.3:
	ldp	x8, x9, [x19, #8]
	add	x8, x8, w21, uxtw
	add	x10, x8, w20, sxtw
	cmp	x10, x9
	b.le	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	x9, [x19, #24]
	add	x0, x8, x9
	ldr	x8, [x2, #24]
	ldr	x9, [x2, #8]
	add	x8, x8, w3, sxtw
	add	x1, x8, x9
	mov	x2, x20
	bl	_memcpy
	ldr	w9, [x19]
	add	w8, w20, w21
	cmp	w8, w9
	b.le	LBB0_7
; %bb.6:
	str	w8, [x19]
LBB0_7:
	mov	w0, #1
LBB0_8:
	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
	.no_dead_strip	_buf_copy_range
.subsections_via_symbols
