	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bch_btree_leaf_dirty
_bch_btree_leaf_dirty:                  ## @bch_btree_leaf_dirty
	.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, %r14
	movq	%rdi, %rbx
	callq	_btree_bset_last
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_btree_current_write
	movq	%rax, %r12
	leaq	12(%rbx), %rdi
	callq	_lockdep_assert_held
	xorl	%edi, %edi
	cmpl	$0, 8(%rbx)
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_btree_node_dirty
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	4(%rbx), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	shll	$5, %esi
	subl	%eax, %esi
	subl	%eax, %esi
	callq	_schedule_delayed_work
LBB0_2:
	movq	%rbx, %rdi
	callq	_set_btree_node_dirty
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	movl	(%rbx), %edi
	movq	%r14, %rdx
	callq	_journal_pin_cmp
	movq	(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	_atomic_dec_bug
	jmp	LBB0_7
LBB0_6:
	testq	%rdi, %rdi
	jne	LBB0_8
LBB0_7:
	movq	%r14, (%r12)
	movq	%r14, %rdi
	callq	_atomic_inc
LBB0_8:
	movq	%r15, %rdi
	callq	_set_bytes
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$-48, %ecx
	cmpl	%ecx, %eax
	jle	LBB0_10
## %bb.9:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bch_btree_node_write           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_current,8,3                    ## @current
	.no_dead_strip	_bch_btree_leaf_dirty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bch_btree_leaf_dirty
_bch_btree_leaf_dirty:                  ; @bch_btree_leaf_dirty
	.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
	mov	x19, x0
	bl	_btree_bset_last
	mov	x21, x0
	mov	x0, x19
	bl	_btree_current_write
	mov	x22, x0
	add	x0, x19, #12
	bl	_lockdep_assert_held
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	bl	_btree_node_dirty
	cbnz	w0, LBB0_2
; %bb.1:
	add	x0, x19, #4
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #30
	mul	w1, w8, w9
	bl	_schedule_delayed_work
LBB0_2:
	mov	x0, x19
	bl	_set_btree_node_dirty
	cbz	x20, LBB0_8
; %bb.3:
	ldr	x1, [x22]
	cbz	x1, LBB0_7
; %bb.4:
	ldr	w0, [x19]
	mov	x2, x20
	bl	_journal_pin_cmp
	mov	x8, x0
	ldr	x0, [x22]
	cbz	x8, LBB0_6
; %bb.5:
	bl	_atomic_dec_bug
	b	LBB0_7
LBB0_6:
	cbnz	x0, LBB0_8
LBB0_7:
	str	x20, [x22]
	mov	x0, x20
	bl	_atomic_inc
LBB0_8:
	mov	x0, x21
	bl	_set_bytes
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w8, #48
	cmp	w0, w8
	b.le	LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _current@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_11
LBB0_10:
	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
LBB0_11:
	mov	x0, x19
	mov	x1, #0
	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
	b	_bch_btree_node_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_current,8,3                    ; @current
	.no_dead_strip	_bch_btree_leaf_dirty
.subsections_via_symbols
