	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function telemetry_plt_raw_read_eventlog
_telemetry_plt_raw_read_eventlog:       ## @telemetry_plt_raw_read_eventlog
	.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
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edi, %eax
	cmpl	$129, %edi
	je	LBB0_4
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.2:
	movq	_telm_conf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$8, %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_telm_conf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_5:
	movl	%r14d, %r15d
	testl	%r12d, %r12d
	jne	LBB0_7
## %bb.6:
	movq	_TELEM_MAX_EVENTS_SRAM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
LBB0_7:
	movq	(%rcx), %r13
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_telem_evtlog_read
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.10:
	cmpl	%r14d, %ecx
	jl	LBB0_11
LBB0_12:
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.13:
	movl	%r14d, %eax
	testl	%ecx, %ecx
	je	LBB0_30
## %bb.14:
	movq	-48(%rbp), %rax
	movl	%ecx, %r8d
	cmpl	$1, %ecx
	jne	LBB0_22
## %bb.15:
	xorl	%ecx, %ecx
	jmp	LBB0_24
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_30
LBB0_8:
	movl	%ecx, %eax
	jmp	LBB0_30
LBB0_16:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_30
## %bb.17:
	testl	%r14d, %r14d
	jle	LBB0_30
## %bb.18:
	movq	-48(%rbp), %r8
	movl	%ecx, %r9d
	movl	%r14d, %esi
	shlq	$4, %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movq	(%r13,%rdi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rbx,%rdx), %rcx
	je	LBB0_21
## %bb.27:                              ##   in Loop: Header=BB0_20 Depth=2
	addq	$16, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_20
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	(%r8,%rdi,4), %ecx
	movl	%ecx, 8(%rbx,%rdx)
	incl	%eax
LBB0_28:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rdi
	cmpq	%r9, %rdi
	jae	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpl	%r14d, %eax
	jl	LBB0_19
	jmp	LBB0_30
LBB0_22:
	movl	%r8d, %esi
	andl	$-2, %esi
	leaq	24(%rbx), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	movl	%edx, -16(%rdi)
	movq	(%r13,%rcx,8), %rdx
	movq	%rdx, -24(%rdi)
	movl	4(%rax,%rcx,4), %edx
	movl	%edx, (%rdi)
	movq	8(%r13,%rcx,8), %rdx
	movq	%rdx, -8(%rdi)
	addq	$2, %rcx
	addq	$32, %rdi
	cmpq	%rcx, %rsi
	jne	LBB0_23
LBB0_24:
	testb	$1, %r8b
	je	LBB0_26
## %bb.25:
	movl	(%rax,%rcx,4), %eax
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movl	%eax, 8(%rbx,%rdx)
	movq	(%r13,%rcx,8), %rax
	movq	%rax, (%rbx,%rdx)
LBB0_26:
	movl	%r15d, %eax
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_telm_conf,8,3                  ## @telm_conf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown Telemetry Unit Specified %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TELEM_MAX_EVENTS_SRAM,4,2      ## @TELEM_MAX_EVENTS_SRAM
	.no_dead_strip	_telemetry_plt_raw_read_eventlog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function telemetry_plt_raw_read_eventlog
_telemetry_plt_raw_read_eventlog:       ; @telemetry_plt_raw_read_eventlog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x8, x0
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.2:
Lloh0:
	adrp	x9, _telm_conf@GOTPAGE
Lloh1:
	ldr	x9, [x9, _telm_conf@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x9, x9, #8
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x9, _telm_conf@GOTPAGE
Lloh4:
	ldr	x9, [x9, _telm_conf@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
LBB0_4:
	ldr	x23, [x9]
Lloh6:
	adrp	x9, _TELEM_MAX_EVENTS_SRAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TELEM_MAX_EVENTS_SRAM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w22, #0
	csel	w21, w9, w19, eq
	add	x1, sp, #8
	mov	x0, x8
	mov	x2, x21
	bl	_telem_evtlog_read
	mov	x8, x0
	tbnz	w0, #31, LBB0_14
; %bb.5:
	cbnz	w22, LBB0_7
; %bb.6:
	cmp	w8, w19
	b.lt	LBB0_13
LBB0_7:
	cbz	w22, LBB0_16
; %bb.8:
	mov	x0, x19
	cbz	w8, LBB0_15
; %bb.9:
	ldr	x9, [sp, #8]
	mov	w8, w8
	add	x10, x20, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	str	w11, [x10]
	ldr	x11, [x23], #8
	stur	x11, [x10, #-8]
	add	x10, x10, #16
	subs	x8, x8, #1
	b.ne	LBB0_10
; %bb.11:
	mov	x0, x21
	b	LBB0_15
LBB0_12:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_pr_err
LBB0_13:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_14:
	mov	x0, x8
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	cmp	w8, #0
	ccmp	w19, #1, #8, ne
	b.ge	LBB0_18
; %bb.17:
	mov	w0, #0
	b	LBB0_15
LBB0_18:
	mov	x9, #0
	mov	w0, #0
	ldr	x10, [sp, #8]
	add	x11, x20, #8
	mov	w8, w8
	mov	w12, w19
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	ldr	x14, [x23, x9, lsl #3]
	mov	x15, x12
	mov	x13, x11
LBB0_20:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x16, [x13, #-8]
	cmp	x14, x16
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	add	x13, x13, #16
	subs	x15, x15, #1
	b.ne	LBB0_20
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w14, [x10, x9, lsl #2]
	str	w14, [x13]
	add	w0, w0, #1
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.hs	LBB0_15
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w0, w19
	b.lt	LBB0_19
	b	LBB0_15
	.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	_telm_conf,8,3                  ; @telm_conf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown Telemetry Unit Specified %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TELEM_MAX_EVENTS_SRAM,4,2      ; @TELEM_MAX_EVENTS_SRAM
	.no_dead_strip	_telemetry_plt_raw_read_eventlog
.subsections_via_symbols
