	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_state
_new_state:                             ## @new_state
	.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	%edi, %ebx
	movq	_nstates@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_MAXYYINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_fatal
LBB0_2:
	movq	_kernel_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %r12
	movq	(%rax,%r12,8), %rbx
	movq	_kernel_end@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %r15
	movq	%r15, %rdi
	subq	%rbx, %rdi
	movq	%rdi, %r13
	shrq	$3, %r13
	addl	$32, %edi
	andl	$-8, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_allocate
	movq	%r12, 32(%rax)
	movq	(%r14), %r9
	movq	%r9, 24(%rax)
	movl	%r13d, %ecx
	movq	%rcx, 16(%rax)
	cmpq	%rbx, %r15
	jbe	LBB0_15
## %bb.3:
	leaq	8(%rbx), %rcx
	cmpq	%rcx, %r15
	cmovaq	%r15, %rcx
	movq	(%rax), %rdx
	movq	%rbx, %r10
	notq	%r10
	addq	%rcx, %r10
	cmpq	$24, %r10
	jb	LBB0_14
## %bb.4:
	movq	%rdx, %rcx
	subq	%rbx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_14
## %bb.5:
	shrq	$3, %r10
	incq	%r10
	movq	%r10, %r8
	andq	$-4, %r8
	leaq	-4(%r8), %rcx
	movq	%rcx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r11d
	andl	$3, %r11d
	cmpq	$12, %rcx
	jae	LBB0_7
## %bb.6:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_7:
	andq	$-4, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rsi,8), %xmm0
	movups	16(%rbx,%rsi,8), %xmm1
	movups	%xmm0, (%rdx,%rsi,8)
	movups	%xmm1, 16(%rdx,%rsi,8)
	movups	32(%rbx,%rsi,8), %xmm0
	movups	48(%rbx,%rsi,8), %xmm1
	movups	%xmm0, 32(%rdx,%rsi,8)
	movups	%xmm1, 48(%rdx,%rsi,8)
	movups	64(%rbx,%rsi,8), %xmm0
	movups	80(%rbx,%rsi,8), %xmm1
	movups	%xmm0, 64(%rdx,%rsi,8)
	movups	%xmm1, 80(%rdx,%rsi,8)
	movups	96(%rbx,%rsi,8), %xmm0
	movups	112(%rbx,%rsi,8), %xmm1
	movups	%xmm0, 96(%rdx,%rsi,8)
	movups	%xmm1, 112(%rdx,%rsi,8)
	addq	$16, %rsi
	addq	$-4, %rdi
	jne	LBB0_8
LBB0_9:
	testq	%r11, %r11
	je	LBB0_12
## %bb.10:
	leaq	(%rdx,%rsi,8), %rdi
	addq	$16, %rdi
	leaq	(%rbx,%rsi,8), %rsi
	addq	$16, %rsi
	shlq	$5, %r11
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rcx), %xmm0
	movups	(%rsi,%rcx), %xmm1
	movups	%xmm0, -16(%rdi,%rcx)
	movups	%xmm1, (%rdi,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %r11
	jne	LBB0_11
LBB0_12:
	cmpq	%r8, %r10
	je	LBB0_15
## %bb.13:
	leaq	(%rbx,%r8,8), %rbx
	leaq	(%rdx,%r8,8), %rdx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	addq	$8, %rbx
	movq	%rcx, (%rdx)
	addq	$8, %rdx
	cmpq	%r15, %rbx
	jb	LBB0_14
LBB0_15:
	movq	_last_state@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rax, 8(%rdx)
	movq	%rax, (%rcx)
	incq	%r9
	movq	%r9, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nstates,8,3                    ## @nstates
	.comm	_MAXYYINT,8,3                   ## @MAXYYINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many states"

	.comm	_kernel_base,8,3                ## @kernel_base
	.comm	_kernel_end,8,3                 ## @kernel_end
	.comm	_last_state,8,3                 ## @last_state
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_new_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_state
_new_state:                             ; @new_state
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _nstates@GOTPAGE
Lloh1:
	ldr	x20, [x20, _nstates@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _MAXYYINT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAXYYINT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_2:
Lloh7:
	adrp	x8, _kernel_base@GOTPAGE
Lloh8:
	ldr	x8, [x8, _kernel_base@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	sbfiz	x9, x19, #3, #32
	ldr	x22, [x8, x9]
Lloh10:
	adrp	x8, _kernel_end@GOTPAGE
Lloh11:
	ldr	x8, [x8, _kernel_end@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x21, [x8, x9]
	subs	x8, x21, x22
	add	w8, w8, #32
	and	w0, w8, #0xfffffff8
	bl	_allocate
	sxtw	x10, w19
	subs	x9, x21, x22
	ldr	x8, [x20]
	ubfx	x9, x9, #3, #32
	stp	x8, x10, [x0, #24]
	str	x9, [x0, #16]
	b.ls	LBB0_9
; %bb.3:
	ldr	x9, [x0]
	add	x10, x22, #8
	cmp	x21, x10
	csel	x10, x21, x10, hi
	mvn	x11, x22
	add	x10, x10, x11
	cmp	x10, #56
	b.lo	LBB0_8
; %bb.4:
	sub	x11, x9, x22
	cmp	x11, #64
	b.lo	LBB0_8
; %bb.5:
	lsr	x10, x10, #3
	add	x10, x10, #1
	and	x11, x10, #0x3ffffffffffffff8
	lsl	x13, x11, #3
	add	x12, x22, x13
	add	x13, x9, x13
	add	x14, x22, #32
	add	x9, x9, #32
	mov	x15, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	stp	q0, q1, [x9, #-32]
	stp	q2, q3, [x9], #64
	subs	x15, x15, #8
	b.ne	LBB0_6
; %bb.7:
	mov	x22, x12
	mov	x9, x13
	cmp	x10, x11
	b.eq	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22], #8
	str	x10, [x9], #8
	cmp	x22, x21
	b.lo	LBB0_8
LBB0_9:
Lloh13:
	adrp	x9, _last_state@GOTPAGE
Lloh14:
	ldr	x9, [x9, _last_state@GOTPAGEOFF]
	ldr	x10, [x9]
	str	x0, [x10, #8]
	str	x0, [x9]
	add	x8, x8, #1
	str	x8, [x20]
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_nstates,8,3                    ; @nstates
	.comm	_MAXYYINT,8,3                   ; @MAXYYINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many states"

	.comm	_kernel_base,8,3                ; @kernel_base
	.comm	_kernel_end,8,3                 ; @kernel_end
	.comm	_last_state,8,3                 ; @last_state
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_new_state
.subsections_via_symbols
