	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addto_syslog                   ## -- Begin function addto_syslog
	.p2align	4, 0x90
_addto_syslog:                          ## @addto_syslog
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %r15d
	movw	$10, -50(%rbp)
	movb	$0, -41(%rbp)
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	_addto_syslog.prevcall_progname(%rip), %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, _addto_syslog.prevcall_progname(%rip)
	movq	_DIR_SEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strrchr
	leaq	1(%rax), %rcx
	testq	%rax, %rax
	cmoveq	%rbx, %rcx
	movq	%rcx, _addto_syslog.prog(%rip)
LBB0_2:
	movq	_msyslog_term@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_syslogit@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%r13, %rdx
	callq	_syslog
	jmp	LBB0_5
LBB0_4:
	movq	_syslog_file@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovel	%eax, %ebx
	cmovnel	%eax, %r12d
LBB0_5:
	movl	%r12d, %eax
	orl	%ebx, %eax
	je	LBB0_25
## %bb.6:
	movq	_msyslog_include_timestamp@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	callq	_humanlogtime
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_msyslog_term_pid@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_11
## %bb.10:
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	testl	%r12d, %r12d
	je	LBB0_12
LBB0_11:
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_12:
	movq	%r13, %rdi
	callq	_strlen
	cltq
	cmpb	$10, -1(%rax,%r13)
	leaq	-41(%rbp), %rax
	leaq	-50(%rbp), %r14
	cmoveq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.13:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jge	LBB0_14
## %bb.15:
	movq	_stdout@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rbx
	movq	_msyslog_include_timestamp@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_18:
	movq	_msyslog_term_pid@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.19:
	movq	_addto_syslog.prog(%rip), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_20:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_fflush
LBB0_21:
	testl	%r12d, %r12d
	je	LBB0_25
## %bb.22:
	movq	_msyslog_include_timestamp@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_24
## %bb.23:
	movq	_syslog_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_24:
	movq	_syslog_file@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_addto_syslog.prog(%rip), %rdx
	leaq	L_.str.4(%rip), %rsi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r13, %r8
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rdi
	callq	_fflush
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_addto_syslog.prevcall_progname,8,3 ## @addto_syslog.prevcall_progname
.zerofill __DATA,__bss,_addto_syslog.prog,8,3 ## @addto_syslog.prog
	.comm	_progname,8,3                   ## @progname
	.comm	_DIR_SEP,4,2                    ## @DIR_SEP
	.comm	_msyslog_term,4,2               ## @msyslog_term
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_syslogit,8,3                   ## @syslogit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_syslog_file,8,3                ## @syslog_file
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_msyslog_include_timestamp,8,3  ## @msyslog_include_timestamp
	.comm	_msyslog_term_pid,8,3           ## @msyslog_term_pid
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.comm	_stderr,8,3                     ## @stderr
	.comm	_stdout,8,3                     ## @stdout
L_.str.1:                               ## @.str.1
	.asciz	"%s "

L_.str.2:                               ## @.str.2
	.asciz	"%s[%d]: "

L_.str.3:                               ## @.str.3
	.asciz	"%s%s"

L_.str.4:                               ## @.str.4
	.asciz	"%s[%d]: %s%s"

	.comm	_debug,8,3                      ## @debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addto_syslog                   ; -- Begin function addto_syslog
	.p2align	2
_addto_syslog:                          ; @addto_syslog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	w8, #10
	strh	w8, [sp, #30]
	strb	wzr, [sp, #29]
Lloh0:
	adrp	x8, _progname@GOTPAGE
Lloh1:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	adrp	x8, _addto_syslog.prevcall_progname@PAGE
	ldr	x9, [x8, _addto_syslog.prevcall_progname@PAGEOFF]
	cmp	x21, x9
	b.eq	LBB0_2
; %bb.1:
	str	x21, [x8, _addto_syslog.prevcall_progname@PAGEOFF]
Lloh3:
	adrp	x8, _DIR_SEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIR_SEP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strrchr
	cmp	x0, #0
	csinc	x8, x21, x0, eq
	adrp	x9, _addto_syslog.prog@PAGE
	str	x8, [x9, _addto_syslog.prog@PAGEOFF]
LBB0_2:
Lloh6:
	adrp	x8, _msyslog_term@GOTPAGE
Lloh7:
	ldr	x8, [x8, _msyslog_term@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
Lloh12:
	adrp	x8, _syslogit@GOTPAGE
Lloh13:
	ldr	x8, [x8, _syslogit@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_syslog
	orr	w8, w23, w25
	cbnz	w8, LBB0_5
	b	LBB0_21
LBB0_4:
Lloh17:
	adrp	x8, _syslog_file@GOTPAGE
Lloh18:
	ldr	x8, [x8, _syslog_file@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _TRUE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w25, w9, w25, eq
	csel	w23, w23, w9, eq
	orr	w8, w23, w25
	cbz	w8, LBB0_21
LBB0_5:
Lloh23:
	adrp	x24, _msyslog_include_timestamp@GOTPAGE
Lloh24:
	ldr	x24, [x24, _msyslog_include_timestamp@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_7
; %bb.6:
	bl	_humanlogtime
	mov	x21, x0
	b	LBB0_8
LBB0_7:
	mov	x21, #0
LBB0_8:
Lloh25:
	adrp	x27, _msyslog_term_pid@GOTPAGE
Lloh26:
	ldr	x27, [x27, _msyslog_term_pid@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x8, #0
	ccmp	w23, #0, #0, eq
	b.eq	LBB0_10
; %bb.9:
	bl	_getpid
	mov	x22, x0
	b	LBB0_11
LBB0_10:
	mov	w22, #-1
LBB0_11:
	mov	x0, x19
	bl	_strlen
	add	x8, x19, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	add	x8, sp, #30
	add	x9, sp, #29
	csel	x26, x9, x8, eq
	cbz	w25, LBB0_17
; %bb.12:
Lloh27:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _stderr@GOTPAGE
Lloh31:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh32:
	adrp	x10, _stdout@GOTPAGE
Lloh33:
	ldr	x10, [x10, _stdout@GOTPAGEOFF]
	cmp	w8, w20
	csel	x8, x10, x9, lt
	ldr	x20, [x8]
	ldr	x8, [x24]
	cbz	x8, LBB0_14
; %bb.13:
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_fprintf
LBB0_14:
	ldr	x8, [x27]
	cbz	x8, LBB0_16
; %bb.15:
Lloh36:
	adrp	x8, _addto_syslog.prog@PAGE
Lloh37:
	ldr	x2, [x8, _addto_syslog.prog@PAGEOFF]
	mov	x8, x22
	str	x8, [sp]
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fprintf
LBB0_16:
	str	x26, [sp]
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf
	mov	x0, x20
	bl	_fflush
LBB0_17:
	cbz	w23, LBB0_21
; %bb.18:
	ldr	x8, [x24]
Lloh42:
	adrp	x20, _syslog_file@GOTPAGE
Lloh43:
	ldr	x20, [x20, _syslog_file@GOTPAGEOFF]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	x0, [x20]
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_fprintf
LBB0_20:
	ldr	x0, [x20]
Lloh46:
	adrp	x8, _addto_syslog.prog@PAGE
Lloh47:
	ldr	x2, [x8, _addto_syslog.prog@PAGEOFF]
	stp	x19, x26, [sp, #8]
	str	x22, [sp]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	x0, [x20]
	bl	_fflush
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdr	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdr	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_addto_syslog.prevcall_progname,8,3 ; @addto_syslog.prevcall_progname
.zerofill __DATA,__bss,_addto_syslog.prog,8,3 ; @addto_syslog.prog
	.comm	_progname,8,3                   ; @progname
	.comm	_DIR_SEP,4,2                    ; @DIR_SEP
	.comm	_msyslog_term,4,2               ; @msyslog_term
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_syslogit,8,3                   ; @syslogit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_syslog_file,8,3                ; @syslog_file
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_msyslog_include_timestamp,8,3  ; @msyslog_include_timestamp
	.comm	_msyslog_term_pid,8,3           ; @msyslog_term_pid
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.comm	_stderr,8,3                     ; @stderr
	.comm	_stdout,8,3                     ; @stdout
l_.str.1:                               ; @.str.1
	.asciz	"%s "

l_.str.2:                               ; @.str.2
	.asciz	"%s[%d]: "

l_.str.3:                               ; @.str.3
	.asciz	"%s%s"

l_.str.4:                               ; @.str.4
	.asciz	"%s[%d]: %s%s"

	.comm	_debug,8,3                      ; @debug
.subsections_via_symbols
