	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function integrity_sector_checksum
_integrity_sector_checksum:             ## @integrity_sector_checksum
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_cpu_to_le64
	movl	%eax, -44(%rbp)
	movq	_req@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movl	8(%r12), %esi
	callq	_SHASH_DESC_ON_STACK
	movl	8(%r12), %eax
	movq	(%r13), %rdi
	movl	%eax, (%rdi)
	callq	_crypto_shash_init
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	(%r13), %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_crypto_shash_update
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	(%r13), %rdi
	movl	(%r12), %edx
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	%r15, %rsi
	callq	_crypto_shash_update
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dm_integrity_io_error
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_get_random_bytes
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_crypto_shash_final
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	movl	8(%r12), %edi
	callq	_crypto_shash_digestsize
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	4(%r12), %eax
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	%r15d, %eax
	addq	%rax, %r14
	movl	4(%r12), %edx
	subl	%r15d, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_req,8,3                        ## @req
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crypto_shash_init"

L_.str.1:                               ## @.str.1
	.asciz	"crypto_shash_update"

	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
L_.str.2:                               ## @.str.2
	.asciz	"crypto_shash_final"

	.no_dead_strip	_integrity_sector_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function integrity_sector_checksum
_integrity_sector_checksum:             ; @integrity_sector_checksum
	.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	x19, x3
	mov	x21, x2
	mov	x20, x0
	mov	x0, x1
	bl	_cpu_to_le64
	str	w0, [sp, #12]
Lloh0:
	adrp	x23, _req@GOTPAGE
Lloh1:
	ldr	x23, [x23, _req@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	w1, [x20, #8]
	bl	_SHASH_DESC_ON_STACK
	ldr	w8, [x20, #8]
	ldr	x0, [x23]
	str	w8, [x0]
	bl	_crypto_shash_init
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x0, [x23]
	add	x1, sp, #12
	mov	w2, #4
	bl	_crypto_shash_update
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	mov	x2, x22
LBB0_5:
	bl	_dm_integrity_io_error
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_get_random_bytes
LBB0_6:
	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
LBB0_7:
	ldr	x0, [x23]
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _SECTOR_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	mov	x1, x21
	bl	_crypto_shash_update
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
	ldr	x0, [x23]
	mov	x1, x19
	bl	_crypto_shash_final
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.10:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x20
	mov	x2, x21
	b	LBB0_5
LBB0_12:
	ldr	w0, [x20, #8]
	bl	_crypto_shash_digestsize
	mov	x21, x0
	ldr	w8, [x20, #4]
	cmp	w0, w8
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.13:
	add	x0, x19, w21, uxtw
	ldr	w8, [x20, #4]
	sub	w2, w8, w21
	mov	w1, #0
	bl	_memset
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_req,8,3                        ; @req
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crypto_shash_init"

l_.str.1:                               ; @.str.1
	.asciz	"crypto_shash_update"

	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
l_.str.2:                               ; @.str.2
	.asciz	"crypto_shash_final"

	.no_dead_strip	_integrity_sector_checksum
.subsections_via_symbols
