	.file	"extr_pppoe.c_pppoe_sendmsg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pppoe_sendmsg, @function
pppoe_sendmsg:
.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
	mov	r13, rdx
	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, 72
	.cfi_def_cfa_offset 128
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rdi, rbp
	call	pppox_sk@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	lock_sock@PLT
	mov	esi, DWORD PTR SOCK_DEAD[rip]
	mov	rdi, rbp
	call	sock_flag@PLT
	test	rax, rax
	jne	.L2
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR PPPOX_CONNECTED[rip], eax
	je	.L2
	movabs	rax, 4294967297
	mov	r15, QWORD PTR 8[rbx]
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR 40[rsp], eax
	mov	rax, QWORD PTR 8[r15]
	add	rax, QWORD PTR [r15]
	cmp	rax, r13
	jnb	.L5
	mov	r12d, DWORD PTR EMSGSIZE[rip]
	neg	r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12d, DWORD PTR ENOTCONN[rip]
	neg	r12d
.L4:
	mov	rdi, rbp
	call	release_sock@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 72
	.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
.L5:
	.cfi_restore_state
	mov	rdi, r15
	call	LL_RESERVED_SPACE@PLT
	mov	rsi, QWORD PTR 16[r15]
	xor	edx, edx
	mov	rdi, rbp
	mov	r8d, eax
	lea	rax, 40[r13]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	add	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	movsx	rax, r8d
	add	rsi, rax
	mov	DWORD PTR [rsp], r8d
	call	sock_wmalloc@PLT
	mov	r8d, DWORD PTR [rsp]
	test	rax, rax
	mov	r14, rax
	je	.L12
	mov	esi, r8d
	mov	rdi, rax
	call	skb_reserve@PLT
	mov	rdi, r14
	call	skb_reset_network_header@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	QWORD PTR 8[r14], r15
	mov	edi, DWORD PTR ETH_P_PPP_SES[rip]
	mov	DWORD PTR 4[r14], eax
	call	cpu_to_be16@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r14
	mov	DWORD PTR [r14], eax
	call	skb_put@PLT
	mov	rsi, r12
	mov	rdx, r13
	mov	rdi, QWORD PTR 16[rax]
	mov	QWORD PTR [rsp], rax
	call	memcpy_from_msg@PLT
	mov	r10, QWORD PTR [rsp]
	test	eax, eax
	mov	r12d, eax
	js	.L13
	mov	ecx, DWORD PTR [rbx]
	mov	edx, DWORD PTR ETH_P_PPP_SES[rip]
	mov	r9, r13
	xor	r8d, r8d
	mov	rsi, r15
	mov	rdi, r14
	mov	QWORD PTR [rsp], r10
	mov	r12d, r13d
	call	dev_hard_header@PLT
	mov	r10, QWORD PTR [rsp]
	lea	rsi, 16[rsp]
	mov	edx, 40
	mov	rdi, r10
	call	memcpy@PLT
	mov	rdi, r13
	call	htons@PLT
	mov	r10, QWORD PTR [rsp]
	mov	rdi, r14
	mov	DWORD PTR 8[r10], eax
	call	dev_queue_xmit@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r14
	call	kfree_skb@PLT
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pppoe_sendmsg, .-pppoe_sendmsg
	.comm	SOCK_DEAD,4,4
	.comm	PPPOX_CONNECTED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETH_P_PPP_SES,4,4
	.comm	ENOTCONN,4,4
	.comm	ENOMEM,4,4
	.comm	EMSGSIZE,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_pppoe.c_pppoe_sendmsg.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pppoe_sendmsg, %function
pppoe_sendmsg:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0]
	ldr	r3, .L14
	sub	sp, sp, #52
	mov	r0, r4
	mov	r8, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	pppox_sk
	mov	r6, r0
	mov	r0, r4
	bl	lock_sock
	ldr	r3, .L14+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	sock_flag
	subs	r5, r0, #0
	bne	.L2
	ldr	r3, .L14+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L2
	mov	r2, #1
	ldr	r9, [r6, #4]
	str	r5, [sp, #40]
	ldr	r1, [r9, #4]
	ldr	r3, [r9]
	str	r2, [sp, #20]
	add	r3, r3, r1
	ldr	r1, [r6, #8]
	cmp	r3, r7
	str	r2, [sp, #24]
	str	r1, [sp, #36]
	bcs	.L5
	ldr	r3, .L14+12
	ldr	r8, [r3]
	rsb	r8, r8, #0
	b	.L4
.L2:
	ldr	r3, .L14+16
	ldr	r8, [r3]
	rsb	r8, r8, #0
.L4:
	mov	r0, r4
	bl	release_sock
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r8
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r0, r9
	bl	LL_RESERVED_SPACE
	add	r3, r7, #24
	mov	r2, r3
	ldr	r1, [r9, #8]
	str	r3, [sp, #12]
	ldr	r3, .L14+20
	add	r1, r2, r1
	add	r1, r1, r0
	mov	fp, r0
	mov	r2, r5
	mov	r0, r4
	ldr	r3, [r3]
	bl	sock_wmalloc
	subs	r10, r0, #0
	beq	.L12
	mov	r1, fp
	bl	skb_reserve
	mov	r0, r10
	bl	skb_reset_network_header
	ldr	r3, .L14+24
	ldr	r2, [r4, #4]
	ldr	r0, [r3]
	stmib	r10, {r2, r9}
	bl	cpu_to_be16
	ldr	r1, [sp, #12]
	str	r0, [r10]
	mov	r0, r10
	bl	skb_put
	mov	r1, r8
	mov	fp, r0
	mov	r2, r7
	ldr	r0, [r0, #12]
	bl	memcpy_from_msg
	subs	r8, r0, #0
	ldr	r3, .L14+24
	blt	.L13
	ldr	r1, [r6]
	ldr	r2, [r3]
	mov	r0, r10
	mov	r3, r1
	str	r7, [sp, #4]
	mov	r1, r9
	str	r5, [sp]
	bl	dev_hard_header
	mov	r2, #24
	add	r1, sp, #20
	mov	r0, fp
	bl	memcpy
	mov	r0, r7
	bl	htons
	mov	r3, r0
	mov	r0, r10
	str	r3, [fp, #8]
	mov	r8, r7
	bl	dev_queue_xmit
	b	.L4
.L12:
	ldr	r3, .L14+28
	ldr	r8, [r3]
	rsb	r8, r8, #0
	b	.L4
.L13:
	mov	r0, r10
	bl	kfree_skb
	b	.L4
.L11:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	SOCK_DEAD
	.word	PPPOX_CONNECTED
	.word	EMSGSIZE
	.word	ENOTCONN
	.word	GFP_KERNEL
	.word	ETH_P_PPP_SES
	.word	ENOMEM
	.size	pppoe_sendmsg, .-pppoe_sendmsg
	.comm	SOCK_DEAD,4,4
	.comm	PPPOX_CONNECTED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETH_P_PPP_SES,4,4
	.comm	ENOTCONN,4,4
	.comm	ENOMEM,4,4
	.comm	EMSGSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
