	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function splice_discontinuity
_splice_discontinuity:                  ## @splice_discontinuity
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	24(%rsi), %esi
	callq	_get_splice_list
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_hb_buffer_list_append
	cmpq	$0, 16(%r12)
	je	LBB0_3
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_3:
	movq	%r14, %rdi
	callq	_hb_buffer_list_count
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_hb_buffer_list_size
	movl	%eax, %edi
	callq	_hb_buffer_init
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_hb_buffer_list_head
	movups	16(%rax), %xmm0
	movups	%xmm0, 16(%r12)
	movq	%r14, %rdi
	callq	_hb_buffer_list_rem_head
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rbx
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	callq	_memcpy
	movq	-40(%rbp), %rax
	addl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_hb_buffer_close
	movq	%r14, %rdi
	callq	_hb_buffer_list_rem_head
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_hb_buffer_list_clear
	movq	%rax, %r12
LBB0_8:
	movq	%r12, -40(%rbp)
LBB0_9:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_splice_discontinuity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function splice_discontinuity
_splice_discontinuity:                  ; @splice_discontinuity
	.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, x1
	ldr	w1, [x1, #24]
	bl	_get_splice_list
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x1, x19
	bl	_hb_buffer_list_append
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x19, #0
	b	LBB0_9
LBB0_3:
	mov	x0, x20
	bl	_hb_buffer_list_count
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_hb_buffer_list_size
	bl	_hb_buffer_init
	mov	x19, x0
	mov	x0, x20
	bl	_hb_buffer_list_head
	ldr	q0, [x0, #16]
	str	q0, [x19, #16]
	mov	x0, x20
	bl	_hb_buffer_list_rem_head
	str	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.5:
	mov	w21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, w21, sxtw
	ldr	x1, [x0, #8]
	ldr	w2, [x0]
	mov	x0, x8
	bl	_memcpy
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	add	w21, w8, w21
	add	x0, sp, #8
	bl	_hb_buffer_close
	mov	x0, x20
	bl	_hb_buffer_list_rem_head
	str	x0, [sp, #8]
	cbnz	x0, LBB0_6
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_hb_buffer_list_clear
	mov	x19, x0
LBB0_8:
	str	x19, [sp, #8]
LBB0_9:
	mov	x0, x19
	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	_splice_discontinuity
.subsections_via_symbols
