	.file	"extr_rrm.c_wpas_add_beacon_rep.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wpas_add_beacon_rep, @function
wpas_add_beacon_rep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 40[rdx]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdx]
	mov	QWORD PTR 16[rsp], r15
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR 8[rdx]
.L2:
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR broadcast_ether_addr[rip]
	mov	QWORD PTR 24[rsp], rax
	mov	rdx, QWORD PTR ETH_ALEN[rip]
	call	os_memcmp@PLT
	test	rax, rax
	jne	.L3
.L7:
	mov	rdx, QWORD PTR [rbx]
	test	rdx, rdx
	je	.L5
	cmp	rdx, QWORD PTR 16[rbp]
	je	.L16
.L6:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 88[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 104
	.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
.L16:
	.cfi_restore_state
	mov	esi, DWORD PTR 36[rbp]
	mov	edi, DWORD PTR 20[rbx]
	call	os_memcmp@PLT
	test	rax, rax
	jne	.L6
.L5:
	mov	edi, DWORD PTR 32[rbp]
	mov	rdx, QWORD PTR 24[rsp]
	lea	rcx, 72[rsp]
	mov	rsi, r15
	lea	r9, 64[rsp]
	lea	r8, 68[rsp]
	call	wpas_get_op_chan_phy@PLT
	test	rax, rax
	js	.L6
	mov	edi, r14d
	lea	r15, 24[rsp]
	lea	r14, 16[rsp]
	call	host_to_le64@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	DWORD PTR 60[rsp], eax
	call	host_to_le16@PLT
	mov	edi, DWORD PTR 28[rbp]
	mov	DWORD PTR 56[rsp], eax
	call	rssi_to_rcpi@PLT
	mov	esi, DWORD PTR 24[rbp]
	mov	rdx, QWORD PTR ETH_ALEN[rip]
	mov	DWORD PTR 32[rsp], 255
	mov	edi, DWORD PTR 48[rsp]
	mov	DWORD PTR 52[rsp], eax
	call	os_memcpy@PLT
	mov	edi, r13d
	xor	r13d, r13d
	mov	QWORD PTR 40[rsp], 0
	call	host_to_le32@PLT
	mov	DWORD PTR 36[rsp], eax
	lea	rax, 32[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	add	r13d, 1
	cmp	QWORD PTR 24[rsp], 1
	jbe	.L6
.L10:
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	mov	rdx, r12
	mov	r9, r15
	mov	r8, r14
	push	r13
	.cfi_def_cfa_offset 176
	mov	rcx, QWORD PTR 24[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	call	wpas_add_beacon_rep_elem@PLT
	pop	rdx
	.cfi_def_cfa_offset 168
	pop	rcx
	.cfi_def_cfa_offset 160
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR BEACON_REPORT_DETAIL_NONE[rip]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L18
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR 24[rbp]
	mov	edi, DWORD PTR 24[rbx]
	mov	rdx, QWORD PTR ETH_ALEN[rip]
	call	os_memcmp@PLT
	test	rax, rax
	je	.L7
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wpas_add_beacon_rep, .-wpas_add_beacon_rep
	.comm	broadcast_ether_addr,4,4
	.comm	ETH_ALEN,8,8
	.comm	BEACON_REPORT_DETAIL_NONE,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_rrm.c_wpas_add_beacon_rep.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wpas_add_beacon_rep, %function
wpas_add_beacon_rep:
	@ args = 4, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	ip, [r2]
	mov	r6, r3
	ldr	r3, .L19
	sub	sp, sp, #72
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	cmp	ip, #0
	ldr	r3, .L19+4
	ldr	r8, .L19+8
	ldreq	ip, [r2, #4]
	add	r9, r2, #28
	mov	r5, r2
	mov	r4, r0
	mov	r7, r1
	ldr	r2, [r8]
	ldr	r1, [r3]
	ldr	r0, [r0, #16]
	str	r9, [sp, #20]
	str	ip, [sp, #24]
	bl	os_memcmp
	cmp	r0, #0
	bne	.L3
.L7:
	ldr	r2, [r4]
	cmp	r2, #0
	beq	.L5
	ldr	r3, [r5, #8]
	cmp	r2, r3
	beq	.L16
.L6:
	mov	r0, #0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #72
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r1, [r5, #24]
	ldr	r0, [r4, #12]
	bl	os_memcmp
	cmp	r0, #0
	bne	.L6
.L5:
	add	r2, sp, #56
	add	r3, sp, #60
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r1, r9
	ldr	r2, [sp, #24]
	ldr	r0, [r5, #20]
	add	r3, sp, #64
	bl	wpas_get_op_chan_phy
	cmp	r0, #0
	blt	.L6
	mov	r0, r6
	bl	host_to_le64
	mov	r3, r0
	ldr	r0, [r4, #8]
	str	r3, [sp, #52]
	bl	host_to_le16
	mov	r3, r0
	ldr	r0, [r5, #16]
	str	r3, [sp, #48]
	bl	rssi_to_rcpi
	mov	r3, #255
	mov	ip, r0
	mov	r6, #0
	ldr	r2, [r8]
	ldr	r1, [r5, #12]
	ldr	r0, [sp, #40]
	str	ip, [sp, #44]
	str	r3, [sp, #28]
	bl	os_memcpy
	ldr	r0, [sp, #104]
	str	r6, [sp, #36]
	bl	host_to_le32
	ldr	r10, .L19+12
	str	r0, [sp, #32]
	add	r9, sp, #24
	add	r8, sp, #20
	b	.L10
.L18:
	ldr	r3, [sp, #24]
	cmp	r3, #1
	bls	.L6
.L10:
	str	r6, [sp, #8]
	mov	r2, r7
	mov	r1, r5
	mov	r0, r4
	stm	sp, {r8, r9}
	add	r3, sp, #28
	bl	wpas_add_beacon_rep_elem
	cmp	r0, #0
	add	r6, r6, #1
	bne	.L1
	ldr	r2, [r4, #4]
	ldr	r3, [r10]
	cmp	r2, r3
	bne	.L18
	b	.L6
.L3:
	ldr	r2, [r8]
	ldr	r1, [r5, #12]
	ldr	r0, [r4, #16]
	bl	os_memcmp
	cmp	r0, #0
	beq	.L7
	b	.L6
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	broadcast_ether_addr
	.word	ETH_ALEN
	.word	BEACON_REPORT_DETAIL_NONE
	.size	wpas_add_beacon_rep, .-wpas_add_beacon_rep
	.comm	broadcast_ether_addr,4,4
	.comm	ETH_ALEN,4,4
	.comm	BEACON_REPORT_DETAIL_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
