	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function onenand_invalidate_bufferram
_onenand_invalidate_bufferram:          ## @onenand_invalidate_bufferram
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_BUFFERRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_15
## %bb.1:
	movl	%edx, %r10d
	addq	%rsi, %r10
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
LBB0_11:
	testb	$1, %r8b
	je	LBB0_15
## %bb.12:
	movq	(%rdx,%rdi,8), %rax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	cmpq	%rsi, %rax
	jl	LBB0_15
## %bb.13:
	cmpq	%r10, %rax
	jge	LBB0_15
## %bb.14:
	movq	$-1, (%rdx,%rdi,8)
LBB0_15:
	popq	%rbp
	retq
LBB0_3:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rdi
	cmpq	%rdi, %r9
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rax
	shlq	%cl, %rax
	cmpq	%rsi, %rax
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r10, %rax
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$-1, (%rdx,%rdi,8)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rdx,%rdi,8), %rax
	shlq	%cl, %rax
	cmpq	%rsi, %rax
	jl	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r10, %rax
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$-1, 8(%rdx,%rdi,8)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BUFFERRAM,4,2              ## @MAX_BUFFERRAM
	.no_dead_strip	_onenand_invalidate_bufferram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function onenand_invalidate_bufferram
_onenand_invalidate_bufferram:          ; @onenand_invalidate_bufferram
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_BUFFERRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_BUFFERRAM@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_22
; %bb.1:
	add	x8, x1, w2, uxtw
	ldr	x9, [x0]
	ldp	x9, x11, [x9]
	cmp	w10, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x12, #0
	b	LBB0_23
LBB0_3:
	dup.2d	v0, x9
	dup.2d	v1, x1
	and	x12, x10, #0xfffffff8
	dup.2d	v2, x8
	add	x13, x11, #32
	mov	x14, #-1
	mov	x15, x12
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x13, x13, #64
	subs	x15, x15, #8
	b.eq	LBB0_21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	q3, [x13, #-32]
	ushl.2d	v3, v3, v0
	cmge.2d	v4, v3, v1
	cmgt.2d	v3, v2, v3
	and.16b	v3, v4, v3
	xtn.2s	v3, v3
	fmov	w16, s3
	tbz	w16, #0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	stur	x14, [x13, #-32]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov.s	w16, v3[1]
	tbz	w16, #0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	stur	x14, [x13, #-24]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	q3, [x13, #-16]
	ushl.2d	v3, v3, v0
	cmge.2d	v4, v3, v1
	cmgt.2d	v3, v2, v3
	and.16b	v3, v4, v3
	xtn.2s	v3, v3
	fmov	w16, s3
	tbz	w16, #0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	stur	x14, [x13, #-16]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov.s	w16, v3[1]
	tbz	w16, #0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	stur	x14, [x13, #-8]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	q3, [x13]
	ushl.2d	v3, v3, v0
	cmge.2d	v4, v3, v1
	cmgt.2d	v3, v2, v3
	and.16b	v3, v4, v3
	xtn.2s	v3, v3
	fmov	w16, s3
	tbz	w16, #0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x14, [x13]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov.s	w16, v3[1]
	tbz	w16, #0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x14, [x13, #8]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	q3, [x13, #16]
	ushl.2d	v3, v3, v0
	cmge.2d	v4, v3, v1
	cmgt.2d	v3, v2, v3
	and.16b	v3, v4, v3
	xtn.2s	v3, v3
	fmov	w16, s3
	tbz	w16, #0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x14, [x13, #16]
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	mov.s	w16, v3[1]
	tbz	w16, #0, LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x14, [x13, #24]
	b	LBB0_4
LBB0_21:
	cmp	x12, x10
	b.ne	LBB0_23
LBB0_22:
	ret
LBB0_23:
	add	x11, x11, x12, lsl #3
	sub	x10, x10, x12
	mov	x12, #-1
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.eq	LBB0_22
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	lsl	x13, x13, x9
	cmp	x13, x1
	ccmp	x13, x8, #0, ge
	b.ge	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	str	x12, [x11]
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BUFFERRAM,4,2              ; @MAX_BUFFERRAM
	.no_dead_strip	_onenand_invalidate_bufferram
.subsections_via_symbols
