	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iw_handler_set_spy             ## -- Begin function iw_handler_set_spy
	.p2align	4, 0x90
_iw_handler_set_spy:                    ## @iw_handler_set_spy
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	callq	_get_spydata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	$0, (%rax)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_smp_wmb
	cmpq	$0, (%r15)
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	_ETH_ALEN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r12,%rbx,4), %esi
	movl	(%r14), %edx
	callq	_memcpy
	incq	%rbx
	cmpq	%rbx, (%r15)
	jg	LBB0_4
## %bb.5:
	movl	4(%r13), %edi
	movq	_IW_MAX_SPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	xorl	%ebx, %ebx
LBB0_6:
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	(%r15), %eax
	movl	%eax, (%r13)
	jmp	LBB0_7
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_IW_MAX_SPY,4,2                 ## @IW_MAX_SPY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iw_handler_set_spy             ; -- Begin function iw_handler_set_spy
	.p2align	2
_iw_handler_set_spy:                    ; @iw_handler_set_spy
	.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
	mov	x21, x3
	mov	x19, x2
	bl	_get_spydata
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	str	wzr, [x0]
	bl	_smp_wmb
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
Lloh0:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	lsl	x9, x22, #2
	ldr	w0, [x8, x9]
	ldr	w1, [x21, x9]
	ldr	w2, [x23]
	bl	_memcpy
	add	x22, x22, #1
	ldr	x8, [x19]
	cmp	x8, x22
	b.gt	LBB0_3
; %bb.4:
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x8, _IW_MAX_SPY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IW_MAX_SPY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
LBB0_5:
	bl	_smp_wmb
	mov	w0, #0
	ldr	x8, [x19]
	str	w8, [x20]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_IW_MAX_SPY,4,2                 ; @IW_MAX_SPY
.subsections_via_symbols
