	.file	"extr_main.c_generate_pkt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"generate_pkt: key_id %d, key pointer %p\n"
	.text
	.p2align 4
	.globl	generate_pkt
	.type	generate_pkt, @function
generate_pkt:
.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
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 32
	.cfi_def_cfa_offset 88
	mov	r15d, DWORD PTR LEN_PKT_NOMAC[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 16[rsp], rax
	xor	eax, eax
	push	QWORD PTR 16[rdi]
	.cfi_def_cfa_offset 96
	push	QWORD PTR 8[rdi]
	.cfi_def_cfa_offset 104
	push	QWORD PTR [rdi]
	.cfi_def_cfa_offset 112
	call	ZERO@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rdi, r13
	lea	rbx, 4[rsp]
	mov	rsi, rbx
	call	TVTOTS@PLT
	lea	rsi, 20[rbp]
	mov	rdi, rbx
	call	HTONL_FP@PLT
	mov	edi, DWORD PTR STRATUM_UNSPEC[rip]
	call	STRATUM_TO_PKT@PLT
	mov	DWORD PTR 0[rbp], 8
	mov	edx, DWORD PTR ntpver[rip]
	mov	rdi, rbp
	mov	DWORD PTR 16[rbp], eax
	mov	esi, DWORD PTR LEAP_NOTINSYNC[rip]
	mov	ecx, 3
	call	set_li_vn_mode@PLT
	cmp	QWORD PTR debug[rip], 0
	jle	.L2
	mov	rdx, r12
	mov	esi, r14d
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printf@PLT
.L2:
	test	r12, r12
	je	.L1
	mov	rbx, QWORD PTR 8[rbp]
	mov	edi, r14d
	call	htonl@PLT
	mov	rcx, r12
	mov	esi, r15d
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR MAX_MDG_LEN[rip]
	lea	r8, 4[rax]
	call	make_mac@PLT
	test	eax, eax
	jle	.L1
	add	r15d, DWORD PTR KEY_MAC_LEN[rip]
	add	r15d, eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	generate_pkt, .-generate_pkt
	.comm	ntpver,4,4
	.comm	debug,8,8
	.comm	STRATUM_UNSPEC,4,4
	.comm	MAX_MDG_LEN,4,4
	.comm	LEN_PKT_NOMAC,4,4
	.comm	LEAP_NOTINSYNC,4,4
	.comm	KEY_MAC_LEN,8,8
	.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_main.c_generate_pkt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"generate_pkt: key_id %d, key pointer %p\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	generate_pkt
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_pkt, %function
generate_pkt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r4, r0
	ldr	ip, .L11
	ldr	lr, .L11+4
	sub	sp, sp, #16
	mov	r7, r2
	mov	r5, r3
	ldm	r0, {r0, r1, r2, r3}
	ldr	lr, [lr]
	str	lr, [sp, #12]
	mov	lr,#0
	ldr	r8, [ip]
	bl	ZERO
	add	r1, sp, #8
	mov	r0, r6
	bl	TVTOTS
	add	r1, r4, #12
	add	r0, sp, #8
	bl	HTONL_FP
	ldr	r3, .L11+8
	ldr	r0, [r3]
	bl	STRATUM_TO_PKT
	mov	r1, #8
	ldr	r3, .L11+12
	ldr	r2, .L11+16
	str	r0, [r4, #8]
	str	r1, [r4]
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #3
	bl	set_li_vn_mode
	ldr	r3, .L11+20
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L2
	mov	r2, r5
	mov	r1, r7
	ldr	r0, .L11+24
	bl	printf
.L2:
	cmp	r5, #0
	beq	.L1
	mov	r0, r7
	ldr	r6, [r4, #4]
	bl	htonl
	ldr	r1, [r4, #4]
	ldr	r2, .L11+28
	str	r0, [r6]
	add	r1, r1, #4
	mov	r3, r5
	ldr	r2, [r2]
	mov	r0, r4
	str	r1, [sp]
	mov	r1, r8
	bl	make_mac
	cmp	r0, #0
	ldrgt	r3, .L11+32
	ldrgt	r3, [r3]
	addgt	r0, r0, r3
	addgt	r8, r8, r0
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	LEN_PKT_NOMAC
	.word	.LC1
	.word	STRATUM_UNSPEC
	.word	LEAP_NOTINSYNC
	.word	ntpver
	.word	debug
	.word	.LC0
	.word	MAX_MDG_LEN
	.word	KEY_MAC_LEN
	.size	generate_pkt, .-generate_pkt
	.comm	ntpver,4,4
	.comm	debug,4,4
	.comm	STRATUM_UNSPEC,4,4
	.comm	MAX_MDG_LEN,4,4
	.comm	LEN_PKT_NOMAC,4,4
	.comm	LEAP_NOTINSYNC,4,4
	.comm	KEY_MAC_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
