	.file	"extr_ipw2200.c_ipw_init_nic.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	">>\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"FAILED wait for clock stablization\n"
	.text
	.p2align 4
	.type	ipw_init_nic, @function
ipw_init_nic:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	call	IPW_DEBUG_TRACE@PLT
	mov	edx, DWORD PTR IPW_GP_CNTRL_BIT_INIT_DONE[rip]
	mov	esi, DWORD PTR IPW_GP_CNTRL_RW[rip]
	mov	rdi, rbp
	call	ipw_set_bit@PLT
	mov	edx, DWORD PTR IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER[rip]
	mov	esi, DWORD PTR IPW_READ_INT_REGISTER[rip]
	mov	rdi, rbp
	call	ipw_write32@PLT
	mov	edx, DWORD PTR IPW_GP_CNTRL_BIT_CLOCK_READY[rip]
	mov	ecx, 250
	mov	rdi, rbp
	mov	esi, DWORD PTR IPW_GP_CNTRL_RW[rip]
	call	ipw_poll_bit@PLT
	test	eax, eax
	js	.L5
.L2:
	mov	edx, DWORD PTR IPW_RESET_REG_SW_RESET[rip]
	mov	esi, DWORD PTR IPW_RESET_REG[rip]
	mov	rdi, rbp
	call	ipw_set_bit@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	edx, DWORD PTR IPW_GP_CNTRL_BIT_INIT_DONE[rip]
	mov	esi, DWORD PTR IPW_GP_CNTRL_RW[rip]
	mov	rdi, rbp
	call	ipw_set_bit@PLT
	lea	rdi, .LC0[rip]
	call	IPW_DEBUG_TRACE@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	IPW_DEBUG_INFO@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ipw_init_nic, .-ipw_init_nic
	.comm	IPW_RESET_REG_SW_RESET,4,4
	.comm	IPW_RESET_REG,4,4
	.comm	IPW_READ_INT_REGISTER,4,4
	.comm	IPW_GP_CNTRL_RW,4,4
	.comm	IPW_GP_CNTRL_BIT_INIT_DONE,4,4
	.comm	IPW_GP_CNTRL_BIT_CLOCK_READY,4,4
	.comm	IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER,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_ipw2200.c_ipw_init_nic.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	">>\012\000"
	.align	2
.LC1:
	.ascii	"FAILED wait for clock stablization\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipw_init_nic, %function
ipw_init_nic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, .L6
	ldr	r6, .L6+4
	ldr	r0, .L6+8
	bl	IPW_DEBUG_TRACE
	ldr	r2, [r6]
	ldr	r1, [r5]
	mov	r0, r4
	bl	ipw_set_bit
	ldr	r3, .L6+12
	ldr	r2, .L6+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	ipw_write32
	ldr	r3, .L6+20
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, [r5]
	mov	r3, #250
	bl	ipw_poll_bit
	cmp	r0, #0
	blt	.L5
.L2:
	ldr	r3, .L6+24
	ldr	r2, .L6+28
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	ipw_set_bit
	mov	r0, #10
	bl	udelay
	ldr	r2, [r6]
	ldr	r1, [r5]
	mov	r0, r4
	bl	ipw_set_bit
	ldr	r0, .L6+8
	bl	IPW_DEBUG_TRACE
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, .L6+32
	bl	IPW_DEBUG_INFO
	b	.L2
.L7:
	.align	2
.L6:
	.word	IPW_GP_CNTRL_RW
	.word	IPW_GP_CNTRL_BIT_INIT_DONE
	.word	.LC0
	.word	IPW_READ_INT_REGISTER
	.word	IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER
	.word	IPW_GP_CNTRL_BIT_CLOCK_READY
	.word	IPW_RESET_REG
	.word	IPW_RESET_REG_SW_RESET
	.word	.LC1
	.size	ipw_init_nic, .-ipw_init_nic
	.comm	IPW_RESET_REG_SW_RESET,4,4
	.comm	IPW_RESET_REG,4,4
	.comm	IPW_READ_INT_REGISTER,4,4
	.comm	IPW_GP_CNTRL_RW,4,4
	.comm	IPW_GP_CNTRL_BIT_INIT_DONE,4,4
	.comm	IPW_GP_CNTRL_BIT_CLOCK_READY,4,4
	.comm	IPW_BIT_INT_HOST_SRAM_READ_INT_REGISTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
