	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __check_incompat_features
___check_incompat_features:             ## @__check_incompat_features
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_le32_to_cpu
	movq	_DM_CACHE_FEATURE_INCOMPAT_SUPP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	movslq	%ecx, %rsi
	callq	_DMERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_get_disk_ro
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movq	_DM_CACHE_FEATURE_COMPAT_RO_SUPP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_CACHE_FEATURE_INCOMPAT_SUPP,4,2 ## @DM_CACHE_FEATURE_INCOMPAT_SUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not access metadata due to unsupported optional features (%lx)."

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DM_CACHE_FEATURE_COMPAT_RO_SUPP,4,2 ## @DM_CACHE_FEATURE_COMPAT_RO_SUPP
L_.str.1:                               ## @.str.1
	.asciz	"could not access metadata RDWR due to unsupported optional features (%lx)."

	.no_dead_strip	___check_incompat_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __check_incompat_features
___check_incompat_features:             ; @__check_incompat_features
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _DM_CACHE_FEATURE_INCOMPAT_SUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_CACHE_FEATURE_INCOMPAT_SUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	w8, w0, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	sxtw	x1, w8
	bl	_DMERR
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_get_disk_ro
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x19]
	bl	_le32_to_cpu
Lloh8:
	adrp	x8, _DM_CACHE_FEATURE_COMPAT_RO_SUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DM_CACHE_FEATURE_COMPAT_RO_SUPP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bics	w8, w0, w8
	b.eq	LBB0_4
; %bb.7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_CACHE_FEATURE_INCOMPAT_SUPP,4,2 ; @DM_CACHE_FEATURE_INCOMPAT_SUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not access metadata due to unsupported optional features (%lx)."

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DM_CACHE_FEATURE_COMPAT_RO_SUPP,4,2 ; @DM_CACHE_FEATURE_COMPAT_RO_SUPP
l_.str.1:                               ; @.str.1
	.asciz	"could not access metadata RDWR due to unsupported optional features (%lx)."

	.no_dead_strip	___check_incompat_features
.subsections_via_symbols
