	.file	"extr_af_packet.c_packet_sendmsg_spkt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	packet_sendmsg_spkt, @function
packet_sendmsg_spkt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[rdx]
	test	rax, rax
	je	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	rbp, rdx
	mov	edx, DWORD PTR [rdx]
	neg	r12d
	cmp	edx, 3
	jbe	.L1
	mov	DWORD PTR 12[rsp], 0
	mov	rbx, rcx
	cmp	edx, 16
	jne	.L5
	mov	edi, DWORD PTR 8[rax]
	mov	DWORD PTR 12[rsp], edi
.L5:
	mov	r12, QWORD PTR [rax]
	mov	r13, QWORD PTR [rsi]
	mov	QWORD PTR 104[r12], 0
	mov	rdi, r13
	call	sock_net@PLT
	mov	rsi, r12
	mov	edi, eax
	call	dev_get_by_name@PLT
	mov	r15, rax
	test	rax, rax
	je	.L6
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR IFF_UP[rip], eax
	je	.L7
	mov	rax, QWORD PTR 16[r15]
	add	rax, QWORD PTR 8[r15]
	cmp	rax, rbx
	jnb	.L8
	mov	r12d, DWORD PTR EMSGSIZE[rip]
	neg	r12d
.L9:
	mov	rdi, r15
	call	dev_put@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOTCONN[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r14d, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r15
	mov	r12d, DWORD PTR ENOBUFS[rip]
	call	LL_RESERVED_SPACE@PLT
	xor	edx, edx
	mov	rdi, r13
	mov	ecx, r14d
	lea	rsi, [rax+rbx]
	call	sock_wmalloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L17
	mov	rdi, r15
	call	LL_RESERVED_SPACE@PLT
	mov	rdi, r14
	mov	rsi, rax
	call	skb_reserve@PLT
	mov	rdi, r14
	call	skb_reset_network_header@PLT
	cmp	QWORD PTR 24[r15], 0
	je	.L12
	mov	rax, QWORD PTR 16[r15]
	sub	QWORD PTR [r14], rax
	sub	QWORD PTR 8[r14], rax
	cmp	rax, rbx
	jbe	.L12
	mov	rdi, r14
	call	skb_reset_network_header@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR 4[rbp]
	mov	rsi, rbx
	mov	rdi, r14
	call	skb_put@PLT
	mov	rdx, rbx
	mov	esi, r12d
	mov	edi, eax
	call	memcpy_fromiovec@PLT
	mov	QWORD PTR 24[r14], r15
	mov	r12d, eax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 32[r14], eax
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR 16[r14], eax
	test	r12d, r12d
	je	.L19
.L14:
	mov	rdi, r14
	call	kfree_skb@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12d, DWORD PTR ENETDOWN[rip]
.L17:
	neg	r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r14
	call	skb_tx@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, eax
	call	sock_tx_timestamp@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L14
	mov	rdi, r14
	mov	r12d, ebx
	call	dev_queue_xmit@PLT
	mov	rdi, r15
	call	dev_put@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	packet_sendmsg_spkt, .-packet_sendmsg_spkt
	.comm	IFF_UP,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOTCONN,4,4
	.comm	ENODEV,4,4
	.comm	ENOBUFS,4,4
	.comm	ENETDOWN,4,4
	.comm	EMSGSIZE,4,4
	.comm	EINVAL,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_af_packet.c_packet_sendmsg_spkt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	packet_sendmsg_spkt, %function
packet_sendmsg_spkt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r2, #8]
	cmp	r5, #0
	beq	.L2
	mov	r6, r3
	ldr	r3, [r2]
	mov	r4, r2
	cmp	r3, #3
	bls	.L19
	cmp	r3, #8
	ldreq	r9, [r5, #4]
	movne	r9, #0
.L5:
	mov	r10, #0
	ldr	r8, [r1]
	ldr	r3, [r5]
	mov	r0, r8
	str	r10, [r3, #52]
	bl	sock_net
	ldr	r1, [r5]
	bl	dev_get_by_name
	subs	r7, r0, #0
	beq	.L6
	ldr	r3, .L21
	ldr	r2, [r7]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L7
	ldmib	r7, {r2, r3}
	add	r3, r3, r2
	cmp	r3, r6
	bcs	.L8
	ldr	r3, .L21+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L9:
	mov	r0, r7
	bl	dev_put
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r3, .L21+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L21+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r3, .L21+16
	ldr	r5, [r3]
	bl	LL_RESERVED_SPACE
	ldr	r3, .L21+20
	mov	r2, r10
	add	r1, r0, r6
	ldr	r3, [r3]
	mov	r0, r8
	bl	sock_wmalloc
	subs	r10, r0, #0
	beq	.L17
	mov	r0, r7
	bl	LL_RESERVED_SPACE
	mov	r1, r0
	mov	r0, r10
	bl	skb_reserve
	mov	r0, r10
	bl	skb_reset_network_header
	ldr	r3, [r7, #12]
	cmp	r3, #0
	beq	.L12
	ldm	r10, {r2, r3}
	ldr	r1, [r7, #8]
	sub	r2, r2, r1
	sub	r3, r3, r1
	cmp	r1, r6
	stm	r10, {r2, r3}
	bls	.L12
	mov	r0, r10
	bl	skb_reset_network_header
.L12:
	mov	r1, r6
	mov	r0, r10
	bl	skb_put
	mov	r2, r6
	ldr	r1, [r4, #4]
	bl	memcpy_fromiovec
	ldr	r3, [r8]
	subs	r5, r0, #0
	str	r9, [r10, #16]
	str	r7, [r10, #12]
	str	r3, [r10, #8]
	beq	.L20
.L14:
	mov	r0, r10
	bl	kfree_skb
	b	.L9
.L7:
	ldr	r3, .L21+24
	ldr	r5, [r3]
.L17:
	rsb	r5, r5, #0
	b	.L9
.L6:
	ldr	r3, .L21+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L20:
	mov	r0, r10
	bl	skb_tx
	mov	r1, r8
	mov	r2, r0
	mov	r0, r4
	bl	sock_tx_timestamp
	subs	r5, r0, #0
	blt	.L14
	mov	r0, r10
	bl	dev_queue_xmit
	mov	r0, r7
	bl	dev_put
	mov	r5, r6
	b	.L1
.L22:
	.align	2
.L21:
	.word	IFF_UP
	.word	EMSGSIZE
	.word	EINVAL
	.word	ENOTCONN
	.word	ENOBUFS
	.word	GFP_KERNEL
	.word	ENETDOWN
	.word	ENODEV
	.size	packet_sendmsg_spkt, .-packet_sendmsg_spkt
	.comm	IFF_UP,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOTCONN,4,4
	.comm	ENODEV,4,4
	.comm	ENOBUFS,4,4
	.comm	ENETDOWN,4,4
	.comm	EMSGSIZE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
