	.file	"extr_patch_prog.c_initDriver.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	initDriver, @function
initDriver:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR WriteWlanPin[rip]
	mov	r9d, DWORD PTR SpiResumeSpi[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, edi
	mov	r8d, DWORD PTR ReadWlanInterruptPin[rip]
	mov	ecx, DWORD PTR sendBootLoaderPatch[rip]
	mov	edx, DWORD PTR sendDriverPatch[rip]
	mov	esi, DWORD PTR sendWLFWPatch[rip]
	push	rax
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR SpiPauseSpi[rip]
	mov	edi, DWORD PTR CC3000_UsynchCallback[rip]
	push	rax
	.cfi_def_cfa_offset 32
	call	wlan_init@PLT
	movzx	edi, bx
	call	wlan_start@PLT
	mov	rdi, QWORD PTR aucCC3000_prefix[rip]
	call	wlan_smart_config_set_prefix@PLT
	xor	edx, edx
	xor	esi, esi
	xor	edi, edi
	call	wlan_ioctl_set_connection_policy@PLT
	mov	edi, 255
	call	wlan_ioctl_del_profile@PLT
	mov	edi, DWORD PTR HCI_EVNT_WLAN_KEEPALIVE[rip]
	or	edi, DWORD PTR HCI_EVNT_WLAN_UNSOL_INIT[rip]
	or	edi, DWORD PTR HCI_EVNT_WLAN_ASYNC_PING_REPORT[rip]
	call	wlan_set_event_mask@PLT
	mov	edi, 100
	call	systick_sleep@PLT
	pop	rax
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rdx
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	initDriver, .-initDriver
	.comm	sendWLFWPatch,4,4
	.comm	sendDriverPatch,4,4
	.comm	sendBootLoaderPatch,4,4
	.comm	aucCC3000_prefix,8,8
	.comm	WriteWlanPin,4,4
	.comm	SpiResumeSpi,4,4
	.comm	SpiPauseSpi,4,4
	.comm	ReadWlanInterruptPin,4,4
	.comm	HCI_EVNT_WLAN_UNSOL_INIT,4,4
	.comm	HCI_EVNT_WLAN_KEEPALIVE,4,4
	.comm	HCI_EVNT_WLAN_ASYNC_PING_REPORT,4,4
	.comm	CC3000_UsynchCallback,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_patch_prog.c_initDriver.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	initDriver, %function
initDriver:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r2, .L4
	ldr	r1, .L4+4
	ldr	ip, .L4+8
	ldr	r3, .L4+12
	ldr	r2, [r2]
	ldr	r1, [r1]
	sub	sp, sp, #16
	ldr	lr, [ip]
	ldr	ip, [r3]
	ldr	r0, .L4+16
	str	r2, [sp, #12]
	str	r1, [sp, #8]
	ldr	r3, .L4+20
	ldr	r2, .L4+24
	ldr	r1, .L4+28
	str	lr, [sp, #4]
	str	ip, [sp]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r0, [r0]
	bl	wlan_init
	mov	r0, r4
	bl	wlan_start
	ldr	r3, .L4+32
	ldr	r0, [r3]
	bl	wlan_smart_config_set_prefix
	mov	r2, #0
	mov	r1, r2
	mov	r0, r2
	bl	wlan_ioctl_set_connection_policy
	mov	r0, #255
	bl	wlan_ioctl_del_profile
	ldr	r3, .L4+36
	ldr	r2, .L4+40
	ldr	r1, .L4+44
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r1]
	orr	r3, r3, r2
	orr	r0, r3, r0
	bl	wlan_set_event_mask
	mov	r0, #100
	bl	systick_sleep
	mov	r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L5:
	.align	2
.L4:
	.word	WriteWlanPin
	.word	SpiPauseSpi
	.word	SpiResumeSpi
	.word	ReadWlanInterruptPin
	.word	CC3000_UsynchCallback
	.word	sendBootLoaderPatch
	.word	sendDriverPatch
	.word	sendWLFWPatch
	.word	aucCC3000_prefix
	.word	HCI_EVNT_WLAN_KEEPALIVE
	.word	HCI_EVNT_WLAN_UNSOL_INIT
	.word	HCI_EVNT_WLAN_ASYNC_PING_REPORT
	.size	initDriver, .-initDriver
	.comm	sendWLFWPatch,4,4
	.comm	sendDriverPatch,4,4
	.comm	sendBootLoaderPatch,4,4
	.comm	aucCC3000_prefix,4,4
	.comm	WriteWlanPin,4,4
	.comm	SpiResumeSpi,4,4
	.comm	SpiPauseSpi,4,4
	.comm	ReadWlanInterruptPin,4,4
	.comm	HCI_EVNT_WLAN_UNSOL_INIT,4,4
	.comm	HCI_EVNT_WLAN_KEEPALIVE,4,4
	.comm	HCI_EVNT_WLAN_ASYNC_PING_REPORT,4,4
	.comm	CC3000_UsynchCallback,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
