	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_check_temp              ## -- Begin function qlcnic_check_temp
	.p2align	4, 0x90
_qlcnic_check_temp:                     ## @qlcnic_check_temp
	.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, %r13
	movq	8(%rdi), %r14
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rdi
	movq	_QLC_83XX_ASIC_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%r13, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_QLCNIC_ASIC_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_QLC_SHARED_REG_RD32
	movq	%rax, %rbx
LBB0_5:
	movq	%rbx, %rdi
	callq	_qlcnic_get_temp_state
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_qlcnic_get_temp_val
	movq	_QLCNIC_TEMP_PANIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_dev_err
	movl	$1, %r12d
	jmp	LBB0_12
LBB0_7:
	movq	_QLCNIC_TEMP_WARN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	cmpq	%rdx, %r15
	jne	LBB0_10
## %bb.8:
	movq	_QLCNIC_TEMP_NORMAL@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_dev_err
	jmp	LBB0_12
LBB0_10:
	xorl	%r12d, %r12d
	cmpq	%rdx, %rcx
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_dev_info
LBB0_12:
	movq	(%r13), %rax
	movq	%r15, (%rax)
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_ASIC_TEMP,4,2         ## @QLC_83XX_ASIC_TEMP
	.comm	_QLCNIC_ASIC_TEMP,4,2           ## @QLCNIC_ASIC_TEMP
	.comm	_QLCNIC_TEMP_PANIC,8,3          ## @QLCNIC_TEMP_PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device temperature %d degrees C exceeds maximum allowed. Hardware has been shut down.\n"

	.comm	_QLCNIC_TEMP_WARN,8,3           ## @QLCNIC_TEMP_WARN
	.comm	_QLCNIC_TEMP_NORMAL,8,3         ## @QLCNIC_TEMP_NORMAL
L_.str.1:                               ## @.str.1
	.asciz	"Device temperature %d degrees C exceeds operating range. Immediate action needed.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Device temperature is now %d degrees C in normal range.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_check_temp              ; -- Begin function qlcnic_check_temp
	.p2align	2
_qlcnic_check_temp:                     ; @qlcnic_check_temp
	.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
	ldr	x20, [x0, #8]
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _QLC_83XX_ASIC_TEMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_ASIC_TEMP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_QLCRDX
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	mov	x22, #0
LBB0_3:
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _QLCNIC_ASIC_TEMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_ASIC_TEMP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_QLC_SHARED_REG_RD32
	mov	x22, x0
LBB0_5:
	mov	x0, x22
	bl	_qlcnic_get_temp_state
	mov	x21, x0
	mov	x0, x22
	bl	_qlcnic_get_temp_val
	mov	x2, x0
Lloh6:
	adrp	x8, _QLCNIC_TEMP_PANIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_TEMP_PANIC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_7
; %bb.6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	w0, #1
	b	LBB0_13
LBB0_7:
Lloh11:
	adrp	x8, _QLCNIC_TEMP_WARN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QLCNIC_TEMP_WARN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x21, x9
	b.ne	LBB0_10
; %bb.8:
Lloh14:
	adrp	x9, _QLCNIC_TEMP_NORMAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QLCNIC_TEMP_NORMAL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_12
LBB0_10:
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldr	x8, [x19]
	str	x21, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_ASIC_TEMP,4,2         ; @QLC_83XX_ASIC_TEMP
	.comm	_QLCNIC_ASIC_TEMP,4,2           ; @QLCNIC_ASIC_TEMP
	.comm	_QLCNIC_TEMP_PANIC,8,3          ; @QLCNIC_TEMP_PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device temperature %d degrees C exceeds maximum allowed. Hardware has been shut down.\n"

	.comm	_QLCNIC_TEMP_WARN,8,3           ; @QLCNIC_TEMP_WARN
	.comm	_QLCNIC_TEMP_NORMAL,8,3         ; @QLCNIC_TEMP_NORMAL
l_.str.1:                               ; @.str.1
	.asciz	"Device temperature %d degrees C exceeds operating range. Immediate action needed.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Device temperature is now %d degrees C in normal range.\n"

.subsections_via_symbols
