	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function fsm_logical_to_physical
LCPI0_0:
	.space	4
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_1:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fsm_logical_to_physical:               ## @fsm_logical_to_physical
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %r9
	movq	%rdi, %rcx
	shrq	$32, %rcx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.4:
	movq	_SlotsPerFSMPage@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r8d, %r8d
	cmpl	$8, %ecx
	jae	LBB0_6
## %bb.5:
	movl	%r9d, %eax
	jmp	LBB0_13
LBB0_1:
	movl	%r9d, %eax
	jmp	LBB0_2
LBB0_6:
	movl	%ecx, %r8d
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <u,1,1,1>
	pinsrd	$0, %r9d, %xmm0
	andl	$-8, %r8d
	movd	%edx, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	leal	-8(%r8), %edi
	movl	%edi, %eax
	shrl	$3, %eax
	incl	%eax
	movl	%eax, %esi
	andl	$7, %esi
	cmpl	$56, %edi
	jae	LBB0_8
## %bb.7:
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [1,1,1,1]
	jmp	LBB0_10
LBB0_8:
	andl	$-8, %eax
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [1,1,1,1]
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	pmulld	%xmm1, %xmm0
	pmulld	%xmm1, %xmm2
	pmulld	%xmm1, %xmm0
	pmulld	%xmm1, %xmm2
	pmulld	%xmm1, %xmm0
	pmulld	%xmm1, %xmm2
	pmulld	%xmm1, %xmm0
	pmulld	%xmm1, %xmm2
	pmulld	%xmm1, %xmm0
	pmulld	%xmm1, %xmm2
	pmulld	%xmm1, %xmm0
	pmulld	%xmm1, %xmm2
	pmulld	%xmm1, %xmm0
	pmulld	%xmm1, %xmm2
	pmulld	%xmm1, %xmm0
	pmulld	%xmm1, %xmm2
	addl	$-8, %eax
	jne	LBB0_9
LBB0_10:
	testl	%esi, %esi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	pmulld	%xmm1, %xmm0
	pmulld	%xmm1, %xmm2
	decl	%esi
	jne	LBB0_11
LBB0_12:
	pmulld	%xmm2, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pmulld	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pmulld	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%ecx, %r8d
	je	LBB0_2
LBB0_13:
	subl	%r8d, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	imull	%edx, %eax
	decl	%ecx
	jne	LBB0_14
LBB0_2:
	movq	_FSM_TREE_DEPTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_3
## %bb.15:
	cmpl	$1, %r8d
	jne	LBB0_17
## %bb.16:
	xorl	%esi, %esi
	jmp	LBB0_19
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_17:
	movq	_SlotsPerFSMPage@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%r8d, %ecx
	andl	$-2, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cltq
	addq	%rax, %rsi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%edi
	cltq
	addq	%rax, %rsi
	addq	$2, %rsi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%edi
	addl	$-2, %ecx
	jne	LBB0_18
LBB0_19:
	testb	$1, %r8b
	cltq
	leaq	1(%rax,%rsi), %rax
	cmoveq	%rsi, %rax
LBB0_20:
	sarq	$32, %r9
	notq	%r9
	addq	%rax, %r9
	movq	%r9, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SlotsPerFSMPage,4,2            ## @SlotsPerFSMPage
	.comm	_FSM_TREE_DEPTH,4,2             ## @FSM_TREE_DEPTH
	.no_dead_strip	_fsm_logical_to_physical
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsm_logical_to_physical
_fsm_logical_to_physical:               ; @fsm_logical_to_physical
	.cfi_startproc
; %bb.0:
	lsr	x10, x0, #32
Lloh0:
	adrp	x8, _SlotsPerFSMPage@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SlotsPerFSMPage@GOTPAGEOFF]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	w9, [x8]
	cmp	w10, #16
	b.hs	LBB0_4
; %bb.2:
	mov	w12, #0
	mov	x11, x0
	b	LBB0_7
LBB0_3:
	mov	x11, x0
	b	LBB0_9
LBB0_4:
	and	w12, w10, #0xfffffff0
	movi.4s	v0, #1
	mov.s	v0[0], w0
	movi.4s	v1, #1
	dup.4s	v2, w9
	mov	x11, x12
	movi.4s	v3, #1
	movi.4s	v4, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mul.4s	v0, v2, v0
	mul.4s	v1, v2, v1
	mul.4s	v3, v2, v3
	mul.4s	v4, v2, v4
	subs	w11, w11, #16
	b.ne	LBB0_5
; %bb.6:
	mul.4s	v0, v1, v0
	mul.4s	v0, v3, v0
	mul.4s	v0, v4, v0
	ext.16b	v1, v0, v0, #8
	mul.2s	v0, v0, v1
	fmov	w11, s0
	mov.s	w13, v0[1]
	mul	w11, w11, w13
	cmp	w12, w10
	b.eq	LBB0_9
LBB0_7:
	sub	w10, w10, w12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mul	w11, w9, w11
	subs	w10, w10, #1
	b.ne	LBB0_8
LBB0_9:
Lloh2:
	adrp	x9, _FSM_TREE_DEPTH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FSM_TREE_DEPTH@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x9, #0
	ldr	w8, [x8]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	w12, w11, #1
	add	x9, x9, w12, sxtw
	sdiv	w11, w11, w8
	subs	w10, w10, #1
	b.ne	LBB0_11
	b	LBB0_13
LBB0_12:
	mov	x9, #0
LBB0_13:
	mov	x8, #-1
	eor	x8, x8, x0, asr #32
	add	x0, x9, x8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SlotsPerFSMPage,4,2            ; @SlotsPerFSMPage
	.comm	_FSM_TREE_DEPTH,4,2             ; @FSM_TREE_DEPTH
	.no_dead_strip	_fsm_logical_to_physical
.subsections_via_symbols
