	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_state
_get_state:                             ## @get_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, %r14d
	movq	_kernel_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rsi
	movq	(%rax,%rsi,8), %r12
	movq	_kernel_end@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r12), %r13
	testl	%r13d, %r13d
	setns	%cl
	movq	_nitems@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r13d
	movq	%rsi, %rbx
	movq	(%rax,%rsi,8), %r15
	setl	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	_state_set@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	(%rax,%r13,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movq	%r15, %r9
	subq	%r12, %r9
	shrq	$2, %r9
	movq	_kernel_base@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%rbx, %r10
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ecx, %ebx
	je	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rdx, %r12
	cmpl	%r9d, (%rdx)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8,%r10,8), %rdx
	cmpq	%r15, %rdx
	jae	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rsi
	addq	$4, %rdx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rdx), %ebx
	movl	(%rsi), %ecx
	cmpl	%ecx, %ebx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	addq	$4, %rsi
	leaq	4(%rdx), %rax
	cmpq	%r15, %rdx
	movq	%rax, %rdx
	jb	LBB0_5
	jmp	LBB0_7
LBB0_10:
	movl	%r14d, %edi
	movq	%rcx, %rbx
	callq	_new_state
	movq	%rax, %r12
	shlq	$3, %r13
	addq	(%rbx), %r13
	jmp	LBB0_11
LBB0_9:
	addq	$24, %r12
	movl	%r14d, %edi
	callq	_new_state
	movq	%r12, %r13
	movq	%rax, %r12
LBB0_11:
	movq	%r12, (%r13)
LBB0_12:
	movl	16(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_base,8,3                ## @kernel_base
	.comm	_kernel_end,8,3                 ## @kernel_end
	.comm	_nitems,4,2                     ## @nitems
	.comm	_state_set,8,3                  ## @state_set
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_get_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_state
_get_state:                             ; @get_state
	.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
Lloh0:
	adrp	x21, _kernel_base@GOTPAGE
Lloh1:
	ldr	x21, [x21, _kernel_base@GOTPAGEOFF]
	ldr	x8, [x21]
	sbfiz	x9, x19, #3, #32
	ldr	x23, [x8, x9]
Lloh2:
	adrp	x8, _kernel_end@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kernel_end@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x20, [x8, x9]
	ldrsw	x22, [x23]
	cmp	w22, #0
Lloh5:
	adrp	x8, _nitems@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nitems@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ccmp	w22, w8, #0, ge
	cset	w0, lt
	bl	_assert
Lloh8:
	adrp	x24, _state_set@GOTPAGE
Lloh9:
	ldr	x24, [x24, _state_set@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x11, [x8, x22, lsl #3]
	cbz	x11, LBB0_8
; %bb.1:
	sxtw	x8, w19
	sub	x9, x20, x23
	lsr	x9, x9, #2
	ldr	x10, [x21]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x0, #24]
	cbz	x11, LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x11
	ldr	w11, [x11]
	cmp	w11, w9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x10, x8, lsl #3]
	cmp	x12, x20
	b.hs	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x0, #8]
	add	x12, x12, #4
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w13, [x12, #-4]
	ldr	w14, [x11], #4
	cmp	w13, w14
	ccmp	x12, x20, #2, eq
	add	x12, x12, #4
	b.lo	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w13, w14
	b.ne	LBB0_2
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_new_state
	ldr	x8, [x24]
	add	x20, x8, x22, lsl #3
	b	LBB0_10
LBB0_9:
	add	x20, x0, #24
	mov	x0, x19
	bl	_new_state
LBB0_10:
	str	x0, [x20]
LBB0_11:
	ldr	w0, [x0, #16]
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_base,8,3                ; @kernel_base
	.comm	_kernel_end,8,3                 ; @kernel_end
	.comm	_nitems,4,2                     ; @nitems
	.comm	_state_set,8,3                  ; @state_set
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_get_state
.subsections_via_symbols
