	.file	"extr_wdt_pci.c_wdtpci_get_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wdtpci_get_status, @function
wdtpci_get_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rsi, r12
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	rdi, wdtpci_lock[rip]
	call	spin_lock_irqsave@PLT
	mov	edi, DWORD PTR WDT_SR[rip]
	call	inb@PLT
	mov	rsi, r12
	lea	rdi, wdtpci_lock[rip]
	mov	ebp, eax
	call	spin_unlock_irqrestore@PLT
	mov	DWORD PTR [rbx], 0
	test	BYTE PTR WDC_SR_ISOI0[rip], bpl
	je	.L2
	mov	eax, DWORD PTR WDIOF_EXTERN1[rip]
	mov	DWORD PTR [rbx], eax
.L2:
	test	BYTE PTR WDC_SR_ISII1[rip], bpl
	je	.L3
	mov	eax, DWORD PTR WDIOF_EXTERN2[rip]
	or	DWORD PTR [rbx], eax
.L3:
	cmp	DWORD PTR type[rip], 501
	je	.L18
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	test	BYTE PTR WDC_SR_TGOOD[rip], bpl
	jne	.L6
	mov	eax, DWORD PTR WDIOF_OVERHEAT[rip]
	or	DWORD PTR [rbx], eax
.L6:
	test	BYTE PTR WDC_SR_PSUOVER[rip], bpl
	jne	.L7
	mov	eax, DWORD PTR WDIOF_POWEROVER[rip]
	or	DWORD PTR [rbx], eax
.L7:
	test	BYTE PTR WDC_SR_PSUUNDR[rip], bpl
	jne	.L8
	mov	eax, DWORD PTR WDIOF_POWERUNDER[rip]
	or	DWORD PTR [rbx], eax
.L8:
	cmp	QWORD PTR tachometer[rip], 0
	je	.L5
	test	BYTE PTR WDC_SR_FANGOOD[rip], bpl
	jne	.L5
	mov	eax, DWORD PTR WDIOF_FANFAULT[rip]
	or	DWORD PTR [rbx], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	wdtpci_get_status, .-wdtpci_get_status
	.comm	wdtpci_lock,4,4
	.comm	type,4,4
	.comm	tachometer,8,8
	.comm	WDT_SR,4,4
	.comm	WDIOF_POWERUNDER,4,4
	.comm	WDIOF_POWEROVER,4,4
	.comm	WDIOF_OVERHEAT,4,4
	.comm	WDIOF_FANFAULT,4,4
	.comm	WDIOF_EXTERN2,4,4
	.comm	WDIOF_EXTERN1,4,4
	.comm	WDC_SR_TGOOD,1,1
	.comm	WDC_SR_PSUUNDR,1,1
	.comm	WDC_SR_PSUOVER,1,1
	.comm	WDC_SR_ISOI0,1,1
	.comm	WDC_SR_ISII1,1,1
	.comm	WDC_SR_FANGOOD,1,1
	.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_wdt_pci.c_wdtpci_get_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wdtpci_get_status, %function
wdtpci_get_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, #0
	mov	r4, r0
	mov	r1, r6
	ldr	r0, .L22
	bl	spin_lock_irqsave
	ldr	r3, .L22+4
	ldr	r0, [r3]
	bl	inb
	mov	r5, r0
	mov	r1, r6
	ldr	r0, .L22
	bl	spin_unlock_irqrestore
	mov	r2, r6
	ldr	r3, .L22+8
	str	r6, [r4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r5, r3
	ldrne	r3, .L22+12
	ldrne	r3, [r3]
	strne	r3, [r4]
	ldr	r3, .L22+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r5, r3
	ldrne	r2, .L22+20
	ldrne	r3, [r4]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, .L22+24
	strne	r3, [r4]
	ldr	r2, [r2]
	ldr	r3, .L22+28
	cmp	r2, r3
	beq	.L21
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L21:
	ldr	r3, .L22+32
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r5, r3
	ldreq	r2, .L22+36
	ldreq	r3, [r4]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4]
	ldr	r3, .L22+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r5, r3
	ldreq	r2, .L22+44
	ldreq	r3, [r4]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4]
	ldr	r3, .L22+48
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r5, r3
	ldreq	r2, .L22+52
	ldreq	r3, [r4]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4]
	ldr	r3, .L22+56
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L22+60
	mov	r0, #0
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r5, r3
	ldreq	r2, .L22+64
	ldreq	r3, [r4]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4]
	pop	{r4, r5, r6, pc}
.L23:
	.align	2
.L22:
	.word	wdtpci_lock
	.word	WDT_SR
	.word	WDC_SR_ISOI0
	.word	WDIOF_EXTERN1
	.word	WDC_SR_ISII1
	.word	WDIOF_EXTERN2
	.word	type
	.word	501
	.word	WDC_SR_TGOOD
	.word	WDIOF_OVERHEAT
	.word	WDC_SR_PSUOVER
	.word	WDIOF_POWEROVER
	.word	WDC_SR_PSUUNDR
	.word	WDIOF_POWERUNDER
	.word	tachometer
	.word	WDC_SR_FANGOOD
	.word	WDIOF_FANFAULT
	.size	wdtpci_get_status, .-wdtpci_get_status
	.comm	wdtpci_lock,4,4
	.comm	type,4,4
	.comm	tachometer,4,4
	.comm	WDT_SR,4,4
	.comm	WDIOF_POWERUNDER,4,4
	.comm	WDIOF_POWEROVER,4,4
	.comm	WDIOF_OVERHEAT,4,4
	.comm	WDIOF_FANFAULT,4,4
	.comm	WDIOF_EXTERN2,4,4
	.comm	WDIOF_EXTERN1,4,4
	.comm	WDC_SR_TGOOD,1,1
	.comm	WDC_SR_PSUUNDR,1,1
	.comm	WDC_SR_PSUOVER,1,1
	.comm	WDC_SR_ISOI0,1,1
	.comm	WDC_SR_ISII1,1,1
	.comm	WDC_SR_FANGOOD,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
