	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_sv
_check_sv:                              ## @check_sv
	.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
	movq	(%rdi), %rax
	movl	$1, %esi
	cmpq	%rax, (%rbx)
	jge	LBB0_5
## %bb.1:
	movl	$2, %esi
	cmpq	%rax, 8(%rbx)
	jg	LBB0_5
## %bb.2:
	movq	16(%rbx), %rcx
	movl	$3, %esi
	cmpq	8(%r14), %rcx
	jne	LBB0_5
## %bb.3:
	movl	$4, %esi
	cmpq	%rax, 24(%rbx)
	jg	LBB0_5
## %bb.4:
	movq	32(%rbx), %rcx
	movl	$5, %esi
	xorl	%eax, %eax
	cmpq	16(%r14), %rcx
	je	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_ubi_err
	movq	%rbx, %rdi
	callq	_ubi_dbg_dump_sv
	movq	%r14, %rdi
	callq	_ubi_dbg_dump_vol_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad scanning information, error %d"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_sv
_check_sv:                              ; @check_sv
	.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	x9, [x1]
	ldr	x8, [x0]
	cmp	x9, x8
	b.ge	LBB0_3
; %bb.1:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.le	LBB0_6
; %bb.2:
	mov	w1, #2
	b	LBB0_4
LBB0_3:
	mov	w1, #1
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ubi_err
	mov	x0, x20
	bl	_ubi_dbg_dump_sv
	mov	x0, x19
	bl	_ubi_dbg_dump_vol_info
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x9, [x20, #16]
	ldr	x10, [x19, #8]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:
	ldr	x9, [x20, #24]
	cmp	x9, x8
	b.le	LBB0_10
; %bb.8:
	mov	w1, #4
	b	LBB0_4
LBB0_9:
	mov	w1, #3
	b	LBB0_4
LBB0_10:
	ldr	x8, [x20, #32]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
	b	LBB0_5
LBB0_12:
	mov	w1, #5
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad scanning information, error %d"

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