	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_bufio_release               ## -- Begin function dm_bufio_release
	.p2align	4, 0x90
_dm_bufio_release:                      ## @dm_bufio_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_dm_bufio_lock
	xorl	%edi, %edi
	cmpl	$0, 24(%rbx)
	sete	%dil
	callq	_BUG_ON
	decl	24(%rbx)
	jne	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_wake_up
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
LBB0_3:
	movq	_B_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	_B_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_B_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	___unlink_buffer
	movq	%rbx, %rdi
	callq	___free_buffer_wake
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dm_bufio_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B_READING,4,2                  ## @B_READING
	.comm	_B_WRITING,4,2                  ## @B_WRITING
	.comm	_B_DIRTY,4,2                    ## @B_DIRTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_bufio_release               ; -- Begin function dm_bufio_release
	.p2align	2
_dm_bufio_release:                      ; @dm_bufio_release
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0, #32]
	mov	x0, x19
	bl	_dm_bufio_lock
	ldr	w8, [x20, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x20, #24]
	subs	w8, w8, #1
	str	w8, [x20, #24]
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_wake_up
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _B_READING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B_READING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _B_WRITING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B_WRITING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _B_DIRTY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B_DIRTY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	___unlink_buffer
	mov	x0, x20
	bl	___free_buffer_wake
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dm_bufio_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_B_READING,4,2                  ; @B_READING
	.comm	_B_WRITING,4,2                  ; @B_WRITING
	.comm	_B_DIRTY,4,2                    ; @B_DIRTY
.subsections_via_symbols
