	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_check_task_pi_status      ## -- Begin function iser_check_task_pi_status
	.p2align	4, 0x90
_iser_check_task_pi_status:             ## @iser_check_task_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	%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	8(%rdi), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rax
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r12
	movq	$0, 8(%rax)
	movl	(%rax), %edi
	movq	_IB_MR_CHECK_SIG_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-72(%rbp), %rdx
	callq	_ib_check_mr_status
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	$0, (%r14)
	movl	$1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r13), %eax
	testl	%eax, -72(%rbp)
	je	LBB0_7
## %bb.5:
	movq	-48(%rbp), %r13
	addq	$8, %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_sector_div
	movq	(%rbx), %rdi
	callq	_scsi_get_lba
	addq	%rax, %r13
	movq	%r13, (%r14)
	movl	-56(%rbp), %ecx
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %r8d
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_pr_err
	movl	-64(%rbp), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_7
## %bb.6:
	cltq
	leaq	l_switch.table.iser_check_task_pi_status(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	jmp	LBB0_7
	.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"

L_.str.1:                               ## @.str.1
	.asciz	"PI error found type %d at sector %llx expected %x vs actual %x\n"

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.iser_check_task_pi_status
l_switch.table.iser_check_task_pi_status:
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_check_task_pi_status      ; -- Begin function iser_check_task_pi_status
	.p2align	2
_iser_check_task_pi_status:             ; @iser_check_task_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
	ldr	x8, [x0, #8]
	ldr	x8, [x8, w1, uxtw #3]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.2:
	mov	x19, x2
	mov	x20, x0
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x22, [x9]
	str	xzr, [x8, #8]
	ldr	w0, [x8]
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
	bl	_ib_check_mr_status
	cbz	w0, LBB0_4
; %bb.3:
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	str	xzr, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_4:
	ldr	w8, [sp, #32]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	x21, [sp, #56]
	add	x1, x22, #8
	mov	x0, x21
	bl	_sector_div
	ldr	x0, [x20]
	bl	_scsi_get_lba
	add	x8, x0, x21
	str	x8, [x19]
	ldp	w10, w9, [sp, #44]
	ldr	w1, [sp, #40]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	ldr	w8, [sp, #40]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_7
; %bb.6:
Lloh6:
	adrp	x9, l_switch.table.iser_check_task_pi_status@PAGE
Lloh7:
	add	x9, x9, l_switch.table.iser_check_task_pi_status@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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"

l_.str.1:                               ; @.str.1
	.asciz	"PI error found type %d at sector %llx expected %x vs actual %x\n"

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.iser_check_task_pi_status
l_switch.table.iser_check_task_pi_status:
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.long	2                               ; 0x2

.subsections_via_symbols
