	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_oobinfo
_get_oobinfo:                           ## @get_oobinfo
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	$0, 16(%r13)
	movq	24(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r13), %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_8
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movq	%r14, %rdi
	movl	%r15d, %esi
	leaq	-56(%rbp), %rdx
	callq	_mtd_ooblayout_ecc
	testl	%eax, %eax
	js	LBB0_7
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-56(%rbp), %r12d
	addl	%ebx, %r12d
	movq	24(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jg	LBB0_2
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	-56(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rcx
	movq	24(%r13), %rdi
	movslq	%ebx, %rdx
	leaq	(%rdi,%rdx,8), %rdx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, (%rdx)
	incq	%rcx
	incq	16(%r13)
	movq	-48(%rbp), %rsi
	addq	%rax, %rsi
	addq	$8, %rdx
	incl	%ebx
	cmpq	%rsi, %rcx
	jl	LBB0_21
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_24
LBB0_7:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_24
LBB0_8:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mtd_ooblayout_free
	testl	%eax, %eax
	js	LBB0_16
## %bb.9:
	movq	-48(%rbp), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movslq	-56(%rbp), %rax
	movq	%rax, 8(%rcx)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mtd_ooblayout_free
	testl	%eax, %eax
	js	LBB0_16
## %bb.10:
	movq	-48(%rbp), %rax
	movq	(%r13), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movslq	-56(%rbp), %rax
	movq	%rax, 8(%rcx)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_mtd_ooblayout_free
	testl	%eax, %eax
	js	LBB0_16
## %bb.11:
	movq	-48(%rbp), %rax
	movq	(%r13), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx)
	movslq	-56(%rbp), %rax
	movq	%rax, 8(%rcx)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_mtd_ooblayout_free
	testl	%eax, %eax
	js	LBB0_16
## %bb.12:
	movq	-48(%rbp), %rax
	movq	(%r13), %rcx
	movq	24(%rcx), %rcx
	movq	%rax, (%rcx)
	movslq	-56(%rbp), %rax
	movq	%rax, 8(%rcx)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_mtd_ooblayout_free
	testl	%eax, %eax
	js	LBB0_16
## %bb.13:
	movq	-48(%rbp), %rax
	movq	(%r13), %rcx
	movq	32(%rcx), %rcx
	movq	%rax, (%rcx)
	movslq	-56(%rbp), %rax
	movq	%rax, 8(%rcx)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_mtd_ooblayout_free
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:
	movq	-48(%rbp), %rax
	movq	(%r13), %rcx
	movq	40(%rcx), %rcx
	movq	%rax, (%rcx)
	movslq	-56(%rbp), %rax
	movq	%rax, 8(%rcx)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_mtd_ooblayout_free
	testl	%eax, %eax
	js	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rax
	movq	(%r13), %rcx
	movq	48(%rcx), %rcx
	movq	%rax, (%rcx)
	movslq	-56(%rbp), %rax
	movq	%rax, 8(%rcx)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$7, %esi
	callq	_mtd_ooblayout_free
	testl	%eax, %eax
	js	LBB0_16
## %bb.22:
	movq	-48(%rbp), %rax
	movq	(%r13), %rcx
	movq	56(%rcx), %rcx
	movq	%rax, (%rcx)
	movslq	-56(%rbp), %rax
	movq	%rax, 8(%rcx)
	jmp	LBB0_23
LBB0_16:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_24
LBB0_23:
	movq	_MTD_NANDECC_AUTOPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	xorl	%eax, %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_MTD_NANDECC_AUTOPLACE,4,2      ## @MTD_NANDECC_AUTOPLACE
	.no_dead_strip	_get_oobinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_oobinfo
_get_oobinfo:                           ; @get_oobinfo
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_11
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	xzr, [x19, #16]
	ldr	x0, [x19, #24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.3:
	mov	w21, #0
	mov	w22, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19, #24]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	bl	_mtd_ooblayout_ecc
	tbnz	w0, #31, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp]
	add	w23, w8, w22
	ldr	x0, [x19, #24]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.gt	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [sp]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [sp, #8]
	ldr	x0, [x19, #24]
	sbfiz	x9, x22, #3, #32
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x10, [x0, x9]
	add	x10, x10, #1
	ldr	x11, [x19, #16]
	add	x11, x11, #1
	str	x11, [x19, #16]
	ldr	x11, [sp, #8]
	add	x9, x9, #8
	add	w22, w22, #1
	add	x11, x11, x8
	cmp	x10, x11
	b.lt	LBB0_10
	b	LBB0_5
LBB0_11:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_12:
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_24
LBB0_13:
	mov	x2, sp
	mov	x0, x20
	mov	w1, #0
	bl	_mtd_ooblayout_free
	tbnz	w0, #31, LBB0_22
; %bb.14:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	ldr	x9, [x9]
	str	x8, [x9]
	ldrsw	x8, [sp]
	str	x8, [x9, #8]
	mov	x2, sp
	mov	x0, x20
	mov	w1, #1
	bl	_mtd_ooblayout_free
	tbnz	w0, #31, LBB0_22
; %bb.15:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	ldr	x9, [x9, #8]
	str	x8, [x9]
	ldrsw	x8, [sp]
	str	x8, [x9, #8]
	mov	x2, sp
	mov	x0, x20
	mov	w1, #2
	bl	_mtd_ooblayout_free
	tbnz	w0, #31, LBB0_22
; %bb.16:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	ldr	x9, [x9, #16]
	str	x8, [x9]
	ldrsw	x8, [sp]
	str	x8, [x9, #8]
	mov	x2, sp
	mov	x0, x20
	mov	w1, #3
	bl	_mtd_ooblayout_free
	tbnz	w0, #31, LBB0_22
; %bb.17:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	ldr	x9, [x9, #24]
	str	x8, [x9]
	ldrsw	x8, [sp]
	str	x8, [x9, #8]
	mov	x2, sp
	mov	x0, x20
	mov	w1, #4
	bl	_mtd_ooblayout_free
	tbnz	w0, #31, LBB0_22
; %bb.18:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	ldr	x9, [x9, #32]
	str	x8, [x9]
	ldrsw	x8, [sp]
	str	x8, [x9, #8]
	mov	x2, sp
	mov	x0, x20
	mov	w1, #5
	bl	_mtd_ooblayout_free
	tbnz	w0, #31, LBB0_22
; %bb.19:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	ldr	x9, [x9, #40]
	str	x8, [x9]
	ldrsw	x8, [sp]
	str	x8, [x9, #8]
	mov	x2, sp
	mov	x0, x20
	mov	w1, #6
	bl	_mtd_ooblayout_free
	tbnz	w0, #31, LBB0_22
; %bb.20:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	ldr	x9, [x9, #48]
	str	x8, [x9]
	ldrsw	x8, [sp]
	str	x8, [x9, #8]
	mov	x2, sp
	mov	x0, x20
	mov	w1, #7
	bl	_mtd_ooblayout_free
	tbnz	w0, #31, LBB0_22
; %bb.21:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	ldr	x9, [x9, #56]
	str	x8, [x9]
	ldrsw	x8, [sp]
	str	x8, [x9, #8]
	b	LBB0_23
LBB0_22:
Lloh6:
	adrp	x8, _ERANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_24
LBB0_23:
	mov	w0, #0
Lloh9:
	adrp	x8, _MTD_NANDECC_AUTOPLACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MTD_NANDECC_AUTOPLACE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_24:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_MTD_NANDECC_AUTOPLACE,4,2      ; @MTD_NANDECC_AUTOPLACE
	.no_dead_strip	_get_oobinfo
.subsections_via_symbols
