	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function newstate
_newstate:                              ## @newstate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movl	8(%rax), %edi
	callq	_CANCEL_REQUESTED
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_REG_CANCEL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	callq	_NERR
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_3:
	movq	32(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rax
	movq	%rax, 32(%r14)
LBB0_10:
	movq	(%r14), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	(%r14), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r14)
	movq	%rax, 64(%rbx)
	movq	$0, 56(%rbx)
	cmpq	$0, 16(%r14)
	jne	LBB0_12
## %bb.11:
	movq	%rbx, 16(%r14)
LBB0_12:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 8(%rbx)
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_assert
	movq	8(%r14), %rax
	movq	%rbx, 8(%rax)
	jmp	LBB0_15
LBB0_5:
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	_REG_MAX_COMPILE_SPACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.7:
	movl	$96, %edi
	callq	_MALLOC
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	24(%r14), %rax
	addq	$96, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rbx)
	movq	$0, 88(%rbx)
	jmp	LBB0_10
LBB0_13:
	xorl	%eax, %eax
LBB0_15:
	movq	%rax, (%rbx)
	movq	%rbx, 8(%r14)
LBB0_16:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_REG_ETOOBIG@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_REG_ESPACE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CANCEL,4,2                 ## @REG_CANCEL
	.comm	_REG_MAX_COMPILE_SPACE,8,3      ## @REG_MAX_COMPILE_SPACE
	.comm	_REG_ETOOBIG,4,2                ## @REG_ETOOBIG
	.comm	_REG_ESPACE,4,2                 ## @REG_ESPACE
	.no_dead_strip	_newstate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function newstate
_newstate:                              ; @newstate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8, #8]
	bl	_CANCEL_REQUESTED
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _REG_CANCEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_CANCEL@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	bl	_NERR
	mov	x20, #0
	b	LBB0_10
LBB0_3:
	ldr	x20, [x19, #32]
	cbz	x20, LBB0_11
; %bb.4:
	ldr	x8, [x20, #8]
	str	x8, [x19, #32]
LBB0_5:
	ldr	x8, [x19]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	stp	xzr, x8, [x20, #56]
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_7
; %bb.6:
	str	x20, [x19, #16]
LBB0_7:
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #40]
	stur	q0, [x20, #24]
	stur	q0, [x20, #8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #8]
	str	x20, [x8, #8]
LBB0_9:
	str	x8, [x20]
	str	x20, [x19, #8]
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _REG_MAX_COMPILE_SPACE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REG_MAX_COMPILE_SPACE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.12:
	mov	w0, #96
	bl	_MALLOC
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x8, [x19, #24]
	ldr	x9, [x8]
	add	x9, x9, #96
	str	x9, [x8]
	stp	xzr, xzr, [x20, #72]
	str	xzr, [x20, #88]
	b	LBB0_5
LBB0_14:
Lloh5:
	adrp	x8, _REG_ETOOBIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_ETOOBIG@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
Lloh7:
	adrp	x8, _REG_ESPACE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_ESPACE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_NERR
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CANCEL,4,2                 ; @REG_CANCEL
	.comm	_REG_MAX_COMPILE_SPACE,8,3      ; @REG_MAX_COMPILE_SPACE
	.comm	_REG_ETOOBIG,4,2                ; @REG_ETOOBIG
	.comm	_REG_ESPACE,4,2                 ; @REG_ESPACE
	.no_dead_strip	_newstate
.subsections_via_symbols
