	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sharpsl_nand_check_ooblayout
_sharpsl_nand_check_ooblayout:          ## @sharpsl_nand_check_ooblayout
	.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	%rdi, %r12
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_mtd_ooblayout_free
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$1, %r13d
	leaq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$255, %ebx
	leaq	-48(%rbp), %r15
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, -48(%rbp)
	leal	1(%r13), %r14d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_mtd_ooblayout_free
	movl	%r14d, %r13d
	testl	%eax, %eax
	jne	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r14d
	cmpl	$15, %r14d
	jg	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%r14d, %eax
	cmpl	$8, %eax
	jl	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$9, %r14d
	movl	$8, %ecx
	cmovll	%ecx, %r14d
	cmpl	%eax, %r14d
	jae	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %r15d
	leal	-8(%r14), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r15d, %ebx
	cmpl	$14, %r14d
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incl	%r14d
	movl	-48(%rbp), %eax
	addl	-44(%rbp), %eax
	cmpl	%eax, %r14d
	jl	LBB0_6
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_sharpsl_nand_check_ooblayout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sharpsl_nand_check_ooblayout
_sharpsl_nand_check_ooblayout:          ; @sharpsl_nand_check_ooblayout
	.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, x0
	str	xzr, [sp, #8]
	add	x2, sp, #8
	mov	w1, #0
	bl	_mtd_ooblayout_free
	cbz	w0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
LBB0_3:
	mov	w21, #0
	mov	w20, #1
	mov	w22, #8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w21, #255
	b.eq	LBB0_22
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [sp, #8]
	add	w23, w20, #1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_mtd_ooblayout_free
	mov	x20, x23
	cbnz	w0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w10, w8, [sp, #8]
	add	w9, w8, w10
	cmp	w10, #0
	ccmp	w8, #15, #0, ne
	ccmp	w9, #8, #8, le
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #8
	csel	w23, w8, w22, gt
	cmp	w23, w9
	b.hs	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w0, w23, #8
	bl	_BIT
	orr	w21, w0, w21
	add	w8, w23, #1
	ldp	w10, w9, [sp, #8]
	add	w9, w10, w9
	cmp	w23, #14
	ccmp	w8, w9, #0, ls
	b.ge	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w0, w23, #7
	bl	_BIT
	orr	w21, w0, w21
	cmp	w23, #13
	b.hi	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w23, #2
	ldp	w10, w9, [sp, #8]
	add	w9, w10, w9
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w0, w23, #6
	bl	_BIT
	orr	w21, w0, w21
	cmp	w23, #12
	b.hi	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w23, #3
	ldp	w10, w9, [sp, #8]
	add	w9, w10, w9
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w0, w23, #5
	bl	_BIT
	orr	w21, w0, w21
	cmp	w23, #11
	b.hi	LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w23, #4
	ldp	w10, w9, [sp, #8]
	add	w9, w10, w9
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w0, w23, #4
	bl	_BIT
	orr	w21, w0, w21
	cmp	w23, #10
	b.hi	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w23, #5
	ldp	w10, w9, [sp, #8]
	add	w9, w10, w9
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w0, w23, #3
	bl	_BIT
	orr	w21, w0, w21
	cmp	w23, #9
	b.hi	LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w23, #6
	ldp	w10, w9, [sp, #8]
	add	w9, w10, w9
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w0, w23, #2
	bl	_BIT
	orr	w21, w0, w21
	cmp	w23, #8
	b.hi	LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w23, #7
	ldp	w10, w9, [sp, #8]
	add	w9, w10, w9
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w0, w23, #1
	bl	_BIT
	orr	w21, w0, w21
	b	LBB0_4
LBB0_22:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_sharpsl_nand_check_ooblayout
.subsections_via_symbols
