	.file	"extr_qla_nx2.c_qla8044_check_temp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Device temperature %d degrees C exceeds maximum allowed. Hardware has been shut down\n"
	.align 8
.LC1:
	.string	"Device temperature %d degrees C exceeds operating range. Immediate action needed.\n"
	.text
	.p2align 4
	.type	qla8044_check_temp, @function
qla8044_check_temp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR QLA8044_CRB_TEMP_STATE_INDEX[rip]
	call	qla8044_rd_direct@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	qla82xx_get_temp_state@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	qla82xx_get_temp_val@PLT
	cmp	QWORD PTR QLA82XX_TEMP_PANIC[rip], rbx
	je	.L7
	xor	r13d, r13d
	cmp	QWORD PTR QLA82XX_TEMP_WARN[rip], rbx
	je	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR ql_log_warn[rip]
	mov	rsi, r12
	mov	r8, rax
	lea	rcx, .LC1[rip]
	mov	edx, 45267
	call	ql_log@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR ql_log_warn[rip]
	mov	rsi, r12
	mov	r8, rax
	lea	rcx, .LC0[rip]
	mov	edx, 45266
	call	ql_log@PLT
	mov	r13d, DWORD PTR QLA_FUNCTION_FAILED[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qla8044_check_temp, .-qla8044_check_temp
	.comm	ql_log_warn,4,4
	.comm	QLA_SUCCESS,4,4
	.comm	QLA_FUNCTION_FAILED,4,4
	.comm	QLA82XX_TEMP_WARN,8,8
	.comm	QLA82XX_TEMP_PANIC,8,8
	.comm	QLA8044_CRB_TEMP_STATE_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_qla_nx2.c_qla8044_check_temp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Device temperature %d degrees C exceeds maximum all"
	.ascii	"owed. Hardware has been shut down\012\000"
	.align	2
.LC1:
	.ascii	"Device temperature %d degrees C exceeds operating r"
	.ascii	"ange. Immediate action needed.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla8044_check_temp, %function
qla8044_check_temp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L9
	sub	sp, sp, #8
	ldr	r1, [r3]
	mov	r6, r0
	bl	qla8044_rd_direct
	mov	r5, r0
	bl	qla82xx_get_temp_state
	mov	r4, r0
	mov	r0, r5
	bl	qla82xx_get_temp_val
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L7
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r3, r4
	movne	r0, #0
	beq	.L8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L9+12
	str	r0, [sp]
	mov	r1, r6
	ldr	r0, [r3]
	ldr	r2, .L9+16
	ldr	r3, .L9+20
	bl	ql_log
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L9+12
	str	r0, [sp]
	mov	r1, r6
	ldr	r0, [r3]
	ldr	r2, .L9+24
	ldr	r3, .L9+28
	bl	ql_log
	ldr	r3, .L9+32
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	QLA8044_CRB_TEMP_STATE_INDEX
	.word	QLA82XX_TEMP_PANIC
	.word	QLA82XX_TEMP_WARN
	.word	ql_log_warn
	.word	45267
	.word	.LC1
	.word	45266
	.word	.LC0
	.word	QLA_FUNCTION_FAILED
	.size	qla8044_check_temp, .-qla8044_check_temp
	.comm	ql_log_warn,4,4
	.comm	QLA_SUCCESS,4,4
	.comm	QLA_FUNCTION_FAILED,4,4
	.comm	QLA82XX_TEMP_WARN,4,4
	.comm	QLA82XX_TEMP_PANIC,4,4
	.comm	QLA8044_CRB_TEMP_STATE_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
