	.file	"extr_if_bwi.c_bwi_set_bssid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bwi_set_bssid, @function
bwi_set_bssid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	xor	edi, edi
	mov	rsi, QWORD PTR [rax]
	cmp	QWORD PTR BWI_REGWIN_T_MAC[rip], rsi
	sete	dil
	call	KASSERT@PLT
	mov	rdi, rbp
	mov	rdx, r13
	mov	r12, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR BWI_ADDR_FILTER_BSSID[rip]
	call	bwi_set_addr_filter@PLT
	mov	ebx, DWORD PTR 4[rsp]
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, 4
	mov	esi, ebx
	call	bcopy@PLT
	mov	ebp, DWORD PTR [rsp]
	mov	edx, 4
	mov	rdi, r13
	mov	esi, ebp
	call	bcopy@PLT
	xor	ecx, ecx
	xor	edx, edx
	mov	rax, rsp
	sal	ebp, cl
	add	rax, 4
	or	edx, ebp
	cmp	ecx, 24
	je	.L2
.L10:
	mov	ebp, ebx
	add	ecx, 8
	mov	ebx, DWORD PTR 4[rax]
	add	rax, 4
	sal	ebp, cl
	or	edx, ebp
	cmp	ecx, 24
	jne	.L10
.L2:
	mov	esi, 32
	mov	rdi, r12
	call	TMPLT_WRITE_4@PLT
	xor	ecx, ecx
	xor	edx, edx
	lea	rax, 16[rsp]
	sal	ebx, cl
	add	rax, 4
	or	edx, ebx
	cmp	ecx, 24
	je	.L4
.L11:
	mov	ebx, DWORD PTR [rax]
	add	ecx, 8
	add	rax, 4
	sal	ebx, cl
	or	edx, ebx
	cmp	ecx, 24
	jne	.L11
.L4:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	mov	esi, 36
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	TMPLT_WRITE_4@PLT
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bwi_set_bssid, .-bwi_set_bssid
	.comm	BWI_REGWIN_T_MAC,8,8
	.comm	BWI_ADDR_FILTER_BSSID,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_if_bwi.c_bwi_set_bssid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bwi_set_bssid, %function
bwi_set_bssid:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #4]
	ldr	r3, .L15
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	mov	r7, r1
	ldr	r0, [r3]
	ldr	r1, [r2]
	ldr	r3, .L15+4
	sub	r0, r0, r1
	clz	r0, r0
	sub	sp, sp, #20
	lsr	r0, r0, #5
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	KASSERT
	ldr	r3, .L15+8
	mov	r2, r7
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r6, [r5, #4]
	bl	bwi_set_addr_filter
	ldr	r4, [sp, #8]
	mov	r2, #4
	mov	r1, r4
	ldr	r0, [r5]
	bl	bcopy
	ldr	r5, [sp, #4]
	mov	r2, #4
	mov	r1, r5
	mov	r0, r7
	bl	bcopy
	mov	r1, #0
	mov	r2, r1
	orr	r2, r2, r5, lsl r1
	add	r1, r1, #8
	cmp	r1, #32
	add	r3, sp, #12
	beq	.L2
.L12:
	mov	r5, r4
	orr	r2, r2, r5, lsl r1
	add	r1, r1, #8
	cmp	r1, #32
	ldr	r4, [r3], #4
	bne	.L12
.L2:
	mov	r0, r6
	bl	TMPLT_WRITE_4
	mov	r3, #0
	mov	r2, r3
	orr	r2, r2, r4, lsl r3
	add	r3, r3, #8
	cmp	r3, #32
	add	r1, sp, #24
	beq	.L4
.L13:
	ldr	r4, [r1], #4
	orr	r2, r2, r4, lsl r3
	add	r3, r3, #8
	cmp	r3, #32
	bne	.L13
.L4:
	ldr	r3, .L15+4
	ldr	r1, [r3]
	ldr	r3, [sp, #12]
	eors	r1, r3, r1
	mov	r3, #0
	bne	.L14
	mov	r0, r6
	mov	r1, #36
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	TMPLT_WRITE_4
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	BWI_REGWIN_T_MAC
	.word	.LC0
	.word	BWI_ADDR_FILTER_BSSID
	.size	bwi_set_bssid, .-bwi_set_bssid
	.comm	BWI_REGWIN_T_MAC,4,4
	.comm	BWI_ADDR_FILTER_BSSID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
