	.file	"extr_radius_das.c_radius_das_receive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DAS: recvfrom: %s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"DAS: Received %d bytes from %s:%d"
	.align 8
.LC2:
	.string	"DAS: Drop message from unknown client"
	.align 8
.LC3:
	.string	"DAS: Parsing incoming RADIUS packet from %s:%d failed"
	.align 8
.LC4:
	.string	"DAS: Invalid authenticator or Message-Authenticator in packet from %s:%d - drop"
	.align 8
.LC5:
	.string	"DAS: Unacceptable Event-Timestamp (%u; local time %u) in packet from %s:%d - drop"
	.align 8
.LC6:
	.string	"DAS: Missing Event-Timestamp in packet from %s:%d - drop"
	.align 8
.LC7:
	.string	"DAS: Unexpected RADIUS code %u in packet from %s:%d"
	.section	.rodata.str1.1
.LC8:
	.string	"DAS: Reply to %s:%d"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"DAS: Failed to add Event-Timestamp attribute"
	.align 8
.LC10:
	.string	"DAS: Failed to add Message-Authenticator attribute"
	.section	.rodata.str1.1
.LC11:
	.string	"DAS: sendto(to %s:%d): %s"
	.text
	.p2align 4
	.type	radius_das_receive, @function
radius_das_receive:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 4096
	.cfi_def_cfa_offset 4152
	or	QWORD PTR [rsp], 0
	sub	rsp, 2040
	.cfi_def_cfa_offset 6192
	xor	ecx, ecx
	mov	edx, 6000
	lea	r13, 48[rsp]
	lea	r15, 64[rsp]
	mov	rbx, rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 6120[rsp], rax
	xor	eax, eax
	lea	r9, 32[rsp]
	mov	r8, r13
	mov	rsi, r15
	mov	DWORD PTR 32[rsp], 16
	call	recvfrom@PLT
	test	eax, eax
	js	.L29
	mov	rdi, QWORD PTR 48[rsp]
	mov	ebp, eax
	lea	r14, 6064[rsp]
	call	inet_ntoa@PLT
	mov	edx, 50
	mov	rdi, r14
	mov	esi, eax
	call	os_strlcpy@PLT
	mov	edi, DWORD PTR 56[rsp]
	call	ntohs@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rcx, r14
	mov	edx, ebp
	mov	r8d, eax
	mov	r12d, eax
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rax, QWORD PTR 32[rbx]
	test	rax, rax
	je	.L4
	cmp	rax, QWORD PTR 48[rsp]
	jne	.L30
.L4:
	mov	esi, ebp
	mov	rdi, r15
	call	radius_msg_parse@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L31
	mov	rax, QWORD PTR MSG_MSGDUMP[rip]
	cmp	QWORD PTR wpa_debug_level[rip], rax
	jle	.L32
.L6:
	mov	ecx, DWORD PTR 24[rbx]
	mov	edx, DWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR 12[rbx]
	call	radius_msg_verify_das_req@PLT
	test	rax, rax
	jne	.L33
	lea	rdi, 40[rsp]
	call	os_get_time@PLT
	mov	esi, DWORD PTR RADIUS_ATTR_EVENT_TIMESTAMP[rip]
	lea	rdx, 36[rsp]
	mov	rdi, rbp
	mov	ecx, 4
	call	radius_msg_get_attr@PLT
	cmp	eax, 4
	je	.L34
	cmp	QWORD PTR 16[rbx], 0
	jne	.L35
.L10:
	mov	rdi, rbp
	call	radius_msg_get_hdr@PLT
	mov	edx, DWORD PTR [rax]
	cmp	edx, 128
	je	.L11
	cmp	edx, 129
	jne	.L36
	mov	ecx, r12d
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rax
	call	radius_das_coa@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	r15, rax
.L14:
	mov	QWORD PTR 8[rsp], r8
	test	r15, r15
	je	.L8
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	ecx, r12d
	mov	rdx, r14
	xor	eax, eax
	lea	rsi, .LC8[rip]
	call	wpa_printf@PLT
	mov	rdx, QWORD PTR 40[rsp]
	mov	esi, DWORD PTR RADIUS_ATTR_EVENT_TIMESTAMP[rip]
	mov	rdi, r15
	call	radius_msg_add_attr_int32@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	eax, eax
	je	.L37
.L15:
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 12[rbx]
	mov	rcx, r8
	mov	rdi, r15
	call	radius_msg_finish_das_resp@PLT
	test	rax, rax
	js	.L38
.L16:
	mov	rax, QWORD PTR MSG_MSGDUMP[rip]
	cmp	QWORD PTR wpa_debug_level[rip], rax
	jle	.L39
.L17:
	mov	rdi, r15
	call	radius_msg_get_buf@PLT
	mov	r9d, DWORD PTR 32[rsp]
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	mov	DWORD PTR 28[rsp], r9d
	call	wpabuf_len@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	DWORD PTR 8[rsp], eax
	call	wpabuf_head@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r9d, DWORD PTR 28[rsp]
	xor	ecx, ecx
	mov	edx, DWORD PTR 8[rsp]
	mov	esi, eax
	mov	r8, r13
	call	sendto@PLT
	test	eax, eax
	jns	.L8
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	mov	ecx, r12d
	mov	rdx, r14
	mov	r8d, eax
	lea	rsi, .LC11[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	xor	eax, eax
	call	wpa_printf@PLT
.L1:
	mov	rax, QWORD PTR 6120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L40
	add	rsp, 6136
	.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
.L33:
	.cfi_restore_state
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	ecx, r12d
	mov	rdx, r14
	xor	eax, eax
	lea	rsi, .LC4[rip]
	xor	r15d, r15d
	call	wpa_printf@PLT
.L8:
	mov	rdi, rbp
	call	radius_msg_free@PLT
	mov	rdi, r15
	call	radius_msg_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, rbp
	call	radius_msg_dump@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	r8d, r12d
	mov	rcx, r14
	xor	eax, eax
	lea	rsi, .LC7[rip]
	xor	r15d, r15d
	call	wpa_printf@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ecx, r12d
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rax
	call	radius_das_disconnect@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	r15, rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L34:
	mov	edi, DWORD PTR 36[rsp]
	call	ntohl@PLT
	mov	edi, DWORD PTR 40[rsp]
	mov	r15d, eax
	sub	edi, eax
	call	abs@PLT
	cmp	DWORD PTR [rbx], eax
	jnb	.L10
	mov	ecx, DWORD PTR 40[rsp]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	edx, r15d
	mov	r9d, r12d
	mov	r8, r14
	lea	rsi, .LC5[rip]
	xor	eax, eax
	xor	r15d, r15d
	call	wpa_printf@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	ecx, r12d
	mov	rdx, r14
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	wpa_printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	ecx, r12d
	mov	rdx, r14
	xor	eax, eax
	lea	rsi, .LC6[rip]
	xor	r15d, r15d
	call	wpa_printf@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rdi, r15
	call	radius_msg_dump@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L37:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC9[rip]
	call	wpa_printf@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L38:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC10[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L16
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	radius_das_receive, .-radius_das_receive
	.comm	wpa_debug_level,8,8
	.comm	errno,4,4
	.comm	RADIUS_ATTR_EVENT_TIMESTAMP,4,4
	.comm	MSG_MSGDUMP,8,8
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,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_radius_das.c_radius_das_receive.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DAS: recvfrom: %s\000"
	.align	2
.LC1:
	.ascii	"DAS: Received %d bytes from %s:%d\000"
	.align	2
.LC2:
	.ascii	"DAS: Drop message from unknown client\000"
	.align	2
.LC3:
	.ascii	"DAS: Parsing incoming RADIUS packet from %s:%d fail"
	.ascii	"ed\000"
	.align	2
.LC4:
	.ascii	"DAS: Invalid authenticator or Message-Authenticator"
	.ascii	" in packet from %s:%d - drop\000"
	.align	2
.LC5:
	.ascii	"DAS: Unacceptable Event-Timestamp (%u; local time %"
	.ascii	"u) in packet from %s:%d - drop\000"
	.align	2
.LC6:
	.ascii	"DAS: Missing Event-Timestamp in packet from %s:%d -"
	.ascii	" drop\000"
	.align	2
.LC7:
	.ascii	"DAS: Unexpected RADIUS code %u in packet from %s:%d"
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"DAS: Reply to %s:%d\000"
	.align	2
.LC9:
	.ascii	"DAS: Failed to add Event-Timestamp attribute\000"
	.align	2
.LC10:
	.ascii	"DAS: Failed to add Message-Authenticator attribute\000"
	.align	2
.LC11:
	.ascii	"DAS: sendto(to %s:%d): %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radius_das_receive, %function
radius_das_receive:
	@ args = 0, pretend = 0, frame = 6088
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #8
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #6080
	sub	sp, sp, #20
	ldr	r5, .L44
	add	r3, sp, #20
	add	lr, sp, #6080
	add	r9, sp, #32
	str	r3, [sp, #4]
	str	r9, [sp]
	ldr	r5, [r5]
	str	r5, [lr, #12]
	mov	r5,#0
	mov	r4, r1
	mov	r3, #0
	ldr	r2, .L44+4
	add	r1, sp, #40
	add	lr, lr, #12
	str	ip, [sp, #20]
	bl	recvfrom
	subs	r5, r0, #0
	blt	.L32
	ldr	r0, [sp, #32]
	bl	inet_ntoa
	mov	r1, r0
	add	r0, sp, #6016
	mov	r2, #50
	add	r0, r0, #24
	bl	os_strlcpy
	ldr	r0, [sp, #36]
	bl	ntohs
	ldr	r8, .L44+8
	str	r0, [sp]
	add	r3, sp, #6016
	add	r3, r3, #24
	mov	r7, r0
	mov	r2, r5
	ldr	r0, [r8]
	ldr	r1, .L44+12
	bl	wpa_printf
	ldr	r3, [r4, #24]
	cmp	r3, #0
	beq	.L4
	ldr	r2, [sp, #32]
	cmp	r3, r2
	bne	.L33
.L4:
	mov	r1, r5
	add	r0, sp, #40
	bl	radius_msg_parse
	subs	r5, r0, #0
	beq	.L34
	ldr	fp, .L44+16
	ldr	r10, .L44+20
	ldr	r2, [fp]
	ldr	r3, [r10]
	cmp	r2, r3
	ble	.L35
.L6:
	mov	r0, r5
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	bl	radius_msg_verify_das_req
	subs	r6, r0, #0
	bne	.L36
	add	r0, sp, #28
	bl	os_get_time
	ldr	r3, .L44+24
	mov	r0, r5
	ldr	r1, [r3]
	add	r2, sp, #24
	mov	r3, #4
	bl	radius_msg_get_attr
	cmp	r0, #4
	beq	.L37
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L38
.L10:
	mov	r0, r5
	bl	radius_msg_get_hdr
	ldr	r2, [r0]
	str	r0, [sp, #12]
	cmp	r2, #128
	beq	.L11
	cmp	r2, #129
	bne	.L39
	add	r2, sp, #6016
	mov	r3, r7
	mov	r1, r5
	mov	r0, r4
	add	r2, r2, #24
	bl	radius_das_coa
	mov	r6, r0
.L14:
	cmp	r6, #0
	beq	.L8
	add	r2, sp, #6016
	mov	r3, r7
	ldr	r1, .L44+28
	add	r2, r2, #24
	ldr	r0, [r8]
	bl	wpa_printf
	ldr	r3, .L44+24
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, [sp, #28]
	bl	radius_msg_add_attr_int32
	cmp	r0, #0
	beq	.L40
.L15:
	mov	r0, r6
	ldr	r3, [sp, #12]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	bl	radius_msg_finish_das_resp
	cmp	r0, #0
	blt	.L41
.L16:
	ldr	r2, [fp]
	ldr	r3, [r10]
	cmp	r2, r3
	ble	.L42
.L17:
	mov	r0, r6
	bl	radius_msg_get_buf
	ldr	r10, [r4, #4]
	mov	r8, r0
	bl	wpabuf_head
	mov	r4, r0
	mov	r0, r8
	bl	wpabuf_len
	ldr	r3, [sp, #20]
	mov	r2, r0
	str	r3, [sp, #4]
	mov	r1, r4
	mov	r0, r10
	mov	r3, #0
	str	r9, [sp]
	bl	sendto
	cmp	r0, #0
	bge	.L8
	ldr	r2, .L44+32
	ldr	r3, .L44+36
	ldr	r0, [r2]
	ldr	r4, [r3]
	bl	strerror
	mov	r2, r0
	str	r2, [sp]
	add	r2, sp, #6016
	mov	r3, r7
	mov	r0, r4
	ldr	r1, .L44+40
	add	r2, r2, #24
	bl	wpa_printf
	b	.L8
.L32:
	ldr	r3, .L44+32
	ldr	r2, .L44+36
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L44+44
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
.L1:
	add	r3, sp, #6080
	ldr	r2, .L44
	add	r3, r3, #12
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L43
	add	sp, sp, #6080
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	add	r2, sp, #6016
	mov	r3, r7
	ldr	r0, [r8]
	ldr	r1, .L44+48
	add	r2, r2, #24
	bl	wpa_printf
	mov	r6, #0
.L8:
	mov	r0, r5
	bl	radius_msg_free
	mov	r0, r6
	bl	radius_msg_free
	b	.L1
.L35:
	bl	radius_msg_dump
	b	.L6
.L33:
	ldr	r0, [r8]
	ldr	r1, .L44+52
	bl	wpa_printf
	b	.L1
.L39:
	str	r7, [sp]
	add	r3, sp, #6016
	ldr	r0, [r8]
	ldr	r1, .L44+56
	add	r3, r3, #24
	bl	wpa_printf
	mov	r6, #0
	b	.L8
.L11:
	add	r2, sp, #6016
	mov	r3, r7
	mov	r1, r5
	mov	r0, r4
	add	r2, r2, #24
	bl	radius_das_disconnect
	mov	r6, r0
	b	.L14
.L37:
	ldr	r0, [sp, #24]
	bl	ntohl
	ldr	r3, [sp, #28]
	ldr	r1, [r4]
	sub	r2, r3, r0
	cmp	r2, #0
	rsblt	r2, r2, #0
	cmp	r2, r1
	bls	.L10
	add	r2, sp, #6016
	add	r2, r2, #24
	str	r2, [sp]
	str	r7, [sp, #4]
	mov	r2, r0
	ldr	r1, .L44+60
	ldr	r0, [r8]
	bl	wpa_printf
	b	.L8
.L34:
	add	r2, sp, #6016
	mov	r3, r7
	ldr	r0, [r8]
	ldr	r1, .L44+64
	add	r2, r2, #24
	bl	wpa_printf
	b	.L1
.L38:
	add	r2, sp, #6016
	mov	r3, r7
	ldr	r0, [r8]
	ldr	r1, .L44+68
	add	r2, r2, #24
	bl	wpa_printf
	b	.L8
.L42:
	mov	r0, r6
	bl	radius_msg_dump
	b	.L17
.L40:
	ldr	r1, .L44+72
	ldr	r0, [r8]
	bl	wpa_printf
	b	.L15
.L41:
	ldr	r0, [r8]
	ldr	r1, .L44+76
	bl	wpa_printf
	b	.L16
.L43:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	.LC12
	.word	6000
	.word	MSG_DEBUG
	.word	.LC1
	.word	wpa_debug_level
	.word	MSG_MSGDUMP
	.word	RADIUS_ATTR_EVENT_TIMESTAMP
	.word	.LC8
	.word	errno
	.word	MSG_ERROR
	.word	.LC11
	.word	.LC0
	.word	.LC4
	.word	.LC2
	.word	.LC7
	.word	.LC5
	.word	.LC3
	.word	.LC6
	.word	.LC9
	.word	.LC10
	.size	radius_das_receive, .-radius_das_receive
	.comm	wpa_debug_level,4,4
	.comm	errno,4,4
	.comm	RADIUS_ATTR_EVENT_TIMESTAMP,4,4
	.comm	MSG_MSGDUMP,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
