	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_prga                       ## -- Begin function get_prga
	.p2align	4, 0x90
_get_prga:                              ## @get_prga
	.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	$4128, %eax                     ## imm = 0x1020
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	20(%rdi), %edi
	leaq	-4144(%rbp), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_sniff
	movl	%eax, -4148(%rbp)
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	-4144(%rbp), %rdi
	leaq	-4148(%rbp), %rsi
	callq	_get_wifi
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %rbx
	movq	_IEEE80211_FC0_TYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IEEE80211_FC0_SUBTYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_frame_type
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:
	movl	-4148(%rbp), %esi
	movq	%rbx, %rdi
	callq	_is_arp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_known_pt_ip@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_known_pt_arp@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rbx), %rcx
	movq	_IEEE80211_FC1_DIR_TODS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	andl	4(%rcx), %edx
	movq	(%rax), %r15
	sete	%sil
	movq	8(%rbx,%rsi,8), %rsi
	movl	16(%r14), %edi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	movq	(%rbx), %rax
	movq	_IEEE80211_FC1_PROTECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_9
## %bb.10:
	addq	$24, %rbx
	movl	12(%r14), %edi
	movq	%rbx, %rsi
	movl	$3, %edx
	callq	_memcpy
	movl	-4148(%rbp), %eax
	addl	$-12, %eax
	movl	%eax, -4148(%rbp)
	movq	_known_pt_len@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpl	(%r12), %eax
	setge	%dil
	callq	_assert
	movl	$0, -4148(%rbp)
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.12:
	addq	$4, %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cltq
	movzbl	(%rbx), %ecx
	xorb	(%r15,%rax), %cl
	movq	(%r14), %rdx
	movb	%cl, (%rdx,%rax)
	incq	%rbx
	movl	-4148(%rbp), %eax
	incl	%eax
	movl	%eax, -4148(%rbp)
	cmpl	(%r12), %eax
	jl	LBB0_13
	jmp	LBB0_14
LBB0_9:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_15
LBB0_11:
	xorl	%eax, %eax
LBB0_14:
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_save_prga
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$4128, %rsp                     ## imm = 0x1020
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sniff()"

	.comm	_IEEE80211_FC0_TYPE_DATA,4,2    ## @IEEE80211_FC0_TYPE_DATA
	.comm	_IEEE80211_FC0_SUBTYPE_DATA,4,2 ## @IEEE80211_FC0_SUBTYPE_DATA
	.comm	_known_pt_arp,8,3               ## @known_pt_arp
	.comm	_known_pt_ip,8,3                ## @known_pt_ip
	.comm	_IEEE80211_FC1_DIR_TODS,4,2     ## @IEEE80211_FC1_DIR_TODS
	.comm	_IEEE80211_FC1_PROTECTED,4,2    ## @IEEE80211_FC1_PROTECTED
	.comm	_known_pt_len,4,2               ## @known_pt_len
L_str:                                  ## @str
	.asciz	"Packet not WEP!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_prga                       ; -- Begin function get_prga
	.p2align	2
_get_prga:                              ; @get_prga
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	mov	w9, #4112
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, #16
	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, #-56]
	ldr	w0, [x0, #20]
	add	x1, sp, #8
	mov	w2, #4096
	bl	_sniff
	str	w0, [sp, #4]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_get_wifi
	cbz	x0, LBB0_12
; %bb.3:
	mov	x20, x0
Lloh7:
	adrp	x8, _IEEE80211_FC0_TYPE_DATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEEE80211_FC0_TYPE_DATA@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _IEEE80211_FC0_SUBTYPE_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IEEE80211_FC0_SUBTYPE_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_frame_type
	cbz	w0, LBB0_12
; %bb.4:
	ldr	w1, [sp, #4]
	mov	x0, x20
	bl	_is_arp
Lloh13:
	adrp	x8, _known_pt_ip@GOTPAGE
Lloh14:
	ldr	x8, [x8, _known_pt_ip@GOTPAGEOFF]
Lloh15:
	adrp	x9, _known_pt_arp@GOTPAGE
Lloh16:
	ldr	x9, [x9, _known_pt_arp@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	x21, [x8]
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
Lloh17:
	adrp	x9, _IEEE80211_FC1_DIR_TODS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IEEE80211_FC1_DIR_TODS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #8
	mov	w9, #16
	csel	x8, x9, x8, eq
	ldr	x1, [x20, x8]
	ldr	w0, [x19, #16]
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_12
; %bb.5:
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
Lloh20:
	adrp	x9, _IEEE80211_FC1_PROTECTED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IEEE80211_FC1_PROTECTED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	add	x20, x20, #24
	ldr	w0, [x19, #12]
	mov	x1, x20
	mov	w2, #3
	bl	_memcpy
	ldr	w8, [sp, #4]
	sub	w8, w8, #12
	str	w8, [sp, #4]
Lloh23:
	adrp	x22, _known_pt_len@GOTPAGE
Lloh24:
	ldr	x22, [x22, _known_pt_len@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	cset	w0, ge
	bl	_assert
	str	wzr, [sp, #4]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	w9, #0
	add	x8, x20, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x9, w9
	ldrb	w10, [x21, x9]
	ldrb	w11, [x8], #1
	eor	w10, w11, w10
	ldr	x11, [x19]
	strb	w10, [x11, x9]
	ldr	w9, [sp, #4]
	add	w9, w9, #1
	str	w9, [sp, #4]
	ldr	w10, [x22]
	cmp	w9, w10
	b.lt	LBB0_8
	b	LBB0_11
LBB0_9:
Lloh25:
	adrp	x0, l_str@PAGE
Lloh26:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_12
LBB0_10:
	mov	w9, #0
LBB0_11:
	str	w9, [x19, #8]
	mov	x0, x19
	bl	_save_prga
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sniff()"

	.comm	_IEEE80211_FC0_TYPE_DATA,4,2    ; @IEEE80211_FC0_TYPE_DATA
	.comm	_IEEE80211_FC0_SUBTYPE_DATA,4,2 ; @IEEE80211_FC0_SUBTYPE_DATA
	.comm	_known_pt_arp,8,3               ; @known_pt_arp
	.comm	_known_pt_ip,8,3                ; @known_pt_ip
	.comm	_IEEE80211_FC1_DIR_TODS,4,2     ; @IEEE80211_FC1_DIR_TODS
	.comm	_IEEE80211_FC1_PROTECTED,4,2    ; @IEEE80211_FC1_PROTECTED
	.comm	_known_pt_len,4,2               ; @known_pt_len
l_str:                                  ; @str
	.asciz	"Packet not WEP!"

.subsections_via_symbols
