	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_splice                  ## -- Begin function strbuf_splice
	.p2align	4, 0x90
_strbuf_splice:                         ## @strbuf_splice
	.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	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_unsigned_add_overflows
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_2:
	movq	(%r12), %rax
	cmpq	%rbx, %rax
	jae	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_die
	movq	(%r12), %rax
LBB0_4:
	leaq	(%rbx,%r13), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rcx
	jbe	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_die
LBB0_6:
	movq	%r14, %r15
	subq	%r13, %r14
	jb	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strbuf_grow
LBB0_8:
	movq	8(%r12), %rsi
	addq	%rbx, %rsi
	leaq	(%rsi,%r15), %rdi
	addq	%r13, %rsi
	movq	(%r12), %rdx
	subq	-48(%rbp), %rdx                 ## 8-byte Folded Reload
	callq	_memmove
	addq	8(%r12), %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
	addq	(%r12), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strbuf_setlen                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"you want to use way too much memory"

L_.str.1:                               ## @.str.1
	.asciz	"`pos' is too far after the end of the buffer"

L_.str.2:                               ## @.str.2
	.asciz	"`pos + len' is too far after the end of the buffer"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_splice                  ; -- Begin function strbuf_splice
	.p2align	2
_strbuf_splice:                         ; @strbuf_splice
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_unsigned_add_overflows
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	ldr	x8, [x19]
	cmp	x8, x22
	b.hs	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
	ldr	x8, [x19]
LBB0_4:
	add	x25, x23, x22
	cmp	x25, x8
	b.ls	LBB0_6
; %bb.5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_6:
	subs	x24, x20, x23
	b.lo	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x24
	bl	_strbuf_grow
LBB0_8:
	ldp	x9, x8, [x19]
	add	x8, x8, x22
	add	x0, x8, x20
	add	x1, x8, x23
	sub	x2, x9, x25
	bl	_memmove
	ldr	x8, [x19, #8]
	add	x0, x8, x22
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19]
	add	x1, x24, x8
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_strbuf_setlen
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"you want to use way too much memory"

l_.str.1:                               ; @.str.1
	.asciz	"`pos' is too far after the end of the buffer"

l_.str.2:                               ; @.str.2
	.asciz	"`pos + len' is too far after the end of the buffer"

.subsections_via_symbols
