	.file	"extr_netwinder-hw.c_wb977_init_gpio.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wb977_init_gpio, @function
wb977_init_gpio:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR GPIO_DONE[rip]
	xor	ebp, ebp
	mov	edi, -1
	mov	DWORD PTR current_gpio_io[rip], -1
	or	esi, DWORD PTR GPIO_WDTIMER[rip]
	call	__gpio_modify_io@PLT
	mov	edi, 7
	call	wb977_device_select@PLT
	mov	esi, DWORD PTR GP1_IO_BASE[rip]
	mov	edi, 96
	call	wb977_ww@PLT
	xor	esi, esi
	mov	edi, 98
	call	wb977_ww@PLT
	xor	esi, esi
	mov	edi, 100
	call	wb977_ww@PLT
	mov	esi, 10
	mov	edi, 112
	call	wb977_wb@PLT
	mov	esi, 2
	mov	edi, 113
	call	wb977_wb@PLT
	mov	esi, 25
	mov	edi, 224
	call	wb977_wb@PLT
	xor	eax, eax
	call	wb977_device_enable@PLT
	mov	edi, 8
	call	wb977_device_select@PLT
	mov	esi, DWORD PTR GP2_IO_BASE[rip]
	mov	edi, 96
	call	wb977_ww@PLT
	xor	esi, esi
	mov	edi, 242
	call	wb977_wb@PLT
	xor	esi, esi
	mov	edi, 243
	call	wb977_wb@PLT
	xor	esi, esi
	mov	edi, 244
	call	wb977_wb@PLT
	xor	eax, eax
	call	wb977_device_enable@PLT
	mov	rsi, rbp
	lea	rdi, nw_gpio_lock[rip]
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR GPIO_RED_LED[rip]
	mov	edi, -1
	or	esi, DWORD PTR GPIO_FAN[rip]
	call	nw_gpio_modify_op@PLT
	mov	rsi, rbp
	lea	rdi, nw_gpio_lock[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	wb977_init_gpio, .-wb977_init_gpio
	.comm	nw_gpio_lock,4,4
	.comm	current_gpio_io,4,4
	.comm	GPIO_WDTIMER,4,4
	.comm	GPIO_RED_LED,4,4
	.comm	GPIO_FAN,4,4
	.comm	GPIO_DONE,4,4
	.comm	GP2_IO_BASE,4,4
	.comm	GP1_IO_BASE,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_netwinder-hw.c_wb977_init_gpio.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wb977_init_gpio, %function
wb977_init_gpio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mvn	r4, #0
	mov	r6, #0
	ldr	r2, .L4
	ldr	r3, .L4+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L4+8
	orr	r1, r1, r2
	mov	r0, r4
	str	r4, [r3]
	bl	__gpio_modify_io
	mov	r0, #7
	bl	wb977_device_select
	ldr	r3, .L4+12
	mov	r0, #96
	ldr	r1, [r3]
	bl	wb977_ww
	mov	r1, r6
	mov	r0, #98
	bl	wb977_ww
	mov	r1, r6
	mov	r0, #100
	bl	wb977_ww
	mov	r1, #10
	mov	r0, #112
	bl	wb977_wb
	mov	r1, #2
	mov	r0, #113
	bl	wb977_wb
	mov	r1, #25
	mov	r0, #224
	bl	wb977_wb
	bl	wb977_device_enable
	mov	r0, #8
	bl	wb977_device_select
	ldr	r3, .L4+16
	mov	r0, #96
	ldr	r1, [r3]
	bl	wb977_ww
	mov	r1, r6
	mov	r0, #242
	bl	wb977_wb
	ldr	r5, .L4+20
	mov	r1, r6
	mov	r0, #243
	bl	wb977_wb
	mov	r1, r6
	mov	r0, #244
	bl	wb977_wb
	bl	wb977_device_enable
	mov	r1, r6
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r2, .L4+24
	ldr	r3, .L4+28
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r1, r1, r3
	bl	nw_gpio_modify_op
	mov	r1, r6
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	spin_unlock_irqrestore
.L5:
	.align	2
.L4:
	.word	GPIO_DONE
	.word	GPIO_WDTIMER
	.word	current_gpio_io
	.word	GP1_IO_BASE
	.word	GP2_IO_BASE
	.word	nw_gpio_lock
	.word	GPIO_RED_LED
	.word	GPIO_FAN
	.size	wb977_init_gpio, .-wb977_init_gpio
	.comm	nw_gpio_lock,4,4
	.comm	current_gpio_io,4,4
	.comm	GPIO_WDTIMER,4,4
	.comm	GPIO_RED_LED,4,4
	.comm	GPIO_FAN,4,4
	.comm	GPIO_DONE,4,4
	.comm	GP2_IO_BASE,4,4
	.comm	GP1_IO_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
