	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_change_item_long            ## -- Begin function do_change_item_long
	.p2align	4, 0x90
_do_change_item_long:                   ## @do_change_item_long
	.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
	movl	%esi, %r15d
	movq	%rdi, %r13
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	ja	LBB0_17
## %bb.1:
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rdx, %rdi
	callq	_fits
	testl	%eax, %eax
	je	LBB0_17
## %bb.2:
	cmpl	$255, %r15d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	ja	LBB0_4
## %bb.3:
	movq	_LEV_SEARCH_TEXT_SHORT@GOTPCREL(%rip), %rax
	movl	%r15d, %edi
	addq	(%rax), %rdi
	leal	21(%r15), %esi
	movl	%ebx, %edx
	callq	_alloc_log_event
	movl	%r14d, (%rax)
	movq	%r12, 8(%rax)
	addq	$16, %rax
	jmp	LBB0_5
LBB0_17:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_advance_read_ptr
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_LEV_SEARCH_TEXT_LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leal	23(%r15), %esi
	movl	%ebx, %edx
	callq	_alloc_log_event
	movl	%r14d, (%rax)
	movq	%r12, 8(%rax)
	movl	%r15d, 16(%rax)
	addq	$24, %rax
LBB0_5:
	movq	(%rax), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_read_in
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	sete	%dil
	callq	_assert
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.7:
	movslq	%ebx, %rax
	addq	%r14, %rax
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdi, %r14
	cmpq	%rax, %rdi
	jae	LBB0_16
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movb	(%r14), %cl
	cmpb	$31, %cl
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	cmpq	%rax, %r14
	jae	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	1(%rdi), %r14
	cmpb	$63, (%rdi)
	ja	LBB0_10
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%r14), %rdi
	cmpb	$31, %cl
	ja	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$9, %cl
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movb	$32, (%r14)
	jmp	LBB0_15
LBB0_6:
	movq	%r14, %rdi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_16:
	movb	$0, (%rdi)
	movslq	%r15d, %rax
	subq	%rax, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_change_item                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LEV_SEARCH_TEXT_SHORT,8,3      ## @LEV_SEARCH_TEXT_SHORT
	.comm	_LEV_SEARCH_TEXT_LONG,8,3       ## @LEV_SEARCH_TEXT_LONG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_change_item_long            ; -- Begin function do_change_item_long
	.p2align	2
_do_change_item_long:                   ; @do_change_item_long
	.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	x21, x1
	mov	x23, x0
	lsr	w8, w1, #16
	cbnz	w8, LBB0_4
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x0, x2
	bl	_fits
	cbz	w0, LBB0_4
; %bb.2:
	cmp	w21, #255
	b.hi	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _LEV_SEARCH_TEXT_SHORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEV_SEARCH_TEXT_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, w21, uxtw
	add	w1, w21, #21
	mov	x2, x20
	bl	_alloc_log_event
	str	w19, [x0]
	str	x22, [x0, #8]
	add	x8, x0, #16
	b	LBB0_6
LBB0_4:
	mov	x0, x23
	mov	x1, x21
	bl	_advance_read_ptr
	mov	w0, #0
	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
LBB0_5:
Lloh3:
	adrp	x8, _LEV_SEARCH_TEXT_LONG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LEV_SEARCH_TEXT_LONG@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	add	w1, w21, #23
	mov	x2, x20
	bl	_alloc_log_event
	str	w19, [x0]
	str	x22, [x0, #8]
	str	w21, [x0, #16]
	add	x8, x0, #24
LBB0_6:
	ldr	x24, [x8]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	bl	_read_in
	mov	x23, x0
	cmp	w0, w21
	cset	w0, eq
	bl	_assert
	cmp	w23, #1
	b.lt	LBB0_15
; %bb.7:
	add	x8, x24, w23, sxtw
	mov	w9, #32
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x10
	cmp	x10, x8
	b.hs	LBB0_16
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldrb	w11, [x24]
	cmp	w11, #31
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x11, x24, #1
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x10, x11
	cmp	x11, x8
	b.hs	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x11, x10
	ldrb	w12, [x11], #1
	cmp	w12, #63
	b.hi	LBB0_11
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x10, x24, #1
	ccmp	w11, #9, #4, ls
	b.eq	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	strb	w9, [x24]
	b	LBB0_8
LBB0_15:
	mov	x10, x24
LBB0_16:
	strb	wzr, [x10]
	sub	x0, x10, w21, sxtw
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	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
	b	_change_item
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LEV_SEARCH_TEXT_SHORT,8,3      ; @LEV_SEARCH_TEXT_SHORT
	.comm	_LEV_SEARCH_TEXT_LONG,8,3       ; @LEV_SEARCH_TEXT_LONG
.subsections_via_symbols
