	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insertStatEntry
_insertStatEntry:                       ## @insertStatEntry
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	callq	_ARRPTR
	movq	%rax, %r15
	movslq	%r14d, %rax
	leaq	(%rax,%rax,2), %r14
	leaq	(%r15,%r14,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edx
	movq	16(%r15,%r14,8), %rax
	testl	%edx, %edx
	je	LBB0_1
## %bb.4:
	testq	%rax, %rax
	je	LBB0_25
## %bb.5:
	movl	%r12d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_check_weight
	jmp	LBB0_6
LBB0_1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	%r12d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_POSDATALEN
LBB0_6:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_25
LBB0_2:
	movl	$1, %ebx
LBB0_7:
	testq	%r13, %r13
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.9:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_compareStatWord
	movl	%eax, %r14d
	testl	%eax, %eax
	sete	%al
	je	LBB0_10
## %bb.11:
	movl	$2, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r15
	movl	%ecx, %ebx
	movl	%r14d, %ecx
	shrl	$31, %ecx
	movq	8(%r13,%rcx,8), %r13
	testq	%r13, %r13
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_compareStatWord
	movl	%eax, %r14d
	leal	1(%rbx), %ecx
	testl	%eax, %eax
	sete	%al
	jne	LBB0_13
	jmp	LBB0_15
LBB0_8:
	xorl	%r13d, %r13d
	movb	$1, %al
	movl	$1, %ebx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_10:
	xorl	%r15d, %r15d
	movl	$1, %ebx
	jmp	LBB0_15
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	xorb	$1, %al
LBB0_16:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %ebx
	jle	LBB0_18
## %bb.17:
	movl	%ebx, (%rcx)
LBB0_18:
	testb	$1, %al
	je	LBB0_24
## %bb.19:
	movq	_STATENTRYHDRSZ@GOTPCREL(%rip), %rax
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx,%r13,8), %rsi
	addq	(%rax), %rsi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextAlloc
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movl	$1, (%rax)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%r13,8), %rax
	movq	%rax, 24(%rbx)
	movl	32(%rbx), %r13d
	movl	%r12d, %edi
	callq	_STRPTR
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rax
	movq	24(%rbx), %rdx
	movl	%r13d, %edi
	movq	%rax, %rsi
	callq	_memcpy
	testq	%r15, %r15
	je	LBB0_20
## %bb.21:
	testl	%r14d, %r14d
	js	LBB0_22
## %bb.23:
	movq	%rbx, 8(%r15)
	jmp	LBB0_25
LBB0_24:
	incl	(%r13)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 4(%r13)
	jmp	LBB0_25
LBB0_20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, 8(%rax)
	jmp	LBB0_25
LBB0_22:
	movq	%rbx, 16(%r15)
LBB0_25:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATENTRYHDRSZ,8,3             ## @STATENTRYHDRSZ
	.no_dead_strip	_insertStatEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insertStatEntry
_insertStatEntry:                       ; @insertStatEntry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x25, x0
	mov	x0, x2
	bl	_ARRPTR
	mov	x24, x0
	mov	w8, #24
	smaddl	x21, w23, w8, x0
	ldr	x26, [x19, #8]
	ldr	w2, [x19, #16]
	ldr	x8, [x21, #16]
	cbz	w2, LBB0_8
; %bb.1:
	cbz	x8, LBB0_23
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_check_weight
	mov	x22, x0
	cbz	w0, LBB0_23
LBB0_3:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	cbz	x26, LBB0_11
LBB0_4:
	mov	x0, x26
	mov	x1, x21
	mov	x2, x20
	bl	_compareStatWord
	mov	x27, x0
	cmp	w0, #0
	cset	w8, eq
	str	w25, [sp, #8]                   ; 4-byte Folded Spill
	str	x23, [sp]                       ; 8-byte Folded Spill
	cbz	w0, LBB0_12
; %bb.5:
	mov	w9, #2
	mov	w25, #8
	mov	w23, #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x26
	mov	x22, x9
	cmp	w27, #0
	csel	x9, x23, x25, lt
	ldr	x26, [x26, x9]
	cbz	x26, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	mov	x1, x21
	mov	x2, x20
	bl	_compareStatWord
	mov	x27, x0
	cmp	w0, #0
	cset	w8, eq
	add	w9, w22, #1
	cbnz	w0, LBB0_6
	b	LBB0_13
LBB0_8:
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x21
	bl	_POSDATALEN
	mov	x22, x0
	cbnz	w0, LBB0_3
	b	LBB0_23
LBB0_10:
	mov	w22, #1
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	cbnz	x26, LBB0_4
LBB0_11:
	mov	x28, #0
	mov	w27, #0
	mov	w22, #1
	mov	w8, #1
	b	LBB0_14
LBB0_12:
	mov	x28, #0
	mov	w22, #1
LBB0_13:
	eor	w8, w8, #0x1
	ldr	w25, [sp, #8]                   ; 4-byte Folded Reload
	ldr	x23, [sp]                       ; 8-byte Folded Reload
LBB0_14:
	ldr	w9, [x19]
	cmp	w22, w9
	b.le	LBB0_16
; %bb.15:
	str	w22, [x19]
LBB0_16:
	tbz	w8, #0, LBB0_20
; %bb.17:
Lloh0:
	adrp	x8, _STATENTRYHDRSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATENTRYHDRSZ@GOTPAGEOFF]
	sxtw	x9, w23
Lloh2:
	ldr	x8, [x8]
	mov	w10, #24
	madd	x23, x9, x10, x24
	ldr	x9, [x23, #8]
	add	x1, x9, x8
	mov	x0, x25
	bl	_MemoryContextAlloc
	mov	x22, x0
	stp	xzr, xzr, [x0, #8]
	mov	w9, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	stp	w9, w8, [x0]
	ldr	x8, [x23, #8]
	str	x8, [x0, #24]
	ldr	w23, [x0, #32]
	mov	x0, x20
	bl	_STRPTR
	ldr	x8, [x21]
	add	x1, x8, x0
	ldr	x2, [x22, #24]
	mov	x0, x23
	bl	_memcpy
	cbz	x28, LBB0_21
; %bb.18:
	tbnz	w27, #31, LBB0_22
; %bb.19:
	str	x22, [x28, #8]
	b	LBB0_23
LBB0_20:
	ldp	w8, w9, [x26]
	add	w8, w8, #1
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	add	w9, w9, w10
	stp	w8, w9, [x26]
	b	LBB0_23
LBB0_21:
	str	x22, [x19, #8]
	b	LBB0_23
LBB0_22:
	str	x22, [x28, #16]
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STATENTRYHDRSZ,8,3             ; @STATENTRYHDRSZ
	.no_dead_strip	_insertStatEntry
.subsections_via_symbols
