	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_wifi                      ## -- Begin function read_wifi
	.p2align	4, 0x90
_read_wifi:                             ## @read_wifi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	movl	$4128, %eax                     ## imm = 0x1020
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	4(%rdi), %edi
	leaq	-4128(%rbp), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_sniff
	movl	%eax, -4132(%rbp)
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	-4128(%rbp), %rdi
	leaq	-4132(%rbp), %rsi
	callq	_get_wifi
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %rbx
	movl	8(%rax), %edi
	movl	(%r14), %esi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movq	_IEEE80211_FC0_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	cmpl	$130, %ecx
	jne	LBB0_13
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ack
	movl	-4132(%rbp), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_duplicate
	testq	%rax, %rax
	je	LBB0_6
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$4128, %rsp                     ## imm = 0x1020
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	(%rbx), %rcx
	movq	_IEEE80211_FC0_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rcx), %eax
	cmpl	$130, %eax
	je	LBB0_12
## %bb.7:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.9:
	movl	-4132(%rbp), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_read_mgt
	jmp	LBB0_13
LBB0_12:
	movl	-4132(%rbp), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_read_ctl
	jmp	LBB0_13
LBB0_10:
	movl	-4132(%rbp), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_read_data
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
LBB0_11:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sniff()"

	.comm	_IEEE80211_FC0_TYPE_MASK,4,2    ## @IEEE80211_FC0_TYPE_MASK
L_str:                                  ## @str
	.asciz	"wtf"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_wifi                      ; -- Begin function read_wifi
	.p2align	2
_read_wifi:                             ; @read_wifi
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	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, #-40]
	ldr	w0, [x0, #4]
	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_6
; %bb.3:
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x19]
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _IEEE80211_FC0_TYPE_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IEEE80211_FC0_TYPE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #130
	b.ne	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_ack
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_duplicate
	cbz	x0, LBB0_8
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.7:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _IEEE80211_FC0_TYPE_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IEEE80211_FC0_TYPE_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #130
	b.eq	LBB0_12
; %bb.9:
	cmp	w8, #129
	b.eq	LBB0_13
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.11:
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_read_mgt
	b	LBB0_6
LBB0_12:
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_read_ctl
	b	LBB0_6
LBB0_13:
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_read_data
	b	LBB0_6
LBB0_14:
	bl	___stack_chk_fail
LBB0_15:
Lloh16:
	adrp	x0, l_str@PAGE
Lloh17:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sniff()"

	.comm	_IEEE80211_FC0_TYPE_MASK,4,2    ; @IEEE80211_FC0_TYPE_MASK
l_str:                                  ; @str
	.asciz	"wtf"

.subsections_via_symbols
