	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_bufio_mark_partial_buffer_dirty ## -- Begin function dm_bufio_mark_partial_buffer_dirty
	.p2align	4, 0x90
_dm_bufio_mark_partial_buffer_dirty:    ## @dm_bufio_mark_partial_buffer_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	xorl	%edi, %edi
	cmpl	%edx, %esi
	setae	%dil
	callq	_BUG_ON
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpl	%r15d, (%rax)
	setb	%dil
	callq	_BUG_ON
	movq	%r14, %rdi
	callq	_dm_bufio_lock
	movq	_B_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r13
	movq	%r13, %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_BUG_ON
	movq	_B_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	%r12d, (%rbx)
	jbe	LBB0_4
## %bb.3:
	movl	%r12d, (%rbx)
LBB0_4:
	cmpl	%r15d, 4(%rbx)
	jae	LBB0_6
## %bb.5:
	movl	%r15d, 4(%rbx)
	jmp	LBB0_6
LBB0_1:
	movl	%r12d, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	_LIST_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___relink_lru
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dm_bufio_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B_READING,4,2                  ## @B_READING
	.comm	_B_DIRTY,4,2                    ## @B_DIRTY
	.comm	_LIST_DIRTY,4,2                 ## @LIST_DIRTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_bufio_mark_partial_buffer_dirty ; -- Begin function dm_bufio_mark_partial_buffer_dirty
	.p2align	2
_dm_bufio_mark_partial_buffer_dirty:    ; @dm_bufio_mark_partial_buffer_dirty
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	cmp	w1, w2
	cset	w0, hs
	bl	_BUG_ON
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, w21
	cset	w0, lo
	bl	_BUG_ON
	mov	x0, x19
	bl	_dm_bufio_lock
Lloh0:
	adrp	x8, _B_READING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B_READING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x23, x20, #8
	mov	x1, x23
	bl	_test_bit
	bl	_BUG_ON
Lloh3:
	adrp	x8, _B_DIRTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B_DIRTY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_and_set_bit
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w22
	b.ls	LBB0_3
; %bb.2:
	str	w22, [x20]
LBB0_3:
	ldr	w8, [x20, #4]
	cmp	w8, w21
	b.hs	LBB0_6
; %bb.4:
	str	w21, [x20, #4]
	b	LBB0_6
LBB0_5:
	stp	w22, w21, [x20]
Lloh6:
	adrp	x8, _LIST_DIRTY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LIST_DIRTY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	___relink_lru
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dm_bufio_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_B_READING,4,2                  ; @B_READING
	.comm	_B_DIRTY,4,2                    ; @B_DIRTY
	.comm	_LIST_DIRTY,4,2                 ; @LIST_DIRTY
.subsections_via_symbols
