	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_relay                     ## -- Begin function wait_relay
	.p2align	4, 0x90
_wait_relay:                            ## @wait_relay
	.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	%r12
	pushq	%rbx
	movl	$4144, %eax                     ## imm = 0x1030
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_Z_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_crc32
	movq	%rax, %r14
	leaq	-4160(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	64(%r12), %rdi
	leaq	-4160(%rbp), %rsi
	callq	_elapsed
	cmpl	$20000, %eax                    ## imm = 0x4E20
	jl	LBB0_4
## %bb.3:
	movq	_S_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	jmp	LBB0_21
LBB0_4:
	movl	$20000, %ecx                    ## imm = 0x4E20
	subl	%eax, %ecx
	imulq	$1125899907, %rcx, %rax         ## imm = 0x431BDE83
	shrq	$50, %rax
	movl	%eax, -4160(%rbp)
	imull	$-1000000, %eax, %eax           ## imm = 0xFFF0BDC0
	addl	%ecx, %eax
	movl	%eax, -4156(%rbp)
	leaq	-4164(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movq	56(%r12), %rdi
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	56(%r12), %rdi
	incq	%rdi
	leaq	-4160(%rbp), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movq	56(%r12), %rdi
	leaq	-4164(%rbp), %rsi
	callq	_FD_ISSET
	testl	%eax, %eax
	je	LBB0_21
## %bb.7:
	movq	56(%r12), %rdi
	leaq	-4144(%rbp), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_sniff
	movl	%eax, -4148(%rbp)
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_9:
	leaq	-4144(%rbp), %rdi
	leaq	-4148(%rbp), %rsi
	callq	_get_wifi
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:
	movq	%rax, %r15
	movq	_IEEE80211_FC0_TYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IEEE80211_FC0_SUBTYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_frame_type
	testl	%eax, %eax
	je	LBB0_21
## %bb.11:
	movl	8(%r15), %edi
	movq	(%r12), %rsi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.12:
	movl	4(%r15), %edi
	movq	8(%r12), %rsi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.13:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.14:
	movslq	-4148(%rbp), %rcx
	addq	$-20, %rcx
	movslq	16(%r12), %rax
	cmpq	%rax, %rcx
	jne	LBB0_21
## %bb.15:
	xorl	%edi, %edi
	cmpl	20(%r12), %eax
	setge	%dil
	callq	_assert
	movq	%r15, %rsi
	addq	$12, %rsi
	movl	48(%r12), %edi
	movl	$3, %edx
	callq	_memcpy
	movq	24(%r12), %rsi
	movl	16(%r12), %edx
	movq	%r14, %rdi
	callq	_crc32
	movq	24(%r12), %rdx
	movslq	16(%r12), %rcx
	movq	%rax, (%rdx,%rcx)
	movl	$0, -4148(%rbp)
	cmpq	$-3, %rcx
	jl	LBB0_16
## %bb.17:
	movb	16(%r15), %al
	xorb	(%rdx), %al
	movq	32(%r12), %rcx
	movb	%al, (%rcx)
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	-4148(%rbp), %eax
	incl	%eax
	movl	%eax, -4148(%rbp)
	movl	16(%r12), %ecx
	addl	$4, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_19 Depth=1
	cltq
	movzbl	16(%r15,%rax), %ecx
	movq	24(%r12), %rdx
	xorb	(%rdx,%rax), %cl
	movq	32(%r12), %rdx
	movb	%cl, (%rdx,%rax)
	jmp	LBB0_19
LBB0_16:
	addl	$4, %ecx
LBB0_20:
	movl	%ecx, 20(%r12)
	movq	_S_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	movq	%r12, %rdi
	callq	_save_prga
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	addq	$4144, %rsp                     ## imm = 0x1030
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_NULL,8,3                     ## @Z_NULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gettimeofday()"

	.comm	_S_START,8,3                    ## @S_START
L_.str.1:                               ## @.str.1
	.asciz	"select()"

L_.str.2:                               ## @.str.2
	.asciz	"sniff()"

	.comm	_IEEE80211_FC0_TYPE_DATA,4,2    ## @IEEE80211_FC0_TYPE_DATA
	.comm	_IEEE80211_FC0_SUBTYPE_DATA,4,2 ## @IEEE80211_FC0_SUBTYPE_DATA
L_.str.3:                               ## @.str.3
	.asciz	"\377\377\377\377\377\377"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_relay                     ; -- Begin function wait_relay
	.p2align	2
_wait_relay:                            ; @wait_relay
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh5:
	adrp	x8, _Z_NULL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Z_NULL@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, #0
	mov	w2, #0
	bl	_crc32
	mov	x20, x0
	add	x0, sp, #16
	mov	x1, #0
	bl	_gettimeofday
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	add	x0, x19, #64
	add	x1, sp, #16
	bl	_elapsed
	mov	w8, #20000
	cmp	w0, w8
	b.lt	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _S_START@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S_START@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	b	LBB0_21
LBB0_4:
	sub	w8, w8, w0
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #50
	mov	w10, #48576
	movk	w10, #65520, lsl #16
	madd	w8, w9, w10, w8
	stp	w9, w8, [sp, #16]
	add	x0, sp, #12
	bl	_FD_ZERO
	ldr	x0, [x19, #56]
	add	x1, sp, #12
	bl	_FD_SET
	ldr	x8, [x19, #56]
	add	x0, x8, #1
	add	x1, sp, #12
	add	x4, sp, #16
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	ldr	x0, [x19, #56]
	add	x1, sp, #12
	bl	_FD_ISSET
	cbz	w0, LBB0_21
; %bb.7:
	ldr	x0, [x19, #56]
	add	x1, sp, #24
	mov	w2, #4096
	bl	_sniff
	str	w0, [sp, #8]
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_get_wifi
	cbz	x0, LBB0_21
; %bb.10:
	mov	x21, x0
Lloh17:
	adrp	x8, _IEEE80211_FC0_TYPE_DATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_FC0_TYPE_DATA@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _IEEE80211_FC0_SUBTYPE_DATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_FC0_SUBTYPE_DATA@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_frame_type
	cbz	w0, LBB0_21
; %bb.11:
	ldr	w0, [x21, #8]
	ldr	x1, [x19]
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_21
; %bb.12:
	ldr	w0, [x21, #4]
	ldr	x1, [x19, #8]
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_21
; %bb.13:
	ldr	w0, [x21]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_21
; %bb.14:
	ldrsw	x8, [sp, #8]
	sub	x9, x8, #20
	ldrsw	x8, [x19, #16]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.15:
	ldr	w9, [x19, #20]
	cmp	w8, w9
	cset	w0, ge
	bl	_assert
	add	x1, x21, #12
	ldr	w0, [x19, #48]
	mov	w2, #3
	bl	_memcpy
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #16]
	mov	x0, x20
	bl	_crc32
	ldr	x9, [x19, #24]
	ldrsw	x8, [x19, #16]
	str	x0, [x9, x8]
	str	wzr, [sp, #8]
	cmn	w8, #3
	b.lt	LBB0_19
; %bb.16:
	add	x8, x21, #16
	ldrb	w9, [x9]
	ldrb	w10, [x8]
	eor	w9, w10, w9
	ldr	x10, [x19, #32]
	strb	w9, [x10]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [sp, #8]
	add	w9, w9, #1
	str	w9, [sp, #8]
	ldr	w10, [x19, #16]
	add	w10, w10, #4
	cmp	w9, w10
	b.ge	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	sxtw	x9, w9
	ldp	x10, x11, [x19, #24]
	ldrb	w10, [x10, x9]
	ldrb	w12, [x8, x9]
	eor	w10, w12, w10
	strb	w10, [x11, x9]
	b	LBB0_17
LBB0_19:
	add	w10, w8, #4
LBB0_20:
	str	w10, [x19, #20]
Lloh25:
	adrp	x8, _S_START@GOTPAGE
Lloh26:
	ldr	x8, [x8, _S_START@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	mov	x0, x19
	bl	_save_prga
LBB0_21:
	ldur	x8, [x29, #-40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_NULL,8,3                     ; @Z_NULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gettimeofday()"

	.comm	_S_START,8,3                    ; @S_START
l_.str.1:                               ; @.str.1
	.asciz	"select()"

l_.str.2:                               ; @.str.2
	.asciz	"sniff()"

	.comm	_IEEE80211_FC0_TYPE_DATA,4,2    ; @IEEE80211_FC0_TYPE_DATA
	.comm	_IEEE80211_FC0_SUBTYPE_DATA,4,2 ; @IEEE80211_FC0_SUBTYPE_DATA
l_.str.3:                               ; @.str.3
	.asciz	"\377\377\377\377\377\377"

.subsections_via_symbols
