	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SendSysLog                     ## -- Begin function SendSysLog
	.p2align	4, 0x90
_SendSysLog:                            ## @SendSysLog
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r12
	movq	%r15, %rdi
	callq	_CalcUniToUtf8
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ZeroMalloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_UniToUtf8
	cmpl	$1023, %ebx                     ## imm = 0x3FF
	movl	$1023, %r15d                    ## imm = 0x3FF
	cmovll	%ebx, %r15d
	movl	16(%r12), %edi
	callq	_Lock
	xorl	%eax, %eax
	callq	_Tick64
	cmpq	(%r12), %rax
	jl	LBB0_6
## %bb.3:
	movl	28(%r12), %esi
	leaq	-36(%rbp), %rdi
	callq	_GetIP
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_Tick64
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	_SYSLOG_POLL_IP_INTERVAL@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, (%r12)
	leaq	20(%r12), %rdi
	leaq	-36(%rbp), %rsi
	movl	$4, %edx
	callq	_Copy
LBB0_6:
	cmpq	$0, 8(%r12)
	je	LBB0_9
LBB0_7:
	leaq	20(%r12), %rbx
	movq	%rbx, %rdi
	callq	_IsZeroIp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	24(%r12), %edi
	movq	8(%r12), %rdx
	movq	%rbx, %rsi
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	_SendTo
	jmp	LBB0_9
LBB0_5:
	movq	_SYSLOG_POLL_IP_INTERVAL_NG@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, (%r12)
	cmpq	$0, 8(%r12)
	jne	LBB0_7
LBB0_9:
	movl	16(%r12), %edi
	callq	_Unlock
	movq	%r14, %rdi
	callq	_Free
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSLOG_POLL_IP_INTERVAL,8,3    ## @SYSLOG_POLL_IP_INTERVAL
	.comm	_SYSLOG_POLL_IP_INTERVAL_NG,8,3 ## @SYSLOG_POLL_IP_INTERVAL_NG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SendSysLog                     ; -- Begin function SendSysLog
	.p2align	2
_SendSysLog:                            ; @SendSysLog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_10
; %bb.2:
	mov	x19, x0
	mov	x0, x21
	bl	_CalcUniToUtf8
	mov	x22, x0
	bl	_ZeroMalloc
	mov	x20, x0
	mov	x1, x22
	mov	x2, x21
	bl	_UniToUtf8
	mov	w8, #1023
	cmp	w22, #1023
	csel	w21, w22, w8, lt
	ldr	w0, [x19, #16]
	bl	_Lock
	bl	_Tick64
	ldr	x8, [x19]
	cmp	x0, x8
	b.lt	LBB0_5
; %bb.3:
	ldr	w1, [x19, #28]
	add	x0, sp, #12
	bl	_GetIP
	mov	x22, x0
	bl	_Tick64
	cbz	x22, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _SYSLOG_POLL_IP_INTERVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYSLOG_POLL_IP_INTERVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, x0
	mov	x0, x19
	str	x8, [x0], #20
	add	x1, sp, #12
	mov	w2, #4
	bl	_Copy
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
LBB0_6:
	add	x22, x19, #20
	mov	x0, x22
	bl	_IsZeroIp
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w0, [x19, #24]
	ldr	x2, [x19, #8]
	mov	x1, x22
	mov	x3, x20
	mov	x4, x21
	bl	_SendTo
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _SYSLOG_POLL_IP_INTERVAL_NG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYSLOG_POLL_IP_INTERVAL_NG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, x0
	str	x8, [x19]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_6
LBB0_9:
	ldr	w0, [x19, #16]
	bl	_Unlock
	mov	x0, x20
	bl	_Free
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSLOG_POLL_IP_INTERVAL,8,3    ; @SYSLOG_POLL_IP_INTERVAL
	.comm	_SYSLOG_POLL_IP_INTERVAL_NG,8,3 ; @SYSLOG_POLL_IP_INTERVAL_NG
.subsections_via_symbols
