	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_mark
_insert_mark:                           ## @insert_mark
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, %r15d
	movq	_marks@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movl	(%r14), %ecx
	movl	%edi, %eax
	sarl	%cl, %eax
	cmpl	$1024, %eax                     ## imm = 0x400
	jl	LBB0_3
## %bb.1:
	movq	_fi_mem_pool@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$24, %edx
	callq	_mem_pool_calloc
	movq	%rax, %r14
	movq	(%r13), %rax
	movl	(%rax), %ecx
	addl	$10, %ecx
	movl	%ecx, (%r14)
	movq	16(%r14), %rdx
	movq	%rax, (%rdx)
	movq	%r14, (%r13)
	movl	%r15d, %eax
	sarl	%cl, %eax
	cmpl	$1023, %eax                     ## imm = 0x3FF
	jg	LBB0_2
LBB0_3:
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.5:
	movq	_fi_mem_pool@GOTPCREL(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$24, %edx
	callq	_mem_pool_calloc
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%r13,8)
	movl	(%r14), %ecx
	addl	$-10, %ecx
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rax
	movl	%ecx, (%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	subl	%ebx, %r15d
	movq	%rax, %r14
	testl	%ecx, %ecx
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %ebx
	sarl	%cl, %ebx
	movslq	%ebx, %r13
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %ecx
	jmp	LBB0_9
LBB0_4:
	movq	%r14, %rax
LBB0_10:
	movq	8(%rax), %rax
	movslq	%r15d, %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_12
## %bb.11:
	movq	_marks_set_count@GOTPCREL(%rip), %rdx
	incl	(%rdx)
LBB0_12:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_marks,8,3                      ## @marks
	.comm	_fi_mem_pool,4,2                ## @fi_mem_pool
	.comm	_marks_set_count,4,2            ## @marks_set_count
	.no_dead_strip	_insert_mark
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_mark
_insert_mark:                           ; @insert_mark
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _marks@GOTPAGE
Lloh1:
	ldr	x23, [x23, _marks@GOTPAGEOFF]
	ldr	x21, [x23]
	ldr	w8, [x21]
	asr	w9, w0, w8
	cmp	w9, #1024
	b.lt	LBB0_4
; %bb.1:
Lloh2:
	adrp	x22, _fi_mem_pool@GOTPAGE
Lloh3:
	ldr	x22, [x22, _fi_mem_pool@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #1
	mov	w2, #24
	bl	_mem_pool_calloc
	ldr	x9, [x23]
	ldr	w8, [x9]
	add	w8, w8, #10
	str	w8, [x0]
	ldr	x10, [x0, #16]
	str	x9, [x10]
	str	x0, [x23]
	asr	w9, w20, w8
	cmp	w9, #1023
	b.gt	LBB0_2
; %bb.3:
	mov	x21, x0
LBB0_4:
	cbz	w8, LBB0_9
; %bb.5:
Lloh4:
	adrp	x22, _fi_mem_pool@GOTPAGE
Lloh5:
	ldr	x22, [x22, _fi_mem_pool@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x23, w9
	mov	x0, x22
	mov	w1, #1
	mov	w2, #24
	bl	_mem_pool_calloc
	ldr	x8, [x21, #16]
	lsl	x9, x23, #3
	str	x0, [x8, x9]
	ldr	w8, [x21]
	sub	w8, w8, #10
	ldr	x10, [x21, #16]
	ldr	x21, [x10, x9]
	str	w8, [x21]
	cbz	w8, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	asr	w9, w20, w8
	lsl	w8, w9, w8
	sub	w20, w20, w8
	ldr	x8, [x21, #16]
	ldr	x10, [x8, w9, sxtw #3]
	cbz	x10, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x10]
	mov	x21, x10
	cbnz	w8, LBB0_7
LBB0_9:
	ldr	x8, [x21, #8]
	sxtw	x9, w20
	ldr	x10, [x8, w20, sxtw #3]
	cbnz	x10, LBB0_11
; %bb.10:
Lloh6:
	adrp	x10, _marks_set_count@GOTPAGE
Lloh7:
	ldr	x10, [x10, _marks_set_count@GOTPAGEOFF]
	ldr	w11, [x10]
	add	w11, w11, #1
	str	w11, [x10]
LBB0_11:
	str	x19, [x8, x9, lsl #3]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_marks,8,3                      ; @marks
	.comm	_fi_mem_pool,4,2                ; @fi_mem_pool
	.comm	_marks_set_count,4,2            ; @marks_set_count
	.no_dead_strip	_insert_mark
.subsections_via_symbols
