	.file	"extr_mac80211_hwsim.c_mac80211_hwsim_monitor_rx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mac80211_hwsim_monitor_rx, @function
mac80211_hwsim_monitor_rx:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR [rdi]
	mov	rdi, rsi
	mov	rbx, rdx
	call	IEEE80211_SKB_CB@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	ieee80211_get_tx_rate@PLT
	mov	edi, DWORD PTR hwsim_mon[rip]
	mov	r14, rax
	call	netif_running@PLT
	test	eax, eax
	jne	.L12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	ecx, DWORD PTR GFP_ATOMIC[rip]
	xor	edx, edx
	mov	esi, 72
	mov	rdi, r12
	call	skb_copy_expand@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	mov	esi, 72
	mov	rdi, rax
	call	skb_push@PLT
	mov	edi, 72
	mov	r12, rax
	mov	eax, DWORD PTR PKTHDR_RADIOTAP_VERSION[rip]
	mov	QWORD PTR 56[r12], 0
	mov	DWORD PTR 64[r12], eax
	call	cpu_to_le16@PLT
	mov	ecx, DWORD PTR IEEE80211_RADIOTAP_RATE[rip]
	mov	edi, 1
	mov	QWORD PTR 48[r12], rax
	mov	eax, DWORD PTR IEEE80211_RADIOTAP_FLAGS[rip]
	sal	edi, cl
	bts	edi, eax
	mov	eax, DWORD PTR IEEE80211_RADIOTAP_TSFT[rip]
	bts	edi, eax
	mov	eax, DWORD PTR IEEE80211_RADIOTAP_CHANNEL[rip]
	bts	edi, eax
	call	cpu_to_le32@PLT
	mov	rdi, r13
	mov	DWORD PTR 40[r12], eax
	call	__mac80211_hwsim_get_tsf@PLT
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR 24[r12], 0
	mov	DWORD PTR 32[r12], eax
	movsx	rax, DWORD PTR [r14]
	mov	rdx, rax
	imul	rax, rax, 1717986919
	sar	edx, 31
	sar	rax, 33
	sub	eax, edx
	mov	DWORD PTR [r12], eax
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR IEEE80211_CHAN_2GHZ[rip]
	mov	QWORD PTR 16[r12], rax
	mov	eax, DWORD PTR 4[r14]
	test	DWORD PTR IEEE80211_RATE_ERP_G[rip], eax
	jne	.L13
	or	edi, DWORD PTR IEEE80211_CHAN_CCK[rip]
.L6:
	call	cpu_to_le16@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	QWORD PTR 8[r12], rax
	mov	eax, DWORD PTR hwsim_mon[rip]
	mov	DWORD PTR 16[rbp], eax
	call	skb_set_mac_header@PLT
	mov	eax, DWORD PTR CHECKSUM_UNNECESSARY[rip]
	mov	edi, DWORD PTR ETH_P_802_2[rip]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR PACKET_OTHERHOST[rip]
	mov	DWORD PTR 8[rbp], eax
	call	htons@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, 4
	xor	esi, esi
	mov	DWORD PTR 4[rbp], eax
	call	memset@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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	netif_rx@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	or	edi, DWORD PTR IEEE80211_CHAN_OFDM[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	mac80211_hwsim_monitor_rx, .-mac80211_hwsim_monitor_rx
	.comm	hwsim_mon,4,4
	.comm	PKTHDR_RADIOTAP_VERSION,4,4
	.comm	PACKET_OTHERHOST,4,4
	.comm	IEEE80211_RATE_ERP_G,4,4
	.comm	IEEE80211_RADIOTAP_TSFT,4,4
	.comm	IEEE80211_RADIOTAP_RATE,4,4
	.comm	IEEE80211_RADIOTAP_FLAGS,4,4
	.comm	IEEE80211_RADIOTAP_CHANNEL,4,4
	.comm	IEEE80211_CHAN_OFDM,4,4
	.comm	IEEE80211_CHAN_CCK,4,4
	.comm	IEEE80211_CHAN_2GHZ,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ETH_P_802_2,4,4
	.comm	CHECKSUM_UNNECESSARY,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_mac80211_hwsim.c_mac80211_hwsim_monitor_rx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mac80211_hwsim_monitor_rx, %function
mac80211_hwsim_monitor_rx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r7, r2
	mov	r5, r1
	ldr	r8, [r4]
	bl	IEEE80211_SKB_CB
	mov	r1, r0
	mov	r0, r4
	bl	ieee80211_get_tx_rate
	ldr	r9, .L12
	mov	r6, r0
	ldr	r0, [r9]
	bl	netif_running
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L12+4
	mov	r0, r5
	mov	r2, #0
	mov	r1, #36
	ldr	r3, [r3]
	bl	skb_copy_expand
	subs	r4, r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, #36
	bl	skb_push
	mov	r10, #0
	mov	r5, r0
	ldr	r3, .L12+8
	str	r10, [r0, #28]
	ldr	r3, [r3]
	mov	r0, #36
	str	r3, [r5, #32]
	bl	cpu_to_le16
	mov	r2, #1
	ldr	r3, .L12+12
	ldr	r1, .L12+16
	ldr	r3, [r3]
	ldr	r1, [r1]
	lsl	r3, r2, r3
	ldr	ip, .L12+20
	orr	r3, r3, r2, lsl r1
	ldr	r1, .L12+24
	ldr	ip, [ip]
	ldr	r1, [r1]
	orr	r3, r3, r2, lsl ip
	str	r0, [r5, #24]
	orr	r0, r3, r2, lsl r1
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r8
	str	r3, [r5, #20]
	bl	__mac80211_hwsim_get_tsf
	ldr	r3, [r6]
	ldr	r1, .L12+28
	asr	r2, r3, #31
	smull	ip, r3, r1, r3
	rsb	r3, r2, r3, asr #1
	str	r0, [r5, #16]
	str	r10, [r5, #12]
	ldr	r0, [r7]
	str	r3, [r5]
	bl	cpu_to_le16
	ldr	r3, .L12+32
	ldr	r1, [r6, #4]
	ldr	r2, [r3]
	ldr	r3, .L12+36
	tst	r1, r2
	str	r0, [r5, #8]
	ldr	r0, [r3]
	ldrne	r3, .L12+40
	ldreq	r3, .L12+44
	ldr	r3, [r3]
	orr	r0, r0, r3
	bl	cpu_to_le16
	ldr	r3, [r9]
	str	r0, [r5, #4]
	mov	r1, #0
	str	r3, [r4, #16]
	mov	r0, r4
	bl	skb_set_mac_header
	ldr	r2, .L12+48
	ldr	r3, .L12+52
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L12+56
	str	r1, [r4, #12]
	str	r2, [r4, #8]
	ldr	r0, [r3]
	bl	htons
	mov	r2, #4
	str	r0, [r4, #4]
	mov	r1, #0
	ldr	r0, [r4]
	bl	memset
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	netif_rx
.L13:
	.align	2
.L12:
	.word	hwsim_mon
	.word	GFP_ATOMIC
	.word	PKTHDR_RADIOTAP_VERSION
	.word	IEEE80211_RADIOTAP_RATE
	.word	IEEE80211_RADIOTAP_FLAGS
	.word	IEEE80211_RADIOTAP_TSFT
	.word	IEEE80211_RADIOTAP_CHANNEL
	.word	1717986919
	.word	IEEE80211_RATE_ERP_G
	.word	IEEE80211_CHAN_2GHZ
	.word	IEEE80211_CHAN_OFDM
	.word	IEEE80211_CHAN_CCK
	.word	CHECKSUM_UNNECESSARY
	.word	PACKET_OTHERHOST
	.word	ETH_P_802_2
	.size	mac80211_hwsim_monitor_rx, .-mac80211_hwsim_monitor_rx
	.comm	hwsim_mon,4,4
	.comm	PKTHDR_RADIOTAP_VERSION,4,4
	.comm	PACKET_OTHERHOST,4,4
	.comm	IEEE80211_RATE_ERP_G,4,4
	.comm	IEEE80211_RADIOTAP_TSFT,4,4
	.comm	IEEE80211_RADIOTAP_RATE,4,4
	.comm	IEEE80211_RADIOTAP_FLAGS,4,4
	.comm	IEEE80211_RADIOTAP_CHANNEL,4,4
	.comm	IEEE80211_CHAN_OFDM,4,4
	.comm	IEEE80211_CHAN_CCK,4,4
	.comm	IEEE80211_CHAN_2GHZ,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ETH_P_802_2,4,4
	.comm	CHECKSUM_UNNECESSARY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
