	.file	"extr_main.c_iwlagn_prepare_restart.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	iwlagn_prepare_restart
	.type	iwlagn_prepare_restart, @function
iwlagn_prepare_restart:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	add	rdi, 64
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	lockdep_assert_held@PLT
	mov	rbx, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	r14, QWORD PTR 48[rbp]
	mov	r13, QWORD PTR 40[rbp]
	mov	r12, QWORD PTR 32[rbp]
	mov	QWORD PTR 56[rbp], 0
	call	iwl_down@PLT
	mov	QWORD PTR 0[rbp], rbx
	movsx	rax, DWORD PTR IWLAGN_FIRST_AMPDU_QUEUE[rip]
	mov	edx, DWORD PTR IWL_MAX_HW_QUEUES[rip]
	mov	QWORD PTR 48[rbp], r14
	mov	QWORD PTR 40[rbp], r13
	mov	QWORD PTR 32[rbp], r12
	cmp	eax, edx
	jge	.L2
	mov	rcx, QWORD PTR 24[rbp]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR IWL_INVALID_MAC80211_QUEUE[rip]
	mov	DWORD PTR [rcx+rax*4], edx
	mov	edx, DWORD PTR IWL_MAX_HW_QUEUES[rip]
	add	rax, 1
	cmp	edx, eax
	jg	.L3
.L2:
	xor	ebx, ebx
	test	edx, edx
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 16[rbp]
	xor	esi, esi
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	atomic_set@PLT
	cmp	DWORD PTR IWL_MAX_HW_QUEUES[rip], ebx
	jg	.L4
.L5:
	mov	edi, DWORD PTR 8[rbp]
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	edx, 4
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	memset@PLT
	.cfi_endproc
.LFE0:
	.size	iwlagn_prepare_restart, .-iwlagn_prepare_restart
	.comm	IWL_MAX_HW_QUEUES,4,4
	.comm	IWL_INVALID_MAC80211_QUEUE,4,4
	.comm	IWLAGN_FIRST_AMPDU_QUEUE,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_main.c_iwlagn_prepare_restart.c"
	.text
	.align	2
	.global	iwlagn_prepare_restart
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwlagn_prepare_restart, %function
iwlagn_prepare_restart:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	add	r0, r0, #36
	bl	lockdep_assert_held
	mov	r3, #0
	mov	r0, r5
	str	r3, [r5, #32]
	add	r7, r5, #20
	ldm	r7, {r7, r8, r9}
	ldr	r10, [r5]
	ldr	r4, [r5, #4]
	ldr	r6, .L11
	bl	iwl_down
	ldr	r3, .L11+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	str	r10, [r5]
	cmp	r3, r2
	str	r9, [r5, #28]
	str	r8, [r5, #24]
	str	r7, [r5, #20]
	str	r4, [r5, #4]
	bge	.L2
	ldr	r2, [r5, #16]
	sub	r1, r3, #-1073741823
	ldr	r0, .L11+8
	add	r1, r2, r1, lsl #2
.L3:
	ldr	r2, [r0]
	add	r3, r3, #1
	str	r2, [r1, #4]!
	ldr	r2, [r6]
	cmp	r2, r3
	bgt	.L3
.L2:
	cmp	r2, #0
	movgt	r4, #0
	ble	.L5
.L4:
	ldr	r0, [r5, #12]
	mov	r1, #0
	add	r0, r0, r4, lsl #2
	bl	atomic_set
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
.L5:
	ldr	r0, [r5, #8]
	mov	r2, #4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #0
	b	memset
.L12:
	.align	2
.L11:
	.word	IWL_MAX_HW_QUEUES
	.word	IWLAGN_FIRST_AMPDU_QUEUE
	.word	IWL_INVALID_MAC80211_QUEUE
	.size	iwlagn_prepare_restart, .-iwlagn_prepare_restart
	.comm	IWL_MAX_HW_QUEUES,4,4
	.comm	IWL_INVALID_MAC80211_QUEUE,4,4
	.comm	IWLAGN_FIRST_AMPDU_QUEUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
