	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_can_write                      ## -- Begin function can_write
	.p2align	4, 0x90
_can_write:                             ## @can_write
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	_state@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.3:
	movl	%r12d, %edi
	callq	_send_auth
	movq	_SENDING_AUTH@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movl	%r12d, %edi
	callq	_send_assoc
	movq	_SENDING_ASSOC@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_prgainfo@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_23
## %bb.7:
	movl	4(%rax), %eax
	movq	_min_prga@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_8
## %bb.26:
	movl	%r12d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_discover_prga                  ## TAILCALL
LBB0_23:
	movq	_decryptstate@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_24
	jmp	LBB0_11
LBB0_8:
	movq	_decryptstate@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
LBB0_24:
	movl	%r12d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_decrypt                        ## TAILCALL
LBB0_9:
	movq	_taptx_len@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_12
## %bb.10:
	movq	_taptx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_send_frame
	movl	$0, (%rbx)
	jmp	LBB0_11
LBB0_12:
	movq	_netip@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_rtrmac@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.13:
	testq	%rax, %rax
	jne	LBB0_19
## %bb.14:
	leaq	_can_write.arp_ip(%rip), %rdi
	callq	_strcpy
	movq	_netip_arg@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.15:
	leaq	_can_write.arp_ip(%rip), %rdi
	movl	$46, %esi
	callq	_strchr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_assert
	incq	%r14
	movq	%r14, %rdi
	movl	$46, %esi
	callq	_strchr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_assert
	incq	%r14
	movq	%r14, %rdi
	movl	$46, %esi
	callq	_strchr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_assert
	incq	%r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcpy
LBB0_16:
	movq	_arpsend@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	leaq	_can_write.arp_ip(%rip), %r14
	movq	%r14, %rsi
	callq	_time_print
	movq	_ARPOP_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_myip@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mymac@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	l_.str.3(%rip), %r9
	movl	%r12d, %edi
	movq	%r14, %r8
	callq	_send_arp
	movq	$1, (%r15)
	jmp	LBB0_11
LBB0_19:
	cmpq	$2, %rax
	jb	LBB0_11
## %bb.20:
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.21:
	movq	_floodip@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_22
## %bb.25:
	movl	%r12d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flood_inet                     ## TAILCALL
LBB0_22:
	movq	_ARPOP_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_myip@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mymac@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	_can_write.arp_ip(%rip), %r8
	leaq	l_.str.3(%rip), %r9
	movl	%r12d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_arp                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_can_write.arp_ip,16,4 ## @can_write.arp_ip
	.comm	_state,4,2                      ## @state
	.comm	_SENDING_AUTH,4,2               ## @SENDING_AUTH
	.comm	_SENDING_ASSOC,4,2              ## @SENDING_ASSOC
	.comm	_prgainfo,8,2                   ## @prgainfo
	.comm	_min_prga,4,2                   ## @min_prga
	.comm	_decryptstate,4,2               ## @decryptstate
	.comm	_taptx_len,4,2                  ## @taptx_len
	.comm	_taptx,4,2                      ## @taptx
	.comm	_netip,8,3                      ## @netip
	.comm	_rtrmac,8,3                     ## @rtrmac
	.comm	_netip_arg,4,2                  ## @netip_arg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1"

	.comm	_arpsend,4,2                    ## @arpsend
L_.str.1:                               ## @.str.1
	.asciz	"gettimeofday()"

L_.str.2:                               ## @.str.2
	.asciz	"Sending arp request for: %s\n"

	.comm	_ARPOP_REQUEST,4,2              ## @ARPOP_REQUEST
	.comm	_myip,4,2                       ## @myip
	.comm	_mymac,4,2                      ## @mymac
	.section	__TEXT,__const
l_.str.3:                               ## @.str.3
	.space	7

	.comm	_floodip,4,2                    ## @floodip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_can_write                      ; -- Begin function can_write
	.p2align	2
_can_write:                             ; @can_write
	.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	x19, x0
Lloh0:
	adrp	x20, _state@GOTPAGE
Lloh1:
	ldr	x20, [x20, _state@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_send_auth
Lloh2:
	adrp	x8, _SENDING_AUTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SENDING_AUTH@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_send_assoc
Lloh4:
	adrp	x8, _SENDING_ASSOC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SENDING_ASSOC@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_6:
	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_7:
Lloh6:
	adrp	x8, _prgainfo@GOTPAGE
Lloh7:
	ldr	x8, [x8, _prgainfo@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_10
; %bb.8:
	ldr	w8, [x8, #4]
Lloh8:
	adrp	x9, _min_prga@GOTPAGE
Lloh9:
	ldr	x9, [x9, _min_prga@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.9:
	mov	x0, x19
	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
	b	_discover_prga
LBB0_10:
Lloh11:
	adrp	x8, _decryptstate@GOTPAGE
Lloh12:
	ldr	x8, [x8, _decryptstate@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
	b	LBB0_6
LBB0_11:
Lloh14:
	adrp	x8, _decryptstate@GOTPAGE
Lloh15:
	ldr	x8, [x8, _decryptstate@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbz	w8, LBB0_13
LBB0_12:
	mov	x0, x19
	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
	b	_decrypt
LBB0_13:
Lloh17:
	adrp	x20, _taptx_len@GOTPAGE
Lloh18:
	ldr	x20, [x20, _taptx_len@GOTPAGEOFF]
	ldr	w2, [x20]
	cbz	w2, LBB0_15
; %bb.14:
Lloh19:
	adrp	x8, _taptx@GOTPAGE
Lloh20:
	ldr	x8, [x8, _taptx@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_send_frame
	str	wzr, [x20]
	b	LBB0_6
LBB0_15:
Lloh22:
	adrp	x8, _netip@GOTPAGE
Lloh23:
	ldr	x8, [x8, _netip@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
Lloh25:
	adrp	x21, _rtrmac@GOTPAGE
Lloh26:
	ldr	x21, [x21, _rtrmac@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x1, #0
	ccmp	x8, #0, #0, ne
	b.eq	LBB0_19
; %bb.16:
	cmp	x8, #2
	ccmp	x1, #0, #4, hs
	b.eq	LBB0_6
; %bb.17:
Lloh27:
	adrp	x8, _floodip@GOTPAGE
Lloh28:
	ldr	x8, [x8, _floodip@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cbz	w8, LBB0_24
; %bb.18:
	mov	x0, x19
	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
	b	_flood_inet
LBB0_19:
Lloh30:
	adrp	x0, _can_write.arp_ip@PAGE
Lloh31:
	add	x0, x0, _can_write.arp_ip@PAGEOFF
	bl	_strcpy
Lloh32:
	adrp	x8, _netip_arg@GOTPAGE
Lloh33:
	ldr	x8, [x8, _netip_arg@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cbnz	w8, LBB0_21
; %bb.20:
Lloh35:
	adrp	x0, _can_write.arp_ip@PAGE
Lloh36:
	add	x0, x0, _can_write.arp_ip@PAGEOFF
	mov	w1, #46
	bl	_strchr
	mov	x20, x0
	bl	_assert
	add	x0, x20, #1
	mov	w1, #46
	bl	_strchr
	mov	x20, x0
	bl	_assert
	add	x0, x20, #1
	mov	w1, #46
	bl	_strchr
	mov	x20, x0
	bl	_assert
	add	x0, x20, #1
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
LBB0_21:
Lloh39:
	adrp	x0, _arpsend@GOTPAGE
Lloh40:
	ldr	x0, [x0, _arpsend@GOTPAGEOFF]
	mov	x1, #0
	bl	_gettimeofday
	cmn	w0, #1
	b.ne	LBB0_23
; %bb.22:
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_23:
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh45:
	adrp	x20, _can_write.arp_ip@PAGE
Lloh46:
	add	x20, x20, _can_write.arp_ip@PAGEOFF
	mov	x1, x20
	bl	_time_print
Lloh47:
	adrp	x8, _ARPOP_REQUEST@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ARPOP_REQUEST@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x8, _myip@GOTPAGE
Lloh51:
	ldr	x8, [x8, _myip@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
Lloh53:
	adrp	x8, _mymac@GOTPAGE
Lloh54:
	ldr	x8, [x8, _mymac@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
Lloh56:
	adrp	x5, l_.str.3@PAGE
Lloh57:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_send_arp
	mov	w8, #1
	str	x8, [x21]
	b	LBB0_6
LBB0_24:
Lloh58:
	adrp	x8, _ARPOP_REQUEST@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ARPOP_REQUEST@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x8, _myip@GOTPAGE
Lloh62:
	ldr	x8, [x8, _myip@GOTPAGEOFF]
Lloh63:
	adrp	x9, _mymac@GOTPAGE
Lloh64:
	ldr	x9, [x9, _mymac@GOTPAGEOFF]
Lloh65:
	ldr	w2, [x8]
Lloh66:
	ldr	w3, [x9]
Lloh67:
	adrp	x4, _can_write.arp_ip@PAGE
Lloh68:
	add	x4, x4, _can_write.arp_ip@PAGEOFF
Lloh69:
	adrp	x5, l_.str.3@PAGE
Lloh70:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x19
	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
	b	_send_arp
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh65
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_can_write.arp_ip,16,0 ; @can_write.arp_ip
	.comm	_state,4,2                      ; @state
	.comm	_SENDING_AUTH,4,2               ; @SENDING_AUTH
	.comm	_SENDING_ASSOC,4,2              ; @SENDING_ASSOC
	.comm	_prgainfo,8,2                   ; @prgainfo
	.comm	_min_prga,4,2                   ; @min_prga
	.comm	_decryptstate,4,2               ; @decryptstate
	.comm	_taptx_len,4,2                  ; @taptx_len
	.comm	_taptx,4,2                      ; @taptx
	.comm	_netip,8,3                      ; @netip
	.comm	_rtrmac,8,3                     ; @rtrmac
	.comm	_netip_arg,4,2                  ; @netip_arg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1"

	.comm	_arpsend,4,2                    ; @arpsend
l_.str.1:                               ; @.str.1
	.asciz	"gettimeofday()"

l_.str.2:                               ; @.str.2
	.asciz	"Sending arp request for: %s\n"

	.comm	_ARPOP_REQUEST,4,2              ; @ARPOP_REQUEST
	.comm	_myip,4,2                       ; @myip
	.comm	_mymac,4,2                      ; @mymac
	.section	__TEXT,__const
l_.str.3:                               ; @.str.3
	.space	7

	.comm	_floodip,4,2                    ; @floodip
.subsections_via_symbols
