	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isert_check_pi_status
_isert_check_pi_status:                 ## @isert_check_pi_status
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	_IB_MR_CHECK_SIG_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-56(%rbp), %rdx
	movq	%rax, %rdi
	callq	_ib_check_mr_status
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_isert_err
	jmp	LBB0_7
LBB0_2:
	movl	(%r15), %eax
	testl	%eax, -56(%rbp)
	je	LBB0_3
## %bb.4:
	movq	24(%r14), %rax
	movq	(%rax), %rsi
	addq	$8, %rsi
	movl	-48(%rbp), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_6
## %bb.5:
	cltq
	leaq	l_switch.table.isert_check_pi_status(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_6:
	movq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_do_div
	addq	8(%r14), %rbx
	movq	%rbx, (%r14)
	movl	-40(%rbp), %ecx
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %r8d
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_isert_err
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MR_CHECK_SIG_STATUS,4,2     ## @IB_MR_CHECK_SIG_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib_check_mr_status failed, ret %d\n"

	.comm	_TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED,4,2 ## @TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED
	.comm	_TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED,4,2 ## @TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED
	.comm	_TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED,4,2 ## @TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"PI error found type %d at sector 0x%llx expected 0x%x vs actual 0x%x\n"

	.no_dead_strip	_isert_check_pi_status
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.isert_check_pi_status
l_switch.table.isert_check_pi_status:
	.quad	_TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED
	.quad	_TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED
	.quad	_TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isert_check_pi_status
_isert_check_pi_status:                 ; @isert_check_pi_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _IB_MR_CHECK_SIG_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IB_MR_CHECK_SIG_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #32
	mov	x0, x8
	bl	_ib_check_mr_status
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_isert_err
	b	LBB0_7
LBB0_2:
	ldr	w8, [sp, #32]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	add	x1, x8, #8
	ldr	w8, [sp, #40]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.4:
Lloh4:
	adrp	x9, l_switch.table.isert_check_pi_status@PAGE
Lloh5:
	add	x9, x9, l_switch.table.isert_check_pi_status@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_5:
	ldr	x20, [sp, #56]
	mov	x0, x20
	bl	_do_div
	ldr	x8, [x19, #8]
	add	x8, x8, x20
	str	x8, [x19]
	ldp	w10, w9, [sp, #44]
	ldr	w1, [sp, #40]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_isert_err
	mov	w20, #1
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MR_CHECK_SIG_STATUS,4,2     ; @IB_MR_CHECK_SIG_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib_check_mr_status failed, ret %d\n"

	.comm	_TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED,4,2 ; @TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED
	.comm	_TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED,4,2 ; @TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED
	.comm	_TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED,4,2 ; @TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"PI error found type %d at sector 0x%llx expected 0x%x vs actual 0x%x\n"

	.no_dead_strip	_isert_check_pi_status
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.isert_check_pi_status
l_switch.table.isert_check_pi_status:
	.quad	_TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED
	.quad	_TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED
	.quad	_TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED

.subsections_via_symbols
