	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_tpe_recover
_be_tpe_recover:                        ## @be_tpe_recover
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	movl	16(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_14
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	%r14, %rdi
	callq	_be_err_is_recoverable
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	callq	_be_soft_reset
	movl	$129, 16(%r14)
	movq	40(%r14), %r15
	subq	32(%r14), %r15
	jmp	LBB0_15
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_13:
	movq	_ERR_RECOVERY_ST_REINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_2:
	movl	$131, 16(%r14)
	movq	_ERR_RECOVERY_UE_DETECT_DURATION@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_15
LBB0_3:
	movq	%r14, %rdi
	callq	_be_POST_stage_get
	movq	_POST_STAGE_RECOVERABLE_ERR@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	notl	%edx
	movq	(%r14), %rdi
	testl	%edx, (%rcx)
	jne	LBB0_4
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	cmpl	$0, 8(%r14)
	je	LBB0_7
## %bb.9:
	movl	$129, 16(%r14)
	movq	40(%r14), %r15
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_7:
	movl	$128, 16(%r14)
	movq	32(%r14), %r15
LBB0_8:
	movq	_ERR_RECOVERY_UE_DETECT_DURATION@GOTPCREL(%rip), %rax
	subq	(%rax), %r15
LBB0_15:
	movq	%r15, 24(%r14)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ERR_RECOVERY_UE_DETECT_DURATION,8,3 ## @ERR_RECOVERY_UE_DETECT_DURATION
	.comm	_POST_STAGE_RECOVERABLE_ERR,4,2 ## @POST_STAGE_RECOVERABLE_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unrecoverable HW error detected: 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Recoverable HW error detected\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to meet recovery criteria\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_ERR_RECOVERY_ST_REINIT,4,2     ## @ERR_RECOVERY_ST_REINIT
	.no_dead_strip	_be_tpe_recover
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_tpe_recover
_be_tpe_recover:                        ; @be_tpe_recover
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #16]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.1:
Lloh0:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	neg	w20, w9
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_be_err_is_recoverable
	cbz	w0, LBB0_12
; %bb.3:
	mov	x0, x19
	bl	_be_soft_reset
	mov	w8, #129
	str	w8, [x19, #16]
	ldp	x9, x8, [x19, #32]
	b	LBB0_15
LBB0_4:
	mov	x8, #0
	mov	w20, #0
Lloh5:
	adrp	x9, _ERR_RECOVERY_ST_REINIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ERR_RECOVERY_ST_REINIT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x19, #16]
	b	LBB0_16
LBB0_5:
	mov	w8, #131
	str	w8, [x19, #16]
Lloh8:
	adrp	x8, _ERR_RECOVERY_UE_DETECT_DURATION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_RECOVERY_UE_DETECT_DURATION@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	b	LBB0_16
LBB0_6:
	mov	x0, x19
	bl	_be_POST_stage_get
	mov	x8, x0
Lloh11:
	adrp	x9, _POST_STAGE_RECOVERABLE_ERR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _POST_STAGE_RECOVERABLE_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	x0, [x19]
	bics	wzr, w9, w8
	b.ne	LBB0_9
; %bb.7:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_13
; %bb.8:
	mov	w8, #129
	str	w8, [x19, #16]
	ldr	x8, [x19, #40]
	b	LBB0_14
LBB0_9:
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_10:
	mov	x8, #0
Lloh18:
	adrp	x9, _EINVAL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w9, [x9]
	neg	w20, w9
	b	LBB0_16
LBB0_12:
	ldr	x0, [x19]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x8, #0
Lloh22:
	adrp	x9, _EIO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_13:
	mov	w8, #128
	str	w8, [x19, #16]
	ldr	x8, [x19, #32]
LBB0_14:
Lloh24:
	adrp	x9, _ERR_RECOVERY_UE_DETECT_DURATION@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ERR_RECOVERY_UE_DETECT_DURATION@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
LBB0_15:
	sub	x8, x8, x9
LBB0_16:
	str	x8, [x19, #24]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ERR_RECOVERY_UE_DETECT_DURATION,8,3 ; @ERR_RECOVERY_UE_DETECT_DURATION
	.comm	_POST_STAGE_RECOVERABLE_ERR,4,2 ; @POST_STAGE_RECOVERABLE_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unrecoverable HW error detected: 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Recoverable HW error detected\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to meet recovery criteria\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_ERR_RECOVERY_ST_REINIT,4,2     ; @ERR_RECOVERY_ST_REINIT
	.no_dead_strip	_be_tpe_recover
.subsections_via_symbols
