	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_err_is_recoverable
_be_err_is_recoverable:                 ## @be_err_is_recoverable
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_ERR_RECOVERY_IDLE_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r13
	movq	_ERR_RECOVERY_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_be_POST_stage_get
	movl	%eax, %ebx
	movq	_POST_STAGE_RECOVERABLE_ERR@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	notl	%ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	jne	LBB0_11
## %bb.1:
	movq	_POST_ERR_RECOVERY_CODE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_11
## %bb.2:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	24(%r12), %rdi
	movq	%r13, %rsi
	callq	_time_before_eq
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%r12), %rbx
	movq	%r13, %rdi
	callq	_jiffies_to_msecs
	movq	_MSEC_PER_SEC@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	16(%r12), %rax
	testq	%rax, %rax
	movq	_jiffies@GOTPCREL(%rip), %r14
	je	LBB0_8
## %bb.6:
	movq	(%r14), %rdi
	subq	%rax, %rdi
	movq	%r15, %rsi
	callq	_time_before_eq
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_jiffies_to_msecs
	movq	_MSEC_PER_SEC@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_8:
	cmpl	8(%r12), %ebx
	jne	LBB0_10
## %bb.9:
	movq	(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_10:
	movq	(%r14), %rax
	movq	%rax, 16(%r12)
	movl	%ebx, 8(%r12)
	movl	$1, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_RECOVERY_IDLE_TIME,4,2     ## @ERR_RECOVERY_IDLE_TIME
	.comm	_ERR_RECOVERY_INTERVAL,4,2      ## @ERR_RECOVERY_INTERVAL
	.comm	_POST_STAGE_RECOVERABLE_ERR,4,2 ## @POST_STAGE_RECOVERABLE_ERR
	.comm	_POST_ERR_RECOVERY_CODE_MASK,4,2 ## @POST_ERR_RECOVERY_CODE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Recoverable HW error code: 0x%x\n"

	.comm	_jiffies,8,3                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"Cannot recover within %lu sec from driver load\n"

	.comm	_MSEC_PER_SEC,4,2               ## @MSEC_PER_SEC
L_.str.2:                               ## @.str.2
	.asciz	"Cannot recover within %lu sec from last recovery\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot recover from a consecutive TPE error\n"

	.no_dead_strip	_be_err_is_recoverable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_err_is_recoverable
_be_err_is_recoverable:                 ; @be_err_is_recoverable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ERR_RECOVERY_IDLE_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_RECOVERY_IDLE_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x21, x0
Lloh3:
	adrp	x8, _ERR_RECOVERY_INTERVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_RECOVERY_INTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x20, x0
	mov	x0, x19
	bl	_be_POST_stage_get
Lloh6:
	adrp	x8, _POST_STAGE_RECOVERABLE_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POST_STAGE_RECOVERABLE_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	b.ne	LBB0_6
; %bb.1:
Lloh9:
	adrp	x8, _POST_ERR_RECOVERY_CODE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POST_ERR_RECOVERY_CODE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ands	w22, w8, w0
	b.eq	LBB0_6
; %bb.2:
	ldr	x0, [x19]
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x23, _jiffies@GOTPAGE
Lloh15:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x19, #24]
	sub	x0, x8, x9
	mov	x1, x21
	bl	_time_before_eq
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x19, [x19]
	mov	x0, x21
	bl	_jiffies_to_msecs
Lloh16:
	adrp	x8, _MSEC_PER_SEC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSEC_PER_SEC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	sdiv	w8, w0, w8
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
LBB0_5:
	bl	_dev_err
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x9, [x23]
	sub	x0, x9, x8
	mov	x1, x20
	bl	_time_before_eq
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x19, [x19]
	mov	x0, x20
	bl	_jiffies_to_msecs
Lloh21:
	adrp	x8, _MSEC_PER_SEC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSEC_PER_SEC@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	sdiv	w8, w0, w8
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_11:
	ldr	w8, [x19, #8]
	cmp	w22, w8
	b.ne	LBB0_13
; %bb.12:
	ldr	x0, [x19]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_13:
	ldr	x8, [x23]
	str	x8, [x19, #16]
	str	w22, [x19, #8]
	mov	w0, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_RECOVERY_IDLE_TIME,4,2     ; @ERR_RECOVERY_IDLE_TIME
	.comm	_ERR_RECOVERY_INTERVAL,4,2      ; @ERR_RECOVERY_INTERVAL
	.comm	_POST_STAGE_RECOVERABLE_ERR,4,2 ; @POST_STAGE_RECOVERABLE_ERR
	.comm	_POST_ERR_RECOVERY_CODE_MASK,4,2 ; @POST_ERR_RECOVERY_CODE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Recoverable HW error code: 0x%x\n"

	.comm	_jiffies,8,3                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"Cannot recover within %lu sec from driver load\n"

	.comm	_MSEC_PER_SEC,4,2               ; @MSEC_PER_SEC
l_.str.2:                               ; @.str.2
	.asciz	"Cannot recover within %lu sec from last recovery\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot recover from a consecutive TPE error\n"

	.no_dead_strip	_be_err_is_recoverable
.subsections_via_symbols
