	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rechunk_length
_rechunk_length:                        ## @rechunk_length
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	40(%rdi), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.10:
	movq	(%r14), %rbx
	subq	16(%r14), %rbx
	cmpq	%rbx, %r15
	jle	LBB0_18
## %bb.11:
	movq	32(%r14), %r12
	movl	8(%r14), %r13d
	incl	%r13d
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	8(%r12), %eax
	cmpl	%eax, %r13d
	jae	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r12), %rcx
	movl	%r13d, %edx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	(%rcx,%rdx,8), %rbx
	cmpq	%rbx, %r15
	jle	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=2
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpq	24(%r14), %r12
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r12), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_1:
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movq	(%r14), %r15
	jmp	LBB0_18
LBB0_3:
	movq	32(%r14), %r15
	movl	8(%r14), %ebx
	movq	16(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.4:
	movq	(%r15), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx,%rbx,8), %rax
	sete	%dil
LBB0_5:
	callq	_assert
	incl	%ebx
	cmpl	8(%r15), %ebx
	jae	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	shlq	$3, %rax
	addq	(%r15), %rax
	movq	(%rax), %r15
	jmp	LBB0_18
LBB0_7:
	xorl	%edi, %edi
	cmpq	24(%r14), %r15
	setne	%dil
	callq	_assert
	movq	16(%r15), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	cmpl	$0, 8(%rbx)
	setne	%dil
LBB0_9:
	callq	_assert
	movq	(%rbx), %rax
	movq	(%rax), %r15
	jmp	LBB0_18
LBB0_17:
	movq	%rbx, %r15
LBB0_18:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rechunk_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rechunk_length
_rechunk_length:                        ; @rechunk_length
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	x20, [x8]
	cbz	x20, LBB0_9
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	sub	x21, x8, x9
	cmp	x20, x21
	b.le	LBB0_21
; %bb.2:
	ldr	x22, [x19, #32]
	ldr	w8, [x19, #8]
	add	w23, w8, #1
	cmp	x22, #0
	cset	w0, ne
	bl	_assert
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w9, [x22, #8]
	cmp	w23, w9
	b.hs	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	add	x8, x8, w23, uxtw #3
	sub	x9, x9, w23, uxtw
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x8]
	add	x21, x10, x21
	cmp	x20, x21
	b.le	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	cmp	x22, x8
	b.eq	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #0
	ldr	x22, [x22, #16]
	b	LBB0_3
LBB0_9:
	cbnz	w1, LBB0_20
; %bb.10:
	ldr	x20, [x19, #32]
	ldr	w21, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	x9, [x20]
	ldr	x9, [x9, x21, lsl #3]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	bl	_assert
	add	w8, w21, #1
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.hs	LBB0_15
; %bb.14:
	ldr	x9, [x20]
	add	x19, x9, w8, uxtw #3
	b	LBB0_20
LBB0_15:
	ldr	x8, [x19, #24]
	cmp	x20, x8
	cset	w0, ne
	bl	_assert
	ldr	x19, [x20, #16]
	cbz	x19, LBB0_18
; %bb.16:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, ne
	b	LBB0_19
LBB0_17:
	mov	x20, x21
	b	LBB0_21
LBB0_18:
	mov	w0, #0
LBB0_19:
	bl	_assert
	ldr	x19, [x19]
LBB0_20:
	ldr	x20, [x19]
LBB0_21:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rechunk_length
.subsections_via_symbols
