	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_isbad_bbt                 ## -- Begin function nand_isbad_bbt
	.p2align	4, 0x90
_nand_isbad_bbt:                        ## @nand_isbad_bbt
	.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
	movl	%esi, %r9d
	movq	(%rdi), %rsi
	movb	(%rsi), %cl
	decb	%cl
	movl	%r9d, %eax
	sarl	%cl, %eax
	movq	8(%rsi), %rcx
	movl	%eax, %esi
	sarl	$3, %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %ebx
	movl	%eax, %ecx
	andb	$6, %cl
	sarl	%cl, %ebx
	movl	%edx, %r14d
	movq	_MTD_DEBUG_LEVEL2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	sarl	%eax
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %r8d
	andl	$3, %r8d
	movl	%r9d, %edx
	movl	%eax, %ecx
	callq	_DEBUG
	andl	$3, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$2, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$1, %ebx
	movl	$1, %ebx
	jmp	LBB0_3
LBB0_4:
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	sete	%bl
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTD_DEBUG_LEVEL2,4,2           ## @MTD_DEBUG_LEVEL2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nand_isbad_bbt(): bbt info for offs 0x%08x: (block %d) 0x%02x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_isbad_bbt                 ; -- Begin function nand_isbad_bbt
	.p2align	2
_nand_isbad_bbt:                        ; @nand_isbad_bbt
	.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	x19, x2
	mov	x2, x1
	ldr	x8, [x0]
	ldr	w9, [x8]
	sub	w9, w9, #1
	asr	w9, w1, w9
	ldr	x8, [x8, #8]
	asr	w10, w9, #3
	ldr	w8, [x8, w10, sxtw #2]
	and	w10, w9, #0x6
	asr	w8, w8, w10
	and	w20, w8, #0x3
Lloh0:
	adrp	x8, _MTD_DEBUG_LEVEL2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTD_DEBUG_LEVEL2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	asr	w3, w9, #1
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x20
	bl	_DEBUG
	cmp	w19, #0
	cset	w8, eq
	mov	w9, #1
	mov	w10, #1
	cmp	w20, #1
	csel	w9, w9, w10, ne
	cmp	w20, #2
	csel	w8, w8, w9, eq
	cmp	w20, #0
	csel	w0, w20, w8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTD_DEBUG_LEVEL2,4,2           ; @MTD_DEBUG_LEVEL2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nand_isbad_bbt(): bbt info for offs 0x%08x: (block %d) 0x%02x\n"

.subsections_via_symbols
