	.file	"extr_ipw2200.c_ipw_deinit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Aborting scan during shutdown.\n"
	.align 8
.LC1:
	.string	"Disassociating during shutdown.\n"
	.align 8
.LC2:
	.string	"Still associated or scanning...\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"Took %dms to de-init\n"
	.text
	.p2align 4
	.type	ipw_deinit, @function
ipw_deinit:
.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	eax, DWORD PTR [rdi]
	test	DWORD PTR STATUS_SCANNING[rip], eax
	jne	.L20
	test	DWORD PTR STATUS_ASSOCIATED[rip], eax
	jne	.L21
.L3:
	mov	rdi, rbp
	mov	ebx, 1000
	call	ipw_led_shutdown@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, 10
	call	udelay@PLT
	sub	ebx, 1
	je	.L5
.L4:
	mov	eax, DWORD PTR STATUS_DISASSOCIATING[rip]
	or	eax, DWORD PTR STATUS_ASSOCIATED[rip]
	or	eax, DWORD PTR STATUS_SCANNING[rip]
	test	DWORD PTR 0[rbp], eax
	jne	.L6
.L7:
	mov	esi, 1000
	lea	rdi, .LC3[rip]
	xor	eax, eax
	sub	esi, ebx
	call	IPW_DEBUG_INFO@PLT
.L8:
	mov	rdi, rbp
	xor	esi, esi
	call	ipw_send_card_disable@PLT
	mov	eax, DWORD PTR STATUS_INIT[rip]
	not	eax
	and	DWORD PTR 0[rbp], eax
	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
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	ebx, DWORD PTR STATUS_DISASSOCIATING[rip]
	or	ebx, DWORD PTR STATUS_ASSOCIATED[rip]
	or	ebx, DWORD PTR STATUS_SCANNING[rip]
	and	ebx, DWORD PTR 0[rbp]
	je	.L7
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	IPW_DEBUG_INFO@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	IPW_DEBUG_INFO@PLT
	mov	rdi, rbp
	call	ipw_abort_scan@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR STATUS_ASSOCIATED[rip], eax
	je	.L3
.L21:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	IPW_DEBUG_INFO@PLT
	mov	rdi, rbp
	call	ipw_disassociate@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ipw_deinit, .-ipw_deinit
	.comm	STATUS_SCANNING,4,4
	.comm	STATUS_INIT,4,4
	.comm	STATUS_DISASSOCIATING,4,4
	.comm	STATUS_ASSOCIATED,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_deinit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Aborting scan during shutdown.\012\000"
	.align	2
.LC1:
	.ascii	"Disassociating during shutdown.\012\000"
	.align	2
.LC2:
	.ascii	"Still associated or scanning...\012\000"
	.align	2
.LC3:
	.ascii	"Took %dms to de-init\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipw_deinit, %function
ipw_deinit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L22
	ldr	r3, [r0]
	ldr	r2, [r6]
	mov	r5, r0
	tst	r3, r2
	bne	.L20
	ldr	r7, .L22+4
	ldr	r2, [r7]
	tst	r3, r2
	bne	.L21
.L3:
	mov	r0, r5
	bl	ipw_led_shutdown
	mov	r4, #1000
	ldr	r8, .L22+8
	b	.L4
.L6:
	mov	r0, #10
	bl	udelay
	subs	r4, r4, #1
	beq	.L5
.L4:
	ldr	r2, [r7]
	ldr	r3, [r8]
	ldr	r1, [r6]
	orr	r3, r3, r2
	ldr	r2, [r5]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L6
.L7:
	ldr	r0, .L22+12
	rsb	r1, r4, #1000
	bl	IPW_DEBUG_INFO
.L8:
	mov	r1, #0
	mov	r0, r5
	bl	ipw_send_card_disable
	ldr	r2, .L22+16
	ldr	r3, [r5]
	ldr	r2, [r2]
	bic	r3, r3, r2
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r4, [r8]
	ldr	r2, [r7]
	ldr	r3, [r6]
	ldr	r1, [r5]
	orr	r4, r4, r2
	orr	r4, r4, r3
	ands	r4, r4, r1
	beq	.L7
	ldr	r0, .L22+20
	bl	IPW_DEBUG_INFO
	b	.L8
.L20:
	ldr	r0, .L22+24
	ldr	r7, .L22+4
	bl	IPW_DEBUG_INFO
	mov	r0, r5
	bl	ipw_abort_scan
	ldr	r3, [r5]
	ldr	r2, [r7]
	tst	r3, r2
	beq	.L3
.L21:
	ldr	r0, .L22+28
	bl	IPW_DEBUG_INFO
	mov	r0, r5
	bl	ipw_disassociate
	b	.L3
.L23:
	.align	2
.L22:
	.word	STATUS_SCANNING
	.word	STATUS_ASSOCIATED
	.word	STATUS_DISASSOCIATING
	.word	.LC3
	.word	STATUS_INIT
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	ipw_deinit, .-ipw_deinit
	.comm	STATUS_SCANNING,4,4
	.comm	STATUS_INIT,4,4
	.comm	STATUS_DISASSOCIATING,4,4
	.comm	STATUS_ASSOCIATED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
