	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function telemetry_pltdrv_probe
_telemetry_pltdrv_probe:                ## @telemetry_pltdrv_probe
	.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
	movq	%rdi, %r14
	movq	_telemetry_cpu_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_x86_match_cpu
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movq	_telm_conf@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_resource_size
	movl	%eax, %ebx
	movl	(%r12), %esi
	movl	4(%r14), %ecx
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_devm_request_mem_region
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movl	(%r12), %eax
	movq	(%r13), %rcx
	movl	%eax, 40(%rcx)
	movl	%ebx, 24(%rcx)
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_resource_size
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	4(%r14), %ecx
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_devm_request_mem_region
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	(%r15), %eax
	movq	(%r13), %rcx
	movl	%eax, 16(%rcx)
	movl	%ebx, (%rcx)
	movl	24(%rcx), %esi
	movl	40(%rcx), %edi
	callq	_ioremap_nocache
	movq	(%r13), %rcx
	movq	%rax, 32(%rcx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	(%rcx), %esi
	movl	16(%rcx), %edi
	callq	_ioremap_nocache
	movq	(%r13), %rdi
	movq	%rax, 8(%rdi)
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	addq	$52, %rdi
	callq	_mutex_init
	movq	(%r13), %rdi
	addq	$48, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_telemetry_setup
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	(%r12), %r13d
	movq	%r12, %rdi
	callq	_resource_size
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_release_mem_region
	testq	%r15, %r15
	je	LBB0_22
## %bb.21:
	movl	(%r15), %r12d
	movq	%r15, %rdi
	callq	_resource_size
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_release_mem_region
LBB0_22:
	movq	_telm_conf@GOTPCREL(%rip), %r13
LBB0_23:
	movq	(%r13), %rax
	movq	32(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_iounmap
	movq	(%r13), %rax
LBB0_25:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.26:
	callq	_iounmap
LBB0_27:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_16:
	movq	(%r13), %rsi
	movq	_telm_pltops@GOTPCREL(%rip), %rdi
	callq	_telemetry_set_pltdata
	testl	%eax, %eax
	je	LBB0_17
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_20
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_telemetry_cpu_ids,4,2          ## @telemetry_cpu_ids
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_telm_conf,8,3                  ## @telm_conf
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_telm_pltops,4,2                ## @telm_pltops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TELEMETRY Set Pltops Failed.\n"

L_.str.1:                               ## @.str.1
	.asciz	"TELEMETRY Setup Failed.\n"

	.no_dead_strip	_telemetry_pltdrv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function telemetry_pltdrv_probe
_telemetry_pltdrv_probe:                ; @telemetry_pltdrv_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _telemetry_cpu_ids@GOTPAGE
Lloh1:
	ldr	x8, [x8, _telemetry_cpu_ids@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_x86_match_cpu
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x0]
Lloh3:
	adrp	x24, _telm_conf@GOTPAGE
Lloh4:
	ldr	x24, [x24, _telm_conf@GOTPAGEOFF]
	str	x8, [x24]
Lloh5:
	adrp	x22, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
	bl	_resource_size
	mov	x21, x0
	ldr	w1, [x20]
	ldr	w3, [x19, #4]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_request_mem_region
	cbz	w0, LBB0_11
; %bb.3:
	ldr	w8, [x20]
	ldr	x9, [x24]
	str	w8, [x9, #40]
	str	w21, [x9, #24]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	mov	x21, x0
	cbz	x0, LBB0_13
; %bb.4:
	mov	x0, x21
	bl	_resource_size
	mov	x22, x0
	ldr	w1, [x21]
	ldr	w3, [x19, #4]
	mov	x0, x19
	mov	x2, x22
	bl	_devm_request_mem_region
	cbz	w0, LBB0_12
; %bb.5:
	ldr	w8, [x21]
	ldr	x9, [x24]
	str	w8, [x9, #16]
	str	w22, [x9]
	ldr	w0, [x9, #40]
	ldr	w1, [x9, #24]
	bl	_ioremap_nocache
	ldr	x8, [x24]
	str	x0, [x8, #32]
	cbz	x0, LBB0_14
; %bb.6:
	ldr	w0, [x8, #16]
	ldr	w1, [x8]
	bl	_ioremap_nocache
	ldr	x8, [x24]
	str	x0, [x8, #8]
	cbz	x0, LBB0_14
; %bb.7:
	add	x0, x8, #52
	bl	_mutex_init
	ldr	x8, [x24]
	add	x0, x8, #48
	bl	_mutex_init
	mov	x0, x19
	bl	_telemetry_setup
	cbz	w0, LBB0_24
; %bb.8:
	mov	x22, x0
	b	LBB0_16
LBB0_9:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_23
LBB0_10:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_11:
	mov	x21, #0
LBB0_12:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	ldr	w23, [x20]
	mov	x0, x20
	bl	_resource_size
	mov	x1, x0
	mov	x0, x23
	bl	_release_mem_region
	cbz	x21, LBB0_18
; %bb.17:
	ldr	w20, [x21]
	mov	x0, x21
	bl	_resource_size
	mov	x1, x0
	mov	x0, x20
	bl	_release_mem_region
LBB0_18:
	ldr	x8, [x24]
	ldr	x0, [x8, #32]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_iounmap
	ldr	x8, [x24]
LBB0_20:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_iounmap
LBB0_22:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_23:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_24:
	ldr	x1, [x24]
Lloh21:
	adrp	x0, _telm_pltops@GOTPAGE
Lloh22:
	ldr	x0, [x0, _telm_pltops@GOTPAGEOFF]
	bl	_telemetry_set_pltdata
	mov	x22, x0
	cbz	w0, LBB0_23
; %bb.25:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_telemetry_cpu_ids,4,2          ; @telemetry_cpu_ids
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_telm_conf,8,3                  ; @telm_conf
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_telm_pltops,4,2                ; @telm_pltops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TELEMETRY Set Pltops Failed.\n"

l_.str.1:                               ; @.str.1
	.asciz	"TELEMETRY Setup Failed.\n"

	.no_dead_strip	_telemetry_pltdrv_probe
.subsections_via_symbols
