	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sb_check
_sb_check:                              ## @sb_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	16(%r15), %edi
	callq	_le64_to_cpu
	cmpq	%rax, %r12
	jne	LBB0_1
## %bb.2:
	movl	12(%r15), %edi
	callq	_le64_to_cpu
	movq	_SUPERBLOCK_MAGIC@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_3
## %bb.6:
	movq	%r15, %rdi
	addq	$8, %rdi
	addq	$-8, %r14
	movq	_SUPERBLOCK_CSUM_XOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_dm_bm_checksum
	movl	%eax, %edi
	callq	_cpu_to_le32
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_metadata_version         ## TAILCALL
LBB0_1:
	movl	16(%r15), %edi
	callq	_le64_to_cpu
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dm_block_location
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_DMERR
	movq	_ENOTBLK@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movl	12(%r15), %edi
	callq	_le64_to_cpu
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	jmp	LBB0_4
LBB0_7:
	movq	%rax, %rdi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_le32_to_cpu
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
LBB0_4:
	callq	_DMERR
	movq	_EILSEQ@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sb_check failed: blocknr %llu: wanted %llu"

	.comm	_ENOTBLK,4,2                    ## @ENOTBLK
	.comm	_SUPERBLOCK_MAGIC,8,3           ## @SUPERBLOCK_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"sb_check failed: magic %llu: wanted %llu"

	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_SUPERBLOCK_CSUM_XOR,4,2        ## @SUPERBLOCK_CSUM_XOR
L_.str.2:                               ## @.str.2
	.asciz	"sb_check failed: csum %u: wanted %u"

	.no_dead_strip	_sb_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sb_check
_sb_check:                              ; @sb_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, #16]
	bl	_le64_to_cpu
	cmp	x22, x0
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_le64_to_cpu
Lloh0:
	adrp	x21, _SUPERBLOCK_MAGIC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SUPERBLOCK_MAGIC@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	add	x0, x19, #8
	sub	x1, x20, #8
Lloh2:
	adrp	x8, _SUPERBLOCK_CSUM_XOR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUPERBLOCK_CSUM_XOR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_dm_bm_checksum
	bl	_cpu_to_le32
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_check_metadata_version
LBB0_4:
	ldr	w0, [x19, #16]
	bl	_le64_to_cpu
	mov	x19, x0
	mov	x0, x21
	bl	_dm_block_location
	mov	x2, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DMERR
Lloh7:
	adrp	x8, _ENOTBLK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTBLK@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19, #12]
	bl	_le64_to_cpu
	mov	x1, x0
	ldr	x2, [x21]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	x0, [x19]
	bl	_le32_to_cpu
	mov	x2, x0
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
LBB0_7:
	bl	_DMERR
Lloh13:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sb_check failed: blocknr %llu: wanted %llu"

	.comm	_ENOTBLK,4,2                    ; @ENOTBLK
	.comm	_SUPERBLOCK_MAGIC,8,3           ; @SUPERBLOCK_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"sb_check failed: magic %llu: wanted %llu"

	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_SUPERBLOCK_CSUM_XOR,4,2        ; @SUPERBLOCK_CSUM_XOR
l_.str.2:                               ; @.str.2
	.asciz	"sb_check failed: csum %u: wanted %u"

	.no_dead_strip	_sb_check
.subsections_via_symbols
