	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_sw_ooblayout_free
_omap_sw_ooblayout_free:                ## @omap_sw_ooblayout_free
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_mtd_to_nand
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_BADBLOCK_MARKER_LENGTH@GOTPCREL(%rip), %rdx
	movl	(%rax), %ecx
	incl	%ecx
	imull	4(%rax), %ecx
	addl	(%rdx), %ecx
	movl	(%r15), %eax
	subl	%ecx, %eax
	jle	LBB0_1
## %bb.3:
	movl	%ecx, (%r14)
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BADBLOCK_MARKER_LENGTH,4,2     ## @BADBLOCK_MARKER_LENGTH
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_omap_sw_ooblayout_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_sw_ooblayout_free
_omap_sw_ooblayout_free:                ; @omap_sw_ooblayout_free
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_mtd_to_nand
	cbnz	w21, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _BADBLOCK_MARKER_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BADBLOCK_MARKER_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
	madd	w9, w10, w9, w10
	ldr	w10, [x20]
	add	w9, w9, w8
	subs	w8, w10, w9
	b.le	LBB0_3
; %bb.2:
	mov	w0, #0
	stp	w9, w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BADBLOCK_MARKER_LENGTH,4,2     ; @BADBLOCK_MARKER_LENGTH
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_omap_sw_ooblayout_free
.subsections_via_symbols
