	.file	"extr_3945-mac.c_il3945_mac_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enter\n"
.LC1:
	.string	"Could not read microcode: %d\n"
.LC2:
	.string	"Start UP work.\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Wait for START_ALIVE timeout after %dms.\n"
	.section	.rodata.str1.1
.LC4:
	.string	"leave\n"
.LC5:
	.string	"leave - failed\n"
	.text
	.p2align 4
	.type	il3945_mac_start, @function
il3945_mac_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	lea	rbp, 16[rbx]
	mov	rdi, rbp
	call	mutex_lock@PLT
	lea	rdi, .LC0[rip]
	call	D_MAC80211@PLT
	mov	eax, DWORD PTR 20[rbx]
	test	eax, eax
	jne	.L2
	mov	rdi, rbx
	call	il3945_read_ucode@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
.L2:
	mov	rdi, rbx
	call	__il3945_up@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	mutex_unlock@PLT
	test	r12d, r12d
	je	.L12
.L3:
	mov	DWORD PTR [rbx], 0
	lea	rdi, .LC5[rip]
	call	D_MAC80211@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	lea	rbp, 8[rbx]
	call	D_INFO@PLT
	mov	edi, DWORD PTR S_READY[rip]
	mov	r13d, DWORD PTR UCODE_READY_TIMEOUT[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, r13d
	mov	esi, eax
	call	wait_event_timeout@PLT
	test	eax, eax
	jne	.L4
	mov	edi, DWORD PTR S_READY[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	eax, eax
	je	.L13
.L4:
	lea	rdi, 4[rbx]
	call	cancel_delayed_work@PLT
	mov	DWORD PTR [rbx], 1
	lea	rdi, .LC4[rip]
	call	D_MAC80211@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	IL_ERR@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR UCODE_READY_TIMEOUT[rip]
	call	jiffies_to_msecs@PLT
	lea	rdi, .LC3[rip]
	mov	esi, eax
	call	IL_ERR@PLT
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	neg	r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	il3945_mac_start, .-il3945_mac_start
	.comm	UCODE_READY_TIMEOUT,4,4
	.comm	S_READY,4,4
	.comm	ETIMEDOUT,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_3945-mac.c_il3945_mac_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enter\012\000"
	.align	2
.LC1:
	.ascii	"Could not read microcode: %d\012\000"
	.align	2
.LC2:
	.ascii	"Start UP work.\012\000"
	.align	2
.LC3:
	.ascii	"Wait for START_ALIVE timeout after %dms.\012\000"
	.align	2
.LC4:
	.ascii	"leave\012\000"
	.align	2
.LC5:
	.ascii	"leave - failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	il3945_mac_start, %function
il3945_mac_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [r0]
	add	r5, r6, #16
	mov	r0, r5
	bl	mutex_lock
	ldr	r0, .L14
	bl	D_MAC80211
	ldr	r3, [r6, #20]
	cmp	r3, #0
	bne	.L2
	mov	r0, r6
	bl	il3945_read_ucode
	subs	r4, r0, #0
	bne	.L11
.L2:
	mov	r0, r6
	bl	__il3945_up
	mov	r4, r0
	mov	r0, r5
	bl	mutex_unlock
	cmp	r4, #0
	beq	.L12
.L3:
	mov	r3, #0
	ldr	r0, .L14+4
	str	r3, [r6]
	bl	D_MAC80211
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r5, .L14+8
	ldr	r0, .L14+12
	add	r7, r6, #8
	bl	D_INFO
	mov	r1, r7
	ldr	r0, [r5]
	ldr	r9, [r6, #12]
	bl	test_bit
	ldr	r8, .L14+16
	mov	r1, r0
	ldr	r2, [r8]
	mov	r0, r9
	bl	wait_event_timeout
	cmp	r0, #0
	bne	.L4
	mov	r1, r7
	ldr	r0, [r5]
	bl	test_bit
	cmp	r0, #0
	beq	.L13
.L4:
	add	r0, r6, #4
	bl	cancel_delayed_work
	mov	r3, #1
	ldr	r0, .L14+20
	str	r3, [r6]
	bl	D_MAC80211
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r1, r4
	ldr	r0, .L14+24
	bl	IL_ERR
	mov	r0, r5
	bl	mutex_unlock
	b	.L3
.L13:
	ldr	r0, [r8]
	bl	jiffies_to_msecs
	mov	r1, r0
	ldr	r0, .L14+28
	bl	IL_ERR
	ldr	r3, .L14+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L3
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	.LC5
	.word	S_READY
	.word	.LC2
	.word	UCODE_READY_TIMEOUT
	.word	.LC4
	.word	.LC1
	.word	.LC3
	.word	ETIMEDOUT
	.size	il3945_mac_start, .-il3945_mac_start
	.comm	UCODE_READY_TIMEOUT,4,4
	.comm	S_READY,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
