	.file	"extr_mesh.c_add_sdtr_msg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	add_sdtr_msg, @function
add_sdtr_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	ecx, DWORD PTR EXTENDED_MESSAGE[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rax, DWORD PTR [rdi]
	mov	rbx, rdi
	mov	rdx, QWORD PTR 8[rdi]
	lea	r12, 0[0+rax*4]
	mov	rbp, rax
	mov	DWORD PTR [rdx+rax*4], ecx
	mov	DWORD PTR 4[rdx+r12], 3
	mov	eax, DWORD PTR EXTENDED_SDTR[rip]
	mov	DWORD PTR 8[rdx+r12], eax
	mov	ecx, DWORD PTR mesh_sync_period[rip]
	test	ecx, ecx
	lea	eax, 3[rcx]
	cmovns	eax, ecx
	sar	eax, 2
	mov	DWORD PTR 12[rdx+r12], eax
	mov	edi, DWORD PTR 16[rdi]
	call	ALLOW_SYNC@PLT
	mov	rdx, QWORD PTR 8[rbx]
	test	rax, rax
	mov	eax, 0
	cmovne	eax, DWORD PTR mesh_sync_offset[rip]
	add	ebp, 5
	mov	DWORD PTR 16[rdx+r12], eax
	mov	DWORD PTR [rbx], ebp
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	add_sdtr_msg, .-add_sdtr_msg
	.comm	mesh_sync_period,4,4
	.comm	mesh_sync_offset,4,4
	.comm	EXTENDED_SDTR,4,4
	.comm	EXTENDED_MESSAGE,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_mesh.c_add_sdtr_msg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_sdtr_msg, %function
add_sdtr_msg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, #3
	ldr	r2, .L8
	push	{r4, r5, r6, lr}
	ldr	r3, [r0, #4]
	ldr	r5, [r0]
	mov	r4, r0
	ldr	r0, [r2]
	add	r2, r3, r5, lsl #2
	str	r0, [r3, r5, lsl #2]
	ldr	r3, .L8+4
	str	r1, [r2, #4]
	ldr	r1, [r3]
	ldr	r3, .L8+8
	str	r1, [r2, #8]
	ldr	r3, [r3]
	lsl	r6, r5, #2
	cmp	r3, #0
	add	r1, r3, #3
	movlt	r3, r1
	asr	r3, r3, #2
	str	r3, [r2, #12]
	ldr	r0, [r4, #8]
	bl	ALLOW_SYNC
	cmp	r0, #0
	ldrne	r3, .L8+12
	add	r5, r5, #5
	ldrne	r0, [r3]
	ldr	r3, [r4, #4]
	add	r3, r3, r6
	str	r0, [r3, #16]
	str	r5, [r4]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	EXTENDED_MESSAGE
	.word	EXTENDED_SDTR
	.word	mesh_sync_period
	.word	mesh_sync_offset
	.size	add_sdtr_msg, .-add_sdtr_msg
	.comm	mesh_sync_period,4,4
	.comm	mesh_sync_offset,4,4
	.comm	EXTENDED_SDTR,4,4
	.comm	EXTENDED_MESSAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
