	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_bm_validate_buffer
_dm_bm_validate_buffer:                 ## @dm_bm_validate_buffer
	.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
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%edi, %edi
	cmpq	$0, (%rdx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.2:
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_dm_bufio_get_block_size
	movq	%rbx, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dm_bufio_get_block_number
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_DMERR_LIMIT
	movl	%r13d, %r12d
	jmp	LBB0_11
LBB0_5:
	xorl	%edi, %edi
	cmpq	%rbx, (%r15)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r15), %rax
	movq	8(%rax), %r15
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.9:
	movq	8(%rbx), %rbx
	jmp	LBB0_10
LBB0_4:
	movq	%rbx, (%r15)
	jmp	LBB0_11
LBB0_6:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.2(%rip), %rbx
LBB0_10:
	movq	%r14, %rdi
	callq	_dm_bufio_get_block_number
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_DMERR_LIMIT
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s validator check failed for block %llu"

L_.str.1:                               ## @.str.1
	.asciz	"validator mismatch (old=%s vs new=%s) for block %llu"

L_.str.2:                               ## @.str.2
	.asciz	"NULL"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dm_bm_validate_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_bm_validate_buffer
_dm_bm_validate_buffer:                 ; @dm_bm_validate_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x2]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x20, LBB0_7
; %bb.2:
	ldr	x23, [x20]
	ldr	w0, [x22]
	bl	_dm_bufio_get_block_size
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	blr	x23
	mov	x22, x0
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x20, [x20, #8]
	mov	x0, x19
	bl	_dm_bufio_get_block_number
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DMERR_LIMIT
	b	LBB0_11
LBB0_4:
	ldr	x8, [x21]
	cmp	x8, x20
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x21]
	ldr	x21, [x8, #8]
	cbz	x20, LBB0_9
; %bb.6:
	ldr	x20, [x20, #8]
	b	LBB0_10
LBB0_7:
	mov	w22, #0
	b	LBB0_11
LBB0_8:
	mov	w22, #0
	str	x20, [x21]
	b	LBB0_11
LBB0_9:
Lloh2:
	adrp	x20, l_.str.2@PAGE
Lloh3:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dm_bufio_get_block_number
	stp	x20, x0, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_DMERR_LIMIT
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s validator check failed for block %llu"

l_.str.1:                               ; @.str.1
	.asciz	"validator mismatch (old=%s vs new=%s) for block %llu"

l_.str.2:                               ; @.str.2
	.asciz	"NULL"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dm_bm_validate_buffer
.subsections_via_symbols
