	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function node_check
_node_check:                            ## @node_check
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_dm_block_data
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dm_block_location
	movq	%rax, %r12
	movl	40(%r15), %edi
	callq	_le64_to_cpu
	cmpq	%rax, %r12
	jne	LBB0_1
## %bb.2:
	leaq	-8(%r14), %rsi
	movq	_BTREE_CSUM_XOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_dm_bm_checksum
	movl	%eax, %edi
	callq	_cpu_to_le32
	cmpq	8(%r15), %rax
	jne	LBB0_3
## %bb.4:
	movq	16(%r15), %rdi
	callq	_le32_to_cpu
	movslq	%eax, %rbx
	addq	$4, %rbx
	movq	24(%r15), %rdi
	callq	_le32_to_cpu
	cltq
	imulq	%rbx, %rax
	addq	$48, %rax
	cmpq	%r14, %rax
	jbe	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_1:
	movl	40(%r15), %edi
	callq	_le64_to_cpu
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dm_block_location
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_DMERR_LIMIT
	movq	_ENOTBLK@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_3:
	movq	%rax, %rdi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movq	8(%r15), %rdi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DMERR_LIMIT
	jmp	LBB0_12
LBB0_6:
	movq	32(%r15), %rdi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	24(%r15), %rdi
	callq	_le32_to_cpu
	cmpl	%eax, %ebx
	jle	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
LBB0_11:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DMERR_LIMIT
LBB0_12:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r15), %rdi
	callq	_le32_to_cpu
	movq	_INTERNAL_NODE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.9:
	movq	_LEAF_NODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node_check failed: blocknr %llu != wanted %llu"

	.comm	_ENOTBLK,4,2                    ## @ENOTBLK
	.comm	_BTREE_CSUM_XOR,4,2             ## @BTREE_CSUM_XOR
L_.str.1:                               ## @.str.1
	.asciz	"node_check failed: csum %u != wanted %u"

	.comm	_EILSEQ,4,2                     ## @EILSEQ
L_.str.2:                               ## @.str.2
	.asciz	"node_check failed: max_entries too large"

L_.str.3:                               ## @.str.3
	.asciz	"node_check failed: too many entries"

	.comm	_INTERNAL_NODE,4,2              ## @INTERNAL_NODE
	.comm	_LEAF_NODE,4,2                  ## @LEAF_NODE
L_.str.4:                               ## @.str.4
	.asciz	"node_check failed: node is neither INTERNAL or LEAF"

	.no_dead_strip	_node_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function node_check
_node_check:                            ; @node_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x0, x1
	bl	_dm_block_data
	mov	x19, x0
	mov	x0, x21
	bl	_dm_block_location
	mov	x22, x0
	ldr	w0, [x19, #40]
	bl	_le64_to_cpu
	cmp	x22, x0
	b.ne	LBB0_4
; %bb.1:
	sub	x1, x20, #8
Lloh0:
	adrp	x8, _BTREE_CSUM_XOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTREE_CSUM_XOR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dm_bm_checksum
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x21, x8, #4
	ldr	x0, [x19, #24]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	orr	x9, xzr, #0x30
	madd	x8, x21, x8, x9
	cmp	x8, x20
	b.ls	LBB0_9
; %bb.3:
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #40]
	bl	_le64_to_cpu
	mov	x19, x0
	mov	x0, x21
	bl	_dm_block_location
	stp	x19, x0, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR_LIMIT
Lloh7:
	adrp	x8, _ENOTBLK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTBLK@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_DMERR_LIMIT
Lloh11:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	x0, [x19, #32]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	x0, [x19, #24]
	bl	_le32_to_cpu
	cmp	w20, w0
	b.le	LBB0_11
; %bb.10:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_11:
	ldr	x0, [x19]
	bl	_le32_to_cpu
Lloh15:
	adrp	x8, _INTERNAL_NODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INTERNAL_NODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_13
; %bb.12:
Lloh18:
	adrp	x8, _LEAF_NODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LEAF_NODE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
LBB0_13:
	mov	w0, #0
	b	LBB0_8
LBB0_14:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node_check failed: blocknr %llu != wanted %llu"

	.comm	_ENOTBLK,4,2                    ; @ENOTBLK
	.comm	_BTREE_CSUM_XOR,4,2             ; @BTREE_CSUM_XOR
l_.str.1:                               ; @.str.1
	.asciz	"node_check failed: csum %u != wanted %u"

	.comm	_EILSEQ,4,2                     ; @EILSEQ
l_.str.2:                               ; @.str.2
	.asciz	"node_check failed: max_entries too large"

l_.str.3:                               ; @.str.3
	.asciz	"node_check failed: too many entries"

	.comm	_INTERNAL_NODE,4,2              ; @INTERNAL_NODE
	.comm	_LEAF_NODE,4,2                  ; @LEAF_NODE
l_.str.4:                               ; @.str.4
	.asciz	"node_check failed: node is neither INTERNAL or LEAF"

	.no_dead_strip	_node_check
.subsections_via_symbols
