	.file	"extr_ntp_control.c_send_restrict_entry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %s"
	.text
	.p2align 4
	.type	send_restrict_entry, @function
send_restrict_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 168
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -152[rbp], rdx
	mov	QWORD PTR -160[rbp], rdi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -97[rbp], 0
	movabs	rax, 32973453693052001
	mov	QWORD PTR -129[rbp], rax
	sub	rax, 116458228
	mov	QWORD PTR -121[rbp], rax
	add	rax, 134285307
	mov	QWORD PTR -113[rbp], rax
	movabs	rax, 8441204149766417510
	mov	QWORD PTR -105[rbp], rax
	movsx	rax, DWORD PTR RESLIST_FIELDS[rip]
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L31:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L31
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L32
.L4:
	mov	rdx, QWORD PTR -160[rbp]
	mov	r15, rsp
	xor	r14d, r14d
	xor	r12d, r12d
	lea	rax, -136[rbp]
	lea	rcx, -140[rbp]
	mov	rdi, rcx
	mov	QWORD PTR -184[rbp], rcx
	mov	ecx, esi
	mov	rsi, rax
	mov	QWORD PTR -192[rbp], rax
	call	sockaddrs_from_restrict_u@PLT
	mov	rdi, r15
	call	COUNTOF@PLT
	mov	rdi, r15
	mov	r13, rax
	call	ZERO@PLT
	lea	rax, -113[rbp]
	mov	QWORD PTR -200[rbp], rax
	test	r13, r13
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	r14d, 1
	jle	.L6
	sub	r14d, 2
.L7:
	mov	rdi, r15
	call	COUNTOF@PLT
	mov	r8, rax
	mov	eax, r12d
	sar	r12d, 2
	and	eax, 3
	cqo
	idiv	r8
	cmp	QWORD PTR [r15+rdx*8], 0
	mov	rbx, rdx
	je	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r15
	lea	rbx, 1[rdx]
	call	COUNTOF@PLT
	mov	r8, rax
	mov	rax, rbx
	cqo
	idiv	r8
	cmp	QWORD PTR [r15+rdx*8], 0
	jne	.L9
	mov	rbx, rdx
.L8:
	cmp	rbx, 2
	je	.L10
	jg	.L11
	test	rbx, rbx
	je	.L12
	cmp	rbx, 1
	jne	.L14
	lea	r8, -96[rbp]
	lea	rdx, -121[rbp]
	mov	esi, 32
	xor	eax, eax
	mov	rcx, QWORD PTR -152[rbp]
	mov	rdi, r8
	mov	QWORD PTR -176[rbp], r8
	call	snprintf@PLT
	mov	rdi, QWORD PTR -192[rbp]
.L29:
	call	stoa@PLT
	mov	rdi, rax
	mov	QWORD PTR -168[rbp], rax
	call	strlen@PLT
	mov	r8, QWORD PTR -176[rbp]
	mov	rsi, QWORD PTR -168[rbp]
	mov	edx, eax
	mov	rdi, r8
	call	ctl_putunqstr@PLT
.L14:
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR [r15+rbx*8], rax
	sub	r13, 1
	jne	.L5
.L17:
	mov	edi, DWORD PTR -152[rbp]
	call	send_random_tag_value@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	cmp	rbx, 3
	jne	.L14
	mov	rcx, QWORD PTR -152[rbp]
	lea	rax, -96[rbp]
	lea	rdx, -105[rbp]
	mov	esi, 32
	mov	rdi, rax
	mov	QWORD PTR -168[rbp], rax
	xor	eax, eax
	call	snprintf@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	res_match_flags@PLT
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	mov	edi, DWORD PTR [rax]
	call	res_access_flags@PLT
	mov	rcx, QWORD PTR -176[rbp]
	mov	r8, rax
	cmp	BYTE PTR [rcx], 0
	jne	.L34
.L16:
	mov	rdi, r8
	mov	QWORD PTR -176[rbp], r8
	call	strlen@PLT
	mov	r8, QWORD PTR -176[rbp]
	mov	rdi, QWORD PTR -168[rbp]
	mov	edx, eax
	mov	rsi, r8
	call	ctl_putunqstr@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	mov	r14d, 29
	call	rand@PLT
	mov	ebx, eax
	xor	eax, eax
	call	rand@PLT
	sal	eax, 16
	mov	r12d, eax
	xor	r12d, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	lea	r8, -96[rbp]
	mov	rcx, QWORD PTR -152[rbp]
	lea	rdx, -129[rbp]
	xor	eax, eax
	mov	rdi, r8
	mov	esi, 32
	mov	QWORD PTR -176[rbp], r8
	call	snprintf@PLT
	mov	rdi, QWORD PTR -184[rbp]
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rcx, QWORD PTR -152[rbp]
	lea	rdi, -96[rbp]
	mov	esi, 32
	xor	eax, eax
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR -168[rbp], rdi
	call	snprintf@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, QWORD PTR -168[rbp]
	mov	esi, DWORD PTR 8[rax]
	call	ctl_putuint@PLT
	jmp	.L14
.L34:
	mov	rdi, rax
	mov	QWORD PTR -208[rbp], rcx
	mov	QWORD PTR -176[rbp], rax
	call	LIB_GETBUF@PLT
	mov	r8, QWORD PTR -176[rbp]
	xor	eax, eax
	mov	rcx, QWORD PTR -208[rbp]
	mov	esi, DWORD PTR LIB_BUFLENGTH[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r8
	call	snprintf@PLT
	mov	r8, QWORD PTR -176[rbp]
	jmp	.L16
.L32:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	send_restrict_entry, .-send_restrict_entry
	.comm	TRUE,8,8
	.comm	RESLIST_FIELDS,4,4
	.comm	LIB_BUFLENGTH,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_ntp_control.c_send_restrict_entry.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC4:
	.ascii	"%s %s\000"
	.align	2
.LC1:
	.ascii	"mask.%u\000"
	.align	2
.LC0:
	.ascii	"addr.%u\000"
	.align	2
.LC2:
	.ascii	"hits.%u\000"
	.align	2
.LC3:
	.ascii	"flags.%u\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_restrict_entry, %function
send_restrict_entry:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #108
	mov	r7, r0
	mov	r4, r2
	ldr	r2, .L32
	mov	r3, r1
	ldr	r6, .L32+4
	ldr	r1, .L32+8
	ldr	ip, [r2]
	ldr	r5, .L32+12
	sub	r8, fp, #108
	str	r0, [fp, #-124]
	ldr	r2, .L32+16
	ldm	r1, {r0, r1}
	stm	r8, {r0, r1}
	ldm	r6, {r0, r1}
	sub	r6, fp, #100
	stm	r6, {r0, r1}
	ldm	r5, {r0, r1}
	sub	lr, fp, #84
	sub	r5, fp, #92
	lsl	ip, ip, #2
	stm	r5, {r0, r1}
	ldm	r2, {r0, r1, r2}
	add	ip, ip, #7
	stmia	lr!, {r0, r1}
	bic	ip, ip, #7
	sub	sp, sp, ip
	ldr	ip, .L32+20
	strb	r2, [lr]
	sub	r1, fp, #112
	mov	r2, r7
	add	r5, sp, #8
	str	r4, [fp, #-120]
	sub	r0, fp, #116
	ldr	ip, [ip]
	str	ip, [fp, #-40]
	mov	ip,#0
	bl	sockaddrs_from_restrict_u
	mov	r0, r5
	bl	COUNTOF
	mov	r7, r0
	mov	r0, r5
	bl	ZERO
	cmp	r7, #0
	ble	.L14
	mov	r8, #0
	mov	r6, r8
	ldr	r10, .L32+24
.L2:
	cmp	r8, #1
	subgt	r8, r8, #2
	ble	.L29
.L4:
	mov	r0, r5
	bl	COUNTOF
	mov	r1, r0
	and	r0, r6, #3
	bl	__aeabi_idivmod
	ldr	r3, [r5, r1, lsl #2]
	mov	r4, r1
	cmp	r3, #0
	asr	r6, r6, #2
	beq	.L5
.L6:
	mov	r0, r5
	add	r4, r1, #1
	bl	COUNTOF
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_idivmod
	ldr	r3, [r5, r1, lsl #2]
	cmp	r3, #0
	bne	.L6
	mov	r4, r1
.L5:
	cmp	r4, #3
	ldrls	pc, [pc, r4, asl #2]
	b	.L7
.L9:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
.L8:
	ldr	r3, [fp, #-120]
	sub	r2, fp, #84
	mov	r1, #32
	sub	r0, fp, #72
	bl	snprintf
	ldr	r9, [fp, #-124]
	ldr	r0, [r9, #4]
	bl	res_match_flags
	str	r0, [fp, #-128]
	ldr	r0, [r9]
	bl	res_access_flags
	ldr	r3, [fp, #-128]
	mov	r9, r0
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L30
.L13:
	mov	r0, r9
.L27:
	bl	strlen
	mov	r1, r9
	mov	r2, r0
	sub	r0, fp, #72
	bl	ctl_putunqstr
.L7:
	ldr	r3, [r10]
	subs	r7, r7, #1
	str	r3, [r5, r4, lsl #2]
	bne	.L2
.L14:
	ldr	r0, [fp, #-120]
	bl	send_random_tag_value
	ldr	r3, .L32+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r1, #32
	ldr	r3, [fp, #-120]
	sub	r2, fp, #108
	sub	r0, fp, #72
	bl	snprintf
	sub	r0, fp, #116
	bl	stoa
	mov	r9, r0
	b	.L27
.L10:
	ldr	r3, [fp, #-120]
	mov	r1, #32
	sub	r2, fp, #92
	sub	r0, fp, #72
	bl	snprintf
	ldr	r3, [fp, #-124]
	sub	r0, fp, #72
	ldr	r1, [r3, #8]
	bl	ctl_putuint
	b	.L7
.L11:
	mov	r1, #32
	ldr	r3, [fp, #-120]
	sub	r2, fp, #100
	sub	r0, fp, #72
	bl	snprintf
	sub	r0, fp, #112
	bl	stoa
	mov	r9, r0
	b	.L27
.L29:
	bl	rand
	mov	r6, r0
	bl	rand
	mov	r8, #29
	eor	r6, r6, r0, lsl #16
	b	.L4
.L30:
	bl	LIB_GETBUF
	ldr	r1, .L32+28
	str	r9, [sp]
	mov	r0, r9
	ldr	r3, [fp, #-128]
	ldr	r2, .L32+32
	ldr	r1, [r1]
	bl	snprintf
	b	.L13
.L31:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	RESLIST_FIELDS
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC5
	.word	TRUE
	.word	LIB_BUFLENGTH
	.word	.LC4
	.size	send_restrict_entry, .-send_restrict_entry
	.comm	TRUE,4,4
	.comm	RESLIST_FIELDS,4,4
	.comm	LIB_BUFLENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
