	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function optimize
_optimize:                              ## @optimize
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	_END@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_NOP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	leaq	16(%rsi), %rdi
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi), %rbx
	leaq	16(%rbx), %rdi
	cmpq	%rdx, (%rbx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, 16(%rsi)
	leaq	40(%rsi), %rdi
	cmpq	%rcx, 40(%rsi)
	movq	%rdi, %rsi
	jne	LBB0_2
LBB0_5:
	movq	_freep@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	subl	%eax, %esi
	addl	$16, %esi
	movq	%r15, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	cmpq	%r15, %rax
	je	LBB0_16
## %bb.7:
	movl	%eax, %ecx
	subl	%r15d, %ecx
	movslq	%ecx, %rcx
	movq	(%r14), %r8
	addq	%rcx, %r8
	movq	%r8, (%r14)
	movq	8(%rax), %rdx
	cmpq	%r8, %rdx
	jae	LBB0_14
## %bb.8:
	addq	$32, %rdx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	addq	%rcx, (%rdx)
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	%rcx, -24(%rdx)
	addq	$40, %rdx
	addq	$40, %rdi
	cmpq	%r8, %rdi
	jae	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	-32(%rdx), %rdi
	movq	-32(%rdx), %rbx
	leaq	-128(%rbx), %rsi
	cmpq	$4, %rsi
	jb	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	$-132, %rbx
	cmpq	$2, %rbx
	jae	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	%rcx, (%rdx)
	movq	-8(%rdx), %rsi
	addq	%rcx, (%rsi)
	movq	(%r14), %r8
	jmp	LBB0_10
LBB0_16:
	movq	%r15, %rax
	jmp	LBB0_17
LBB0_14:
	addq	%rcx, (%rax)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_END,8,3                        ## @END
	.comm	_NOP,8,3                        ## @NOP
	.comm	_freep,8,3                      ## @freep
	.no_dead_strip	_optimize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optimize
_optimize:                              ; @optimize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _END@GOTPAGE
Lloh1:
	ldr	x9, [x9, _END@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x8]
	cmp	x10, x9
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x10, _NOP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NOP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	x11, x8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	add	x13, x11, #16
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x13]
	mov	x13, x12
	ldr	x14, [x13], #16
	cmp	x14, x10
	b.eq	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x13, [x11, #40]!
	stur	x12, [x11, #-24]
	cmp	x13, x9
	b.ne	LBB0_2
LBB0_5:
Lloh6:
	adrp	x20, _freep@GOTPAGE
Lloh7:
	ldr	x20, [x20, _freep@GOTPAGEOFF]
	ldr	w9, [x20]
	sub	w8, w9, w8
	add	w1, w8, #16
	mov	x0, x19
	bl	_realloc
	cmp	x0, #0
	ccmp	x0, x19, #4, ne
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	b	LBB0_15
LBB0_7:
	sub	w8, w0, w19
	ldr	x10, [x20]
	sxtw	x8, w8
	ldr	x9, [x0, #8]
	add	x10, x10, x8
	cmp	x9, x10
	str	x10, [x20]
	b.hs	LBB0_14
; %bb.8:
	add	x9, x9, #32
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x12, [x9]
	add	x12, x12, x8
	str	x12, [x9]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldur	x12, [x9, #-24]
	add	x12, x12, x8
	stur	x12, [x9, #-24]
	add	x9, x9, #40
	add	x11, x11, #40
	cmp	x11, x10
	b.hs	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x11, x9
	ldr	x12, [x11, #-32]!
	sub	x13, x12, #128
	cmp	x13, #4
	b.lo	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x12, x12, #132
	cmp	x12, #2
	b.hs	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x10, [x9]
	add	x10, x10, x8
	str	x10, [x9]
	ldur	x10, [x9, #-8]
	ldr	x12, [x10]
	add	x12, x12, x8
	str	x12, [x10]
	ldr	x10, [x20]
	b	LBB0_10
LBB0_14:
	ldr	x9, [x0]
	add	x8, x9, x8
	str	x8, [x0]
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_END,8,3                        ; @END
	.comm	_NOP,8,3                        ; @NOP
	.comm	_freep,8,3                      ; @freep
	.no_dead_strip	_optimize
.subsections_via_symbols
