	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_abs_bbt
_read_abs_bbt:                          ## @read_abs_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movq	%rdx, %rbx
	movq	8(%rdi), %r15
	movl	(%rdx), %edx
	movq	_NAND_BBT_NRBITS_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	andl	%edx, %r8d
	movq	_NAND_BBT_PERCHIP@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_8
## %bb.1:
	movl	(%r15), %r10d
	testl	%r10d, %r10d
	jle	LBB0_9
## %bb.2:
	movl	%eax, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %edx
	movl	4(%r15), %eax
	movzbl	8(%r15), %ecx
	sarl	%cl, %eax
	movl	4(%rbx), %ecx
	movl	%ecx, (%rsp)
	movq	%rsi, %r13
	movl	%eax, %ecx
	movl	%r8d, %ebx
	movl	%r14d, %r9d
	callq	_read_bbt
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %r10d
	movq	%r13, %rsi
	movl	%ebx, %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %edx
	movzbl	8(%r15), %ecx
	addb	$2, %cl
	sarl	%cl, %edx
	addl	%edx, %r14d
	incq	%r12
	movslq	%r10d, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
	jmp	LBB0_5
LBB0_8:
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	movl	(%rdi), %eax
	movb	8(%r15), %cl
	sarl	%cl, %eax
	movl	4(%rbx), %ecx
	movl	%ecx, (%rsp)
	movl	%eax, %ecx
	xorl	%r9d, %r9d
	callq	_read_bbt
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$40, %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_PERCHIP,4,2           ## @NAND_BBT_PERCHIP
	.no_dead_strip	_read_abs_bbt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_abs_bbt
_read_abs_bbt:                          ; @read_abs_bbt
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x25, [x0, #8]
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _NAND_BBT_NRBITS_MSK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_BBT_NRBITS_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w22, w9, w8
Lloh3:
	adrp	x9, _NAND_BBT_PERCHIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_BBT_PERCHIP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x23, x3
	mov	x26, #0
	mov	w24, #0
	mov	w27, w3
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	ldr	w2, [x8, x26, lsl #2]
	ldp	w8, w9, [x25, #4]
	asr	w3, w8, w9
	ldr	w6, [x21, #4]
	mov	x0, x20
	mov	x1, x19
	mov	x4, x22
	mov	x5, x24
	bl	_read_bbt
	cbnz	w0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	w9, w10, [x25, #4]
	add	w10, w10, #2
	asr	w9, w9, w10
	add	w24, w9, w24
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmn	w23, #1
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x27, x26
	b.ne	LBB0_5
	b	LBB0_3
LBB0_8:
	ldr	x8, [x21, #8]
	ldr	w2, [x8]
	ldr	w8, [x20]
	ldr	w9, [x25, #8]
	asr	w3, w8, w9
	ldr	w6, [x21, #4]
	mov	x0, x20
	mov	x1, x19
	mov	x4, x22
	mov	w5, #0
	bl	_read_bbt
	cbnz	w0, LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_BBT_NRBITS_MSK,4,2        ; @NAND_BBT_NRBITS_MSK
	.comm	_NAND_BBT_PERCHIP,4,2           ; @NAND_BBT_PERCHIP
	.no_dead_strip	_read_abs_bbt
.subsections_via_symbols
