	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verity_verify_level
_verity_verify_level:                   ## @verity_verify_level
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	-44(%rbp), %rax
	leaq	-60(%rbp), %r8
	movl	%edx, %esi
	movl	%ecx, %edx
	movq	%rax, %rcx
	callq	_verity_hash_at_level
	movl	8(%rbx), %edi
	movl	-44(%rbp), %esi
	leaq	-72(%rbp), %rdx
	callq	_dm_bufio_read
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_12
LBB0_2:
	movq	-72(%rbp), %rdi
	callq	_dm_bufio_get_aux_data
	cmpl	$0, (%rax)
	je	LBB0_3
LBB0_10:
	movl	-60(%rbp), %eax
	leaq	(%r15,%rax,4), %rsi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	testl	%r13d, %r13d
	jne	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	_verity_io_hash_req
	movl	%eax, %r14d
	movb	(%rbx), %cl
	movl	$1, %r13d
	shll	%cl, %r13d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_verity_io_real_digest
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_verity_hash
	movl	%eax, %r14d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
LBB0_11:
	movq	-72(%rbp), %rdi
	callq	_dm_bufio_release
LBB0_12:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_verity_io_real_digest
	movl	4(%rbx), %edx
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
LBB0_9:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_6:
	movq	_DM_VERITY_BLOCK_TYPE_METADATA@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	-44(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	_verity_fec_decode
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	(%r14), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_verity_handle_err
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_VERITY_BLOCK_TYPE_METADATA,4,2 ## @DM_VERITY_BLOCK_TYPE_METADATA
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_verity_verify_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verity_verify_level
_verity_verify_level:                   ; @verity_verify_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x5
	mov	x24, x4
	mov	x8, x3
	mov	x22, x1
	mov	x20, x0
	add	x3, sp, #4
	mov	x4, sp
	mov	x1, x2
	mov	x2, x8
	bl	_verity_hash_at_level
	ldr	w0, [x20, #8]
	ldr	w1, [sp, #4]
	add	x2, sp, #8
	bl	_dm_bufio_read
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_7
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_dm_bufio_get_aux_data
	ldr	w8, [x0]
	cbz	w8, LBB0_4
LBB0_3:
	ldr	w8, [sp]
	add	x1, x21, x8, lsl #2
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_memcpy
	mov	w25, #0
	b	LBB0_6
LBB0_4:
	mov	w25, #1
	cbnz	w24, LBB0_6
; %bb.5:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_verity_io_hash_req
	mov	x24, x0
	ldr	w8, [x20]
	lsl	w25, w25, w8
	mov	x0, x20
	mov	x1, x22
	bl	_verity_io_real_digest
	mov	x4, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	mov	x3, x25
	bl	_verity_hash
	mov	x25, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_dm_bufio_release
LBB0_7:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	mov	x0, x20
	mov	x1, x22
	bl	_verity_io_real_digest
	ldr	w2, [x20, #4]
	mov	x1, x19
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_10
LBB0_9:
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_3
LBB0_10:
Lloh0:
	adrp	x24, _DM_VERITY_BLOCK_TYPE_METADATA@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DM_VERITY_BLOCK_TYPE_METADATA@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w3, [sp, #4]
	mov	x0, x20
	mov	x1, x22
	mov	x4, x21
	mov	x5, #0
	bl	_verity_fec_decode
	cbz	x0, LBB0_9
; %bb.11:
	ldr	w1, [x24]
	ldr	w2, [sp, #4]
	mov	x0, x20
	bl	_verity_handle_err
	cbz	x0, LBB0_3
; %bb.12:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_VERITY_BLOCK_TYPE_METADATA,4,2 ; @DM_VERITY_BLOCK_TYPE_METADATA
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_verity_verify_level
.subsections_via_symbols
