	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_fatal_sensors
_check_fatal_sensors:                   ## @check_fatal_sensors
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_sensor_pci_not_working
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MLX5_SENSOR_PCI_COMM_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movl	(%rbx), %edi
	callq	_pci_channel_offline
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MLX5_SENSOR_PCI_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	%rbx, %rdi
	callq	_mlx5_get_nic_state
	movq	_MLX5_NIC_IFC_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_MLX5_SENSOR_NIC_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	%rbx, %rdi
	callq	_mlx5_get_nic_state
	movq	_MLX5_NIC_IFC_SW_RESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_MLX5_SENSOR_NIC_SW_RESET@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	%rbx, %rdi
	callq	_sensor_fw_synd_rfr
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:
	movq	_MLX5_SENSOR_NO_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_MLX5_SENSOR_FW_SYND_RFR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_SENSOR_PCI_COMM_ERR,4,2   ## @MLX5_SENSOR_PCI_COMM_ERR
	.comm	_MLX5_SENSOR_PCI_ERR,4,2        ## @MLX5_SENSOR_PCI_ERR
	.comm	_MLX5_NIC_IFC_DISABLED,8,3      ## @MLX5_NIC_IFC_DISABLED
	.comm	_MLX5_SENSOR_NIC_DISABLED,4,2   ## @MLX5_SENSOR_NIC_DISABLED
	.comm	_MLX5_NIC_IFC_SW_RESET,8,3      ## @MLX5_NIC_IFC_SW_RESET
	.comm	_MLX5_SENSOR_NIC_SW_RESET,4,2   ## @MLX5_SENSOR_NIC_SW_RESET
	.comm	_MLX5_SENSOR_FW_SYND_RFR,4,2    ## @MLX5_SENSOR_FW_SYND_RFR
	.comm	_MLX5_SENSOR_NO_ERR,4,2         ## @MLX5_SENSOR_NO_ERR
	.no_dead_strip	_check_fatal_sensors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_fatal_sensors
_check_fatal_sensors:                   ; @check_fatal_sensors
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_sensor_pci_not_working
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MLX5_SENSOR_PCI_COMM_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_SENSOR_PCI_COMM_ERR@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	ldr	w0, [x19]
	bl	_pci_channel_offline
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _MLX5_SENSOR_PCI_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX5_SENSOR_PCI_ERR@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_mlx5_get_nic_state
Lloh4:
	adrp	x8, _MLX5_NIC_IFC_DISABLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX5_NIC_IFC_DISABLED@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _MLX5_SENSOR_NIC_DISABLED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLX5_SENSOR_NIC_DISABLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_mlx5_get_nic_state
Lloh9:
	adrp	x8, _MLX5_NIC_IFC_SW_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_NIC_IFC_SW_RESET@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _MLX5_SENSOR_NIC_SW_RESET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX5_SENSOR_NIC_SW_RESET@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_sensor_fw_synd_rfr
Lloh14:
	adrp	x8, _MLX5_SENSOR_FW_SYND_RFR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLX5_SENSOR_FW_SYND_RFR@GOTPAGEOFF]
Lloh16:
	adrp	x9, _MLX5_SENSOR_NO_ERR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MLX5_SENSOR_NO_ERR@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_SENSOR_PCI_COMM_ERR,4,2   ; @MLX5_SENSOR_PCI_COMM_ERR
	.comm	_MLX5_SENSOR_PCI_ERR,4,2        ; @MLX5_SENSOR_PCI_ERR
	.comm	_MLX5_NIC_IFC_DISABLED,8,3      ; @MLX5_NIC_IFC_DISABLED
	.comm	_MLX5_SENSOR_NIC_DISABLED,4,2   ; @MLX5_SENSOR_NIC_DISABLED
	.comm	_MLX5_NIC_IFC_SW_RESET,8,3      ; @MLX5_NIC_IFC_SW_RESET
	.comm	_MLX5_SENSOR_NIC_SW_RESET,4,2   ; @MLX5_SENSOR_NIC_SW_RESET
	.comm	_MLX5_SENSOR_FW_SYND_RFR,4,2    ; @MLX5_SENSOR_FW_SYND_RFR
	.comm	_MLX5_SENSOR_NO_ERR,4,2         ; @MLX5_SENSOR_NO_ERR
	.no_dead_strip	_check_fatal_sensors
.subsections_via_symbols
