	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function array_block_check
_array_block_check:                     ## @array_block_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	12(%r15), %edi
	callq	_le64_to_cpu
	cmpq	%rax, %r12
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	addq	$8, %rdi
	addq	$-8, %r14
	movq	_CSUM_XOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_dm_bm_checksum
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, %rdi
	xorl	%eax, %eax
	cmpq	(%r15), %rdi
	je	LBB0_5
## %bb.3:
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DMERR_LIMIT
	movq	_EILSEQ@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movl	12(%r15), %edi
	callq	_le64_to_cpu
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dm_block_location
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_DMERR_LIMIT
	movq	_ENOTBLK@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"array_block_check failed: blocknr %llu != wanted %llu"

	.comm	_ENOTBLK,4,2                    ## @ENOTBLK
	.comm	_CSUM_XOR,4,2                   ## @CSUM_XOR
L_.str.1:                               ## @.str.1
	.asciz	"array_block_check failed: csum %u != wanted %u"

	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.no_dead_strip	_array_block_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function array_block_check
_array_block_check:                     ; @array_block_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	x21, x2
	mov	x20, x1
	mov	x0, x1
	bl	_dm_block_data
	mov	x19, x0
	mov	x0, x20
	bl	_dm_block_location
	mov	x22, x0
	ldr	w0, [x19, #12]
	bl	_le64_to_cpu
	cmp	x22, x0
	b.ne	LBB0_3
; %bb.1:
	add	x0, x19, #8
	sub	x1, x21, #8
Lloh0:
	adrp	x8, _CSUM_XOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSUM_XOR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_dm_bm_checksum
	bl	_cpu_to_le32
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	ldr	w0, [x19, #12]
	bl	_le64_to_cpu
	mov	x19, x0
	mov	x0, x20
	bl	_dm_block_location
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_DMERR_LIMIT
Lloh5:
	adrp	x8, _ENOTBLK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTBLK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	x0, [x19]
	bl	_le32_to_cpu
	mov	x2, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_DMERR_LIMIT
Lloh9:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"array_block_check failed: blocknr %llu != wanted %llu"

	.comm	_ENOTBLK,4,2                    ; @ENOTBLK
	.comm	_CSUM_XOR,4,2                   ; @CSUM_XOR
l_.str.1:                               ; @.str.1
	.asciz	"array_block_check failed: csum %u != wanted %u"

	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.no_dead_strip	_array_block_check
.subsections_via_symbols
