	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_ifc_ooblayout_free
_fsl_ifc_ooblayout_free:                ## @fsl_ifc_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
	cmpl	$2, %ebx
	jl	LBB0_2
## %bb.1:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_2:
	cmpl	$512, (%r15)                    ## imm = 0x200
	jne	LBB0_4
## %bb.3:
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movl	4(%rax), %eax
	addl	$8, %eax
	movl	%eax, (%r14)
	movl	4(%r15), %ecx
	subl	%eax, %ecx
	movl	%ecx, 4(%r14)
	jmp	LBB0_11
LBB0_6:
	movabsq	$25769803778, %rax              ## imm = 0x600000002
	jmp	LBB0_10
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	movabsq	$8589934598, %rax               ## imm = 0x200000006
	jmp	LBB0_10
LBB0_9:
	movabsq	$21474836480, %rax              ## imm = 0x500000000
LBB0_10:
	movq	%rax, (%r14)
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.no_dead_strip	_fsl_ifc_ooblayout_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function fsl_ifc_ooblayout_free
lCPI0_0:
	.long	2                               ; 0x2
	.long	6                               ; 0x6
lCPI0_1:
	.long	6                               ; 0x6
	.long	2                               ; 0x2
lCPI0_2:
	.long	0                               ; 0x0
	.long	5                               ; 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_fsl_ifc_ooblayout_free:                ; @fsl_ifc_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
	cmp	w21, #2
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_2:
	mov	x8, x0
	ldr	w9, [x20]
	cmp	w9, #512
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _NAND_BUSWIDTH_16@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
LBB0_4:
	mov	w0, #0
	cbz	w21, LBB0_6
; %bb.5:
	ldr	w8, [x8, #4]
	add	w8, w8, #8
	ldr	w9, [x20, #4]
	sub	w9, w9, w8
	stp	w8, w9, [x19]
	b	LBB0_11
LBB0_6:
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_10
LBB0_7:
	mov	w0, #0
	cbz	w21, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, lCPI0_2@PAGE
Lloh11:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
LBB0_10:
	str	d0, [x19]
LBB0_11:
	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
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdr	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.no_dead_strip	_fsl_ifc_ooblayout_free
.subsections_via_symbols
