	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_states
_append_states:                         ## @append_states
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_nshifts@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	cmpl	$2, %r8d
	jl	LBB0_7
## %bb.1:
	movq	_shift_symbol@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$1, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%edx, %rax
	movq	%rsi, (%rcx,%rax,8)
	incq	%rbx
	cmpq	%r8, %rbx
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%rcx,%rbx,8), %rsi
	movq	%rbx, %rdx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-1(%rdx), %rdi
	movl	%edi, %eax
	movq	(%rcx,%rax,8), %rax
	cmpq	%rsi, %rax
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, (%rcx,%rdx,8)
	leaq	1(%rdi), %rax
	movq	%rdi, %rdx
	cmpq	$1, %rax
	jg	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_7:
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	movq	_shift_symbol@GOTPCREL(%rip), %r15
	movq	_shiftset@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_get_state
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nshifts,4,2                    ## @nshifts
	.comm	_shift_symbol,8,3               ## @shift_symbol
	.comm	_shiftset,8,3                   ## @shiftset
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_append_states
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_states
_append_states:                         ; @append_states
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _nshifts@GOTPAGE
Lloh1:
	ldr	x19, [x19, _nshifts@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh2:
	adrp	x20, _shift_symbol@GOTPAGE
Lloh3:
	ldr	x20, [x20, _shift_symbol@GOTPAGEOFF]
	cmp	w8, #1
	b.le	LBB0_7
; %bb.1:
	ldr	x9, [x20]
	mov	w10, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sbfiz	x12, x12, #3, #32
	str	x11, [x9, x12]
	add	x10, x10, #1
	cmp	x10, x8
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x11, [x9, x10, lsl #3]
	mov	x12, x10
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x13, x12, #1
	ldr	x14, [x9, w13, uxtw #3]
	cmp	x14, x11
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	str	x14, [x9, x12, lsl #3]
	add	x14, x13, #1
	mov	x12, x13
	cmp	x14, #1
	b.gt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
	b	LBB0_2
LBB0_7:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x21, #0
Lloh4:
	adrp	x22, _shiftset@GOTPAGE
Lloh5:
	ldr	x22, [x22, _shiftset@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, x21, lsl #3]
	bl	_get_state
	ldr	x8, [x22]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_9
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_nshifts,4,2                    ; @nshifts
	.comm	_shift_symbol,8,3               ; @shift_symbol
	.comm	_shiftset,8,3                   ; @shiftset
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_append_states
.subsections_via_symbols
