	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parsemsg
_parsemsg:                              ## @parsemsg
	.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	%rdi, %r14
	cmpb	$60, (%rsi)
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movsbl	1(%rsi), %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movb	2(%rbx), %al
	movl	$2, %r13d
	cmpb	$62, %al
	je	LBB0_13
## %bb.3:
	movsbl	%al, %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movb	3(%rbx), %al
	movl	$3, %r13d
	cmpb	$62, %al
	je	LBB0_13
## %bb.8:
	movsbl	%al, %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movb	4(%rbx), %al
	movl	$4, %r13d
	cmpb	$62, %al
	jne	LBB0_10
LBB0_13:
	leaq	(%rbx,%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_14:
	leaq	1(%rbx), %rdi
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %r15
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
LBB0_26:
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintf                        ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
LBB0_6:
	movq	%r14, %rsi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintf                        ## TAILCALL
LBB0_15:
	movq	-56(%rbp), %rax
	movb	(%rax), %al
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpb	(%rcx), %al
	jne	LBB0_26
## %bb.16:
	testq	%r15, %r15
	js	LBB0_26
## %bb.17:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jge	LBB0_26
## %bb.18:
	movq	_LOG_FACMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_LOG_PRIMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	notl	%ecx
	testl	%r15d, %ecx
	je	LBB0_20
## %bb.19:
	movq	_DEFUPRI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_20:
	andl	%r15d, %eax
	movq	_LOG_KERN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
## %bb.21:
	movq	_KeepKernFac@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_23
## %bb.22:
	movq	_LOG_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r15d, %edi
	callq	_LOG_PRI
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_LOG_MAKEPRI
	movl	%eax, %r15d
LBB0_23:
	leaq	(%rbx,%r13), %rdx
	incq	%rdx
	cmpb	$49, 1(%r13,%rbx)
	jne	LBB0_25
## %bb.24:
	cmpb	$32, 1(%rdx)
	jne	LBB0_25
## %bb.27:
	addq	$2, %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_parsemsg_rfc5424               ## TAILCALL
LBB0_25:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_parsemsg_rfc3164               ## TAILCALL
LBB0_10:
	movsbl	%al, %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_4
## %bb.11:
	cmpb	$62, 5(%rbx)
	jne	LBB0_4
## %bb.12:
	leaq	5(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$5, %r13d
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid PRI from %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid PRI header from %s\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_INT_MAX,8,3                    ## @INT_MAX
L_.str.2:                               ## @.str.2
	.asciz	"Invalid PRI %ld from %s: %s\n"

	.comm	_LOG_FACMASK,4,2                ## @LOG_FACMASK
	.comm	_LOG_PRIMASK,4,2                ## @LOG_PRIMASK
	.comm	_DEFUPRI,4,2                    ## @DEFUPRI
	.comm	_LOG_KERN,4,2                   ## @LOG_KERN
	.comm	_KeepKernFac,4,2                ## @KeepKernFac
	.comm	_LOG_USER,4,2                   ## @LOG_USER
	.no_dead_strip	_parsemsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parsemsg
_parsemsg:                              ; @parsemsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldrb	w8, [x1]
	cmp	w8, #60
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x21, x1
	ldrsb	w0, [x21, #1]!
	bl	_isdigit
	cbz	w0, LBB0_4
; %bb.2:
	ldrb	w8, [x20, #2]
	cmp	w8, #62
	b.ne	LBB0_5
; %bb.3:
	mov	w22, #2
	add	x23, x20, x22
	b	LBB0_14
LBB0_4:
	str	x19, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_5:
	sxtb	w0, w8
	bl	_isdigit
	cbz	w0, LBB0_16
; %bb.6:
	ldrb	w8, [x20, #3]
	cmp	w8, #62
	b.ne	LBB0_8
; %bb.7:
	mov	w22, #3
	add	x23, x20, x22
	b	LBB0_14
LBB0_8:
	sxtb	w0, w8
	bl	_isdigit
	cbz	w0, LBB0_16
; %bb.9:
	ldrb	w8, [x20, #4]
	cmp	w8, #62
	b.ne	LBB0_11
; %bb.10:
	mov	w22, #4
	add	x23, x20, x22
	b	LBB0_14
LBB0_11:
	sxtb	w0, w8
	bl	_isdigit
	cbz	w0, LBB0_16
; %bb.12:
	mov	x23, x20
	ldrb	w8, [x23, #5]!
	cmp	w8, #62
	b.ne	LBB0_16
; %bb.13:
	mov	w22, #5
LBB0_14:
Lloh2:
	adrp	x24, _errno@GOTPAGE
Lloh3:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
	add	x1, sp, #24
	mov	x0, x21
	mov	w2, #10
	bl	_strtol
	mov	x21, x0
	ldr	x0, [x24]
	cbz	x0, LBB0_18
LBB0_15:
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp, #8]
	str	x21, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
	str	x19, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_17:
	bl	_dprintf
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	ldrb	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.19:
	tbnz	x21, #63, LBB0_15
; %bb.20:
Lloh8:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ge	LBB0_15
; %bb.21:
Lloh11:
	adrp	x8, _LOG_FACMASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOG_FACMASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _LOG_PRIMASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LOG_PRIMASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w9, w9, w8
Lloh17:
	adrp	x10, _DEFUPRI@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DEFUPRI@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	bics	wzr, w21, w9
	csel	w1, w21, w10, eq
	and	w8, w1, w8
Lloh20:
	adrp	x9, _LOG_KERN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LOG_KERN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _KeepKernFac@GOTPAGE
Lloh24:
	ldr	x10, [x10, _KeepKernFac@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w10, #0, #0, eq
	b.ne	LBB0_23
; %bb.22:
Lloh26:
	adrp	x8, _LOG_USER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LOG_USER@GOTPAGEOFF]
Lloh28:
	ldr	w21, [x8]
	mov	x0, x1
	bl	_LOG_PRI
	mov	x1, x0
	mov	x0, x21
	bl	_LOG_MAKEPRI
	mov	x1, x0
LBB0_23:
	add	x2, x22, x20
	ldrb	w8, [x2, #1]!
	cmp	w8, #49
	b.ne	LBB0_26
; %bb.24:
	ldrb	w8, [x2, #1]
	cmp	w8, #32
	b.ne	LBB0_26
; %bb.25:
	add	x2, x2, #2
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_parsemsg_rfc5424
LBB0_26:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_parsemsg_rfc3164
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid PRI from %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid PRI header from %s\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_INT_MAX,8,3                    ; @INT_MAX
l_.str.2:                               ; @.str.2
	.asciz	"Invalid PRI %ld from %s: %s\n"

	.comm	_LOG_FACMASK,4,2                ; @LOG_FACMASK
	.comm	_LOG_PRIMASK,4,2                ; @LOG_PRIMASK
	.comm	_DEFUPRI,4,2                    ; @DEFUPRI
	.comm	_LOG_KERN,4,2                   ; @LOG_KERN
	.comm	_KeepKernFac,4,2                ; @KeepKernFac
	.comm	_LOG_USER,4,2                   ; @LOG_USER
	.no_dead_strip	_parsemsg
.subsections_via_symbols
