	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_incoming_link_part2    ## -- Begin function process_incoming_link_part2
	.p2align	4, 0x90
_process_incoming_link_part2:           ## @process_incoming_link_part2
	.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
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	jle	LBB0_13
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r12
	leaq	16(%rbx), %r15
	movq	%rbx, %rdi
	callq	_TLS_MODE
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	cmpq	$0, 88(%rbx)
	jne	LBB0_4
	jmp	LBB0_6
LBB0_13:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_buf_reset                      ## TAILCALL
LBB0_2:
	leaq	44(%rbx), %rdx
	movl	40(%rbx), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_link_socket_set_outgoing_addr
	cmpq	$0, 88(%rbx)
	je	LBB0_6
LBB0_4:
	cmpq	$0, (%r15)
	jle	LBB0_8
## %bb.5:
	leaq	36(%rbx), %rdi
	callq	_event_timeout_reset
LBB0_6:
	movq	(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_8
## %bb.7:
	addl	%eax, 32(%rbx)
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	callq	_max_int
	movl	%eax, 24(%rbx)
LBB0_8:
	movq	%r15, %rdi
	callq	_is_ping_msg
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_D_PING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dmsg
	movq	$0, (%r15)
LBB0_10:
	movq	8(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_buffer_turnover
	movl	80(%rbx), %edi
	callq	_tuntap_defined
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	$0, (%rbx)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_PING,4,2                     ## @D_PING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RECEIVED PING PACKET"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_incoming_link_part2    ; -- Begin function process_incoming_link_part2
	.p2align	2
_process_incoming_link_part2:           ; @process_incoming_link_part2
	.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
	mov	x21, x0
	ldr	x8, [x21, #16]!
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x22, x1
	mov	x0, x19
	bl	_TLS_MODE
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #88]
	cbnz	x8, LBB0_5
	b	LBB0_7
LBB0_3:
	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	_buf_reset
LBB0_4:
	add	x2, x19, #44
	ldr	w4, [x19, #40]
	mov	x0, x21
	mov	x1, x22
	mov	x3, #0
	bl	_link_socket_set_outgoing_addr
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_7
LBB0_5:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.6:
	add	x0, x19, #36
	bl	_event_timeout_reset
LBB0_7:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.8:
	ldp	w0, w9, [x19, #28]
	add	w8, w9, w8
	str	w8, [x19, #32]
	ldr	w1, [x19, #24]
	bl	_max_int
	str	w0, [x19, #24]
LBB0_9:
	mov	x0, x21
	bl	_is_ping_msg
	cbz	x0, LBB0_11
; %bb.10:
Lloh0:
	adrp	x8, _D_PING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_PING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dmsg
	str	xzr, [x21]
LBB0_11:
	ldr	x3, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_buffer_turnover
	ldr	w0, [x19, #80]
	bl	_tuntap_defined
	cbnz	w0, LBB0_13
; %bb.12:
	str	xzr, [x19]
LBB0_13:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D_PING,4,2                     ; @D_PING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RECEIVED PING PACKET"

.subsections_via_symbols
