	.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	%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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	16(%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_16
## %bb.3:
	movq	%rax, %rbx
	movl	-4148(%rbp), %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_generic_process
	movl	12(%r15), %esi
	movq	%rbx, %rdi
	callq	_for_me
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	movq	(%rbx), %rax
	movl	(%rax), %r14d
	movq	_IEEE80211_FC0_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%r14d, %r12d
	movq	_IEEE80211_FC0_SUBTYPE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_IEEE80211_FC0_TYPE_CTL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_10
## %bb.5:
	cmpl	$128, %r14d
	je	LBB0_16
## %bb.6:
	cmpl	$129, %r14d
	jne	LBB0_9
## %bb.7:
	movl	4(%r15), %eax
	movq	_S_WAIT_ACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.8:
	movq	_S_ASSOCIATED@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_from_ap
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movq	_IEEE80211_FC0_TYPE_MGT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_16
## %bb.12:
	movq	_IEEE80211_FC0_SUBTYPE_DEAUTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_14
## %bb.13:
	movq	_IEEE80211_FC0_SUBTYPE_DISASSOC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_16
LBB0_14:
	movq	_IEEE80211_FC0_SUBTYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, (%r15)
	movq	_S_START@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$4128, %rsp                     ## imm = 0x1020
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
LBB0_9:
	movq	_IEEE80211_FC0_SUBTYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
	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
	.comm	_IEEE80211_FC0_SUBTYPE_MASK,4,2 ## @IEEE80211_FC0_SUBTYPE_MASK
	.comm	_IEEE80211_FC0_TYPE_CTL,4,2     ## @IEEE80211_FC0_TYPE_CTL
	.comm	_S_WAIT_ACK,4,2                 ## @S_WAIT_ACK
	.comm	_S_ASSOCIATED,4,2               ## @S_ASSOCIATED
L_.str.1:                               ## @.str.1
	.asciz	"Unknown CTL frame %d\n"

	.comm	_IEEE80211_FC0_SUBTYPE_SHIFT,4,2 ## @IEEE80211_FC0_SUBTYPE_SHIFT
	.comm	_IEEE80211_FC0_TYPE_MGT,4,2     ## @IEEE80211_FC0_TYPE_MGT
	.comm	_IEEE80211_FC0_SUBTYPE_DEAUTH,4,2 ## @IEEE80211_FC0_SUBTYPE_DEAUTH
	.comm	_IEEE80211_FC0_SUBTYPE_DISASSOC,4,2 ## @IEEE80211_FC0_SUBTYPE_DISASSOC
L_.str.2:                               ## @.str.2
	.asciz	"Got management! %d\n"

	.comm	_S_START,4,2                    ## @S_START
.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, #-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, #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, #-56]
	ldr	w0, [x0, #16]
	add	x1, sp, #24
	mov	w2, #4096
	bl	_sniff
	str	w0, [sp, #20]
	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, #24
	add	x1, sp, #20
	bl	_get_wifi
	cbz	x0, LBB0_14
; %bb.3:
	mov	x20, x0
	ldr	w2, [sp, #20]
	mov	x1, x19
	bl	_generic_process
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_for_me
	cbz	w0, LBB0_14
; %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	w22, w9, w8
Lloh10:
	adrp	x9, _IEEE80211_FC0_SUBTYPE_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEEE80211_FC0_SUBTYPE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w21, w9, w8
Lloh13:
	adrp	x8, _IEEE80211_FC0_TYPE_CTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE80211_FC0_TYPE_CTL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_9
; %bb.5:
	cmp	w21, #128
	b.eq	LBB0_14
; %bb.6:
	cmp	w21, #129
	b.ne	LBB0_17
; %bb.7:
	ldr	w8, [x19, #4]
Lloh16:
	adrp	x9, _S_WAIT_ACK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _S_WAIT_ACK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.8:
Lloh19:
	adrp	x8, _S_ASSOCIATED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S_ASSOCIATED@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_from_ap
	cbz	w0, LBB0_14
; %bb.10:
Lloh21:
	adrp	x8, _IEEE80211_FC0_TYPE_MGT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_FC0_TYPE_MGT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_14
; %bb.11:
Lloh24:
	adrp	x8, _IEEE80211_FC0_SUBTYPE_DEAUTH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IEEE80211_FC0_SUBTYPE_DEAUTH@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _IEEE80211_FC0_SUBTYPE_DISASSOC@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IEEE80211_FC0_SUBTYPE_DISASSOC@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	b.ne	LBB0_14
; %bb.12:
Lloh30:
	adrp	x8, _IEEE80211_FC0_SUBTYPE_SHIFT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IEEE80211_FC0_SUBTYPE_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	asr	w8, w21, w8
	str	x8, [sp]
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	w8, #-1
	str	w8, [x19]
Lloh35:
	adrp	x8, _S_START@GOTPAGE
Lloh36:
	ldr	x8, [x8, _S_START@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	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_16:
	bl	___stack_chk_fail
LBB0_17:
Lloh40:
	adrp	x8, _IEEE80211_FC0_SUBTYPE_SHIFT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IEEE80211_FC0_SUBTYPE_SHIFT@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	asr	w8, w21, w8
	str	x8, [sp]
Lloh43:
	adrp	x0, l_.str.1@PAGE
Lloh44:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.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
	.comm	_IEEE80211_FC0_SUBTYPE_MASK,4,2 ; @IEEE80211_FC0_SUBTYPE_MASK
	.comm	_IEEE80211_FC0_TYPE_CTL,4,2     ; @IEEE80211_FC0_TYPE_CTL
	.comm	_S_WAIT_ACK,4,2                 ; @S_WAIT_ACK
	.comm	_S_ASSOCIATED,4,2               ; @S_ASSOCIATED
l_.str.1:                               ; @.str.1
	.asciz	"Unknown CTL frame %d\n"

	.comm	_IEEE80211_FC0_SUBTYPE_SHIFT,4,2 ; @IEEE80211_FC0_SUBTYPE_SHIFT
	.comm	_IEEE80211_FC0_TYPE_MGT,4,2     ; @IEEE80211_FC0_TYPE_MGT
	.comm	_IEEE80211_FC0_SUBTYPE_DEAUTH,4,2 ; @IEEE80211_FC0_SUBTYPE_DEAUTH
	.comm	_IEEE80211_FC0_SUBTYPE_DISASSOC,4,2 ; @IEEE80211_FC0_SUBTYPE_DISASSOC
l_.str.2:                               ; @.str.2
	.asciz	"Got management! %d\n"

	.comm	_S_START,4,2                    ; @S_START
.subsections_via_symbols
