	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_chunks
_build_chunks:                          ## @build_chunks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %r9
	movl	(%r9), %r10d
	movl	$1, 4(%r9)
	cmpl	$0, (%rdi)
	jne	LBB0_8
## %bb.1:
	movl	$1, (%rdi)
	movl	4(%rdi), %eax
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.2:
	leaq	32(%r9), %rsi
	decq	%rax
	movl	$1, %r8d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r9), %ecx
	incl	%ecx
	movl	%ecx, 4(%rsi)
	incl	%r8d
	movl	%r8d, (%rdi)
	movq	%rsi, %r9
	movl	%edx, %r10d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %rsi
	decq	%rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r10d, %rcx
	addq	8(%r9), %rcx
	movl	(%rsi), %edx
	cmpq	8(%rsi), %rcx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%edx, %r10d
	cmpl	$1048575, %r10d                 ## imm = 0xFFFFF
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rsi), %ecx
	addl	%ecx, 24(%r9)
	jmp	LBB0_7
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_build_chunks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_chunks
_build_chunks:                          ; @build_chunks
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	mov	w10, #1
	str	w10, [x8, #4]
	ldr	w11, [x0]
	cbnz	w11, LBB0_8
; %bb.1:
	str	w10, [x0]
	ldr	w11, [x0, #4]
	cmp	w11, #2
	b.lt	LBB0_8
; %bb.2:
	add	x10, x8, #32
	sub	x11, x11, #1
	mov	w12, #1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8, #4]
	add	w8, w8, #1
	str	w8, [x10, #4]
	add	w12, w12, #1
	str	w12, [x0]
	mov	x8, x10
	mov	x9, x13
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #32
	subs	x11, x11, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x8, #8]
	add	x14, x13, w9, sxtw
	ldr	x15, [x10, #8]
	ldr	w13, [x10]
	cmp	x14, x15
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w13, w9
	cmp	w9, #256, lsl #12               ; =1048576
	b.ge	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w13, [x10, #16]
	ldr	w14, [x8, #24]
	add	w13, w14, w13
	str	w13, [x8, #24]
	b	LBB0_4
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_build_chunks
.subsections_via_symbols
