	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verity_handle_err
_verity_handle_err:                     ## @verity_handle_err
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DM_VERITY_ENV_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r12, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	callq	_dm_table_get_md
	movl	$1, (%rbx)
	movq	8(%rbx), %rcx
	movq	_DM_VERITY_MAX_CORRUPTED_ERRS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rcx
	jge	LBB0_9
## %bb.1:
	incq	%rcx
	movq	%rcx, 8(%rbx)
	cmpl	$129, %r15d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	cmpl	$128, %r15d
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_BUG
	leaq	L_.str(%rip), %rdx
LBB0_6:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rcx
	callq	_DMERR_LIMIT
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.7:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_DMERR
LBB0_8:
	movq	_DM_VERITY_ENV_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DM_VERITY_ENV_VAR_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %r8d
	movq	%r14, %r9
	callq	_snprintf
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dm_disk
	movl	%eax, %edi
	callq	_disk_to_dev
	movq	_KOBJ_CHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-64(%rbp), %rdx
	movq	%rax, %rdi
	callq	_kobject_uevent_env
LBB0_9:
	movq	16(%rbx), %rax
	movq	_DM_VERITY_MODE_LOGGING@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	_DM_VERITY_MODE_RESTART@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.6(%rip), %rdi
	callq	_kernel_restart
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_VERITY_ENV_LENGTH,4,2       ## @DM_VERITY_ENV_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_DM_VERITY_MAX_CORRUPTED_ERRS,8,3 ## @DM_VERITY_MAX_CORRUPTED_ERRS
L_.str.1:                               ## @.str.1
	.asciz	"data"

L_.str.2:                               ## @.str.2
	.asciz	"metadata"

L_.str.3:                               ## @.str.3
	.asciz	"%s: %s block %llu is corrupted"

L_.str.4:                               ## @.str.4
	.asciz	"%s: reached maximum errors"

L_.str.5:                               ## @.str.5
	.asciz	"%s=%d,%llu"

	.comm	_DM_VERITY_ENV_VAR_NAME,8,3     ## @DM_VERITY_ENV_VAR_NAME
	.comm	_KOBJ_CHANGE,4,2                ## @KOBJ_CHANGE
	.comm	_DM_VERITY_MODE_LOGGING,8,3     ## @DM_VERITY_MODE_LOGGING
	.comm	_DM_VERITY_MODE_RESTART,8,3     ## @DM_VERITY_MODE_RESTART
L_.str.6:                               ## @.str.6
	.asciz	"dm-verity device corrupted"

	.no_dead_strip	_verity_handle_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verity_handle_err
_verity_handle_err:                     ; @verity_handle_err
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _DM_VERITY_ENV_LENGTH@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DM_VERITY_ENV_LENGTH@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	stp	x22, xzr, [x29, #-88]
	ldr	x8, [x0, #32]
	ldr	w0, [x8]
	bl	_dm_table_get_md
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x25, _DM_VERITY_MAX_CORRUPTED_ERRS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DM_VERITY_MAX_CORRUPTED_ERRS@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.1:
	mov	x23, x0
	add	x8, x8, #1
	str	x8, [x19, #8]
	cmp	w21, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_5
; %bb.3:
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	bl	_BUG
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x3, x20
	bl	_DMERR_LIMIT
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DMERR
LBB0_8:
	ldr	w1, [x24]
Lloh19:
	adrp	x8, _DM_VERITY_ENV_VAR_NAME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DM_VERITY_ENV_VAR_NAME@GOTPAGEOFF]
Lloh21:
	ldr	x3, [x8]
Lloh22:
	adrp	x2, l_.str.5@PAGE
Lloh23:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	x4, x21
	mov	x5, x20
	bl	_snprintf
	mov	x0, x23
	bl	_dm_disk
	bl	_disk_to_dev
Lloh24:
	adrp	x8, _KOBJ_CHANGE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KOBJ_CHANGE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	sub	x2, x29, #88
	bl	_kobject_uevent_env
LBB0_9:
	ldr	x8, [x19, #16]
Lloh27:
	adrp	x9, _DM_VERITY_MODE_LOGGING@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DM_VERITY_MODE_LOGGING@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_14
LBB0_11:
Lloh30:
	adrp	x9, _DM_VERITY_MODE_RESTART@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DM_VERITY_MODE_RESTART@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_kernel_restart
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_VERITY_ENV_LENGTH,4,2       ; @DM_VERITY_ENV_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_DM_VERITY_MAX_CORRUPTED_ERRS,8,3 ; @DM_VERITY_MAX_CORRUPTED_ERRS
l_.str.1:                               ; @.str.1
	.asciz	"data"

l_.str.2:                               ; @.str.2
	.asciz	"metadata"

l_.str.3:                               ; @.str.3
	.asciz	"%s: %s block %llu is corrupted"

l_.str.4:                               ; @.str.4
	.asciz	"%s: reached maximum errors"

l_.str.5:                               ; @.str.5
	.asciz	"%s=%d,%llu"

	.comm	_DM_VERITY_ENV_VAR_NAME,8,3     ; @DM_VERITY_ENV_VAR_NAME
	.comm	_KOBJ_CHANGE,4,2                ; @KOBJ_CHANGE
	.comm	_DM_VERITY_MODE_LOGGING,8,3     ; @DM_VERITY_MODE_LOGGING
	.comm	_DM_VERITY_MODE_RESTART,8,3     ; @DM_VERITY_MODE_RESTART
l_.str.6:                               ; @.str.6
	.asciz	"dm-verity device corrupted"

	.no_dead_strip	_verity_handle_err
.subsections_via_symbols
