	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scdrv_parse_event
_scdrv_parse_event:                     ## @scdrv_parse_event
	.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	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_get_unaligned_be32
	movl	%eax, (%r13)
	leaq	4(%rbx), %rdi
	callq	_get_unaligned_be32
	movl	%eax, (%r14)
	movl	$-1, %r14d
	cmpb	$2, 8(%rbx)
	jne	LBB0_8
## %bb.1:
	movsbl	9(%rbx), %eax
	movq	_IR_ARG_INT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_8
## %bb.2:
	leaq	10(%rbx), %rdi
	callq	_get_unaligned_be32
	movl	%eax, (%r12)
	movsbl	14(%rbx), %eax
	movq	_IR_ARG_ASCII@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_8
## %bb.3:
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movb	$0, 14(%rax,%rbx)
	addq	$17, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_stpcpy
	subl	%r15d, %eax
	cltq
	leaq	(%r15,%rax), %rcx
	decq	%rcx
	xorl	%r14d, %r14d
	cmpq	%r15, %rcx
	je	LBB0_8
## %bb.4:
	decq	%rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, (%r15,%rax)
	decq	%rax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rax), %ecx
	cmpb	$13, %cl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$10, %cl
	je	LBB0_7
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IR_ARG_INT,4,2                 ## @IR_ARG_INT
	.comm	_IR_ARG_ASCII,4,2               ## @IR_ARG_ASCII
	.comm	_CHUNKSIZE,4,2                  ## @CHUNKSIZE
	.no_dead_strip	_scdrv_parse_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scdrv_parse_event
_scdrv_parse_event:                     ; @scdrv_parse_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_get_unaligned_be32
	str	w0, [x23]
	add	x0, x20, #4
	bl	_get_unaligned_be32
	str	w0, [x22]
	ldrb	w8, [x20, #8]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.1:
	ldrsb	w8, [x20, #9]
Lloh0:
	adrp	x9, _IR_ARG_INT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IR_ARG_INT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.2:
	add	x0, x20, #10
	bl	_get_unaligned_be32
	str	w0, [x21]
	ldrsb	w8, [x20, #14]
Lloh3:
	adrp	x9, _IR_ARG_ASCII@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IR_ARG_ASCII@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _CHUNKSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHUNKSIZE@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	add	x8, x8, x20
	strb	wzr, [x8, #14]
	add	x1, x20, #17
	mov	x0, x19
	bl	_stpcpy
	sub	w8, w0, w19
	sxtw	x8, w8
	add	x9, x19, x8
	sub	x9, x9, #1
	cmp	x9, x19
	b.eq	LBB0_7
; %bb.4:
	sub	x8, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19, x8]
	cmp	w9, #13
	ccmp	w9, #10, #4, ne
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x19, x8]
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IR_ARG_INT,4,2                 ; @IR_ARG_INT
	.comm	_IR_ARG_ASCII,4,2               ; @IR_ARG_ASCII
	.comm	_CHUNKSIZE,4,2                  ; @CHUNKSIZE
	.no_dead_strip	_scdrv_parse_event
.subsections_via_symbols
