	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_write_to_cache            ## -- Begin function pblk_write_to_cache
	.p2align	4, 0x90
_pblk_write_to_cache:                   ## @pblk_write_to_cache
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	32(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rsi, %rdi
	callq	_pblk_get_lba
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_pblk_get_secs
	movl	%eax, %r15d
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_bio_sectors
	movq	(%r12), %rcx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, %ebx
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_generic_start_io_acct
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	addq	$24, %r12
	leaq	-68(%rbp), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_pblk_rb_may_write_user
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_io_schedule
	jmp	LBB0_1
LBB0_2:
	movl	%eax, %r15d
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_pblk_pipeline_stop
	movq	%r13, %rdi
	callq	_bio_io_error
	jmp	LBB0_11
LBB0_4:
	leaq	-104(%rbp), %rdi
	callq	_pblk_ppa_set_empty
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, -120(%rbp)
	movq	_REQ_PREFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	_PBLK_FLUSH_ENTRY@GOTPCREL(%rip), %rax
	orq	(%rax), %rcx
	movq	%rcx, -120(%rbp)
	movq	%r14, %rdi
	callq	_pblk_write_kick
LBB0_6:
	movq	%r13, %rdi
	callq	_bio_has_data
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_bio_data
	movq	%rax, %rbx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	movq	%rax, -112(%rbp)
	movl	-68(%rbp), %esi
	addl	%r14d, %esi
	movq	%r12, %rdi
	callq	_pblk_rb_wrap_pos
	movq	-104(%rbp), %rcx
	movq	%rcx, 16(%rsp)
	movups	-120(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_pblk_rb_write_entry_user
	movq	_PBLK_EXPOSED_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bio_advance
	incq	%r14
	cmpq	%r14, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	20(%r14), %rsi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_atomic64_add
	leaq	8(%r14), %rdi
	movl	%ebx, %esi
	callq	_pblk_rl_inserted
LBB0_11:
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_generic_end_io_acct
	movq	%r14, %rdi
	callq	_pblk_write_should_kick
	movq	_NVM_IO_DONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_bio_endio
LBB0_13:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.comm	_REQ_PREFLUSH,4,2               ## @REQ_PREFLUSH
	.comm	_PBLK_FLUSH_ENTRY,8,3           ## @PBLK_FLUSH_ENTRY
	.comm	_PBLK_EXPOSED_PAGE_SIZE,4,2     ## @PBLK_EXPOSED_PAGE_SIZE
	.comm	_NVM_IO_DONE,4,2                ## @NVM_IO_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_write_to_cache            ; -- Begin function pblk_write_to_cache
	.p2align	2
_pblk_write_to_cache:                   ; @pblk_write_to_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x27, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #32]
	ldr	x21, [x8]
	mov	x0, x1
	bl	_pblk_get_lba
	mov	x24, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x0, x19
	bl	_pblk_get_secs
	mov	x23, x0
Lloh3:
	adrp	x28, _REQ_OP_WRITE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _REQ_OP_WRITE@GOTPAGEOFF]
	ldr	w25, [x28]
	mov	x0, x19
	bl	_bio_sectors
	mov	x2, x0
	ldr	x3, [x20]
	mov	x0, x21
	mov	x1, x25
	bl	_generic_start_io_acct
	add	x26, x20, #24
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #52
	mov	x0, x26
	mov	x1, x19
	mov	x2, x23
	bl	_pblk_rb_may_write_user
	cmp	w0, #128
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_io_schedule
	b	LBB0_1
LBB0_3:
	mov	x25, x0
	cmp	w0, #129
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_pblk_pipeline_stop
	mov	x0, x19
	bl	_bio_io_error
	b	LBB0_12
LBB0_5:
	add	x8, sp, #56
	add	x0, x8, #16
	bl	_pblk_ppa_set_empty
	str	x27, [sp, #56]
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _REQ_PREFLUSH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _REQ_PREFLUSH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _PBLK_FLUSH_ENTRY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PBLK_FLUSH_ENTRY@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	orr	x8, x8, x27
	str	x8, [sp, #56]
	mov	x0, x20
	bl	_pblk_write_kick
LBB0_7:
	mov	x0, x19
	bl	_bio_has_data
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.8:
	stp	x22, x21, [sp]                  ; 16-byte Folded Spill
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x28, #0
	mov	w22, w23
Lloh11:
	adrp	x21, _PBLK_EXPOSED_PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _PBLK_EXPOSED_PAGE_SIZE@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_bio_data
	mov	x27, x0
	add	x8, x24, x28
	str	x8, [sp, #64]
	ldr	w8, [sp, #52]
	add	w1, w28, w8
	mov	x0, x26
	bl	_pblk_rb_wrap_pos
	mov	x3, x0
	ldur	q0, [sp, #56]
	str	q0, [sp, #16]
	ldr	x8, [sp, #72]
	str	x8, [sp, #32]
	add	x2, sp, #16
	mov	x0, x26
	mov	x1, x27
	bl	_pblk_rb_write_entry_user
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bio_advance
	add	x28, x28, #1
	cmp	x22, x28
	b.ne	LBB0_10
LBB0_11:
	add	x1, x20, #20
	mov	x0, x23
	bl	_atomic64_add
	add	x0, x20, #8
	mov	x1, x23
	bl	_pblk_rl_inserted
	ldp	x22, x21, [sp]                  ; 16-byte Folded Reload
Lloh13:
	adrp	x28, _REQ_OP_WRITE@GOTPAGE
Lloh14:
	ldr	x28, [x28, _REQ_OP_WRITE@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x28]
	ldr	x2, [x20]
	mov	x0, x21
	mov	x3, x22
	bl	_generic_end_io_acct
	mov	x0, x20
	bl	_pblk_write_should_kick
Lloh15:
	adrp	x8, _NVM_IO_DONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NVM_IO_DONE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_bio_endio
LBB0_14:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.comm	_REQ_PREFLUSH,4,2               ; @REQ_PREFLUSH
	.comm	_PBLK_FLUSH_ENTRY,8,3           ; @PBLK_FLUSH_ENTRY
	.comm	_PBLK_EXPOSED_PAGE_SIZE,4,2     ; @PBLK_EXPOSED_PAGE_SIZE
	.comm	_NVM_IO_DONE,4,2                ; @NVM_IO_DONE
.subsections_via_symbols
