	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function value_from_type_and_range
_value_from_type_and_range:             ## @value_from_type_and_range
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	(%rdi), %rdx
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	movslq	%esi, %rcx
	movq	(%rdi,%rcx,8), %rsi
	cmpq	(%rdx), %rsi
	jge	LBB0_3
## %bb.1:
	movq	8(%rax), %r8
	leaq	(%rcx,%rcx,4), %rcx
	movl	(%r8,%rcx,8), %edx
	movq	_MAY_BE_UNDEF@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	testl	%edx, %eax
	je	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_MAY_BE_ANY@GOTPCREL(%rip), %rdi
	orl	(%rdi), %eax
	movq	_MAY_BE_NULL@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	subl	(%rdi), %esi
	testl	%edx, %esi
	je	LBB0_10
## %bb.6:
	movq	_MAY_BE_FALSE@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	subl	(%rsi), %edi
	testl	%edx, %edi
	je	LBB0_11
## %bb.7:
	movq	_MAY_BE_TRUE@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	subl	(%rsi), %edi
	testl	%edx, %edi
	je	LBB0_12
## %bb.8:
	movq	_MAY_BE_LONG@GOTPCREL(%rip), %rsi
	subl	(%rsi), %eax
	testl	%edx, %eax
	jne	LBB0_3
## %bb.13:
	cmpq	$0, 32(%r8,%rcx,8)
	je	LBB0_3
## %bb.14:
	cmpl	$0, 28(%r8,%rcx,8)
	jne	LBB0_3
## %bb.17:
	cmpl	$0, 24(%r8,%rcx,8)
	jne	LBB0_3
## %bb.19:
	movq	8(%r8,%rcx,8), %rsi
	cmpq	16(%r8,%rcx,8), %rsi
	jne	LBB0_3
## %bb.20:
	movq	%rbx, %rdi
	callq	_ZVAL_LONG
	jmp	LBB0_4
LBB0_10:
	movq	%rbx, %rdi
	callq	_ZVAL_NULL
	jmp	LBB0_4
LBB0_11:
	movq	%rbx, %rdi
	callq	_ZVAL_FALSE
	jmp	LBB0_4
LBB0_12:
	movq	%rbx, %rdi
	callq	_ZVAL_TRUE
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MAY_BE_UNDEF,4,2               ## @MAY_BE_UNDEF
	.comm	_MAY_BE_ANY,4,2                 ## @MAY_BE_ANY
	.comm	_MAY_BE_NULL,4,2                ## @MAY_BE_NULL
	.comm	_MAY_BE_FALSE,4,2               ## @MAY_BE_FALSE
	.comm	_MAY_BE_TRUE,4,2                ## @MAY_BE_TRUE
	.comm	_MAY_BE_LONG,4,2                ## @MAY_BE_LONG
	.no_dead_strip	_value_from_type_and_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function value_from_type_and_range
_value_from_type_and_range:             ; @value_from_type_and_range
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldp	x9, x8, [x0]
	ldr	x10, [x8]
	ldr	x10, [x10, w1, sxtw #3]
	ldr	x9, [x9]
	cmp	x10, x9
	b.ge	LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	sxtw	x9, w1
	mov	w10, #40
	mul	x10, x9, x10
	ldr	w10, [x8, x10]
Lloh0:
	adrp	x11, _MAY_BE_UNDEF@GOTPAGE
Lloh1:
	ldr	x11, [x11, _MAY_BE_UNDEF@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
LBB0_2:
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x2
Lloh3:
	adrp	x12, _MAY_BE_ANY@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAY_BE_ANY@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh6:
	adrp	x12, _MAY_BE_NULL@GOTPAGE
Lloh7:
	ldr	x12, [x12, _MAY_BE_NULL@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	sub	w12, w11, w12
	tst	w12, w10
	b.eq	LBB0_13
; %bb.5:
Lloh9:
	adrp	x12, _MAY_BE_FALSE@GOTPAGE
Lloh10:
	ldr	x12, [x12, _MAY_BE_FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	sub	w12, w11, w12
	tst	w12, w10
	b.eq	LBB0_14
; %bb.6:
Lloh12:
	adrp	x12, _MAY_BE_TRUE@GOTPAGE
Lloh13:
	ldr	x12, [x12, _MAY_BE_TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	sub	w12, w11, w12
	tst	w12, w10
	b.eq	LBB0_15
; %bb.7:
Lloh15:
	adrp	x12, _MAY_BE_LONG@GOTPAGE
Lloh16:
	ldr	x12, [x12, _MAY_BE_LONG@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	sub	w11, w11, w12
	tst	w11, w10
	b.ne	LBB0_2
; %bb.8:
	mov	w10, #40
	madd	x10, x9, x10, x8
	ldr	x10, [x10, #32]
	cbz	x10, LBB0_2
; %bb.9:
	mov	w10, #40
	madd	x10, x9, x10, x8
	ldr	w10, [x10, #28]
	cbnz	w10, LBB0_2
; %bb.10:
	mov	w10, #40
	madd	x10, x9, x10, x8
	ldr	w10, [x10, #24]
	cbnz	w10, LBB0_2
; %bb.11:
	mov	w10, #40
	madd	x8, x9, x10, x8
	ldp	x1, x8, [x8, #8]
	cmp	x1, x8
	b.ne	LBB0_2
; %bb.12:
	mov	x0, x19
	bl	_ZVAL_LONG
	b	LBB0_3
LBB0_13:
	mov	x0, x19
	bl	_ZVAL_NULL
	b	LBB0_3
LBB0_14:
	mov	x0, x19
	bl	_ZVAL_FALSE
	b	LBB0_3
LBB0_15:
	mov	x0, x19
	bl	_ZVAL_TRUE
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAY_BE_UNDEF,4,2               ; @MAY_BE_UNDEF
	.comm	_MAY_BE_ANY,4,2                 ; @MAY_BE_ANY
	.comm	_MAY_BE_NULL,4,2                ; @MAY_BE_NULL
	.comm	_MAY_BE_FALSE,4,2               ; @MAY_BE_FALSE
	.comm	_MAY_BE_TRUE,4,2                ; @MAY_BE_TRUE
	.comm	_MAY_BE_LONG,4,2                ; @MAY_BE_LONG
	.no_dead_strip	_value_from_type_and_range
.subsections_via_symbols
