	.file	"extr_hsr_device.c_send_hsr_supervision_frame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"HSR: Could not send supervision frame\n"
	.text
	.p2align 4
	.type	send_hsr_supervision_frame, @function
send_hsr_supervision_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR [rdi]
	call	LL_RESERVED_SPACE@PLT
	mov	r13d, eax
	mov	rax, QWORD PTR [r12]
	mov	eax, DWORD PTR [rax]
	lea	edi, 44[r13+rax]
	call	dev_alloc_skb@PLT
	test	rax, rax
	je	.L1
	mov	esi, r13d
	mov	rdi, rax
	mov	rbp, rax
	call	skb_reserve@PLT
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 8[rbp], rax
	test	r14, r14
	je	.L4
	mov	edi, DWORD PTR ETH_P_HSR[rip]
	call	htons@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	r9d, DWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR TC_PRIO_CONTROL[rip]
	mov	r8d, DWORD PTR 4[rsi]
	mov	edx, DWORD PTR ETH_P_HSR[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	rax, QWORD PTR 8[r12]
	mov	ecx, DWORD PTR 12[rax]
	call	dev_hard_header@PLT
	test	rax, rax
	jle	.L6
	mov	rdi, rbp
	call	skb_reset_mac_header@PLT
	test	r14, r14
	jle	.L8
	mov	esi, 16
	mov	rdi, rbp
	call	skb_put@PLT
	mov	edi, DWORD PTR ETH_P_PRP[rip]
	mov	r13, rax
	call	htons@PLT
	mov	esi, DWORD PTR HSR_V1_SUP_LSDUSIZE[rip]
	mov	rdi, r13
	mov	QWORD PTR 8[r13], rax
	call	set_hsr_tag_LSDU_size@PLT
	mov	esi, 24
	mov	rdi, rbp
	call	skb_put@PLT
	xor	esi, esi
	mov	rbx, rax
	mov	rdi, rax
	call	set_hsr_stag_path@PLT
	mov	rsi, r14
	mov	rdi, rbx
	xor	r14d, r14d
	call	set_hsr_stag_HSR_ver@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, r14
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR 8[rax]
	call	htons@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR 4[rax]
	call	htons@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	QWORD PTR 0[r13], rax
	add	DWORD PTR 8[rdi], 1
.L13:
	add	DWORD PTR 4[rdi], 1
	mov	rsi, r14
	call	spin_unlock_irqrestore@PLT
	mov	QWORD PTR 8[rbx], r15
	mov	eax, 4
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.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
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR ETH_P_PRP[rip]
	call	htons@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	r9d, DWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR TC_PRIO_CONTROL[rip]
	mov	r8d, DWORD PTR 4[rsi]
	mov	edx, DWORD PTR ETH_P_PRP[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	rax, QWORD PTR 8[r12]
	mov	ecx, DWORD PTR 12[rax]
	call	dev_hard_header@PLT
	test	rax, rax
	jle	.L6
	mov	rdi, rbp
	xor	r14d, r14d
	call	skb_reset_mac_header@PLT
	mov	esi, 24
	mov	rdi, rbp
	call	skb_put@PLT
	mov	esi, 15
	mov	rbx, rax
	mov	rdi, rax
	call	set_hsr_stag_path@PLT
	xor	esi, esi
	mov	rdi, rbx
	call	set_hsr_stag_HSR_ver@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, r14
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR 4[rax]
	call	htons@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, r14
	mov	QWORD PTR 16[rbx], rax
	add	DWORD PTR 4[rdi], 1
	call	spin_unlock_irqrestore@PLT
	mov	QWORD PTR 8[rbx], r15
	mov	eax, 12
.L10:
	mov	DWORD PTR [rbx], eax
	mov	esi, 4
	mov	rdi, rbp
	call	skb_put@PLT
	mov	rdx, QWORD PTR [r12]
	mov	edi, DWORD PTR [rax]
	mov	esi, DWORD PTR 4[rdx]
	call	ether_addr_copy@PLT
	mov	rsi, QWORD PTR HSR_HLEN[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR ETH_ZLEN[rip]
	call	skb_put_padto@PLT
	test	rax, rax
	jne	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r12
	mov	rdi, rbp
	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
	jmp	hsr_forward_skb@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, 1
	lea	rsi, .LC0[rip]
	call	WARN_ONCE@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	kfree_skb@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, 24
	mov	rdi, rbp
	call	skb_put@PLT
	xor	esi, esi
	mov	rbx, rax
	mov	rdi, rax
	call	set_hsr_stag_path@PLT
	mov	rsi, r14
	mov	rdi, rbx
	xor	r14d, r14d
	call	set_hsr_stag_HSR_ver@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, r14
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR 4[rax]
	call	htons@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	QWORD PTR 16[rbx], rax
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	send_hsr_supervision_frame, .-send_hsr_supervision_frame
	.comm	TC_PRIO_CONTROL,4,4
	.comm	HSR_V1_SUP_LSDUSIZE,4,4
	.comm	HSR_HLEN,8,8
	.comm	ETH_ZLEN,8,8
	.comm	ETH_P_PRP,4,4
	.comm	ETH_P_HSR,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_hsr_device.c_send_hsr_supervision_frame.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"HSR: Could not send supervision frame\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_hsr_supervision_frame, %function
send_hsr_supervision_frame:
	@ 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
	sub	sp, sp, #8
	ldr	r0, [r0]
	mov	r8, r1
	mov	r7, r2
	bl	LL_RESERVED_SPACE
	mov	r6, r0
	ldr	r3, [r5]
	ldr	r0, [r3]
	add	r0, r0, #24
	add	r0, r0, r6
	bl	dev_alloc_skb
	subs	r4, r0, #0
	beq	.L1
	mov	r1, r6
	bl	skb_reserve
	ldr	r3, [r5]
	cmp	r7, #0
	str	r3, [r4, #4]
	bne	.L14
	ldr	r6, .L15
	ldr	r0, [r6]
	bl	htons
	ldr	r2, .L15+4
	ldr	r3, [r5, #4]
	ldr	ip, [r2]
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	str	r0, [r4, #12]
	ldr	r3, [r3, #12]
	str	ip, [r4, #8]
	str	r2, [sp, #4]
	ldr	r0, [r1, #4]
	ldr	r2, [r6]
	str	r0, [sp]
	mov	r0, r4
	bl	dev_hard_header
	cmp	r0, #0
	ble	.L6
	mov	r0, r4
	bl	skb_reset_mac_header
	mov	r1, #12
	mov	r0, r4
	bl	skb_put
	mov	r6, r0
	mov	r10, #0
	mov	r1, #15
	bl	set_hsr_stag_path
	mov	r1, r7
	mov	r0, r6
	bl	set_hsr_stag_HSR_ver
	mov	r1, r10
	ldr	r0, [r5, #4]
	bl	spin_lock_irqsave
	ldr	r3, [r5, #4]
	ldr	r0, [r3, #4]
	bl	htons
	ldr	r3, [r5, #4]
	mov	r1, r10
	ldr	r2, [r3, #4]
	str	r0, [r6, #8]
	add	r2, r2, #1
	mov	r0, r3
	str	r2, [r3, #4]
	bl	spin_unlock_irqrestore
	mov	r3, #12
	str	r8, [r6, #4]
.L10:
	mov	r1, #4
	str	r3, [r6]
	mov	r0, r4
	bl	skb_put
	ldr	r3, [r5]
	ldr	r0, [r0]
	ldr	r1, [r3, #4]
	bl	ether_addr_copy
	ldr	r2, .L15+8
	ldr	r3, .L15+12
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	add	r1, r1, r3
	bl	skb_put_padto
	cmp	r0, #0
	bne	.L1
	mov	r1, r5
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	hsr_forward_skb
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r6, .L15+16
	ldr	r0, [r6]
	bl	htons
	ldr	r2, .L15+4
	ldr	r3, [r5, #4]
	ldr	ip, [r2]
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	str	r0, [r4, #12]
	ldr	r3, [r3, #12]
	str	ip, [r4, #8]
	str	r2, [sp, #4]
	ldr	r0, [r1, #4]
	ldr	r2, [r6]
	str	r0, [sp]
	mov	r0, r4
	bl	dev_hard_header
	cmp	r0, #0
	ble	.L6
	mov	r0, r4
	bl	skb_reset_mac_header
	cmp	r7, #0
	ble	.L8
	mov	r1, #8
	mov	r0, r4
	bl	skb_put
	ldr	r3, .L15
	mov	r9, r0
	ldr	r0, [r3]
	bl	htons
	ldr	r3, .L15+20
	str	r0, [r9, #4]
	ldr	r1, [r3]
	mov	r0, r9
	bl	set_hsr_tag_LSDU_size
	mov	r1, #12
	mov	r0, r4
	bl	skb_put
	mov	r10, #0
	mov	r6, r0
	mov	r1, r10
	bl	set_hsr_stag_path
	mov	r1, r7
	mov	r0, r6
	bl	set_hsr_stag_HSR_ver
	mov	r1, r10
	ldr	r0, [r5, #4]
	bl	spin_lock_irqsave
	ldr	r3, [r5, #4]
	ldr	r0, [r3, #8]
	bl	htons
	ldr	r3, [r5, #4]
	str	r0, [r6, #8]
	ldr	r0, [r3, #4]
	bl	htons
	ldr	r3, [r5, #4]
	str	r0, [r9]
	ldr	r2, [r3, #4]
	ldr	r0, [r3, #8]
	add	r2, r2, #1
	add	r0, r0, #1
	str	r0, [r3, #8]
	str	r2, [r3, #4]
	mov	r0, r3
	mov	r1, r10
	bl	spin_unlock_irqrestore
	mov	r3, #4
	str	r8, [r6, #4]
	b	.L10
.L6:
	ldr	r1, .L15+24
	mov	r0, #1
	bl	WARN_ONCE
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	kfree_skb
.L8:
	mov	r1, #12
	mov	r0, r4
	bl	skb_put
	mov	r10, #0
	mov	r6, r0
	mov	r1, r10
	bl	set_hsr_stag_path
	mov	r1, r7
	mov	r0, r6
	bl	set_hsr_stag_HSR_ver
	mov	r1, r10
	ldr	r0, [r5, #4]
	bl	spin_lock_irqsave
	ldr	r3, [r5, #4]
	ldr	r0, [r3, #4]
	bl	htons
	ldr	r3, [r5, #4]
	mov	r1, r10
	ldr	r2, [r3, #4]
	str	r0, [r6, #8]
	add	r2, r2, #1
	mov	r0, r3
	str	r2, [r3, #4]
	bl	spin_unlock_irqrestore
	mov	r3, #4
	str	r8, [r6, #4]
	b	.L10
.L16:
	.align	2
.L15:
	.word	ETH_P_PRP
	.word	TC_PRIO_CONTROL
	.word	ETH_ZLEN
	.word	HSR_HLEN
	.word	ETH_P_HSR
	.word	HSR_V1_SUP_LSDUSIZE
	.word	.LC0
	.size	send_hsr_supervision_frame, .-send_hsr_supervision_frame
	.comm	TC_PRIO_CONTROL,4,4
	.comm	HSR_V1_SUP_LSDUSIZE,4,4
	.comm	HSR_HLEN,4,4
	.comm	ETH_ZLEN,4,4
	.comm	ETH_P_PRP,4,4
	.comm	ETH_P_HSR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
