	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trace_event__id                ## -- Begin function trace_event__id
	.p2align	4, 0x90
_trace_event__id:                       ## @trace_event__id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_tracing_events_path@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdi
	callq	_asprintf
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-56(%rbp), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	movl	$16, %edx
	callq	_read
	testq	%rax, %rax
	jle	LBB0_5
## %bb.6:
	leaq	-48(%rbp), %rdi
	callq	_atoi
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_9
LBB0_3:
	movl	$-1, %r14d
	jmp	LBB0_8
LBB0_5:
	movl	$-1, %r14d
LBB0_7:
	movl	%ebx, %edi
	callq	_close
LBB0_8:
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/syscalls/%s/id"

	.comm	_tracing_events_path,4,2        ## @tracing_events_path
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trace_event__id                ; -- Begin function trace_event__id
	.p2align	2
_trace_event__id:                       ; @trace_event__id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x3, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _tracing_events_path@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tracing_events_path@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_asprintf
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x0, [sp]
Lloh8:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x20, x0
	add	x1, sp, #8
	mov	w2, #16
	bl	_read
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.3:
	add	x0, sp, #8
	bl	_atoi
	mov	x19, x0
	b	LBB0_7
LBB0_4:
	mov	w19, #-1
	b	LBB0_9
LBB0_5:
	mov	w19, #-1
	b	LBB0_8
LBB0_6:
	mov	w19, #-1
LBB0_7:
	mov	x0, x20
	bl	_close
LBB0_8:
	ldr	x0, [sp]
	bl	_free
LBB0_9:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/syscalls/%s/id"

	.comm	_tracing_events_path,4,2        ; @tracing_events_path
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
.subsections_via_symbols
