	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_health_try_recover
_mlx5_health_try_recover:               ## @mlx5_health_try_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_mlx5_core_warn
	movq	%r15, %rdi
	callq	_mlx5_handle_bad_state
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	movq	_MLX5_RECOVERY_WAIT_MSECS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_sensor_pci_not_working
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	addq	%r14, %rbx
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$100, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_sensor_pci_not_working
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5_core_err
	movq	%r15, %rdi
	callq	_mlx5_recover_device
	movq	_MLX5_INTERFACE_STATE_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	leaq	L_.str.3(%rip), %r14
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_check_fatal_sensors
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlx5_core_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handling bad device here\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MLX5_RECOVERY_WAIT_MSECS,4,2   ## @MLX5_RECOVERY_WAIT_MSECS
L_.str.1:                               ## @.str.1
	.asciz	"health recovery flow aborted, PCI reads still not working\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"starting health recovery flow\n"

	.comm	_MLX5_INTERFACE_STATE_UP,4,2    ## @MLX5_INTERFACE_STATE_UP
L_.str.3:                               ## @.str.3
	.asciz	"health recovery failed\n"

	.no_dead_strip	_mlx5_health_try_recover
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_health_try_recover
_mlx5_health_try_recover:               ; @mlx5_health_try_recover
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mlx5_core_warn
	mov	x0, x19
	bl	_mlx5_handle_bad_state
Lloh2:
	adrp	x22, _jiffies@GOTPAGE
Lloh3:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x21, [x22]
Lloh4:
	adrp	x8, _MLX5_RECOVERY_WAIT_MSECS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX5_RECOVERY_WAIT_MSECS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x20, x0
	mov	x0, x19
	bl	_sensor_pci_not_working
	cbz	x0, LBB0_4
; %bb.1:
	add	x21, x20, x21
Lloh7:
	adrp	x20, l_.str.1@PAGE
Lloh8:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	mov	x1, x21
	bl	_time_after
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	bl	_sensor_pci_not_working
	cbnz	x0, LBB0_2
LBB0_4:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	mov	x0, x19
	bl	_mlx5_recover_device
Lloh11:
	adrp	x8, _MLX5_INTERFACE_STATE_UP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX5_INTERFACE_STATE_UP@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_check_fatal_sensors
	cbz	x0, LBB0_8
LBB0_6:
Lloh14:
	adrp	x20, l_.str.3@PAGE
Lloh15:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_core_err
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handling bad device here\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MLX5_RECOVERY_WAIT_MSECS,4,2   ; @MLX5_RECOVERY_WAIT_MSECS
l_.str.1:                               ; @.str.1
	.asciz	"health recovery flow aborted, PCI reads still not working\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"starting health recovery flow\n"

	.comm	_MLX5_INTERFACE_STATE_UP,4,2    ; @MLX5_INTERFACE_STATE_UP
l_.str.3:                               ; @.str.3
	.asciz	"health recovery failed\n"

	.no_dead_strip	_mlx5_health_try_recover
.subsections_via_symbols
