	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_write_request_read2
_on_write_request_read2:                ## @on_write_request_read2
	.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, %r15
	leaq	_on_write_request_read2(%rip), %rdi
	callq	_TRACE_IN
	leaq	32(%r15), %rdi
	callq	_get_cache_write_request
	movq	%rax, %r14
	movq	(%rax), %rdx
	movq	40(%rax), %rsi
	movq	%r15, %rdi
	callq	*(%r15)
	movq	%rax, %r12
	movq	24(%r15), %rsi
	addq	32(%r14), %rsi
	movq	8(%r14), %rdx
	movq	%r15, %rdi
	callq	*(%r15)
	movq	%rax, %rbx
	addq	%r12, %rbx
	movq	16(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	24(%r14), %rsi
	movq	%r15, %rdi
	callq	*(%r15)
	addq	%rax, %rbx
LBB0_2:
	movl	$-1, %r12d
	cmpq	16(%r15), %rbx
	jne	LBB0_7
## %bb.3:
	movq	24(%r15), %rax
	addq	%rax, 8(%r14)
	movq	$0, 16(%r15)
	cmpq	$0, 16(%r14)
	jne	LBB0_4
## %bb.5:
	movq	_on_negative_write_request_process@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_on_write_request_process@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	xorl	%r12d, %r12d
LBB0_7:
	leaq	_on_write_request_read2(%rip), %rdi
	callq	_TRACE_OUT
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_on_write_request_process,4,2   ## @on_write_request_process
	.comm	_on_negative_write_request_process,4,2 ## @on_negative_write_request_process
	.no_dead_strip	_on_write_request_read2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_write_request_read2
_on_write_request_read2:                ; @on_write_request_read2
	.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
Lloh0:
	adrp	x0, _on_write_request_read2@PAGE
Lloh1:
	add	x0, x0, _on_write_request_read2@PAGEOFF
	bl	_TRACE_IN
	add	x0, x19, #32
	bl	_get_cache_write_request
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x1, [x0, #40]
	ldr	x2, [x0]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x20, #32]
	ldr	x10, [x19, #24]
	add	x1, x10, x9
	ldr	x2, [x20, #8]
	mov	x0, x19
	blr	x8
	add	x21, x0, x21
	ldr	x2, [x20, #16]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x1, [x20, #24]
	mov	x0, x19
	blr	x8
	add	x21, x0, x21
LBB0_2:
	ldr	x8, [x19, #16]
	cmp	x21, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w21, #0
	ldr	x8, [x19, #24]
	ldp	x9, x10, [x20, #8]
	add	x8, x9, x8
	str	x8, [x20, #8]
	str	xzr, [x19, #16]
Lloh2:
	adrp	x8, _on_negative_write_request_process@GOTPAGE
Lloh3:
	ldr	x8, [x8, _on_negative_write_request_process@GOTPAGEOFF]
Lloh4:
	adrp	x9, _on_write_request_process@GOTPAGE
Lloh5:
	ldr	x9, [x9, _on_write_request_process@GOTPAGEOFF]
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	w21, #-1
LBB0_5:
Lloh6:
	adrp	x0, _on_write_request_read2@PAGE
Lloh7:
	add	x0, x0, _on_write_request_read2@PAGEOFF
	bl	_TRACE_OUT
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_on_write_request_process,4,2   ; @on_write_request_process
	.comm	_on_negative_write_request_process,4,2 ; @on_negative_write_request_process
	.no_dead_strip	_on_write_request_read2
.subsections_via_symbols
