	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_L3PollingBeacon                ## -- Begin function L3PollingBeacon
	.p2align	4, 0x90
_L3PollingBeacon:                       ## @L3PollingBeacon
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	_BEACON_SEND_INTERVAL@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_Tick64
	cmpq	%rax, %rbx
	jle	LBB0_3
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_L3PollingBeacon.cold.1
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function L3PollingBeacon.cold.1
_L3PollingBeacon.cold.1:                ## @L3PollingBeacon.cold.1
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	12(%rdi), %r12d
	notl	%r12d
	orl	8(%rdi), %r12d
	pushq	$115
	popq	%rdi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	leaq	2560(%rax), %r13
	pushq	$7
	popq	%r14
	movl	%r14d, %edi
	callq	_Endian16
	movq	%rax, 2584(%rbx)
	movl	%r14d, %edi
	callq	_Endian16
	movq	%rax, 2576(%rbx)
	pushq	$75
	popq	%r14
	movl	%r14d, %edi
	callq	_Endian16
	movq	%rax, 2568(%rbx)
	leaq	4608(%rbx), %rdi
	leaq	_L3PollingBeacon.beacon_str(%rip), %rsi
	pushq	$43
	popq	%rdx
	callq	_Copy
	movl	8(%r15), %edi
	pushq	$17
	popq	%rdx
	movl	%r12d, %esi
	movq	%r13, %rcx
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_CalcChecksumForIPv4
	movl	%eax, 2560(%rbx)
	movl	%r12d, (%rbx)
	pushq	$4
	popq	%r14
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_IPV4_SET_VERSION
	movq	_IP_HEADER_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cltd
	idivl	%r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_IPV4_SET_HEADER_LEN
	movq	_DEFAULT_IP_TOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	pushq	$115
	popq	%r13
	movl	%r13d, %edi
	callq	_Endian16
	movq	%rax, 24(%rbx)
	movq	_DEFAULT_IP_TTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_IP_PROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_IpChecksum
	movl	%eax, 8(%rbx)
	movq	_broadcast@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r15), %rdx
	movq	_MAC_PROTO_IPV4@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movq	%rbx, %r8
	movl	%r13d, %r9d
	callq	_L3SendL2Now
	movq	%rbx, %rdi
	callq	_Free
	movq	_ARP_HARDWARE_TYPE_ETHERNET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Endian16
	movl	(%r14), %edi
	callq	_Endian16
	movq	_ARP_OPERATION_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Endian16
	movq	16(%r15), %rsi
	pushq	$6
	popq	%rdx
	callq	_Copy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_BEACON_SEND_INTERVAL,8,3       ## @BEACON_SEND_INTERVAL
	.section	__DATA,__data
	.p2align	4                               ## @L3PollingBeacon.beacon_str
_L3PollingBeacon.beacon_str:
	.asciz	"PacketiX VPN Virtual Layer-3 Switch Beacon"

	.comm	_IP_HEADER_SIZE,4,2             ## @IP_HEADER_SIZE
	.comm	_DEFAULT_IP_TOS,4,2             ## @DEFAULT_IP_TOS
	.comm	_DEFAULT_IP_TTL,4,2             ## @DEFAULT_IP_TTL
	.comm	_IP_PROTO_UDP,4,2               ## @IP_PROTO_UDP
	.comm	_broadcast,4,2                  ## @broadcast
	.comm	_MAC_PROTO_IPV4,4,2             ## @MAC_PROTO_IPV4
	.comm	_ARP_HARDWARE_TYPE_ETHERNET,4,2 ## @ARP_HARDWARE_TYPE_ETHERNET
	.comm	_ARP_OPERATION_RESPONSE,4,2     ## @ARP_OPERATION_RESPONSE
	.comm	_MAC_PROTO_ARPV4,4,2            ## @MAC_PROTO_ARPV4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_L3PollingBeacon                ; -- Begin function L3PollingBeacon
	.p2align	2
_L3PollingBeacon:                       ; @L3PollingBeacon
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _BEACON_SEND_INTERVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BEACON_SEND_INTERVAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x20, x9, x8
	bl	_Tick64
	cmp	x20, x0
	b.le	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	bl	_L3PollingBeacon.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function L3PollingBeacon.cold.1
_L3PollingBeacon.cold.1:                ; @L3PollingBeacon.cold.1
	.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
	ldp	w8, w9, [x0, #8]
	orn	w21, w8, w9
	mov	w0, #115
	bl	_ZeroMalloc
	mov	x20, x0
	add	x22, x0, #2560
	mov	w0, #7
	bl	_Endian16
	str	x0, [x20, #2584]
	mov	w0, #7
	bl	_Endian16
	str	x0, [x20, #2576]
	mov	w0, #75
	bl	_Endian16
	str	x0, [x20, #2568]
	mov	w8, #4608
	add	x0, x20, x8
Lloh3:
	adrp	x1, _L3PollingBeacon.beacon_str@PAGE
Lloh4:
	add	x1, x1, _L3PollingBeacon.beacon_str@PAGEOFF
	mov	w2, #43
	bl	_Copy
	ldr	w0, [x19, #8]
	mov	x1, x21
	mov	w2, #17
	mov	x3, x22
	mov	w4, #75
	mov	w5, #0
	bl	_CalcChecksumForIPv4
	str	w0, [x20, #2560]
	str	w21, [x20]
	mov	w21, #4
	mov	x0, x20
	mov	w1, #4
	bl	_IPV4_SET_VERSION
Lloh5:
	adrp	x22, _IP_HEADER_SIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IP_HEADER_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	sdiv	w1, w8, w21
	mov	x0, x20
	bl	_IPV4_SET_HEADER_LEN
Lloh7:
	adrp	x8, _DEFAULT_IP_TOS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DEFAULT_IP_TOS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	mov	w0, #115
	bl	_Endian16
	str	x0, [x20, #24]
Lloh10:
	adrp	x8, _DEFAULT_IP_TTL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEFAULT_IP_TTL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _IP_PROTO_UDP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IP_PROTO_UDP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	ldr	w8, [x19, #8]
	str	w8, [x20, #4]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_IpChecksum
Lloh16:
	adrp	x8, _broadcast@GOTPAGE
Lloh17:
	ldr	x8, [x8, _broadcast@GOTPAGEOFF]
	str	w0, [x20, #8]
Lloh18:
	ldr	w1, [x8]
	ldr	x2, [x19, #16]
Lloh19:
	adrp	x21, _MAC_PROTO_IPV4@GOTPAGE
Lloh20:
	ldr	x21, [x21, _MAC_PROTO_IPV4@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x4, x20
	mov	w5, #115
	bl	_L3SendL2Now
	mov	x0, x20
	bl	_Free
Lloh21:
	adrp	x8, _ARP_HARDWARE_TYPE_ETHERNET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ARP_HARDWARE_TYPE_ETHERNET@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_Endian16
	ldr	w0, [x21]
	bl	_Endian16
Lloh24:
	adrp	x8, _ARP_OPERATION_RESPONSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ARP_OPERATION_RESPONSE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_Endian16
	ldr	x1, [x19, #16]
	mov	w2, #6
	bl	_Copy
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BEACON_SEND_INTERVAL,8,3       ; @BEACON_SEND_INTERVAL
	.section	__DATA,__data
_L3PollingBeacon.beacon_str:            ; @L3PollingBeacon.beacon_str
	.asciz	"PacketiX VPN Virtual Layer-3 Switch Beacon"

	.comm	_IP_HEADER_SIZE,4,2             ; @IP_HEADER_SIZE
	.comm	_DEFAULT_IP_TOS,4,2             ; @DEFAULT_IP_TOS
	.comm	_DEFAULT_IP_TTL,4,2             ; @DEFAULT_IP_TTL
	.comm	_IP_PROTO_UDP,4,2               ; @IP_PROTO_UDP
	.comm	_broadcast,4,2                  ; @broadcast
	.comm	_MAC_PROTO_IPV4,4,2             ; @MAC_PROTO_IPV4
	.comm	_ARP_HARDWARE_TYPE_ETHERNET,4,2 ; @ARP_HARDWARE_TYPE_ETHERNET
	.comm	_ARP_OPERATION_RESPONSE,4,2     ; @ARP_OPERATION_RESPONSE
	.comm	_MAC_PROTO_ARPV4,4,2            ; @MAC_PROTO_ARPV4
.subsections_via_symbols
