	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_metadata_version
_check_metadata_version:                ## @check_metadata_version
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edi
	callq	_le32_to_cpu
	movq	_MIN_ERA_VERSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_MAX_ERA_VERSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rdx, %rax
	jl	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	cmpq	%rcx, %rax
	jle	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_DMERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
LBB0_3:
	movl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_ERA_VERSION,8,3            ## @MIN_ERA_VERSION
	.comm	_MAX_ERA_VERSION,8,3            ## @MAX_ERA_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Era metadata version %u found, but only versions between %u and %u supported."

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_check_metadata_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_metadata_version
_check_metadata_version:                ; @check_metadata_version
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _MIN_ERA_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_ERA_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
Lloh3:
	adrp	x8, _MAX_ERA_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_ERA_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x3, [x8]
	cmp	x0, x2
	ccmp	x0, x3, #0, ge
	b.le	LBB0_2
; %bb.1:
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_ERA_VERSION,8,3            ; @MIN_ERA_VERSION
	.comm	_MAX_ERA_VERSION,8,3            ; @MAX_ERA_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Era metadata version %u found, but only versions between %u and %u supported."

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_check_metadata_version
.subsections_via_symbols
