	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function whereOrInsert
_whereOrInsert:                         ## @whereOrInsert
	.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), %r11
	movq	8(%rdi), %r9
	testq	%r11, %r11
	je	LBB0_8
## %bb.1:
	movl	%esi, %r10d
	notl	%r10d
	movq	%r9, %r8
	movq	%r11, %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %r8
	decq	%rax
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %r14
	cmpq	%rdx, %r14
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r8), %ebx
	notl	%ebx
	testl	%ebx, %esi
	je	LBB0_22
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %r14
	jg	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r10d, 8(%r8)
	jne	LBB0_2
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_8:
	movq	_N_OR_COST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r11
	jb	LBB0_11
	jmp	LBB0_20
LBB0_10:
	movq	_N_OR_COST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r11
	jae	LBB0_12
LBB0_11:
	leaq	1(%r11), %rax
	movq	%rax, (%rdi)
	leaq	(%r11,%r11,2), %rax
	leaq	(%r9,%rax,8), %r8
	movq	%rcx, 16(%r9,%rax,8)
	jmp	LBB0_22
LBB0_12:
	cmpq	$2, %r11
	jb	LBB0_20
## %bb.13:
	leaq	-1(%r11), %r8
	addq	$-2, %r11
	movl	%r8d, %r10d
	andl	$3, %r10d
	cmpq	$3, %r11
	jae	LBB0_25
## %bb.14:
	movl	$1, %r11d
	movq	%r9, %rax
LBB0_15:
	movq	%rax, %r8
	testq	%r10, %r10
	je	LBB0_21
## %bb.16:
	leaq	(%r11,%r11,2), %rdi
	leaq	(%r9,%rdi,8), %rdi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	addq	$24, %rdi
	movq	%r8, %rax
	decq	%r10
	je	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	movq	%rdi, %r8
	cmpq	(%rdi), %rbx
	jg	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %r8
	jmp	LBB0_17
LBB0_20:
	movq	%r9, %r8
LBB0_21:
	xorl	%eax, %eax
	cmpq	%rdx, (%r8)
	jle	LBB0_24
LBB0_22:
	movl	%esi, 8(%r8)
	movq	%rdx, (%r8)
	movl	$1, %eax
	cmpq	%rcx, 16(%r8)
	jle	LBB0_24
## %bb.23:
	movq	%rcx, 16(%r8)
LBB0_24:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_25:
	leaq	96(%r9), %rdi
	andq	$-4, %r8
	negq	%r8
	movl	$1, %r11d
	movq	%r9, %rbx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$96, %rdi
	leaq	(%r8,%r11), %r14
	addq	$4, %r14
	addq	$4, %r11
	movq	%rax, %rbx
	cmpq	$1, %r14
	je	LBB0_15
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	-72(%rdi), %rax
	jle	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	-72(%rdi), %rbx
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	(%rbx), %rax
	cmpq	-48(%rdi), %rax
	jle	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	-48(%rdi), %rbx
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	(%rbx), %rax
	cmpq	-24(%rdi), %rax
	jle	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	-24(%rdi), %rbx
LBB0_33:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	(%rbx), %r14
	movq	%rdi, %rax
	cmpq	(%rdi), %r14
	jg	LBB0_26
## %bb.34:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rbx, %rax
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_N_OR_COST,8,3                  ## @N_OR_COST
	.no_dead_strip	_whereOrInsert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function whereOrInsert
_whereOrInsert:                         ; @whereOrInsert
	.cfi_startproc
; %bb.0:
	ldp	x9, x8, [x0]
	cbz	x9, LBB0_7
; %bb.1:
	mov	x10, x8
	mov	x11, x9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #24
	subs	x11, x11, #1
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cmp	x12, x2
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x10, #8]
	bics	wzr, w1, w13
	b.eq	LBB0_14
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x12, x2
	b.gt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x10, #8]
	bics	wzr, w12, w1
	b.ne	LBB0_2
	b	LBB0_17
LBB0_7:
Lloh0:
	adrp	x10, _N_OR_COST@GOTPAGE
Lloh1:
	ldr	x10, [x10, _N_OR_COST@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.lo	LBB0_9
	b	LBB0_13
LBB0_8:
Lloh3:
	adrp	x10, _N_OR_COST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _N_OR_COST@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.hs	LBB0_10
LBB0_9:
	add	x10, x9, #1
	str	x10, [x0]
	mov	w10, #24
	madd	x10, x9, x10, x8
	str	x3, [x10, #16]
	b	LBB0_14
LBB0_10:
	cmp	x9, #2
	b.lo	LBB0_13
; %bb.11:
	sub	x9, x9, #1
	add	x11, x8, #24
	mov	x10, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #24
	ldr	x13, [x8]
	cmp	x13, x12
	csel	x8, x11, x8, gt
	mov	x11, x10
	subs	x9, x9, #1
	b.ne	LBB0_12
LBB0_13:
	ldr	x9, [x8]
	mov	x10, x8
	cmp	x9, x2
	b.le	LBB0_17
LBB0_14:
	str	w1, [x10, #8]
	str	x2, [x10]
	ldr	x8, [x10, #16]
	cmp	x8, x3
	b.le	LBB0_16
; %bb.15:
	str	x3, [x10, #16]
LBB0_16:
	mov	w0, #1
	ret
LBB0_17:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_N_OR_COST,8,3                  ; @N_OR_COST
	.no_dead_strip	_whereOrInsert
.subsections_via_symbols
