	.file	"extr_rrm.c_wpas_rrm_build_lci_report.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Measurement request location subject=%u"
	.align 8
.LC1:
	.string	"Not building LCI report - bad location subject"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"LCI request subelements"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Failed to add LCI report element"
	.align 8
.LC4:
	.string	"RRM: Failed to add report element"
	.text
	.p2align 4
	.type	wpas_rrm_build_lci_report, @function
wpas_rrm_build_lci_report:
.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, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 8[rsi]
	lea	ebx, -3[rax]
	movsx	rbx, ebx
	test	rbx, rbx
	je	.L13
	mov	eax, DWORD PTR 4[rdi]
	mov	r13, rdi
	mov	r12, rsi
	mov	r14, rdx
	test	eax, eax
	jne	.L20
.L3:
	mov	edi, DWORD PTR 0[r13]
	call	is_multicast_ether_addr@PLT
	test	eax, eax
	je	.L21
.L8:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 40
	.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
.L21:
	.cfi_restore_state
	mov	ecx, DWORD PTR 12[r12]
	mov	esi, DWORD PTR 16[r12]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edx, DWORD PTR MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE[rip]
	mov	rdi, r14
	call	wpas_rrm_report_elem@PLT
	test	rax, rax
	jns	.L8
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	or	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rbp, QWORD PTR [rsi]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	xor	eax, eax
	lea	rsi, .LC0[rip]
	mov	r15, QWORD PTR 0[rbp]
	mov	rdx, r15
	call	wpa_printf@PLT
	cmp	QWORD PTR LOCATION_SUBJECT_REMOTE[rip], r15
	je	.L4
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	r15, 8[rbp]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rbp, -1[rbx]
	mov	rdx, r15
	lea	rsi, .LC2[rip]
	mov	rcx, rbp
	call	wpa_hexdump@PLT
	mov	edx, DWORD PTR LCI_REQ_SUBELEM_MAX_AGE[rip]
	mov	rsi, rbp
	mov	rdi, r15
	call	get_ie@PLT
	test	rax, rax
	je	.L5
	cmp	QWORD PTR 8[rax], 2
	je	.L23
.L5:
	lea	rbp, 8[rsp]
	mov	rdi, rbp
	call	os_get_reltime@PLT
	test	rax, rax
	jne	.L3
	lea	rdx, 16[rsp]
	lea	rsi, 8[r13]
	mov	rdi, rbp
	xor	ebx, ebx
	call	os_reltime_sub@PLT
	mov	eax, DWORD PTR 16[rsp]
	lea	ecx, [rax+rax*4]
	movsx	rax, DWORD PTR 20[rsp]
	mov	rdx, rax
	imul	rax, rax, 351843721
	sar	edx, 31
	sar	rax, 45
	sub	eax, edx
	lea	eax, [rax+rcx*2]
	cdqe
.L10:
	cmp	rbx, rax
	jb	.L3
.L9:
	mov	edi, DWORD PTR 4[r13]
	call	wpabuf_len@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	ebx, eax
	call	wpabuf_head_u8@PLT
	mov	ecx, DWORD PTR 12[r12]
	mov	r9d, ebx
	mov	rdi, r14
	mov	esi, DWORD PTR 16[r12]
	mov	edx, DWORD PTR MEASUREMENT_REPORT_MODE_ACCEPT[rip]
	mov	r8, rax
	call	wpas_rrm_report_elem@PLT
	test	rax, rax
	jns	.L8
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	or	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, 16[rax]
	lea	rbp, 8[rsp]
	call	WPA_GET_LE16@PLT
	mov	rdi, rbp
	movsx	rbx, eax
	call	os_get_reltime@PLT
	test	rax, rax
	jne	.L3
	lea	rdx, 16[rsp]
	lea	rsi, 8[r13]
	mov	rdi, rbp
	call	os_reltime_sub@PLT
	cmp	ebx, 65535
	je	.L9
	mov	eax, DWORD PTR 20[rsp]
	mov	esi, 100000
	imul	ecx, DWORD PTR 16[rsp], 10
	cdq
	idiv	esi
	add	eax, ecx
	cdqe
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, -1
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wpas_rrm_build_lci_report, .-wpas_rrm_build_lci_report
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE,4,4
	.comm	MEASUREMENT_REPORT_MODE_ACCEPT,4,4
	.comm	LOCATION_SUBJECT_REMOTE,8,8
	.comm	LCI_REQ_SUBELEM_MAX_AGE,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_rrm.c_wpas_rrm_build_lci_report.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Measurement request location subject=%u\000"
	.align	2
.LC1:
	.ascii	"Not building LCI report - bad location subject\000"
	.align	2
.LC2:
	.ascii	"LCI request subelements\000"
	.align	2
.LC3:
	.ascii	"Failed to add LCI report element\000"
	.align	2
.LC4:
	.ascii	"RRM: Failed to add report element\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wpas_rrm_build_lci_report, %function
wpas_rrm_build_lci_report:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [r1, #4]
	ldr	r3, .L21
	sub	sp, sp, #32
	cmp	r6, #3
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	beq	.L9
	ldr	r3, [r0, #4]
	mov	r4, r1
	cmp	r3, #0
	mov	r5, r0
	mov	r7, r2
	bne	.L17
.L3:
	ldr	r0, [r5]
	bl	is_multicast_ether_addr
	cmp	r0, #0
	beq	.L18
.L7:
	mov	r0, #0
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r3, .L21+4
	str	r0, [sp, #4]
	str	r0, [sp]
	ldr	r2, [r3]
	mov	r0, r7
	ldr	r3, [r4, #8]
	ldr	r1, [r4, #12]
	bl	wpas_rrm_report_elem
	cmp	r0, #0
	bge	.L7
	ldr	r3, .L21+8
	ldr	r1, .L21+12
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r0, #0
	b	.L1
.L17:
	ldr	r8, [r1]
	ldr	r9, .L21+8
	ldr	r10, [r8]
	ldr	r0, [r9]
	mov	r2, r10
	ldr	r1, .L21+16
	bl	wpa_printf
	ldr	r3, .L21+20
	ldr	r3, [r3]
	cmp	r3, r10
	beq	.L4
	ldr	r3, .L21+24
	ldr	r1, .L21+28
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r0, #0
	b	.L1
.L4:
	sub	r6, r6, #4
	add	r8, r8, #4
	mov	r3, r6
	mov	r2, r8
	ldr	r1, .L21+32
	ldr	r0, [r9]
	bl	wpa_hexdump
	ldr	r3, .L21+36
	mov	r1, r6
	mov	r0, r8
	ldr	r2, [r3]
	bl	get_ie
	subs	r6, r0, #0
	beq	.L5
	ldr	r3, [r6, #4]
	cmp	r3, #2
	movne	r6, #0
	beq	.L20
.L5:
	add	r0, sp, #12
	bl	os_get_reltime
	cmp	r0, #0
	bne	.L3
	add	r2, sp, #20
	add	r1, r5, #8
	add	r0, sp, #12
	bl	os_reltime_sub
	ldr	r3, [sp, #24]
	ldr	r1, .L21+40
	ldr	r2, [sp, #20]
	smull	r0, r1, r3, r1
	asr	r3, r3, #31
	rsb	r3, r3, r1, asr #13
	add	r2, r2, r2, lsl #2
	ldr	r1, .L21+44
	add	r3, r3, r2, lsl #1
	cmp	r6, r1
	cmpne	r6, r3
	bcc	.L3
	ldr	r3, .L21+48
	ldr	r0, [r5, #4]
	ldr	r10, [r3]
	ldr	r6, [r4, #12]
	ldr	r8, [r4, #8]
	bl	wpabuf_head_u8
	mov	r4, r0
	ldr	r0, [r5, #4]
	bl	wpabuf_len
	mov	r2, r10
	str	r0, [sp, #4]
	mov	r3, r8
	mov	r1, r6
	mov	r0, r7
	str	r4, [sp]
	bl	wpas_rrm_report_elem
	cmp	r0, #0
	bge	.L7
	ldr	r0, [r9]
	ldr	r1, .L21+52
	bl	wpa_printf
	mvn	r0, #0
	b	.L1
.L20:
	add	r0, r6, #8
	bl	WPA_GET_LE16
	mov	r6, r0
	b	.L5
.L9:
	mvn	r0, #0
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC5
	.word	MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE
	.word	MSG_DEBUG
	.word	.LC4
	.word	.LC0
	.word	LOCATION_SUBJECT_REMOTE
	.word	MSG_INFO
	.word	.LC1
	.word	.LC2
	.word	LCI_REQ_SUBELEM_MAX_AGE
	.word	351843721
	.word	65535
	.word	MEASUREMENT_REPORT_MODE_ACCEPT
	.word	.LC3
	.size	wpas_rrm_build_lci_report, .-wpas_rrm_build_lci_report
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE,4,4
	.comm	MEASUREMENT_REPORT_MODE_ACCEPT,4,4
	.comm	LOCATION_SUBJECT_REMOTE,4,4
	.comm	LCI_REQ_SUBELEM_MAX_AGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
