	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function telemetry_plt_set_trace_verbosity
_telemetry_plt_set_trace_verbosity:     ## @telemetry_plt_set_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	%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	%esi, %r15d
	movl	%edi, %ebx
	movl	$0, -44(%rbp)
	movq	_TELEM_TRC_VERBOSITY_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_telm_conf@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_mutex_lock
	cmpl	$129, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_11
## %bb.2:
	movq	_IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_intel_punit_ipc_command
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_7:
	movq	_PMC_IPC_PMC_TELEMTRY@GOTPCREL(%rip), %r13
	movl	(%r13), %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	%r14d, %r14d
	leaq	-44(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_intel_pmc_ipc_command
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_5:
	movl	-44(%rbp), %edi
	callq	_TELEM_CLEAR_VERBOSITY_BITS
	movl	-44(%rbp), %edi
	movl	%r15d, %esi
	callq	_TELEM_SET_VERBOSITY_BITS
	movq	_IPC_PUNIT_BIOS_WRITE_TELE_TRACE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_intel_punit_ipc_command
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_9:
	movl	-44(%rbp), %edi
	callq	_TELEM_CLEAR_VERBOSITY_BITS
	movl	-44(%rbp), %edi
	movl	%r15d, %esi
	callq	_TELEM_SET_VERBOSITY_BITS
	movl	(%r13), %edi
	movq	_IOSS_TELEM_TRACE_CTL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IOSS_TELEM_WRITE_FOURBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_intel_pmc_ipc_command
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_pr_err
	movl	%ebx, %r14d
LBB0_12:
	movq	(%r12), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TELEM_TRC_VERBOSITY_MASK,4,2   ## @TELEM_TRC_VERBOSITY_MASK
	.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	_IPC_PUNIT_BIOS_WRITE_TELE_TRACE_CTRL,4,2 ## @IPC_PUNIT_BIOS_WRITE_TELE_TRACE_CTRL
L_.str.1:                               ## @.str.1
	.asciz	"PSS TRACE_CTRL Verbosity Set 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.2:                               ## @.str.2
	.asciz	"IOSS TRACE_CTL Read Failed\n"

	.comm	_IOSS_TELEM_TRACE_CTL_WRITE,4,2 ## @IOSS_TELEM_TRACE_CTL_WRITE
	.comm	_IOSS_TELEM_WRITE_FOURBYTES,4,2 ## @IOSS_TELEM_WRITE_FOURBYTES
L_.str.3:                               ## @.str.3
	.asciz	"IOSS TRACE_CTL Verbosity Set Failed\n"

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

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_telemetry_plt_set_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_set_trace_verbosity
_telemetry_plt_set_trace_verbosity:     ; @telemetry_plt_set_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
	mov	x20, x0
Lloh0:
	adrp	x8, _TELEM_TRC_VERBOSITY_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TELEM_TRC_VERBOSITY_MASK@GOTPAGEOFF]
	str	wzr, [sp, #12]
Lloh2:
	ldr	w8, [x8]
	and	w19, w8, w1
Lloh3:
	adrp	x21, _telm_conf@GOTPAGE
Lloh4:
	ldr	x21, [x21, _telm_conf@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_mutex_lock
	cmp	w20, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #128
	b.ne	LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPC_PUNIT_BIOS_READ_TELE_TRACE_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x4, sp, #12
	mov	w1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_intel_punit_ipc_command
	cbz	w0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_4:
Lloh10:
	adrp	x22, _PMC_IPC_PMC_TELEMTRY@GOTPAGE
Lloh11:
	ldr	x22, [x22, _PMC_IPC_PMC_TELEMTRY@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh12:
	adrp	x8, _IOSS_TELEM_TRACE_CTL_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IOSS_TELEM_TRACE_CTL_READ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _IOSS_TELEM_READ_WORD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IOSS_TELEM_READ_WORD@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	add	x4, sp, #12
	mov	x2, #0
	mov	w3, #0
	bl	_intel_pmc_ipc_command
	cbz	w0, LBB0_9
; %bb.5:
	mov	x20, x0
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_6:
	str	x20, [sp]
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_7:
	ldr	w0, [sp, #12]
	bl	_TELEM_CLEAR_VERBOSITY_BITS
	ldr	w0, [sp, #12]
	mov	x1, x19
	bl	_TELEM_SET_VERBOSITY_BITS
Lloh25:
	adrp	x8, _IPC_PUNIT_BIOS_WRITE_TELE_TRACE_CTRL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IPC_PUNIT_BIOS_WRITE_TELE_TRACE_CTRL@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	add	x3, sp, #12
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_intel_punit_ipc_command
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.8:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
	ldr	w0, [sp, #12]
	bl	_TELEM_CLEAR_VERBOSITY_BITS
	ldr	w0, [sp, #12]
	mov	x1, x19
	bl	_TELEM_SET_VERBOSITY_BITS
	ldr	w0, [x22]
Lloh30:
	adrp	x8, _IOSS_TELEM_TRACE_CTL_WRITE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IOSS_TELEM_TRACE_CTL_WRITE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _IOSS_TELEM_WRITE_FOURBYTES@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IOSS_TELEM_WRITE_FOURBYTES@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x4, #0
	mov	w5, #0
	bl	_intel_pmc_ipc_command
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.10:
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_pr_err
LBB0_12:
	ldr	x0, [x21]
	bl	_mutex_unlock
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_TELEM_TRC_VERBOSITY_MASK,4,2   ; @TELEM_TRC_VERBOSITY_MASK
	.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	_IPC_PUNIT_BIOS_WRITE_TELE_TRACE_CTRL,4,2 ; @IPC_PUNIT_BIOS_WRITE_TELE_TRACE_CTRL
l_.str.1:                               ; @.str.1
	.asciz	"PSS TRACE_CTRL Verbosity Set 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.2:                               ; @.str.2
	.asciz	"IOSS TRACE_CTL Read Failed\n"

	.comm	_IOSS_TELEM_TRACE_CTL_WRITE,4,2 ; @IOSS_TELEM_TRACE_CTL_WRITE
	.comm	_IOSS_TELEM_WRITE_FOURBYTES,4,2 ; @IOSS_TELEM_WRITE_FOURBYTES
l_.str.3:                               ; @.str.3
	.asciz	"IOSS TRACE_CTL Verbosity Set Failed\n"

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

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_telemetry_plt_set_trace_verbosity
.subsections_via_symbols
