	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_process                ## -- Begin function generic_process
	.p2align	4, 0x90
_generic_process:                       ## @generic_process
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rdi
	movl	36(%rsi), %esi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_30
## %bb.1:
	movq	8(%r13), %rax
	movl	(%rax), %r12d
	movq	_IEEE80211_FC0_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r12d, %ebx
	movq	_IEEE80211_FC0_SUBTYPE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movl	36(%r15), %esi
	movq	%r13, %rdi
	callq	_for_me
	movq	_IEEE80211_FC0_TYPE_DATA@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	cmpl	(%rcx), %ebx
	jne	LBB0_8
## %bb.3:
	movl	%r14d, -124(%rbp)               ## 4-byte Spill
	movl	(%r15), %r14d
	movq	%r13, %rdi
	callq	_seqno
	cmpl	$-1, %r14d
	je	LBB0_4
## %bb.5:
	movl	(%r15), %ecx
	subl	%eax, %ecx
	movl	-124(%rbp), %r14d               ## 4-byte Reload
	jl	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	cmpl	$1001, %ecx                     ## imm = 0x3E9
	jge	LBB0_7
	jmp	LBB0_30
LBB0_4:
	movl	-124(%rbp), %r14d               ## 4-byte Reload
LBB0_7:
	movl	%eax, (%r15)
	movq	_IEEE80211_FC0_TYPE_DATA@GOTPCREL(%rip), %rcx
LBB0_8:
	cmpl	(%rcx), %ebx
	jne	LBB0_30
## %bb.9:
	movq	8(%r13), %rax
	movq	_IEEE80211_FC1_DIR_FROMDS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_11
## %bb.10:
	movq	(%r13), %rdi
	jmp	LBB0_12
LBB0_11:
	movq	16(%r13), %rdi
LBB0_12:
	movl	28(%r15), %esi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_30
## %bb.13:
	movq	8(%r15), %rax
	movq	_S_ASSOCIATED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_15
## %bb.14:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_30
LBB0_15:
	movq	_IEEE80211_FC0_SUBTYPE_DATA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_16
## %bb.17:
	movq	8(%r13), %rax
	movl	(%rbx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_19
## %bb.18:
	movq	24(%r13), %rsi
	leaq	-118(%rbp), %rdi
	movl	$6, %edx
	callq	_memcpy
	leaq	16(%r13), %rax
	jmp	LBB0_20
LBB0_16:
	movq	_IEEE80211_FC0_SUBTYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_30
LBB0_19:
	movq	(%r13), %rsi
	leaq	-118(%rbp), %rdi
	movl	$6, %edx
	callq	_memcpy
	leaq	24(%r13), %rax
LBB0_20:
	movq	(%rax), %rsi
	leaq	-130(%rbp), %rdi
	movl	$6, %edx
	callq	_memcpy
	leaq	32(%r13), %r12
	movq	8(%r13), %rax
	movq	_IEEE80211_FC1_PROTECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_27
## %bb.21:
	movl	20(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.24:
	movl	24(%r15), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_wep_decrypt
	cmpl	$-1, %eax
	je	LBB0_25
## %bb.26:
	addq	$4, %r12
	addl	$-8, %r14d
LBB0_27:
	leaq	-118(%rbp), %rsi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_memcpy
	addq	$-6, %r12
	leaq	-130(%rbp), %rsi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_memcpy
	addl	$-26, %r14d
	movl	16(%r15), %edi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_write
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_29
## %bb.28:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_29:
	cmpl	%r14d, %ebx
	je	LBB0_30
## %bb.32:
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %edi
	callq	_exit
LBB0_22:
	leaq	-80(%rbp), %r15
	leaq	-118(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mac2str
	leaq	-112(%rbp), %rbx
	leaq	-130(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mac2str
	movslq	%r14d, %rcx
	addq	$-40, %rcx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_23
LBB0_25:
	leaq	-80(%rbp), %r15
	leaq	-118(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mac2str
	leaq	-112(%rbp), %rbx
	leaq	-130(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mac2str
	movslq	%r14d, %rcx
	addq	$-40, %rcx
	leaq	L_.str.3(%rip), %rdi
LBB0_23:
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.31:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_FC0_TYPE_MASK,4,2    ## @IEEE80211_FC0_TYPE_MASK
	.comm	_IEEE80211_FC0_SUBTYPE_MASK,4,2 ## @IEEE80211_FC0_SUBTYPE_MASK
	.comm	_IEEE80211_FC0_TYPE_DATA,4,2    ## @IEEE80211_FC0_TYPE_DATA
	.comm	_IEEE80211_FC1_DIR_FROMDS,4,2   ## @IEEE80211_FC1_DIR_FROMDS
	.comm	_S_ASSOCIATED,8,3               ## @S_ASSOCIATED
	.comm	_IEEE80211_FC0_SUBTYPE_DATA,4,2 ## @IEEE80211_FC0_SUBTYPE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Got weird data frame stype=%d\n"

	.comm	_IEEE80211_FC0_SUBTYPE_SHIFT,4,2 ## @IEEE80211_FC0_SUBTYPE_SHIFT
	.comm	_IEEE80211_FC1_PROTECTED,4,2    ## @IEEE80211_FC1_PROTECTED
L_.str.2:                               ## @.str.2
	.asciz	"Got wep but i aint wep %s->%s %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Can't decrypt %s->%s %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"write()"

L_.str.5:                               ## @.str.5
	.asciz	"Wrote %d/%d\n"

	.comm	_IEEE80211_FC0_TYPE_CTL,4,2     ## @IEEE80211_FC0_TYPE_CTL
	.comm	_IEEE80211_FC1_RETRY,4,2        ## @IEEE80211_FC1_RETRY
L_str:                                  ## @str
	.asciz	"Got data when not associated!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_process                ; -- Begin function generic_process
	.p2align	2
_generic_process:                       ; @generic_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x0, [x0]
	ldr	w1, [x1, #36]
	mov	w2, #6
	bl	_memcmp
	cbz	x0, LBB0_28
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _IEEE80211_FC0_TYPE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_FC0_TYPE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w24, w8, w22
Lloh6:
	adrp	x8, _IEEE80211_FC0_SUBTYPE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_FC0_SUBTYPE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	ldr	w1, [x20, #36]
	mov	x0, x21
	bl	_for_me
Lloh9:
	adrp	x25, _IEEE80211_FC0_TYPE_DATA@GOTPAGE
Lloh10:
	ldr	x25, [x25, _IEEE80211_FC0_TYPE_DATA@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w8, [x25]
	cmp	w24, w8
	b.ne	LBB0_8
; %bb.3:
	ldr	w26, [x20]
	mov	x0, x21
	bl	_seqno
	cmn	w26, #1
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x20]
	subs	w8, w8, w0
	b.lt	LBB0_7
; %bb.5:
	cmp	w8, #1001
	b.lt	LBB0_28
; %bb.6:
	mov	w0, #0
LBB0_7:
	str	w0, [x20]
LBB0_8:
	ldr	w8, [x25]
	cmp	w24, w8
	b.ne	LBB0_28
; %bb.9:
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #4]
Lloh11:
	adrp	x24, _IEEE80211_FC1_DIR_FROMDS@GOTPAGE
Lloh12:
	ldr	x24, [x24, _IEEE80211_FC1_DIR_FROMDS@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	x0, [x21]
	b	LBB0_12
LBB0_11:
	ldr	x0, [x21, #16]
LBB0_12:
	ldr	w1, [x20, #28]
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_28
; %bb.13:
	ldr	x8, [x20, #8]
Lloh13:
	adrp	x9, _S_ASSOCIATED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _S_ASSOCIATED@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_15
; %bb.14:
Lloh16:
	adrp	x0, l_str@PAGE
Lloh17:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_28
LBB0_15:
	and	w8, w23, w22
Lloh18:
	adrp	x9, _IEEE80211_FC0_SUBTYPE_DATA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_FC0_SUBTYPE_DATA@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.16:
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #4]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.17:
	ldr	x1, [x21, #24]
	add	x0, sp, #30
	mov	w2, #6
	bl	_memcpy
	add	x22, x21, #16
	b	LBB0_21
LBB0_18:
Lloh21:
	adrp	x9, _IEEE80211_FC0_SUBTYPE_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_FC0_SUBTYPE_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_19:
	bl	_printf
	b	LBB0_28
LBB0_20:
	mov	x22, x21
	ldr	x1, [x22], #24
	add	x0, sp, #30
	mov	w2, #6
	bl	_memcpy
LBB0_21:
	ldr	x1, [x22]
	add	x0, sp, #24
	mov	w2, #6
	bl	_memcpy
	add	x22, x21, #32
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #4]
Lloh26:
	adrp	x9, _IEEE80211_FC1_PROTECTED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IEEE80211_FC1_PROTECTED@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.22:
	ldr	w3, [x20, #20]
	cbz	w3, LBB0_30
; %bb.23:
	ldr	w2, [x20, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_wep_decrypt
	cmn	w0, #1
	b.eq	LBB0_31
; %bb.24:
	add	x22, x22, #4
	sub	w19, w19, #8
LBB0_25:
	add	x1, sp, #30
	mov	x0, x22
	mov	w2, #6
	bl	_memcpy
	sub	x21, x22, #6
	add	x1, sp, #24
	mov	x0, x21
	mov	w2, #6
	bl	_memcpy
	sub	w19, w19, #26
	ldr	w0, [x20, #16]
	mov	x1, x21
	mov	x2, x19
	bl	_write
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_27
; %bb.26:
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_27:
	cmp	w20, w19
	b.ne	LBB0_33
LBB0_28:
	ldr	x8, [sp, #72]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.29:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_30:
	add	x20, sp, #54
	add	x0, sp, #54
	add	x1, sp, #30
	bl	_mac2str
	add	x21, sp, #36
	add	x0, sp, #36
	add	x1, sp, #24
	bl	_mac2str
	sxtw	x8, w19
	sub	x8, x8, #40
	stp	x21, x8, [sp, #8]
	str	x20, [sp]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_31:
	add	x20, sp, #54
	add	x0, sp, #54
	add	x1, sp, #30
	bl	_mac2str
	add	x21, sp, #36
	add	x0, sp, #36
	add	x1, sp, #24
	bl	_mac2str
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	sxtw	x8, w19
	sub	x8, x8, #40
	stp	x21, x8, [sp, #8]
	str	x20, [sp]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_32:
	bl	___stack_chk_fail
LBB0_33:
	stp	x20, x19, [sp]
Lloh38:
	adrp	x0, l_.str.5@PAGE
Lloh39:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_FC0_TYPE_MASK,4,2    ; @IEEE80211_FC0_TYPE_MASK
	.comm	_IEEE80211_FC0_SUBTYPE_MASK,4,2 ; @IEEE80211_FC0_SUBTYPE_MASK
	.comm	_IEEE80211_FC0_TYPE_DATA,4,2    ; @IEEE80211_FC0_TYPE_DATA
	.comm	_IEEE80211_FC1_DIR_FROMDS,4,2   ; @IEEE80211_FC1_DIR_FROMDS
	.comm	_S_ASSOCIATED,8,3               ; @S_ASSOCIATED
	.comm	_IEEE80211_FC0_SUBTYPE_DATA,4,2 ; @IEEE80211_FC0_SUBTYPE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Got weird data frame stype=%d\n"

	.comm	_IEEE80211_FC0_SUBTYPE_SHIFT,4,2 ; @IEEE80211_FC0_SUBTYPE_SHIFT
	.comm	_IEEE80211_FC1_PROTECTED,4,2    ; @IEEE80211_FC1_PROTECTED
l_.str.2:                               ; @.str.2
	.asciz	"Got wep but i aint wep %s->%s %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Can't decrypt %s->%s %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"write()"

l_.str.5:                               ; @.str.5
	.asciz	"Wrote %d/%d\n"

	.comm	_IEEE80211_FC0_TYPE_CTL,4,2     ; @IEEE80211_FC0_TYPE_CTL
	.comm	_IEEE80211_FC1_RETRY,4,2        ; @IEEE80211_FC1_RETRY
l_str:                                  ; @str
	.asciz	"Got data when not associated!"

.subsections_via_symbols
