	.file	"extr_d3.c_iwl_mvm_report_wakeup_reasons.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iwl_mvm_report_wakeup_reasons, @function
iwl_mvm_report_wakeup_reasons:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	ebx, DWORD PTR [rdx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR IWL_WOWLAN_WAKEUP_BY_NON_WIRELESS[rip], ebx
	movaps	XMMWORD PTR 16[rsp], xmm0
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	DWORD PTR 16[rsp], -1
	movaps	XMMWORD PTR 48[rsp], xmm0
	movaps	XMMWORD PTR 64[rsp], xmm0
	je	.L25
	mov	r13, rdi
	mov	edi, DWORD PTR 24[rdi]
	xor	esi, esi
	mov	rbp, rdx
	call	pm_wakeup_event@PLT
	test	DWORD PTR IWL_WOWLAN_WAKEUP_BY_MAGIC_PACKET[rip], ebx
	je	.L3
	mov	DWORD PTR 20[rsp], 1
.L3:
	test	DWORD PTR IWL_WOWLAN_WAKEUP_BY_PATTERN[rip], ebx
	je	.L4
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 16[rsp], eax
.L4:
	mov	eax, DWORD PTR IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON[rip]
	or	eax, DWORD PTR IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH[rip]
	test	eax, ebx
	je	.L5
	mov	DWORD PTR 24[rsp], 1
.L5:
	test	DWORD PTR IWL_WOWLAN_WAKEUP_BY_GTK_REKEY_FAILURE[rip], ebx
	je	.L6
	mov	DWORD PTR 28[rsp], 1
.L6:
	test	DWORD PTR IWL_WOWLAN_WAKEUP_BY_RFKILL_DEASSERTED[rip], ebx
	je	.L7
	mov	DWORD PTR 32[rsp], 1
.L7:
	test	DWORD PTR IWL_WOWLAN_WAKEUP_BY_EAPOL_REQUEST[rip], ebx
	je	.L8
	mov	DWORD PTR 36[rsp], 1
.L8:
	test	DWORD PTR IWL_WOWLAN_WAKEUP_BY_FOUR_WAY_HANDSHAKE[rip], ebx
	je	.L9
	mov	DWORD PTR 40[rsp], 1
.L9:
	test	DWORD PTR IWL_WOWLAN_WAKEUP_BY_REM_WAKE_LINK_LOSS[rip], ebx
	je	.L10
	mov	DWORD PTR 44[rsp], 1
.L10:
	test	DWORD PTR IWL_WOWLAN_WAKEUP_BY_REM_WAKE_SIGNATURE_TABLE[rip], ebx
	je	.L11
	mov	DWORD PTR 48[rsp], 1
.L11:
	test	DWORD PTR IWL_WOWLAN_WAKEUP_BY_REM_WAKE_WAKEUP_PACKET[rip], ebx
	je	.L12
	mov	DWORD PTR 52[rsp], 1
.L12:
	mov	r14d, DWORD PTR 8[rbp]
	test	r14d, r14d
	jne	.L13
.L64:
	lea	rsi, 16[rsp]
	xor	ebp, ebp
.L2:
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r12
	call	ieee80211_report_wowlan_wakeup@PLT
	mov	rdi, rbp
	call	kfree_skb@PLT
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L66
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	ebx, DWORD PTR 12[rbp]
	mov	r15, QWORD PTR 16[rbp]
	mov	eax, ebx
	sub	eax, r14d
	mov	edi, eax
	mov	DWORD PTR 4[rsp], eax
	shr	edi, 31
	call	WARN_ON_ONCE@PLT
	mov	edi, DWORD PTR 4[r15]
	test	rax, rax
	jne	.L67
	call	ieee80211_is_data@PLT
	test	rax, rax
	jne	.L15
	cmp	DWORD PTR 4[rsp], 3
	jle	.L68
	mov	eax, DWORD PTR 4[rsp]
	sub	eax, 4
	sub	ebx, eax
.L23:
	mov	rax, QWORD PTR 16[rbp]
	mov	DWORD PTR 56[rsp], r14d
	mov	DWORD PTR 60[rsp], ebx
	mov	QWORD PTR 72[rsp], rax
	mov	DWORD PTR 64[rsp], 1
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L25:
	xor	esi, esi
	xor	ebp, ebp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L67:
	call	ieee80211_is_data@PLT
	test	rax, rax
	jne	.L26
	mov	eax, 4
.L16:
	sub	r14d, eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L26:
	mov	DWORD PTR 4[rsp], 0
.L15:
	mov	edi, DWORD PTR 4[r15]
	call	ieee80211_hdrlen@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, r14d
	mov	ebx, eax
	call	alloc_skb@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L64
	mov	edx, ebx
	mov	rsi, r15
	mov	rdi, rax
	sub	r14d, ebx
	call	skb_put_data@PLT
	mov	edi, DWORD PTR 4[r15]
	movsx	rax, ebx
	mov	QWORD PTR 8[rsp], rax
	call	ieee80211_has_protected@PLT
	xor	edx, edx
	mov	r9, rax
	mov	eax, 4
	test	r9, r9
	jne	.L69
.L19:
	mov	ecx, DWORD PTR 4[rsp]
	cmp	eax, ecx
	jle	.L21
	mov	DWORD PTR 4[rsp], 0
	sub	eax, ecx
	add	edx, eax
.L21:
	mov	rax, QWORD PTR 8[rsp]
	sub	r14d, edx
	mov	rdi, rbp
	mov	edx, r14d
	lea	rsi, [r15+rax*4]
	call	skb_put_data@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	edx, DWORD PTR [r12]
	mov	rdi, rbp
	call	ieee80211_data_to_8023@PLT
	lea	rsi, 16[rsp]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 72[rsp], rax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 64[rsp], 0
	mov	DWORD PTR 56[rsp], eax
	sub	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 60[rsp], eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L69:
	mov	edi, DWORD PTR [r15]
	call	is_multicast_ether_addr@PLT
	test	rax, rax
	je	.L20
	movsx	rcx, DWORD PTR 0[r13]
	mov	rax, QWORD PTR 16[r13]
	add	QWORD PTR 8[rsp], rcx
	mov	rdx, rcx
	add	eax, 4
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L68:
	mov	eax, 4
	sub	eax, DWORD PTR 4[rsp]
	jmp	.L16
.L20:
	movsx	rcx, DWORD PTR 4[r13]
	mov	rax, QWORD PTR 8[r13]
	add	QWORD PTR 8[rsp], rcx
	mov	rdx, rcx
	add	eax, 4
	jmp	.L19
.L66:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iwl_mvm_report_wakeup_reasons, .-iwl_mvm_report_wakeup_reasons
	.comm	IWL_WOWLAN_WAKEUP_BY_RFKILL_DEASSERTED,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_REM_WAKE_WAKEUP_PACKET,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_REM_WAKE_SIGNATURE_TABLE,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_REM_WAKE_LINK_LOSS,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_PATTERN,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_NON_WIRELESS,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_MAGIC_PACKET,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_GTK_REKEY_FAILURE,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_FOUR_WAY_HANDSHAKE,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_EAPOL_REQUEST,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH,4,4
	.comm	GFP_KERNEL,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_d3.c_iwl_mvm_report_wakeup_reasons.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwl_mvm_report_wakeup_reasons, %function
iwl_mvm_report_wakeup_reasons:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	sub	sp, sp, #68
	ldr	r3, .L68
	mov	r2, #52
	mov	r7, r0
	mov	r6, r1
	add	r0, sp, #8
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	bl	memset
	mvn	r2, #0
	ldr	r3, .L68+4
	ldr	r4, [r5]
	ldr	r3, [r3]
	mov	r1, #0
	cmp	r3, r4
	str	r2, [sp, #4]
	beq	.L25
	ldr	r0, [r7, #16]
	bl	pm_wakeup_event
	ldr	r3, .L68+8
	ldr	r2, .L68+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	tst	r4, r3
	movne	r3, #1
	strne	r3, [sp, #8]
	ldr	r3, .L68+16
	ldr	r8, [r5, #8]
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, [r5, #4]
	strne	r3, [sp, #4]
	ldr	r3, .L68+20
	ldr	r3, [r3]
	orr	r3, r3, r2
	tst	r3, r4
	movne	r3, #1
	strne	r3, [sp, #12]
	ldr	r3, .L68+24
	ldr	r3, [r3]
	tst	r4, r3
	movne	r3, #1
	strne	r3, [sp, #16]
	ldr	r3, .L68+28
	ldr	r3, [r3]
	tst	r4, r3
	movne	r3, #1
	strne	r3, [sp, #20]
	ldr	r3, .L68+32
	ldr	r3, [r3]
	tst	r4, r3
	movne	r3, #1
	strne	r3, [sp, #24]
	ldr	r3, .L68+36
	ldr	r3, [r3]
	tst	r4, r3
	movne	r3, #1
	strne	r3, [sp, #28]
	ldr	r3, .L68+40
	ldr	r3, [r3]
	tst	r4, r3
	movne	r3, #1
	strne	r3, [sp, #32]
	ldr	r3, .L68+44
	ldr	r3, [r3]
	tst	r4, r3
	movne	r3, #1
	strne	r3, [sp, #36]
	ldr	r3, .L68+48
	ldr	r3, [r3]
	tst	r4, r3
	movne	r3, #1
	strne	r3, [sp, #40]
	cmp	r8, #0
	bne	.L13
	ldr	r5, .L68+52
.L18:
	mov	r4, #0
	add	r1, sp, #4
.L2:
	ldr	r2, [r5]
	mov	r0, r6
	bl	ieee80211_report_wowlan_wakeup
	mov	r0, r4
	bl	kfree_skb
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L64
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r4, [r5, #12]
	ldr	r10, [r5, #16]
	sub	r9, r4, r8
	lsr	r0, r9, #31
	bl	WARN_ON_ONCE
	cmp	r0, #0
	ldr	r0, [r10, #4]
	bne	.L65
	bl	ieee80211_is_data
	cmp	r0, #0
	bne	.L15
	cmp	r9, #3
	rsble	r9, r9, #4
	ble	.L16
	sub	r9, r9, #4
	sub	r4, r4, r9
.L23:
	mov	r3, #1
	ldr	r2, [r5, #16]
	str	r4, [sp, #48]
	ldr	r5, .L68+52
	mov	r4, #0
	str	r8, [sp, #44]
	str	r2, [sp, #56]
	str	r3, [sp, #52]
	add	r1, sp, #4
	b	.L2
.L25:
	mov	r4, r1
	ldr	r5, .L68+52
	b	.L2
.L65:
	bl	ieee80211_is_data
	cmp	r0, #0
	moveq	r9, #4
	bne	.L66
.L16:
	sub	r8, r8, r9
	b	.L23
.L66:
	mov	r9, #0
.L15:
	ldr	r0, [r10, #4]
	bl	ieee80211_hdrlen
	ldr	r5, .L68+52
	mov	fp, r0
	ldr	r1, [r5]
	mov	r0, r8
	bl	alloc_skb
	subs	r4, r0, #0
	beq	.L18
	mov	r2, fp
	mov	r1, r10
	bl	skb_put_data
	ldr	r0, [r10, #4]
	bl	ieee80211_has_protected
	cmp	r0, #0
	moveq	r3, #4
	sub	r8, r8, fp
	bne	.L67
.L19:
	cmp	r3, r9
	subgt	r3, r3, r9
	addgt	r0, r0, r3
	sub	r2, r8, r0
	add	r1, r10, fp, lsl #2
	mov	r0, r4
	movgt	r9, #0
	bl	skb_put_data
	ldr	r1, [r6, #4]
	mov	r0, r4
	ldr	r2, [r6]
	bl	ieee80211_data_to_8023
	cmp	r0, #0
	addne	r1, sp, #4
	bne	.L2
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	sub	r9, r3, r9
	str	r9, [sp, #48]
	str	r2, [sp, #56]
	str	r3, [sp, #44]
	str	r0, [sp, #52]
	add	r1, sp, #4
	b	.L2
.L67:
	ldr	r0, [r10]
	bl	is_multicast_ether_addr
	cmp	r0, #0
	ldrne	r0, [r7]
	ldrne	r3, [r7, #12]
	ldmibeq	r7, {r0, r3}
	add	fp, fp, r0
	add	r3, r3, #4
	b	.L19
.L64:
	bl	__stack_chk_fail
.L69:
	.align	2
.L68:
	.word	.LC0
	.word	IWL_WOWLAN_WAKEUP_BY_NON_WIRELESS
	.word	IWL_WOWLAN_WAKEUP_BY_MAGIC_PACKET
	.word	IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH
	.word	IWL_WOWLAN_WAKEUP_BY_PATTERN
	.word	IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON
	.word	IWL_WOWLAN_WAKEUP_BY_GTK_REKEY_FAILURE
	.word	IWL_WOWLAN_WAKEUP_BY_RFKILL_DEASSERTED
	.word	IWL_WOWLAN_WAKEUP_BY_EAPOL_REQUEST
	.word	IWL_WOWLAN_WAKEUP_BY_FOUR_WAY_HANDSHAKE
	.word	IWL_WOWLAN_WAKEUP_BY_REM_WAKE_LINK_LOSS
	.word	IWL_WOWLAN_WAKEUP_BY_REM_WAKE_SIGNATURE_TABLE
	.word	IWL_WOWLAN_WAKEUP_BY_REM_WAKE_WAKEUP_PACKET
	.word	GFP_KERNEL
	.size	iwl_mvm_report_wakeup_reasons, .-iwl_mvm_report_wakeup_reasons
	.comm	IWL_WOWLAN_WAKEUP_BY_RFKILL_DEASSERTED,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_REM_WAKE_WAKEUP_PACKET,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_REM_WAKE_SIGNATURE_TABLE,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_REM_WAKE_LINK_LOSS,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_PATTERN,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_NON_WIRELESS,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_MAGIC_PACKET,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_GTK_REKEY_FAILURE,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_FOUR_WAY_HANDSHAKE,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_EAPOL_REQUEST,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON,4,4
	.comm	IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
