	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_bbt_descr
_verify_bbt_descr:                      ## @verify_bbt_descr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	addq	$8, %rdi
	callq	_nanddev_target_size
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_nand_to_mtd
	testq	%r13, %r13
	je	LBB0_8
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r12d
	movq	_NAND_BBT_NRBITS_MSK@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	movq	_NAND_BBT_NO_OOB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	setne	%dl
	movq	_NAND_BBT_USE_FLASH@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	movl	(%rax), %ecx
	sete	%al
	andb	%dl, %al
	xorl	%ebx, %ebx
	andl	4(%r13), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movzbl	%al, %edi
	sete	%bl
	callq	_BUG_ON
	movl	%ebx, %edi
	callq	_BUG_ON
	movl	4(%r13), %eax
	movq	_NAND_BBT_VERSION@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	andl	%eax, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r12d
	movq	_NAND_BBT_NO_OOB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	_NAND_BBT_USE_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r15), %eax
	sete	%dil
	callq	_BUG_ON
	movq	_NAND_BBT_NO_OOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r15), %eax
	sete	%dil
	callq	_BUG_ON
	movl	8(%r13), %edi
	callq	_BUG_ON
	movl	4(%r13), %edi
	testl	%edi, (%rbx)
	je	LBB0_4
## %bb.3:
	movslq	(%r13), %rax
	xorl	%edi, %edi
	cmpq	%rax, 16(%r13)
	setne	%dil
	callq	_BUG_ON
	movl	4(%r13), %edi
LBB0_4:
	movq	_NAND_BBT_SAVECONTENT@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_BUG_ON
	movl	4(%r13), %eax
LBB0_5:
	movq	_NAND_BBT_PERCHIP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r14d
LBB0_7:
	movl	4(%r15), %ecx
	sarl	%cl, %r14d
	sarl	$3, %r14d
	imull	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movq	_NAND_BBT_NO_OOB@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	cmovel	%eax, %r12d
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	addl	%r14d, %r12d
	xorl	%edi, %edi
	cmpl	%eax, %r12d
	setg	%dil
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG_ON                         ## TAILCALL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_BBT_NRBITS_MSK,4,2        ## @NAND_BBT_NRBITS_MSK
	.comm	_NAND_BBT_NO_OOB,4,2            ## @NAND_BBT_NO_OOB
	.comm	_NAND_BBT_USE_FLASH,4,2         ## @NAND_BBT_USE_FLASH
	.comm	_NAND_BBT_VERSION,4,2           ## @NAND_BBT_VERSION
	.comm	_NAND_BBT_SAVECONTENT,4,2       ## @NAND_BBT_SAVECONTENT
	.comm	_NAND_BBT_PERCHIP,4,2           ## @NAND_BBT_PERCHIP
	.no_dead_strip	_verify_bbt_descr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_bbt_descr
_verify_bbt_descr:                      ; @verify_bbt_descr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	add	x0, x0, #8
	bl	_nanddev_target_size
	mov	x20, x0
	mov	x0, x19
	bl	_nand_to_mtd
	cbz	x22, LBB0_7
; %bb.1:
	mov	x21, x0
	ldp	w25, w24, [x22]
Lloh0:
	adrp	x8, _NAND_BBT_NRBITS_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_BBT_NRBITS_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	ldr	w8, [x19]
Lloh3:
	adrp	x23, _NAND_BBT_NO_OOB@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NAND_BBT_NO_OOB@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	cset	w9, ne
Lloh5:
	adrp	x27, _NAND_BBT_USE_FLASH@GOTPAGE
Lloh6:
	ldr	x27, [x27, _NAND_BBT_USE_FLASH@GOTPAGEOFF]
	ldr	w10, [x27]
	tst	w10, w8
	cset	w8, eq
	and	w0, w9, w8
	bl	_BUG_ON
	ands	w24, w26, w24
	cset	w0, eq
	bl	_BUG_ON
Lloh7:
	adrp	x26, _NAND_BBT_VERSION@GOTPAGE
Lloh8:
	ldr	x26, [x26, _NAND_BBT_VERSION@GOTPAGEOFF]
	ldr	w8, [x22, #4]
	ldr	w9, [x26]
	tst	w9, w8
	cinc	w25, w25, ne
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	ldr	w9, [x27]
	tst	w9, w8
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x22, #8]
	bl	_BUG_ON
	ldr	w8, [x22, #4]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x22, #16]
	ldrsw	x9, [x22]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
	ldr	w8, [x22, #4]
LBB0_4:
Lloh9:
	adrp	x9, _NAND_BBT_SAVECONTENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NAND_BBT_SAVECONTENT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_BUG_ON
	ldr	w8, [x22, #4]
LBB0_5:
Lloh12:
	adrp	x9, _NAND_BBT_PERCHIP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NAND_BBT_PERCHIP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	w9, [x19, #4]
	asr	w10, w20, w9
	b	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w9, [x21]
	ldr	w11, [x19, #4]
	asr	w10, w9, w11
	mov	x9, x11
LBB0_9:
	asr	w10, w10, #3
	ldr	w11, [x23]
	tst	w11, w8
	csel	w8, wzr, w25, eq
	madd	w8, w10, w24, w8
	mov	w10, #1
	lsl	w9, w10, w9
	cmp	w8, w9
	cset	w0, gt
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_BUG_ON
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_BBT_NRBITS_MSK,4,2        ; @NAND_BBT_NRBITS_MSK
	.comm	_NAND_BBT_NO_OOB,4,2            ; @NAND_BBT_NO_OOB
	.comm	_NAND_BBT_USE_FLASH,4,2         ; @NAND_BBT_USE_FLASH
	.comm	_NAND_BBT_VERSION,4,2           ; @NAND_BBT_VERSION
	.comm	_NAND_BBT_SAVECONTENT,4,2       ; @NAND_BBT_SAVECONTENT
	.comm	_NAND_BBT_PERCHIP,4,2           ; @NAND_BBT_PERCHIP
	.no_dead_strip	_verify_bbt_descr
.subsections_via_symbols
