	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wireless_spy_update            ## -- Begin function wireless_spy_update
	.p2align	4, 0x90
_wireless_spy_update:                   ## @wireless_spy_update
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_get_spydata
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r13
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %r14d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rax
	movl	(%rax,%rbx), %esi
	movq	%r12, %rdi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %rdi
	addq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_6:
	testl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	js	LBB0_11
## %bb.7:
	movq	8(%r13), %rax
	movl	%r14d, %ecx
	cmpl	$0, (%rax,%rcx,4)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rsi
	je	LBB0_10
## %bb.8:
	xorl	%edx, %edx
	cmpq	24(%r13), %rsi
	jle	LBB0_11
LBB0_9:
	movl	%edx, (%rax,%rcx,4)
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iw_send_thrspy_event           ## TAILCALL
LBB0_10:
	movl	$1, %edx
	cmpq	16(%r13), %rsi
	jl	LBB0_9
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wireless_spy_update            ; -- Begin function wireless_spy_update
	.p2align	2
_wireless_spy_update:                   ; @wireless_spy_update
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_get_spydata
	cbz	x0, LBB0_13
; %bb.1:
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x24, #0
	mov	x25, #0
	mov	w23, #-1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x24, x24, #4
	cmp	x25, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #40]
	ldr	w1, [x8, x24]
	mov	x0, x20
	bl	_ether_addr_equal
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #32]
	add	x0, x8, x24
	mov	x1, x19
	mov	w2, #8
	bl	_memcpy
	mov	x23, x25
	b	LBB0_3
LBB0_6:
	tbnz	w23, #31, LBB0_13
; %bb.7:
	ldr	x8, [x22, #8]
	ldr	w10, [x8, w23, uxtw #2]
	ldr	x9, [x19]
	cbz	w10, LBB0_10
; %bb.8:
	ldr	x10, [x22, #24]
	cmp	x9, x10
	b.le	LBB0_13
; %bb.9:
	mov	w9, #0
	b	LBB0_12
LBB0_10:
	ldr	x10, [x22, #16]
	cmp	x9, x10
	b.ge	LBB0_13
; %bb.11:
	mov	w9, #1
LBB0_12:
	mov	w10, w23
	str	w9, [x8, x10, lsl #2]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_iw_send_thrspy_event
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
