	.file	"extr_w83627hf.c_w83627thf_read_gpio5.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Can not read VID data: Failed to enable SuperIO access\n"
	.align 8
.LC1:
	.string	"GPIO5 disabled, no VID function\n"
	.align 8
.LC2:
	.string	"GPIO5 not configured for VID function\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"Reading VID from GPIO5\n"
	.text
	.p2align 4
	.type	w83627thf_read_gpio5, @function
w83627thf_read_gpio5:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	dev_get_platdata@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	superio_enter@PLT
	test	rax, rax
	jne	.L9
	mov	esi, DWORD PTR W83627HF_LD_GPIO5[rip]
	mov	rdi, rbp
	call	superio_select@PLT
	mov	esi, DWORD PTR W83627THF_GPIO5_EN[rip]
	mov	rdi, rbp
	call	superio_inb@PLT
	test	al, 8
	je	.L10
	mov	esi, DWORD PTR W83627THF_GPIO5_IOSR[rip]
	mov	rdi, rbp
	call	superio_inb@PLT
	mov	ebx, eax
	and	eax, 31
	cmp	eax, 31
	jne	.L11
	mov	rdi, r12
	lea	rsi, .LC3[rip]
	call	dev_info@PLT
	mov	esi, DWORD PTR W83627THF_GPIO5_DR[rip]
	mov	rdi, rbp
	call	superio_inb@PLT
	and	ebx, eax
	mov	r12d, ebx
	and	r12d, 63
.L5:
	mov	rdi, rbp
	call	superio_exit@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC2[rip]
	mov	r12d, 255
	call	dev_dbg@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	mov	r12d, 255
	call	dev_dbg@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	mov	r12d, 255
	call	dev_warn@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	w83627thf_read_gpio5, .-w83627thf_read_gpio5
	.comm	W83627THF_GPIO5_IOSR,4,4
	.comm	W83627THF_GPIO5_EN,4,4
	.comm	W83627THF_GPIO5_DR,4,4
	.comm	W83627HF_LD_GPIO5,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_w83627hf.c_w83627thf_read_gpio5.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Can not read VID data: Failed to enable SuperIO acc"
	.ascii	"ess\012\000"
	.align	2
.LC1:
	.ascii	"GPIO5 disabled, no VID function\012\000"
	.align	2
.LC2:
	.ascii	"GPIO5 not configured for VID function\012\000"
	.align	2
.LC3:
	.ascii	"Reading VID from GPIO5\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w83627thf_read_gpio5, %function
w83627thf_read_gpio5:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	bl	dev_get_platdata
	mov	r4, r0
	bl	superio_enter
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L12
	mov	r0, r4
	ldr	r1, [r3]
	bl	superio_select
	ldr	r3, .L12+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	superio_inb
	tst	r0, #8
	beq	.L10
	ldr	r3, .L12+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	superio_inb
	and	r3, r0, #31
	cmp	r3, #31
	mov	r5, r0
	mov	r0, r6
	bne	.L11
	ldr	r1, .L12+12
	bl	dev_info
	ldr	r3, .L12+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	superio_inb
	and	r5, r5, r0
	and	r5, r5, #63
.L5:
	mov	r0, r4
	bl	superio_exit
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r1, .L12+20
	bl	dev_dbg
	mov	r5, #255
	b	.L5
.L10:
	mov	r0, r6
	ldr	r1, .L12+24
	bl	dev_dbg
	mov	r5, #255
	b	.L5
.L9:
	mov	r5, #255
	mov	r0, r6
	ldr	r1, .L12+28
	bl	dev_warn
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	W83627HF_LD_GPIO5
	.word	W83627THF_GPIO5_EN
	.word	W83627THF_GPIO5_IOSR
	.word	.LC3
	.word	W83627THF_GPIO5_DR
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	w83627thf_read_gpio5, .-w83627thf_read_gpio5
	.comm	W83627THF_GPIO5_IOSR,4,4
	.comm	W83627THF_GPIO5_EN,4,4
	.comm	W83627THF_GPIO5_DR,4,4
	.comm	W83627HF_LD_GPIO5,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
