	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_free_state
_get_free_state:                        ## @get_free_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	_max_cycles_num@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setg	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_gcc_assert
	movq	_first_free_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	64(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	%r15, 32(%rbx)
	movq	$0, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movups	%xmm0, 40(%rbx)
	movq	_UNDEFINED_LONGEST_PATH_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	testl	%r14d, %r14d
	jne	LBB0_4
	jmp	LBB0_7
LBB0_2:
	movq	_allocated_states_num@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$4, %edi
	callq	_create_node
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movq	$0, 24(%rax)
	movq	_curr_unique_state_num@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movq	_UNDEFINED_LONGEST_PATH_LENGTH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rbx)
	incl	%ecx
	movl	%ecx, (%rax)
	testl	%r14d, %r14d
	je	LBB0_7
LBB0_4:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	movq	_els_in_reservs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	callq	_alloc_empty_reserv_sets
	movq	%rax, (%rbx)
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_cycles_num,8,3             ## @max_cycles_num
	.comm	_first_free_state,8,3           ## @first_free_state
	.comm	_UNDEFINED_LONGEST_PATH_LENGTH,8,3 ## @UNDEFINED_LONGEST_PATH_LENGTH
	.comm	_allocated_states_num,4,2       ## @allocated_states_num
	.comm	_curr_unique_state_num,4,2      ## @curr_unique_state_num
	.comm	_els_in_reservs,4,2             ## @els_in_reservs
	.no_dead_strip	_get_free_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_free_state
_get_free_state:                        ; @get_free_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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _max_cycles_num@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_cycles_num@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, #0
	ccmp	x8, #0, #4, ne
	cset	w0, gt
	bl	_gcc_assert
Lloh3:
	adrp	x8, _first_free_state@GOTPAGE
Lloh4:
	ldr	x8, [x8, _first_free_state@GOTPAGEOFF]
	ldr	x19, [x8]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x9, [x19, #64]
	str	x9, [x8]
	stp	xzr, x21, [x19, #24]
	stp	xzr, xzr, [x19, #56]
	stp	xzr, xzr, [x19, #40]
Lloh5:
	adrp	x8, _UNDEFINED_LONGEST_PATH_LENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UNDEFINED_LONGEST_PATH_LENGTH@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	cbnz	w20, LBB0_3
	b	LBB0_6
LBB0_2:
Lloh8:
	adrp	x8, _allocated_states_num@GOTPAGE
Lloh9:
	ldr	x8, [x8, _allocated_states_num@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #4
	bl	_create_node
	mov	x19, x0
	stp	xzr, x21, [x0, #24]
Lloh10:
	adrp	x8, _curr_unique_state_num@GOTPAGE
Lloh11:
	ldr	x8, [x8, _curr_unique_state_num@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x0, #16]
Lloh12:
	adrp	x10, _UNDEFINED_LONGEST_PATH_LENGTH@GOTPAGE
Lloh13:
	ldr	x10, [x10, _UNDEFINED_LONGEST_PATH_LENGTH@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	str	x10, [x0, #8]
	add	w9, w9, #1
	str	w9, [x8]
	cbz	w20, LBB0_6
LBB0_3:
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _els_in_reservs@GOTPAGE
Lloh16:
	ldr	x8, [x8, _els_in_reservs@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	b	LBB0_6
LBB0_5:
	bl	_alloc_empty_reserv_sets
	str	x0, [x19]
LBB0_6:
	mov	x0, x19
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_max_cycles_num,8,3             ; @max_cycles_num
	.comm	_first_free_state,8,3           ; @first_free_state
	.comm	_UNDEFINED_LONGEST_PATH_LENGTH,8,3 ; @UNDEFINED_LONGEST_PATH_LENGTH
	.comm	_allocated_states_num,4,2       ; @allocated_states_num
	.comm	_curr_unique_state_num,4,2      ; @curr_unique_state_num
	.comm	_els_in_reservs,4,2             ; @els_in_reservs
	.no_dead_strip	_get_free_state
.subsections_via_symbols
