	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_create
_check_create:                          ## @check_create
	.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
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdx
	movq	8(%rdx), %r13
	movq	16(%rdx), %rbx
	movl	(%rbx), %eax
	movq	_NAND_BBT_PERCHIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_1
## %bb.7:
	movl	(%rdx), %edx
	testl	%edx, %edx
	jg	LBB0_2
LBB0_31:
	xorl	%eax, %eax
LBB0_32:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$1, %edx
LBB0_2:
	movl	%edx, %edx
	decq	%rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	andl	%eax, %ecx
	cmpl	$1, %ecx
	movl	$0, %r14d
	sbbl	%r14d, %r14d
	orl	%r15d, %r14d
	movq	8(%rbx), %rcx
	movl	(%rcx,%r15,4), %ecx
	testq	%r13, %r13
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rdx
	movl	(%rdx,%r15,4), %edi
	cmpl	$-1, %ecx
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rdx
	movl	(%rdx,%r15,4), %ecx
	movq	16(%r13), %rsi
	cmpl	$-1, %edi
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rsi,%r15,4), %edi
	cmpl	%edi, %ecx
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	movq	%rbx, %rdx
	movq	_NAND_BBT_VERSION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_read_abs_bbt
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_read_abs_bbt
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	movq	%rbx, %rdx
	cmpl	$-1, %ecx
	jne	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r12d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %edi
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r13), %rax
	movl	(%rax,%r15,4), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	jle	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, (%rsi,%r15,4)
	movl	$2, %r12d
	movq	%rbx, %rdx
	jmp	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$3, %r12d
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NAND_BBT_CREATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_30
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_create_bbt
	movq	16(%rbx), %rax
	movl	$1, (%rax,%r15,4)
	testq	%r13, %r13
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r13), %rax
	movl	$1, (%rax,%r15,4)
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r12b
	jne	LBB0_23
	jmp	LBB0_25
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, (%rdx,%r15,4)
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r12d
	movq	%r13, %rdx
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_read_abs_bbt
	testb	$1, %r12b
	je	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NAND_BBT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movl	%r14d, %r8d
	callq	_write_bbt
	testl	%eax, %eax
	js	LBB0_32
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$2, %r12b
	je	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_NAND_BBT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	callq	_write_bbt
	testl	%eax, %eax
	js	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_31
## %bb.33:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	movq	_NAND_BBT_PERCHIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	incq	%r15
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_BBT_PERCHIP,4,2           ## @NAND_BBT_PERCHIP
	.comm	_NAND_BBT_VERSION,4,2           ## @NAND_BBT_VERSION
	.comm	_NAND_BBT_CREATE,4,2            ## @NAND_BBT_CREATE
	.comm	_NAND_BBT_WRITE,4,2             ## @NAND_BBT_WRITE
	.no_dead_strip	_check_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_create
_check_create:                          ; @check_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x1
	mov	x21, x0
	ldr	x10, [x0]
	ldp	x23, x22, [x10, #8]
	ldr	w8, [x22]
Lloh0:
	adrp	x25, _NAND_BBT_PERCHIP@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NAND_BBT_PERCHIP@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w10, [x10]
	cmp	w10, #1
	b.ge	LBB0_5
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	w10, #1
LBB0_5:
	mov	x27, #0
	mov	w10, w10
	sub	x28, x10, #1
Lloh2:
	adrp	x26, _NAND_BBT_WRITE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _NAND_BBT_WRITE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	tst	w9, w8
	csinv	w24, w27, wzr, ne
	ldr	x9, [x22, #8]
	ldr	w9, [x9, x27, lsl #2]
	cbz	x23, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x23, #8]
	ldr	w12, [x10, x27, lsl #2]
	cmn	w9, #1
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x22, #16]
	ldr	w10, [x9, x27, lsl #2]
	ldr	x11, [x23, #16]
	cmn	w12, #1
	b.eq	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w12, [x11, x27, lsl #2]
	cmp	w10, w12
	b.ne	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh4:
	adrp	x9, _NAND_BBT_VERSION@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NAND_BBT_VERSION@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x24
	bl	_read_abs_bbt
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x24
	bl	_read_abs_bbt
	b	LBB0_34
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	cmn	w9, #1
	b.eq	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w19, #0
	b	LBB0_19
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	cmn	w12, #1
	b.eq	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23, #16]
	lsl	x9, x27, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x22, #16]
	str	w8, [x10, x9]
	b	LBB0_26
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w19, #1
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	b.le	LBB0_25
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w10, [x11, x27, lsl #2]
	mov	w19, #2
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x22
	b	LBB0_27
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w19, #3
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh7:
	adrp	x9, _NAND_BBT_CREATE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NAND_BBT_CREATE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x24
	bl	_create_bbt
	ldr	x8, [x22, #16]
	mov	w9, #1
	str	w9, [x8, x27, lsl #2]
	cbz	x23, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23, #16]
	str	w9, [x8, x27, lsl #2]
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w19, #0, LBB0_28
	b	LBB0_30
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w12, [x9, x27, lsl #2]
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w19, #1
	mov	x2, x23
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x3, x24
	bl	_read_abs_bbt
	tbz	w19, #0, LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_write_bbt
	tbnz	w0, #31, LBB0_3
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=1
	tbz	w19, #1, LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	x23, LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x24
	bl	_write_bbt
	tbnz	w0, #31, LBB0_3
LBB0_34:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x28, x27
	b.eq	LBB0_2
; %bb.35:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x25]
	add	x27, x27, #1
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_BBT_PERCHIP,4,2           ; @NAND_BBT_PERCHIP
	.comm	_NAND_BBT_VERSION,4,2           ; @NAND_BBT_VERSION
	.comm	_NAND_BBT_CREATE,4,2            ; @NAND_BBT_CREATE
	.comm	_NAND_BBT_WRITE,4,2             ; @NAND_BBT_WRITE
	.no_dead_strip	_check_create
.subsections_via_symbols
