	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_priv_cmd_scan
_wpa_priv_cmd_scan:                     ## @wpa_priv_cmd_scan
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PRIVSEP_MAX_SCAN_FREQS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	incl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	cmpq	$0, (%r14)
	je	LBB0_41
## %bb.1:
	cmpq	$31, %rbx
	ja	LBB0_3
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_41
LBB0_3:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_os_memset
	movl	(%r15), %r9d
	movq	_WPAS_MAX_SCAN_SSIDS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jbe	LBB0_5
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_41
LBB0_5:
	movl	%r9d, -80(%rbp)
	testl	%r9d, %r9d
	je	LBB0_21
## %bb.6:
	movq	16(%r15), %rcx
	movq	24(%r15), %rdx
	movq	-64(%rbp), %rsi
	cmpl	$4, %r9d
	jae	LBB0_8
## %bb.7:
	xorl	%edi, %edi
LBB0_17:
	movq	%rdi, %rax
	notq	%rax
	testb	$1, %r9b
	je	LBB0_19
## %bb.18:
	movl	(%rdx,%rdi,4), %ebx
	movl	%ebx, 4(%rsi,%rdi,8)
	movl	(%rcx,%rdi,4), %ebx
	movl	%ebx, (%rsi,%rdi,8)
	orq	$1, %rdi
LBB0_19:
	addq	%r9, %rax
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %eax
	movl	%eax, 4(%rsi,%rdi,8)
	movl	(%rcx,%rdi,4), %eax
	movl	%eax, (%rsi,%rdi,8)
	movl	4(%rdx,%rdi,4), %eax
	movl	%eax, 12(%rsi,%rdi,8)
	movl	4(%rcx,%rdi,4), %eax
	movl	%eax, 8(%rsi,%rdi,8)
	addq	$2, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_20
	jmp	LBB0_21
LBB0_8:
	leaq	(%rsi,%r9,8), %rdi
	leaq	(%rdx,%r9,4), %rax
	leaq	(%rcx,%r9,4), %rbx
	cmpq	%rax, %rsi
	setb	%r8b
	cmpq	%rdi, %rdx
	setb	%r10b
	cmpq	%rbx, %rsi
	setb	%al
	cmpq	%rdi, %rcx
	setb	%bl
	xorl	%edi, %edi
	testb	%r10b, %r8b
	jne	LBB0_17
## %bb.9:
	andb	%bl, %al
	jne	LBB0_17
## %bb.10:
	movl	%r9d, %edi
	andl	$-4, %edi
	leaq	-4(%rdi), %rax
	movq	%rax, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r8, %rax
	andq	$-2, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movsd	(%rdx,%rbx,4), %xmm0            ## xmm0 = mem[0],zero
	movsd	8(%rdx,%rbx,4), %xmm1           ## xmm1 = mem[0],zero
	movsd	(%rcx,%rbx,4), %xmm2            ## xmm2 = mem[0],zero
	unpcklps	%xmm0, %xmm2                    ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
	movsd	8(%rcx,%rbx,4), %xmm0           ## xmm0 = mem[0],zero
	unpcklps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	movups	%xmm2, (%rsi,%rbx,8)
	movups	%xmm0, 16(%rsi,%rbx,8)
	movsd	16(%rdx,%rbx,4), %xmm0          ## xmm0 = mem[0],zero
	movsd	24(%rdx,%rbx,4), %xmm1          ## xmm1 = mem[0],zero
	movsd	16(%rcx,%rbx,4), %xmm2          ## xmm2 = mem[0],zero
	unpcklps	%xmm0, %xmm2                    ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
	movsd	24(%rcx,%rbx,4), %xmm0          ## xmm0 = mem[0],zero
	unpcklps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	movups	%xmm2, 32(%rsi,%rbx,8)
	movups	%xmm0, 48(%rsi,%rbx,8)
	addq	$8, %rbx
	addq	$-2, %rax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_11:
	xorl	%ebx, %ebx
LBB0_14:
	testb	$1, %r8b
	je	LBB0_16
## %bb.15:
	movsd	(%rdx,%rbx,4), %xmm0            ## xmm0 = mem[0],zero
	movsd	8(%rdx,%rbx,4), %xmm1           ## xmm1 = mem[0],zero
	movsd	(%rcx,%rbx,4), %xmm2            ## xmm2 = mem[0],zero
	unpcklps	%xmm0, %xmm2                    ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
	movsd	8(%rcx,%rbx,4), %xmm0           ## xmm0 = mem[0],zero
	unpcklps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	leaq	(,%rbx,8), %rax
	orq	$16, %rax
	movups	%xmm2, (%rsi,%rbx,8)
	movups	%xmm0, (%rsi,%rax)
LBB0_16:
	cmpq	%r9, %rdi
	jne	LBB0_17
LBB0_21:
	movl	4(%r15), %r8d
	cmpl	(%r12), %r8d
	jle	LBB0_23
## %bb.22:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_41
LBB0_23:
	testq	%r8, %r8
	je	LBB0_39
## %bb.24:
	movq	8(%r15), %rcx
	xorl	%edx, %edx
	cmpl	$8, %r8d
	jb	LBB0_34
## %bb.25:
	movq	%r13, %rax
	subq	%rcx, %rax
	cmpq	$32, %rax
	jb	LBB0_34
## %bb.26:
	movl	%r8d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rax
	movq	%rax, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$3, %esi
	cmpq	$24, %rax
	jae	LBB0_28
## %bb.27:
	xorl	%ebx, %ebx
	jmp	LBB0_30
LBB0_28:
	andq	$-4, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rbx,4), %xmm0
	movups	16(%rcx,%rbx,4), %xmm1
	movaps	%xmm0, (%r13,%rbx,4)
	movaps	%xmm1, 16(%r13,%rbx,4)
	movups	32(%rcx,%rbx,4), %xmm0
	movups	48(%rcx,%rbx,4), %xmm1
	movaps	%xmm0, 32(%r13,%rbx,4)
	movaps	%xmm1, 48(%r13,%rbx,4)
	movups	64(%rcx,%rbx,4), %xmm0
	movups	80(%rcx,%rbx,4), %xmm1
	movaps	%xmm0, 64(%r13,%rbx,4)
	movaps	%xmm1, 80(%r13,%rbx,4)
	movups	96(%rcx,%rbx,4), %xmm0
	movups	112(%rcx,%rbx,4), %xmm1
	movaps	%xmm0, 96(%r13,%rbx,4)
	movaps	%xmm1, 112(%r13,%rbx,4)
	addq	$32, %rbx
	addq	$-4, %rdi
	jne	LBB0_29
LBB0_30:
	testq	%rsi, %rsi
	je	LBB0_33
## %bb.31:
	leaq	16(,%rbx,4), %rdi
	addq	%r13, %rdi
	leaq	(%rcx,%rbx,4), %rbx
	addq	$16, %rbx
	shlq	$5, %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rbx,%rax), %xmm0
	movups	(%rbx,%rax), %xmm1
	movaps	%xmm0, -16(%rdi,%rax)
	movaps	%xmm1, (%rdi,%rax)
	addq	$32, %rax
	cmpq	%rax, %rsi
	jne	LBB0_32
LBB0_33:
	cmpq	%r8, %rdx
	je	LBB0_38
LBB0_34:
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r8, %rsi
	movq	%r8, %rdi
	andq	$3, %rdi
	je	LBB0_36
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %eax
	movl	%eax, (%r13,%rdx,4)
	incq	%rdx
	decq	%rdi
	jne	LBB0_35
LBB0_36:
	cmpq	$3, %rsi
	jb	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %eax
	movl	%eax, (%r13,%rdx,4)
	movl	4(%rcx,%rdx,4), %eax
	movl	%eax, 4(%r13,%rdx,4)
	movl	8(%rcx,%rdx,4), %eax
	movl	%eax, 8(%r13,%rdx,4)
	movl	12(%rcx,%rdx,4), %eax
	movl	%eax, 12(%r13,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_37
LBB0_38:
	movl	$0, (%r13,%r8,4)
	movq	%r13, -72(%rbp)
LBB0_39:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	movq	(%r14), %rdi
	leaq	-80(%rbp), %rsi
	callq	*%rax
LBB0_41:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_43
## %bb.42:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PRIVSEP_MAX_SCAN_FREQS,4,2     ## @PRIVSEP_MAX_SCAN_FREQS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid scan request"

	.comm	_WPAS_MAX_SCAN_SSIDS,4,2        ## @WPAS_MAX_SCAN_SSIDS
L_.str.1:                               ## @.str.1
	.asciz	"Invalid scan request (num_ssids)"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid scan request (num_freqs)"

	.no_dead_strip	_wpa_priv_cmd_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_priv_cmd_scan
_wpa_priv_cmd_scan:                     ; @wpa_priv_cmd_scan
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x20, x1
	mov	x19, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _PRIVSEP_MAX_SCAN_FREQS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PRIVSEP_MAX_SCAN_FREQS@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x8, [x0]
	cbz	x8, LBB0_23
; %bb.1:
	cmp	x2, #31
	b.hi	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_23
LBB0_3:
	sub	x0, x29, #80
	mov	w1, #0
	mov	w2, #24
	bl	_os_memset
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _WPAS_MAX_SCAN_SSIDS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WPAS_MAX_SCAN_SSIDS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ls	LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_23
LBB0_5:
	stur	w8, [x29, #-80]
	cbz	w8, LBB0_10
; %bb.6:
	ldur	x9, [x29, #-64]
	ldp	x10, x11, [x20, #16]
	cmp	w8, #8
	b.hs	LBB0_25
; %bb.7:
	mov	x12, #0
LBB0_8:
	lsl	x13, x12, #2
	add	x11, x11, x13
	add	x10, x10, x13
	add	x9, x9, x12, lsl #3
	add	x9, x9, #4
	sub	x8, x8, x12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	str	w12, [x9]
	ldr	w12, [x10], #4
	stur	w12, [x9, #-4]
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	ldr	w8, [x20, #4]
	ldr	w9, [x23]
	cmp	w8, w9
	b.le	LBB0_12
; %bb.11:
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_23
LBB0_12:
	cbz	w8, LBB0_21
; %bb.13:
	mov	x9, #0
	ldr	x10, [x20, #8]
	cmp	w8, #16
	b.lo	LBB0_18
; %bb.14:
	sub	x11, x22, x10
	cmp	x11, #64
	b.lo	LBB0_18
; %bb.15:
	and	x9, x8, #0xfffffff0
	add	x11, x22, #32
	add	x12, x10, #32
	mov	x13, x9
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_16
; %bb.17:
	cmp	x9, x8
	b.eq	LBB0_20
LBB0_18:
	lsl	x11, x9, #2
	add	x10, x10, x11
	add	x11, x22, x11
	sub	x9, x8, x9
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10], #4
	str	w12, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_19
LBB0_20:
	str	wzr, [x22, x8, lsl #2]
	stur	x22, [x29, #-72]
LBB0_21:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.22:
	ldr	x0, [x19]
	sub	x1, x29, #80
	blr	x8
LBB0_23:
	mov	sp, x21
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.24:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	x12, #0
	add	x14, x9, x8, lsl #3
	lsl	x13, x8, #2
	add	x15, x11, x13
	add	x13, x10, x13
	cmp	x9, x13
	ccmp	x10, x14, #2, lo
	cset	w13, lo
	cmp	x11, x14
	ccmp	x9, x15, #2, lo
	b.lo	LBB0_8
; %bb.26:
	tbnz	w13, #0, LBB0_8
; %bb.27:
	and	x12, x8, #0xfffffff8
	add	x13, x9, #32
	add	x14, x11, #16
	add	x15, x10, #16
	mov	x16, x12
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q3, [x14, #-16]
	ldp	q0, q2, [x15, #-16]
	sub	x17, x13, #32
	st2.4s	{ v0, v1 }, [x17]
	st2.4s	{ v2, v3 }, [x13]
	add	x13, x13, #64
	add	x14, x14, #32
	add	x15, x15, #32
	subs	x16, x16, #8
	b.ne	LBB0_28
; %bb.29:
	cmp	x12, x8
	b.ne	LBB0_8
	b	LBB0_10
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PRIVSEP_MAX_SCAN_FREQS,4,2     ; @PRIVSEP_MAX_SCAN_FREQS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid scan request"

	.comm	_WPAS_MAX_SCAN_SSIDS,4,2        ; @WPAS_MAX_SCAN_SSIDS
l_.str.1:                               ; @.str.1
	.asciz	"Invalid scan request (num_ssids)"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid scan request (num_freqs)"

	.no_dead_strip	_wpa_priv_cmd_scan
.subsections_via_symbols
