	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_nvdimm_flush           ## -- Begin function generic_nvdimm_flush
	.p2align	4, 0x90
_generic_nvdimm_flush:                  ## @generic_nvdimm_flush
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	addq	$4, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	_flush_idx@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_this_cpu_read
	movl	(%rbx), %ebx
	movq	_current@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rdi
	addq	(%rcx), %rdi
	movl	$8, %esi
	callq	_hash_32
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_this_cpu_add_return
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wmb
	cmpl	$0, (%r14)
	jg	LBB0_1
LBB0_4:
	xorl	%eax, %eax
	callq	_wmb
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jge	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_ndrd_get_flush_wpq
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_ndrd_get_flush_wpq
	movl	$1, %edi
	movq	%rax, %rsi
	callq	_writeq
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_flush_idx,4,2                  ## @flush_idx
	.comm	_current,8,3                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_nvdimm_flush           ; -- Begin function generic_nvdimm_flush
	.p2align	2
_generic_nvdimm_flush:                  ; @generic_nvdimm_flush
	.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, x0
	add	x0, x0, #4
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x21, _flush_idx@GOTPAGE
Lloh1:
	ldr	x21, [x21, _flush_idx@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_this_cpu_read
	ldr	w21, [x21]
Lloh2:
	adrp	x8, _current@GOTPAGE
Lloh3:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x0, x8, w0, sxtw
	mov	w1, #8
	bl	_hash_32
	mov	x1, x0
	mov	x0, x21
	bl	_this_cpu_add_return
	mov	x21, x0
	bl	_wmb
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_ndrd_get_flush_wpq
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_ndrd_get_flush_wpq
	mov	x1, x0
	mov	w0, #1
	bl	_writeq
	b	LBB0_2
LBB0_5:
	bl	_wmb
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_flush_idx,4,2                  ; @flush_idx
	.comm	_current,8,3                    ; @current
.subsections_via_symbols
