	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writecache_flush_region
_writecache_flush_region:               ## @writecache_flush_region
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_WC_MODE_PMEM
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	subq	8(%r14), %rbx
	movq	_BITMAP_GRANULARITY@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rdi
	jmp	LBB0_4
LBB0_2:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %edi
LBB0_4:
	movl	(%r14), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___set_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_GRANULARITY,4,2         ## @BITMAP_GRANULARITY
	.no_dead_strip	_writecache_flush_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writecache_flush_region
_writecache_flush_region:               ; @writecache_flush_region
	.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	x20, x1
	mov	x19, x0
	bl	_WC_MODE_PMEM
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _BITMAP_GRANULARITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BITMAP_GRANULARITY@GOTPAGEOFF]
	sub	x8, x20, x8
Lloh2:
	ldrsw	x9, [x9]
	sdiv	x0, x8, x9
	ldr	w1, [x19]
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___set_bit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_GRANULARITY,4,2         ; @BITMAP_GRANULARITY
	.no_dead_strip	_writecache_flush_region
.subsections_via_symbols
