	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maybe_split_for_insert
_maybe_split_for_insert:                ## @maybe_split_for_insert
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	leaq	8(%rax), %r10
	movq	16(%rax), %rdi
	cmpl	$1, %r9d
	jne	LBB0_1
## %bb.7:
	movl	$1, (%rax)
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.8:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_1:
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.2:
	movq	(%r10), %r9
	testq	%r9, %r9
	je	LBB0_21
## %bb.3:
	cmpl	$0, (%rdi)
	je	LBB0_21
## %bb.4:
	cmpl	$0, (%r9)
	je	LBB0_21
## %bb.5:
	movl	$1, (%rax)
LBB0_6:
	movl	$0, (%rdi)
LBB0_9:
	movq	(%r10), %r11
	testq	%r11, %r11
	je	LBB0_11
## %bb.10:
	movl	$0, (%r11)
LBB0_11:
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.12:
	movq	(%rsi), %rsi
	cmpl	$0, (%rsi)
	je	LBB0_21
## %bb.13:
	movq	(%rdx), %r9
	testl	%ecx, %ecx
	setle	%r14b
	testl	%r8d, %r8d
	setg	%bl
	xorb	%r14b, %bl
	je	LBB0_14
## %bb.18:
	movq	%rsi, (%rdx)
	movl	$0, (%rsi)
	movl	$1, (%r9)
	testl	%ecx, %ecx
	js	LBB0_19
## %bb.20:
	movq	8(%rsi), %rax
	movq	%rax, 16(%r9)
	movq	%r9, 8(%rsi)
	jmp	LBB0_21
LBB0_14:
	leaq	16(%rax), %r8
	movl	$1, (%rsi)
	movl	$1, (%r9)
	movl	$0, (%rax)
	testl	%ecx, %ecx
	js	LBB0_15
## %bb.16:
	movq	%r11, 16(%rsi)
	movq	%rsi, (%r10)
	movq	(%r8), %rcx
	movq	%rcx, 8(%r9)
	movq	%r8, %r10
	jmp	LBB0_17
LBB0_19:
	movq	16(%rsi), %rax
	movq	%rax, 8(%r9)
	movq	%r9, 16(%rsi)
	jmp	LBB0_21
LBB0_15:
	movq	%rdi, 8(%rsi)
	movq	%rsi, (%r8)
	movq	(%r10), %rcx
	movq	%rcx, 16(%r9)
LBB0_17:
	movq	%r9, (%r10)
	movq	%rax, (%rdx)
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_maybe_split_for_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maybe_split_for_insert
_maybe_split_for_insert:                ; @maybe_split_for_insert
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	add	x9, x8, #8
	mov	x10, x8
	ldr	x11, [x10, #16]!
	cmp	w5, #1
	b.ne	LBB0_9
; %bb.1:
	mov	w12, #1
	str	w12, [x8]
	cbnz	x11, LBB0_14
; %bb.2:
	ldr	x14, [x9]
	cbz	x14, LBB0_4
LBB0_3:
	str	wzr, [x14]
LBB0_4:
	cbz	x1, LBB0_15
; %bb.5:
	ldr	x13, [x1]
	ldr	w12, [x13]
	cbz	w12, LBB0_15
; %bb.6:
	ldr	x12, [x2]
	cmp	w3, #1
	cset	w15, lt
	cmp	w4, #0
	cset	w16, gt
	eor	w15, w15, w16
	tbz	w15, #0, LBB0_16
; %bb.7:
	str	x13, [x2]
	str	wzr, [x13]
	mov	w8, #1
	str	w8, [x12]
	tbnz	w3, #31, LBB0_18
; %bb.8:
	ldr	x8, [x13, #8]
	str	x8, [x12, #16]
	str	x12, [x13, #8]
	b	LBB0_15
LBB0_9:
	cbz	x11, LBB0_15
; %bb.10:
	ldr	x12, [x9]
	cbz	x12, LBB0_15
; %bb.11:
	ldr	w13, [x11]
	cbz	w13, LBB0_15
; %bb.12:
	ldr	w12, [x12]
	cbz	w12, LBB0_15
; %bb.13:
	mov	w12, #1
	str	w12, [x8]
LBB0_14:
	str	wzr, [x11]
	ldr	x14, [x9]
	cbnz	x14, LBB0_3
	b	LBB0_4
LBB0_15:
	ret
LBB0_16:
	mov	w15, #1
	str	w15, [x13]
	str	w15, [x12]
	str	wzr, [x8]
	tbnz	w3, #31, LBB0_19
; %bb.17:
	str	x14, [x13, #16]
	str	x13, [x9]
	ldr	x9, [x10]
	str	x9, [x12, #8]
	mov	x9, x10
	b	LBB0_20
LBB0_18:
	ldr	x8, [x13, #16]
	str	x8, [x12, #8]
	str	x12, [x13, #16]
	ret
LBB0_19:
	str	x11, [x13, #8]
	str	x13, [x10]
	ldr	x10, [x9]
	str	x10, [x12, #16]
LBB0_20:
	str	x12, [x9]
	str	x8, [x2]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_maybe_split_for_insert
.subsections_via_symbols
