	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexonenand_block
_flexonenand_block:                     ## @flexonenand_block
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_ONENAND_IS_DDP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	jle	LBB0_3
LBB0_2:
	movq	8(%r14), %rax
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_3:
	subl	%eax, %ebx
	movq	8(%r14), %rax
	addq	$4, %rax
	movl	20(%r14), %edx
LBB0_4:
	movb	16(%r14), %cl
	decb	%cl
	sarl	%cl, %ebx
	movl	(%rax), %ecx
	leal	(%rcx,%rbx), %eax
	incl	%eax
	shrl	%eax
	cmpl	%ecx, %ebx
	cmovbel	%ebx, %eax
	addl	%edx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_flexonenand_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexonenand_block
_flexonenand_block:                     ; @flexonenand_block
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_ONENAND_IS_DDP
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_3
LBB0_2:
	mov	w8, #0
	ldr	x9, [x20, #8]
	b	LBB0_4
LBB0_3:
	sub	w19, w19, w8
	ldr	x8, [x20, #8]
	add	x9, x8, #4
	ldr	w8, [x20, #20]
LBB0_4:
	ldr	w9, [x9]
	ldr	w10, [x20, #16]
	sub	w10, w10, #1
	asr	w10, w19, w10
	add	w11, w9, w10
	add	w11, w11, #1
	lsr	w11, w11, #1
	cmp	w10, w9
	csel	w9, w11, w10, hi
	add	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_flexonenand_block
.subsections_via_symbols
