	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verity_verify_io
_verity_verify_io:                      ## @verity_verify_io
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	leaq	4(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_verity_bv_skip_block
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movl	(%r14), %eax
	cmpq	%rax, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r15
	addq	%r13, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_verity_io_hash_req
	movq	%rax, %r12
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_test_bit
	movl	%eax, %edi
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_verity_io_want_digest
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	movl	%eax, %ecx
	leaq	-76(%rbp), %r8
	callq	_verity_hash_for_block
	movl	%eax, %r15d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -76(%rbp)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_verity_bv_zero@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_verity_for_bv_block
	movl	%eax, %r15d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	leaq	-48(%rbp), %rdx
	callq	_verity_hash_init
	movl	%eax, %r15d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %eax
	movl	%eax, -72(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	-48(%rbp), %rcx
	callq	_verity_for_io_block
	movl	%eax, %r15d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_verity_io_real_digest
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	leaq	-48(%rbp), %rcx
	callq	_verity_hash_final
	movl	%eax, %r15d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_verity_io_real_digest
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_verity_io_want_digest
	movl	4(%rbx), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	testl	%esi, %esi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_set_bit
	jmp	LBB0_5
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_DM_VERITY_BLOCK_TYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	leaq	-72(%rbp), %r9
	callq	_verity_fec_decode
	testq	%rax, %rax
	je	LBB0_5
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_DM_VERITY_BLOCK_TYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_verity_handle_err
	testq	%rax, %rax
	je	LBB0_5
## %bb.18:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_6:
	xorl	%r15d, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verity_bv_zero,4,2             ## @verity_bv_zero
	.comm	_DM_VERITY_BLOCK_TYPE_DATA,4,2  ## @DM_VERITY_BLOCK_TYPE_DATA
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_verity_verify_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verity_verify_io
_verity_verify_io:                      ; @verity_verify_io
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x19, x0
	mov	x25, #0
	ldr	x20, [x0, #16]
	add	x21, x0, #4
Lloh0:
	adrp	x26, _DM_VERITY_BLOCK_TYPE_DATA@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DM_VERITY_BLOCK_TYPE_DATA@GOTPAGEOFF]
Lloh2:
	adrp	x27, _verity_bv_zero@GOTPAGE
Lloh3:
	ldr	x27, [x27, _verity_bv_zero@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_verity_bv_skip_block
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldr	w8, [x19]
	cmp	x25, x8
	b.hs	LBB0_18
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x22, x25, x8
	mov	x0, x20
	mov	x1, x19
	bl	_verity_io_hash_req
	mov	x23, x0
	ldr	w1, [x20]
	cbz	w1, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_test_bit
	bl	_likely
	cbnz	x0, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_verity_io_want_digest
	mov	x3, x0
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_verity_hash_for_block
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x27]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_verity_for_bv_block
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_3
	b	LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, sp
	mov	x0, x20
	mov	x1, x23
	bl	_verity_hash_init
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	str	w8, [sp, #8]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_verity_for_io_block
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_verity_io_real_digest
	mov	x2, x0
	mov	x3, sp
	mov	x0, x20
	mov	x1, x23
	bl	_verity_hash_final
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_verity_io_real_digest
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_verity_io_want_digest
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x23
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x20]
	cbz	w1, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_set_bit
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x26]
	add	x5, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	mov	x4, #0
	bl	_verity_fec_decode
	cbz	x0, LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	mov	x0, x20
	mov	x2, x22
	bl	_verity_handle_err
	cbz	x0, LBB0_3
; %bb.17:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_19
LBB0_18:
	mov	w24, #0
LBB0_19:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_verity_bv_zero,4,2             ; @verity_bv_zero
	.comm	_DM_VERITY_BLOCK_TYPE_DATA,4,2  ; @DM_VERITY_BLOCK_TYPE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_verity_verify_io
.subsections_via_symbols
