	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlan_append_scanr_index
_wlan_append_scanr_index:               ## @wlan_append_scanr_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_strlen
	movslq	%eax, %r14
	movq	%r13, %rdi
	callq	_strlen
	cltq
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r15, %r14
	addq	%rax, %r14
	leaq	(%rcx,%r14), %rax
	addq	$3, %rax
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_strlen
	movq	8(%r12), %rcx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rcx,%r15,4)
	movq	%rbx, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %r14
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	-1(%rbx,%r15), %eax
	movq	8(%r12), %rcx
	addq	%r14, %rcx
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %r15
	jbe	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rcx,%rax), %r14
	incq	%r14
	incq	%rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_strlen
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	%r13, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r15
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	-1(%r13,%rbx), %eax
	movq	8(%r12), %rcx
	addq	%r15, %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	%r13, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %rbx
	jbe	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_strlen
	movslq	%eax, %r11
	leaq	(%r14,%r11), %r9
	incq	%r9
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	8(%r12), %r10
	movl	%r14d, (%r10,%r9,4)
	testq	%r14, %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_24
## %bb.7:
	incq	%r11
	movl	$1, %esi
	cmpq	$8, %r14
	jb	LBB0_18
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	addq	%r11, %rbx
	leaq	(%r10,%rbx,4), %rax
	addq	$4, %rax
	leaq	(%rdi,%r14), %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	addq	%r11, %rax
	leaq	(%r10,%rax,4), %rax
	addq	$4, %rax
	cmpq	%rdi, %rax
	ja	LBB0_18
LBB0_10:
	movq	%r14, %rsi
	andq	$-8, %rsi
	leaq	-8(%rsi), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r8, %rax
	andq	$-2, %rax
	leaq	(%r10,%rbx,4), %rdx
	addq	$52, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	pmovsxbd	(%rdi,%rbx), %xmm0
	pmovsxbd	4(%rdi,%rbx), %xmm1
	movdqu	%xmm0, -48(%rdx,%rbx,4)
	movdqu	%xmm1, -32(%rdx,%rbx,4)
	pmovsxbd	8(%rdi,%rbx), %xmm0
	pmovsxbd	12(%rdi,%rbx), %xmm1
	movdqu	%xmm0, -16(%rdx,%rbx,4)
	movdqu	%xmm1, (%rdx,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rax
	jne	LBB0_13
## %bb.14:
	testb	$1, %r8b
	je	LBB0_16
LBB0_15:
	movq	%rbx, %rax
	pmovsxbd	(%rdi,%rbx), %xmm0
	pmovsxbd	4(%rdi,%rbx), %xmm1
	orq	$1, %rax
	addq	%r9, %rax
	movdqu	%xmm0, (%r10,%rax,4)
	movdqu	%xmm1, 16(%r10,%rax,4)
LBB0_16:
	cmpq	%rsi, %r14
	je	LBB0_24
## %bb.17:
	orq	$1, %rsi
LBB0_18:
	movl	%r14d, %eax
	subl	%esi, %eax
	incl	%eax
	movq	%r14, %r8
	subq	%rsi, %r8
	andq	$3, %rax
	je	LBB0_21
## %bb.19:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rsi, %rcx
	addq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%r11, %rcx
	leaq	(%r10,%rcx,4), %rdx
	shlq	$2, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movsbl	-1(%rdi,%rsi), %ebx
	movl	%ebx, (%rdx,%rcx)
	incq	%rsi
	addq	$4, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_20
LBB0_21:
	cmpq	$3, %r8
	jb	LBB0_24
## %bb.22:
	subq	%rsi, %r14
	incq	%r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rsi, %rax
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	addq	%r11, %rax
	leaq	(%r10,%rax,4), %rax
	addq	$12, %rax
	addq	%rsi, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movsbl	-1(%rdi,%rcx), %edx
	movl	%edx, -12(%rax,%rcx,4)
	movsbl	(%rdi,%rcx), %edx
	movl	%edx, -8(%rax,%rcx,4)
	movsbl	1(%rdi,%rcx), %edx
	movl	%edx, -4(%rax,%rcx,4)
	movsbl	2(%rdi,%rcx), %edx
	movl	%edx, (%rax,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %r14
	jne	LBB0_23
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	testb	$1, %r8b
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ADDR_LEN,8,3         ## @IEEE80211_ADDR_LEN
	.no_dead_strip	_wlan_append_scanr_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlan_append_scanr_index
_wlan_append_scanr_index:               ; @wlan_append_scanr_index
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_strlen
	mov	x24, x0
	mov	x0, x22
	bl	_strlen
Lloh0:
	adrp	x25, _IEEE80211_ADDR_LEN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IEEE80211_ADDR_LEN@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x9, x20, w24, sxtw
	add	x9, x9, w0, sxtw
	add	x8, x9, x8
	add	x8, x8, #3
	str	x8, [x21]
	mov	x0, x23
	bl	_strlen
	ldr	x8, [x21, #8]
	str	w0, [x8, x20, lsl #2]
	mov	x0, x23
	bl	_strlen
	lsl	x24, x20, #2
	cbz	w0, LBB0_3
; %bb.1:
	mov	x27, #0
	add	x26, x24, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w8, [x23, x27]
	ldr	x9, [x21, #8]
	add	x9, x9, x26
	str	w8, [x9, x27, lsl #2]
	mov	x0, x23
	bl	_strlen
	add	x8, x27, #2
	add	x27, x27, #1
	cmp	x8, w0, sxtw
	b.ls	LBB0_2
LBB0_3:
	mov	x0, x23
	bl	_strlen
	add	w8, w0, #1
	sxtw	x23, w8
	add	x26, x23, x20
	mov	x0, x22
	bl	_strlen
	ldr	x8, [x21, #8]
	str	w0, [x8, x26, lsl #2]
	mov	x0, x22
	bl	_strlen
	cbz	w0, LBB0_6
; %bb.4:
	mov	x27, #0
	add	x8, x24, x23, lsl #2
	add	x24, x8, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w8, [x22, x27]
	ldr	x9, [x21, #8]
	add	x9, x9, x24
	str	w8, [x9, x27, lsl #2]
	mov	x0, x22
	bl	_strlen
	add	x8, x27, #2
	add	x27, x27, #1
	cmp	x8, w0, sxtw
	b.ls	LBB0_5
LBB0_6:
	mov	x0, x22
	bl	_strlen
	add	w8, w0, #1
	sxtw	x8, w8
	add	x11, x26, x8
	ldr	x10, [x25]
	ldr	x9, [x21, #8]
	str	w10, [x9, x11, lsl #2]
	cbz	x10, LBB0_14
; %bb.7:
	cmp	x10, #8
	b.lo	LBB0_11
; %bb.8:
	add	x11, x23, x20
	add	x11, x11, x8
	add	x11, x9, x11, lsl #2
	add	x11, x11, #4
	add	x12, x10, x20
	add	x12, x12, x23
	add	x12, x12, x8
	add	x12, x9, x12, lsl #2
	add	x12, x12, #4
	add	x13, x19, x10
	cmp	x13, x11
	ccmp	x12, x19, #0, hi
	b.hi	LBB0_11
; %bb.9:
	cmp	x10, #32
	b.hs	LBB0_15
; %bb.10:
	mov	x11, #0
	b	LBB0_19
LBB0_11:
	mov	w12, #1
LBB0_12:
	sub	x10, x10, x12
	add	x10, x10, #1
	add	x11, x12, x20
	add	x11, x11, x23
	add	x8, x11, x8
	add	x8, x9, x8, lsl #2
	add	x9, x12, x19
	sub	x9, x9, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w11, [x9], #1
	str	w11, [x8], #4
	subs	x10, x10, #1
	b.ne	LBB0_13
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	and	x11, x10, #0xffffffffffffffe0
	add	x12, x19, #16
	add	x13, x20, x23
	add	x13, x13, x8
	add	x13, x9, x13, lsl #2
	add	x13, x13, #68
	mov	x14, x11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-16]
	sshll.8h	v2, v0, #0
	sshll.4s	v3, v2, #0
	sshll2.4s	v2, v2, #0
	sshll2.8h	v0, v0, #0
	sshll.4s	v4, v0, #0
	sshll2.4s	v0, v0, #0
	sshll.8h	v5, v1, #0
	sshll.4s	v6, v5, #0
	sshll2.4s	v5, v5, #0
	stp	q4, q0, [x13, #-32]
	sshll2.8h	v0, v1, #0
	sshll.4s	v1, v0, #0
	stp	q3, q2, [x13, #-64]
	sshll2.4s	v0, v0, #0
	stp	q1, q0, [x13, #32]
	stp	q6, q5, [x13], #128
	add	x12, x12, #32
	subs	x14, x14, #32
	b.ne	LBB0_16
; %bb.17:
	cmp	x10, x11
	b.eq	LBB0_14
; %bb.18:
	tst	x10, #0x18
	b.eq	LBB0_22
LBB0_19:
	and	x13, x10, #0xfffffffffffffff8
	orr	x12, x13, #0x1
	add	x14, x19, x11
	add	x15, x11, x20
	add	x15, x15, x23
	add	x15, x15, x8
	add	x15, x9, x15, lsl #2
	add	x15, x15, #4
	sub	x11, x11, x13
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x14], #8
	sshll.8h	v0, v0, #0
	sshll.4s	v1, v0, #0
	sshll2.4s	v0, v0, #0
	stp	q1, q0, [x15], #32
	adds	x11, x11, #8
	b.ne	LBB0_20
; %bb.21:
	cmp	x10, x13
	b.ne	LBB0_12
	b	LBB0_14
LBB0_22:
	orr	x12, x11, #0x1
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ADDR_LEN,8,3         ; @IEEE80211_ADDR_LEN
	.no_dead_strip	_wlan_append_scanr_index
.subsections_via_symbols
