	.file	"extr_gpio-winbond.c_winbond_gpio_configure_port0_pins.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"GPIO1 pins were connected to something else (%.2x), fixing\n"
	.text
	.p2align 4
	.type	winbond_gpio_configure_port0_pins, @function
winbond_gpio_configure_port0_pins:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR WB_SIO_REG_GPIO1_MF[rip]
	call	winbond_sio_reg_read@PLT
	mov	ebx, eax
	and	eax, DWORD PTR WB_SIO_REG_G1MF_FS_MASK[rip]
	cmp	eax, DWORD PTR WB_SIO_REG_G1MF_FS_GPIO1[rip]
	je	.L1
	mov	esi, ebx
	lea	rdi, .LC0[rip]
	call	pr_warn@PLT
	mov	edx, DWORD PTR WB_SIO_REG_G1MF_FS_MASK[rip]
	mov	esi, DWORD PTR WB_SIO_REG_GPIO1_MF[rip]
	mov	rdi, rbp
	not	edx
	and	edx, ebx
	or	edx, DWORD PTR WB_SIO_REG_G1MF_FS_GPIO1[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	winbond_sio_reg_write@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	winbond_gpio_configure_port0_pins, .-winbond_gpio_configure_port0_pins
	.comm	WB_SIO_REG_GPIO1_MF,4,4
	.comm	WB_SIO_REG_G1MF_FS_MASK,4,4
	.comm	WB_SIO_REG_G1MF_FS_GPIO1,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_gpio-winbond.c_winbond_gpio_configure_port0_pins.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GPIO1 pins were connected to something else (%.2x),"
	.ascii	" fixing\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	winbond_gpio_configure_port0_pins, %function
winbond_gpio_configure_port0_pins:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L5
	mov	r5, r0
	ldr	r1, [r6]
	bl	winbond_sio_reg_read
	ldr	r8, .L5+4
	ldr	r7, .L5+8
	ldr	r3, [r8]
	ldr	r2, [r7]
	and	r3, r3, r0
	cmp	r3, r2
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r4, r0
	mov	r1, r0
	ldr	r0, .L5+12
	bl	pr_warn
	ldr	r1, [r8]
	ldr	r2, [r7]
	bic	r4, r4, r1
	mov	r0, r5
	ldr	r1, [r6]
	orr	r2, r4, r2
	pop	{r4, r5, r6, r7, r8, lr}
	b	winbond_sio_reg_write
.L6:
	.align	2
.L5:
	.word	WB_SIO_REG_GPIO1_MF
	.word	WB_SIO_REG_G1MF_FS_MASK
	.word	WB_SIO_REG_G1MF_FS_GPIO1
	.word	.LC0
	.size	winbond_gpio_configure_port0_pins, .-winbond_gpio_configure_port0_pins
	.comm	WB_SIO_REG_GPIO1_MF,4,4
	.comm	WB_SIO_REG_G1MF_FS_MASK,4,4
	.comm	WB_SIO_REG_G1MF_FS_GPIO1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
