	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_chunk_buffer               ## -- Begin function gen_chunk_buffer
	.p2align	4, 0x90
_gen_chunk_buffer:                      ## @gen_chunk_buffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movups	16(%rdi), %xmm0
	movups	%xmm0, -56(%rbp)
	movq	$-1, %rbx
                                        ## implicit-def: $r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r14
	movq	8(%r14,%rbx,8), %rax
	movq	$0, 16(%rax)
	xorl	%eax, %eax
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12,%rbx,8), %rcx
	movq	%rax, 16(%rcx)
	movq	%r13, %rbx
	cmpq	$2, %r13
	je	LBB0_12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	addq	%rbx, %rdi
	movq	16(%r15), %rsi
	decq	%rsi
	callq	_find_chunk
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	12(%rax), %rcx
	movq	8(%r14,%rbx,8), %rdx
	movq	%rcx, (%rdx)
	addq	$8, %rax
	movq	-72(%rbp), %rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14,%rbx,8), %rax
	movq	$0, (%rax)
	movq	-72(%rbp), %rcx
	xorl	%eax, %eax
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rcx,%rbx,8), %rcx
	movq	%rax, (%rcx)
	movq	%r15, %rax
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r15), %rdi
	addq	%rbx, %rdi
	movq	16(%r15), %rsi
	callq	_find_chunk
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	12(%rax), %rcx
	movq	-64(%rbp), %rdx
	movq	8(%rdx,%rbx,8), %rdx
	movq	%rcx, 8(%rdx)
	addq	$8, %rax
	movq	-72(%rbp), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax
	movq	8(%rax,%rbx,8), %rax
	movq	$0, 8(%rax)
	movq	-72(%rbp), %r12
	xorl	%eax, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rbx), %r13
	movq	8(%r12,%rbx,8), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r15), %rdi
	addq	%rbx, %rdi
	movq	16(%r15), %rsi
	incq	%rsi
	callq	_find_chunk
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	12(%rax), %rcx
	movq	-64(%rbp), %r14
	movq	8(%r14,%rbx,8), %rdx
	movq	%rcx, 16(%rdx)
	addq	$8, %rax
	jmp	LBB0_11
LBB0_12:
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	callq	_compute_chunk
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_generate_chunk
	movq	$0, (%r15)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_chunk_buffer               ; -- Begin function gen_chunk_buffer
	.p2align	2
_gen_chunk_buffer:                      ; @gen_chunk_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	x20, #0
	ldr	q0, [x0, #16]
	str	q0, [sp, #16]
                                        ; implicit-def: $x21
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
	ldr	x21, [sp, #8]
	ldr	x9, [x21, x20, lsl #3]
	str	xzr, [x9, #16]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22, x20, lsl #3]
	str	x8, [x9, #16]
	add	x20, x20, #1
	cmp	x20, #3
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #16]
	add	x8, x20, x8
	sub	x0, x8, #1
	sub	x1, x9, #1
	bl	_find_chunk
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, #12
	ldr	x9, [x21, x20, lsl #3]
	str	x8, [x9]
	add	x8, x0, #8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
	ldr	x9, [x21, x20, lsl #3]
	str	xzr, [x9]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp]
	ldr	x9, [x9, x20, lsl #3]
	str	x8, [x9]
	mov	x0, x19
	cmp	x20, #1
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x1, x8, [x19, #16]
	add	x8, x20, x8
	sub	x0, x8, #1
	bl	_find_chunk
	cbz	x0, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, #12
	ldp	x22, x9, [sp]
	ldr	x9, [x9, x20, lsl #3]
	str	x8, [x9, #8]
	add	x8, x0, #8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22, x20, lsl #3]
	str	x8, [x9, #8]
	ldp	x9, x8, [x19, #16]
	add	x8, x20, x8
	sub	x0, x8, #1
	add	x1, x9, #1
	bl	_find_chunk
	cbz	x0, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, #12
	ldr	x21, [sp, #8]
	ldr	x9, [x21, x20, lsl #3]
	str	x8, [x9, #16]
	add	x8, x0, #8
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
	ldp	x22, x9, [sp]
	ldr	x9, [x9, x20, lsl #3]
	str	xzr, [x9, #8]
	b	LBB0_9
LBB0_12:
	mov	x0, sp
	bl	_compute_chunk
	mov	x1, sp
	mov	x0, x19
	bl	_generate_chunk
	str	xzr, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
