	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function telemetry_check_evtid
_telemetry_check_evtid:                 ## @telemetry_check_evtid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, %r14
	leaq	-32(%rbp), %rsi
	callq	_telem_get_unitconfig
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$130, %ebx
	je	LBB0_8
## %bb.3:
	cmpl	$129, %ebx
	jne	LBB0_9
## %bb.4:
	movq	_TELEM_MAX_EVENTS_SRAM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%r15, (%rcx)
	jl	LBB0_10
	jmp	LBB0_11
LBB0_5:
	movq	_TELEM_MAX_EVENTS_SRAM@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jge	LBB0_6
	jmp	LBB0_10
LBB0_8:
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	addq	%r15, %rax
	movq	_TELEM_MAX_EVENTS_SRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_10
LBB0_6:
	xorl	%eax, %eax
	testq	%r14, %r14
	jne	LBB0_11
## %bb.7:
	testq	%r15, %r15
	jg	LBB0_10
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TELEM_MAX_EVENTS_SRAM,8,3      ## @TELEM_MAX_EVENTS_SRAM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown Telemetry action specified %d\n"

	.no_dead_strip	_telemetry_check_evtid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function telemetry_check_evtid
_telemetry_check_evtid:                 ; @telemetry_check_evtid
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	add	x1, sp, #8
	bl	_telem_get_unitconfig
	tbnz	w0, #31, LBB0_12
; %bb.1:
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w21, #129
	b.ne	LBB0_10
; %bb.4:
Lloh0:
	adrp	x8, _TELEM_MAX_EVENTS_SRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TELEM_MAX_EVENTS_SRAM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.lt	LBB0_11
; %bb.5:
	mov	w0, #0
	b	LBB0_12
LBB0_6:
Lloh3:
	adrp	x8, _TELEM_MAX_EVENTS_SRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TELEM_MAX_EVENTS_SRAM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ge	LBB0_8
	b	LBB0_11
LBB0_7:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _TELEM_MAX_EVENTS_SRAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TELEM_MAX_EVENTS_SRAM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x8, x19
	cmp	x8, x9
	b.gt	LBB0_11
LBB0_8:
	mov	w0, #0
	cbnz	x20, LBB0_12
; %bb.9:
	cmp	x19, #1
	b.ge	LBB0_11
	b	LBB0_12
LBB0_10:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_err
LBB0_11:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TELEM_MAX_EVENTS_SRAM,8,3      ; @TELEM_MAX_EVENTS_SRAM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown Telemetry action specified %d\n"

	.no_dead_strip	_telemetry_check_evtid
.subsections_via_symbols
