	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_scanning_info
_check_scanning_info:                   ## @check_scanning_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rsi), %rsi
	movq	_UBI_INT_VOL_COUNT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	(%rdi), %rcx
	leaq	(%rcx,%rdx), %rax
	cmpq	%rax, %rsi
	jle	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ubi_err
	jmp	LBB0_2
LBB0_3:
	movq	%rdi, %r12
	movq	8(%r14), %rsi
	cmpq	%rax, %rsi
	jl	LBB0_5
## %bb.4:
	movq	_UBI_INTERNAL_VOL_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jge	LBB0_5
## %bb.19:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ubi_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_5:
	testq	%rax, %rax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	testq	%r13, %r13
	je	LBB0_9
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ubi_scan_rm_volume
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	(%r15), %rax
	addq	(%r12), %rax
	cmpq	%rbx, %rax
	jle	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cond_resched
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ubi_scan_find_sv
	movq	%rax, %r13
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%rdi)
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%r13, %r13
	je	LBB0_9
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rsi
	callq	_check_sv
	testl	%eax, %eax
	je	LBB0_9
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	cmpq	%rbx, (%r12)
	setg	%dil
	callq	_ubi_assert
	testq	%r13, %r13
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_ubi_msg
	jmp	LBB0_14
LBB0_10:
	xorl	%r13d, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%eax, %r13d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_UBI_INT_VOL_COUNT,8,3          ## @UBI_INT_VOL_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scanning found %d volumes, maximum is %d + %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UBI_INTERNAL_VOL_START,8,3     ## @UBI_INTERNAL_VOL_START
L_.str.1:                               ## @.str.1
	.asciz	"too large volume ID %d found by scanning"

L_.str.2:                               ## @.str.2
	.asciz	"finish volume %d removal"

	.no_dead_strip	_check_scanning_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_scanning_info
_check_scanning_info:                   ; @check_scanning_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x1, [x1]
Lloh0:
	adrp	x24, _UBI_INT_VOL_COUNT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _UBI_INT_VOL_COUNT@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x10, [x0]
	add	x9, x10, x8
	cmp	x1, x9
	b.le	LBB0_2
; %bb.1:
	stp	x8, x10, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_2:
	ldr	x1, [x19, #8]
Lloh4:
	adrp	x8, _UBI_INTERNAL_VOL_START@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UBI_INTERNAL_VOL_START@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x1, x9
	ccmp	x1, x8, #0, ge
	b.lt	LBB0_14
; %bb.3:
	cmp	x9, #1
	b.lt	LBB0_16
; %bb.4:
	mov	x20, x0
	mov	x21, #0
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	x23, LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_ubi_scan_rm_volume
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x8, x9, x8
	cmp	x8, x21
	b.le	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_cond_resched
	mov	x0, x19
	mov	x1, x21
	bl	_ubi_scan_find_sv
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cbz	x23, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x23
	bl	_check_sv
	cbz	w0, LBB0_7
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20]
	cmp	x8, x21
	cset	w0, gt
	bl	_ubi_assert
	cbz	x23, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ubi_msg
	b	LBB0_6
LBB0_14:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_15:
	bl	_ubi_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_UBI_INT_VOL_COUNT,8,3          ; @UBI_INT_VOL_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scanning found %d volumes, maximum is %d + %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UBI_INTERNAL_VOL_START,8,3     ; @UBI_INTERNAL_VOL_START
l_.str.1:                               ; @.str.1
	.asciz	"too large volume ID %d found by scanning"

l_.str.2:                               ; @.str.2
	.asciz	"finish volume %d removal"

	.no_dead_strip	_check_scanning_info
.subsections_via_symbols
