	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5l_handle_flush_request       ## -- Begin function r5l_handle_flush_request
	.p2align	4, 0x90
_r5l_handle_flush_request:              ## @r5l_handle_flush_request
	.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	%rsi, %r15
	movq	(%rdi), %rcx
	movq	_R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPCREL(%rip), %rdx
	movq	(%rsi), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	_REQ_PREFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r15)
	jmp	LBB0_6
LBB0_3:
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	%r15, %rdi
	callq	_bio_endio
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	%rdi, %r14
	leaq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_r5l_get_meta
	movq	16(%r14), %rdi
	addq	$12, %rdi
	movq	%r15, %rsi
	callq	_bio_list_add
	movq	16(%r14), %rdi
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rdi)
	addq	$8, %rdi
	callq	_atomic_inc
	movq	%r14, %rdi
	callq	_r5l_submit_current_io
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R5C_JOURNAL_MODE_WRITE_THROUGH,8,3 ## @R5C_JOURNAL_MODE_WRITE_THROUGH
	.comm	_REQ_PREFLUSH,4,2               ## @REQ_PREFLUSH
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5l_handle_flush_request       ; -- Begin function r5l_handle_flush_request
	.p2align	2
_r5l_handle_flush_request:              ; @r5l_handle_flush_request
	.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	x20, x1
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	x8, [x1]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	cbz	x8, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _REQ_PREFLUSH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQ_PREFLUSH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	str	w8, [x20, #8]
	b	LBB0_4
LBB0_3:
	cbz	x8, LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_bio_endio
	b	LBB0_7
LBB0_6:
	mov	x19, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	mov	w1, #0
	bl	_r5l_get_meta
	ldr	x8, [x19, #16]
	add	x0, x8, #12
	mov	x1, x20
	bl	_bio_list_add
	ldr	x0, [x19, #16]
	movi.2s	v0, #1
	str	d0, [x0], #8
	bl	_atomic_inc
	mov	x0, x19
	bl	_r5l_submit_current_io
	mov	x0, x21
	bl	_mutex_unlock
LBB0_7:
	mov	w0, #0
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_R5C_JOURNAL_MODE_WRITE_THROUGH,8,3 ; @R5C_JOURNAL_MODE_WRITE_THROUGH
	.comm	_REQ_PREFLUSH,4,2               ; @REQ_PREFLUSH
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
