	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssd_commit_flushed
_ssd_commit_flushed:                    ## @ssd_commit_flushed
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	%ebx, -96(%rbp)
	callq	_COMPLETION_INITIALIZER_ONSTACK
	movl	%eax, -92(%rbp)
	movl	$1, %edi
	callq	_ATOMIC_INIT
	movl	%eax, -88(%rbp)
	movl	$0, -84(%rbp)
	movq	$0, -80(%rbp)
	movl	(%rbx), %r15d
	movl	16(%rbx), %edi
	shll	$3, %r15d
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_find_next_bit
	movl	%eax, %r12d
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	leaq	-96(%rbp), %r14
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_writecache_notify_io
	movq	%r14, %rdi
	callq	_wait_for_completion_io
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_writecache_disk_flush
	movl	(%rbx), %edx
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	callq	_memset
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_BITMAP_GRANULARITY@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	48(%rbx), %rax
	movq	%rax, -72(%rbp)
	leaq	-92(%rbp), %rdi
	callq	_atomic_inc
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	movq	_REQ_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	_DM_IO_VMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imulq	(%r14), %r13
	movl	%eax, -112(%rbp)
	addq	40(%rbx), %r13
	movq	%r13, -120(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -128(%rbp)
	movq	_writecache_notify_io@GOTPCREL(%rip), %rax
	movq	%rax, -136(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -144(%rbp)
	leaq	-144(%rbp), %rdi
	movl	$1, %esi
	leaq	-72(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_dm_io
	movl	16(%rbx), %edi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_find_next_bit
	movl	%eax, %r12d
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_find_next_zero_bit
	movl	%eax, %edx
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%r12d, %r13d
	movq	(%r14), %rax
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shrq	%cl, %rax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ecx
	subl	%r12d, %ecx
	imulq	%rax, %rcx
	imulq	%r13, %rax
	movq	%rax, -72(%rbp)
	movq	%rcx, -64(%rbp)
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax
	addq	-72(%rbp), %rax
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rcx
	movq	-72(%rbp), %rax
	subq	%rax, %rcx
	movq	%rcx, -64(%rbp)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_GRANULARITY,8,3         ## @BITMAP_GRANULARITY
	.comm	_SECTOR_SHIFT,8,3               ## @SECTOR_SHIFT
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.comm	_REQ_SYNC,4,2                   ## @REQ_SYNC
	.comm	_DM_IO_VMA,4,2                  ## @DM_IO_VMA
	.no_dead_strip	_ssd_commit_flushed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssd_commit_flushed
_ssd_commit_flushed:                    ; @ssd_commit_flushed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	str	w19, [sp]
	bl	_COMPLETION_INITIALIZER_ONSTACK
	str	w0, [sp, #4]
	mov	w0, #1
	bl	_ATOMIC_INIT
	stp	w0, wzr, [sp, #8]
	str	xzr, [sp, #16]
	ldr	w8, [x19]
	lsl	w20, w8, #3
	ldr	w0, [x19, #16]
	mov	x1, x20
	mov	w2, #0
	bl	_find_next_bit
	mov	x23, x0
	cmp	w0, w20
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	mov	x1, sp
	mov	w0, #0
	bl	_writecache_notify_io
	mov	x0, sp
	bl	_wait_for_completion_io
	ldr	x1, [x19, #24]
	mov	x0, x19
	bl	_writecache_disk_flush
	ldr	w0, [x19, #16]
	ldr	w2, [x19]
	mov	w1, #0
	bl	_memset
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_2:
	mov	x8, sp
	orr	x21, x8, #0x4
Lloh0:
	adrp	x25, _BITMAP_GRANULARITY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BITMAP_GRANULARITY@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SECTOR_SHIFT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _DM_IO_VMA@GOTPAGE
Lloh5:
	ldr	x27, [x27, _DM_IO_VMA@GOTPAGEOFF]
Lloh6:
	adrp	x28, _writecache_notify_io@GOTPAGE
Lloh7:
	ldr	x28, [x28, _writecache_notify_io@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #72]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #48]
	add	x8, x8, x9
	str	x8, [sp, #72]
	mov	x0, x21
	bl	_atomic_inc
Lloh8:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #68]
Lloh11:
	adrp	x8, _REQ_SYNC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REQ_SYNC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x27]
	str	w8, [sp, #64]
	str	w9, [sp, #56]
	ldr	x8, [x19, #40]
	ldr	x9, [x25]
	madd	x8, x9, x24, x8
	str	x8, [sp, #48]
	ldr	w8, [x19, #32]
	str	w8, [sp, #40]
	mov	x8, sp
	stp	x8, x28, [sp, #24]
	add	x0, sp, #24
	add	x2, sp, #72
	mov	w1, #1
	mov	x3, #0
	bl	_dm_io
	ldr	w0, [x19, #16]
	mov	x1, x20
	mov	x2, x22
	bl	_find_next_bit
	mov	x23, x0
	cmp	w0, w20
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	mov	x1, x20
	mov	x2, x23
	bl	_find_next_zero_bit
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	str	w8, [sp, #88]
	mov	w24, w23
	ldr	x8, [x25]
	ldr	x9, [x26]
	lsr	x8, x8, x9
	mul	x9, x8, x24
	sub	w10, w0, w23
	mul	x8, x8, x10
	stp	x9, x8, [sp, #72]
	ldr	x8, [x19, #8]
	cmp	x9, x8
	cset	w0, hs
	bl	_unlikely
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [sp, #72]
	ldr	x10, [x19, #8]
	add	x8, x9, x8
	cmp	x8, x10
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #8]
	ldr	x8, [sp, #72]
	sub	x9, x9, x8
	str	x9, [sp, #80]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_GRANULARITY,8,3         ; @BITMAP_GRANULARITY
	.comm	_SECTOR_SHIFT,8,3               ; @SECTOR_SHIFT
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.comm	_REQ_SYNC,4,2                   ; @REQ_SYNC
	.comm	_DM_IO_VMA,4,2                  ; @DM_IO_VMA
	.no_dead_strip	_ssd_commit_flushed
.subsections_via_symbols
