	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function telemetry_plt_get_trace_verbosity
_telemetry_plt_get_trace_verbosity:     ## @telemetry_plt_get_trace_verbosity
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -36(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_telm_conf@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_mutex_lock
	cmpl	$129, %ebx
	je	LBB0_7
## %bb.3:
	cmpl	$128, %ebx
	jne	LBB0_9
## %bb.4:
	movq	_IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	leaq	-36(%rbp), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_intel_punit_ipc_command
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_7:
	movq	_PMC_IPC_PMC_TELEMTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IOSS_TELEM_TRACE_CTL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IOSS_TELEM_READ_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%r15d, %r15d
	leaq	-36(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_intel_pmc_ipc_command
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_pr_err
	movl	%ebx, %r15d
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_10:
	movl	-36(%rbp), %edi
	movl	(%r14), %esi
	callq	_TELEM_EXTRACT_VERBOSITY
LBB0_11:
	movq	(%r12), %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_telm_conf,8,3                  ## @telm_conf
	.comm	_IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL,4,2 ## @IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PSS TRACE_CTRL Read Failed\n"

	.comm	_PMC_IPC_PMC_TELEMTRY,4,2       ## @PMC_IPC_PMC_TELEMTRY
	.comm	_IOSS_TELEM_TRACE_CTL_READ,4,2  ## @IOSS_TELEM_TRACE_CTL_READ
	.comm	_IOSS_TELEM_READ_WORD,4,2       ## @IOSS_TELEM_READ_WORD
L_.str.1:                               ## @.str.1
	.asciz	"IOSS TRACE_CTL Read Failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown Telemetry Unit Specified %d\n"

	.no_dead_strip	_telemetry_plt_get_trace_verbosity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function telemetry_plt_get_trace_verbosity
_telemetry_plt_get_trace_verbosity:     ; @telemetry_plt_get_trace_verbosity
	.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
	str	wzr, [sp, #12]
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _telm_conf@GOTPAGE
Lloh1:
	ldr	x21, [x21, _telm_conf@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_mutex_lock
	cmp	w20, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w20, #128
	b.ne	LBB0_8
; %bb.3:
Lloh2:
	adrp	x8, _IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x4, sp, #12
	mov	w1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_intel_punit_ipc_command
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_10
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_6:
Lloh10:
	adrp	x8, _PMC_IPC_PMC_TELEMTRY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PMC_IPC_PMC_TELEMTRY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _IOSS_TELEM_TRACE_CTL_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IOSS_TELEM_TRACE_CTL_READ@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _IOSS_TELEM_READ_WORD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IOSS_TELEM_READ_WORD@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x8]
	add	x4, sp, #12
	mov	x2, #0
	mov	w3, #0
	bl	_intel_pmc_ipc_command
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.7:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_10
LBB0_8:
	str	x20, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	ldr	w0, [sp, #12]
	ldr	w1, [x19]
	bl	_TELEM_EXTRACT_VERBOSITY
LBB0_10:
	ldr	x0, [x21]
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_telm_conf,8,3                  ; @telm_conf
	.comm	_IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL,4,2 ; @IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PSS TRACE_CTRL Read Failed\n"

	.comm	_PMC_IPC_PMC_TELEMTRY,4,2       ; @PMC_IPC_PMC_TELEMTRY
	.comm	_IOSS_TELEM_TRACE_CTL_READ,4,2  ; @IOSS_TELEM_TRACE_CTL_READ
	.comm	_IOSS_TELEM_READ_WORD,4,2       ; @IOSS_TELEM_READ_WORD
l_.str.1:                               ; @.str.1
	.asciz	"IOSS TRACE_CTL Read Failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown Telemetry Unit Specified %d\n"

	.no_dead_strip	_telemetry_plt_get_trace_verbosity
.subsections_via_symbols
