	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chg_upd                        ## -- Begin function chg_upd
	.p2align	4, 0x90
_chg_upd:                               ## @chg_upd
	.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	%rdi, %r14
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.1:
	movq	16(%r14), %r15
	movq	8(%r14), %r12
	leaq	LJTI0_0(%rip), %r13
	movq	%r12, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	(%rcx,%rax,4), %ecx
	cmpq	$3, %rcx
	ja	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13,%rcx,4), %rcx
	addq	%r13, %rcx
	jmpq	*%rcx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r12,%rax,4)
	movq	(%r15,%rax,8), %rcx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_5
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_assert
	testl	%ebx, %ebx
	jns	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r12,%rax,4)
	movq	(%r15,%rax,8), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	%rcx, 8(%r15,%rax,8)
	movl	$0, 4(%r12,%rax,4)
	testl	%ebx, %ebx
	jns	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	testl	%ebx, %ebx
	js	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rcx
	jmp	LBB0_2
LBB0_11:
	movl	%ebx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chg_upd                        ; -- Begin function chg_upd
	.p2align	2
_chg_upd:                               ; @chg_upd
	.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, x0
	ldr	w20, [x0]
	tbnz	w20, #31, LBB0_10
; %bb.1:
	ldp	x22, x21, [x19, #8]
Lloh0:
	adrp	x23, lJTI0_0@PAGE
Lloh1:
	add	x23, x23, lJTI0_0@PAGEOFF
	mov	x8, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, w20, uxtw #2]
	cmp	w9, #3
	b.hi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, w20
	adr	x10, LBB0_4
	ldrb	w11, [x23, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	x9, x8, #2
	ldr	w10, [x22, x9]
	add	w10, w10, #1
	str	w10, [x22, x9]
	ldr	x8, [x21, x8, lsl #3]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_7
	b	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	bl	_assert
	tbz	w20, #31, LBB0_9
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	x9, x8, #2
	ldr	w10, [x22, x9]
	add	w10, w10, #1
	str	w10, [x22, x9]
	ldr	x8, [x21, x8, lsl #3]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	str	x8, [x21, w20, uxtw #3]
	str	wzr, [x22, w20, uxtw #2]
	tbz	w20, #31, LBB0_9
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w20, w20, #1
	tbnz	w20, #31, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	b	LBB0_2
LBB0_10:
	str	w20, [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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
.subsections_via_symbols
