	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_bm_write_lock               ## -- Begin function dm_bm_write_lock
	.p2align	4, 0x90
_dm_bm_write_lock:                      ## @dm_bm_write_lock
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	(%rdi), %edi
	movq	%rcx, %rdx
	callq	_dm_bufio_read
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	(%r14), %rdi
	callq	_to_buffer
	movl	%eax, %edi
	callq	_dm_bufio_get_aux_data
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_bl_down_write
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_to_buffer
	movl	%eax, %edi
	callq	_dm_bufio_release
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_report_recursive_bug
	jmp	LBB0_8
LBB0_5:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, (%rbx)
	movq	(%r14), %rdi
	callq	_to_buffer
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_dm_bm_validate_buffer
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_bl_up_write
	movq	(%r14), %rdi
	callq	_to_buffer
	movl	%eax, %edi
	callq	_dm_bufio_release
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_bm_write_lock               ; -- Begin function dm_bm_write_lock
	.p2align	2
_dm_bm_write_lock:                      ; @dm_bm_write_lock
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x0]
	mov	x2, x3
	bl	_dm_bufio_read
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
	ldr	x0, [x19]
	bl	_to_buffer
	bl	_dm_bufio_get_aux_data
	mov	x25, x0
	add	x24, x0, #4
	mov	x0, x24
	bl	_bl_down_write
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
	ldr	x0, [x19]
	bl	_to_buffer
	bl	_dm_bufio_release
	mov	x0, x22
	mov	x1, x21
	bl	_report_recursive_bug
	b	LBB0_2
LBB0_7:
	mov	w8, #1
	str	w8, [x25]
	ldr	x0, [x19]
	bl	_to_buffer
	mov	x1, x0
	mov	x0, x23
	mov	x2, x25
	mov	x3, x20
	bl	_dm_bm_validate_buffer
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x24
	bl	_bl_up_write
	ldr	x0, [x19]
	bl	_to_buffer
	bl	_dm_bufio_release
	b	LBB0_2
LBB0_9:
	mov	w21, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
