	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete_chunks                  ## -- Begin function delete_chunks
	.p2align	4, 0x90
_delete_chunks:                         ## @delete_chunks
	.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	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.1:
	movslq	8(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movslq	4(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rax), %r13
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	-44(%rbp), %rbx                 ## 4-byte Folded Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	(%rdx), %rax
	addq	$20, %r15
	cmpq	%rbx, %r12
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r15), %r14
	movl	4(%r13), %edi
	callq	_chunked
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_chunked
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_chunk_distance
	movq	_g@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	cmpq	16(%rcx), %rax
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r13,%r14,8), %edi
	callq	_chunked
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r13,%r14,8), %edi
	movq	%rbx, %r14
	callq	_chunked
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_chunk_distance
	movq	_g@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	cmpq	16(%rcx), %rax
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%r13,%rbx,8), %edi
	callq	_chunked
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r13,%rbx,8), %edi
	callq	_chunked
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_chunk_distance
	movq	_g@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	cmpq	16(%rcx), %rax
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r15), %rdi
	addq	$16, %rdi
	callq	_map_free
	leaq	(%rbx,%r15), %rdi
	addq	$12, %rdi
	callq	_map_free
	leaq	(%rbx,%r15), %rdi
	addq	$8, %rdi
	callq	_sign_list_free
	movl	4(%rbx,%r15), %edi
	callq	_del_buffer
	movl	(%rbx,%r15), %edi
	callq	_del_buffer
	movq	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	decl	%ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %rbx
	leaq	(%rbx,%rbx,4), %rsi
	shlq	$2, %rsi
	addq	24(%rax), %rsi
	movq	%r14, %rdi
	movl	$20, %edx
	callq	_memcpy
	movq	_g@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_8:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g,8,3                          ## @g
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete_chunks                  ; -- Begin function delete_chunks
	.p2align	2
_delete_chunks:                         ; @delete_chunks
	.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
Lloh0:
	adrp	x21, _g@GOTPAGE
Lloh1:
	ldr	x21, [x21, _g@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w24, [x8]
	cmp	w24, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	ldpsw	x10, x9, [x8, #4]
	ldr	x25, [x8, #32]
	add	x26, x25, x10, lsl #3
	add	x27, x26, #4
	add	x9, x25, x9, lsl #3
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	add	x9, x9, #4
	str	x9, [sp]                        ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x20, w24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	x8, [x21]
	add	x22, x22, #20
	cmp	x23, x20
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x8, #24]
	add	x19, x28, x22
	ldr	w0, [x25, #4]
	bl	_chunked
	mov	x20, x0
	ldr	w0, [x25]
	bl	_chunked
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_chunk_distance
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	cmp	x0, x8
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27]
	bl	_chunked
	mov	x20, x0
	ldr	w0, [x26]
	bl	_chunked
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_chunk_distance
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	cmp	x0, x8
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_chunked
	mov	x20, x0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_chunked
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_chunk_distance
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	cmp	x0, x8
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x28, x22
	add	x0, x20, #16
	bl	_map_free
	add	x0, x20, #12
	bl	_map_free
	add	x0, x20, #8
	bl	_sign_list_free
	ldr	w0, [x20, #4]
	bl	_del_buffer
	ldr	w0, [x20]
	bl	_del_buffer
	ldr	x8, [x21]
	ldr	x8, [x8, #24]
	sub	w24, w24, #1
	sxtw	x20, w24
	mov	w9, #20
	smaddl	x1, w24, w9, x8
	mov	x0, x19
	mov	w2, #20
	bl	_memcpy
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	b	LBB0_3
LBB0_8:
	str	w24, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_g,8,3                          ; @g
.subsections_via_symbols
