	.file	"extr_intel_telemetry_pltdrv.c_telemetry_pltdrv_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TELEMETRY Set Pltops Failed.\n"
.LC1:
	.string	"TELEMETRY Setup Failed.\n"
	.text
	.p2align 4
	.type	telemetry_pltdrv_probe, @function
telemetry_pltdrv_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, DWORD PTR telemetry_cpu_ids[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	x86_match_cpu@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	QWORD PTR telm_conf[rip], rax
	call	platform_get_resource@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	rbx, rax
	neg	r12d
	test	rax, rax
	je	.L5
	mov	rdi, rax
	call	resource_size@PLT
	mov	ecx, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	devm_request_mem_region@PLT
	test	eax, eax
	jne	.L6
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L7:
	mov	rdi, rbx
	call	resource_size@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	call	release_mem_region@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR telm_conf[rip]
	mov	rdi, QWORD PTR 32[rax]
	test	rdi, rdi
	je	.L13
.L27:
	call	iounmap@PLT
	mov	rax, QWORD PTR telm_conf[rip]
.L13:
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	je	.L14
	call	iounmap@PLT
.L14:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_err@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, DWORD PTR [rbx]
	mov	rax, QWORD PTR telm_conf[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	mov	DWORD PTR 40[rax], edx
	mov	edx, 1
	mov	DWORD PTR 24[rax], r12d
	call	platform_get_resource@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	r13, rax
	neg	r12d
	test	rax, rax
	je	.L7
	mov	rdi, rax
	call	resource_size@PLT
	mov	ecx, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	devm_request_mem_region@PLT
	test	eax, eax
	jne	.L9
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L10:
	mov	rdi, rbx
	call	resource_size@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	call	release_mem_region@PLT
	mov	rdi, r13
	call	resource_size@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, eax
	call	release_mem_region@PLT
	mov	rax, QWORD PTR telm_conf[rip]
	mov	rdi, QWORD PTR 32[rax]
	test	rdi, rdi
	jne	.L27
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r14, QWORD PTR telm_conf[rip]
	mov	eax, DWORD PTR 0[r13]
	mov	esi, DWORD PTR 24[r14]
	mov	edi, DWORD PTR 40[r14]
	mov	DWORD PTR [r14], r12d
	mov	DWORD PTR 16[r14], eax
	call	ioremap_nocache@PLT
	mov	r12, QWORD PTR telm_conf[rip]
	mov	QWORD PTR 32[r14], rax
	cmp	QWORD PTR 32[r12], 0
	je	.L25
	mov	edi, DWORD PTR 16[r12]
	mov	esi, DWORD PTR [r12]
	call	ioremap_nocache@PLT
	mov	rdi, QWORD PTR telm_conf[rip]
	mov	QWORD PTR 8[r12], rax
	cmp	QWORD PTR 8[rdi], 0
	je	.L25
	add	rdi, 52
	call	mutex_init@PLT
	mov	rax, QWORD PTR telm_conf[rip]
	lea	rdi, 48[rax]
	call	mutex_init@PLT
	mov	rdi, rbp
	call	telemetry_setup@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L10
	mov	rsi, QWORD PTR telm_conf[rip]
	lea	rdi, telm_pltops[rip]
	call	telemetry_set_pltdata@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	telemetry_pltdrv_probe, .-telemetry_pltdrv_probe
	.comm	telm_pltops,4,4
	.comm	telm_conf,8,8
	.comm	telemetry_cpu_ids,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_intel_telemetry_pltdrv.c_telemetry_pltdrv_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TELEMETRY Set Pltops Failed.\012\000"
	.align	2
.LC1:
	.ascii	"TELEMETRY Setup Failed.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	telemetry_pltdrv_probe, %function
telemetry_pltdrv_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L30
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r3]
	bl	x86_match_cpu
	cmp	r0, #0
	beq	.L27
	ldr	r8, .L30+4
	ldr	r3, [r0]
	ldr	r7, .L30+8
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r8]
	str	r3, [r7]
	bl	platform_get_resource
	subs	r5, r0, #0
	beq	.L28
	bl	resource_size
	ldr	r3, [r4, #4]
	mov	r2, r0
	mov	r6, r0
	ldr	r1, [r5]
	mov	r0, r4
	bl	devm_request_mem_region
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L30+12
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L7:
	mov	r0, r5
	ldr	r8, [r5]
	bl	resource_size
	mov	r1, r0
	mov	r0, r8
	bl	release_mem_region
.L5:
	ldr	r3, [r7]
	ldr	r0, [r3, #16]
	cmp	r0, #0
	beq	.L13
	bl	iounmap
	ldr	r3, [r7]
.L13:
	ldr	r0, [r3, #4]
	cmp	r0, #0
	beq	.L14
	bl	iounmap
.L14:
	mov	r0, r4
	ldr	r1, .L30+16
	bl	dev_err
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L28:
	ldr	r3, .L30+20
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L5
.L27:
	ldr	r3, .L30+24
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	ldr	r2, [r5]
	ldr	r3, [r7]
	ldr	r1, [r8]
	str	r2, [r3, #20]
	mov	r0, r4
	mov	r2, #1
	str	r6, [r3, #12]
	bl	platform_get_resource
	subs	r8, r0, #0
	beq	.L29
	bl	resource_size
	ldr	r3, [r4, #4]
	mov	r2, r0
	mov	r6, r0
	ldr	r1, [r8]
	mov	r0, r4
	bl	devm_request_mem_region
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L30+12
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L10:
	mov	r0, r5
	ldr	r9, [r5]
	bl	resource_size
	mov	r1, r0
	mov	r0, r9
	bl	release_mem_region
	mov	r0, r8
	ldr	r5, [r8]
	bl	resource_size
	mov	r1, r0
	mov	r0, r5
	bl	release_mem_region
	b	.L5
.L29:
	ldr	r3, .L30+20
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L7
.L9:
	ldr	r9, [r7]
	ldr	r3, [r8]
	ldr	r1, [r9, #12]
	str	r6, [r9]
	str	r3, [r9, #8]
	ldr	r0, [r9, #20]
	bl	ioremap_nocache
	ldr	r6, [r7]
	str	r0, [r9, #16]
	ldr	r3, [r6, #16]
	cmp	r3, #0
	beq	.L25
	ldr	r1, [r6]
	ldr	r0, [r6, #8]
	bl	ioremap_nocache
	ldr	r3, [r7]
	str	r0, [r6, #4]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L25
	add	r0, r3, #28
	bl	mutex_init
	ldr	r0, [r7]
	add	r0, r0, #24
	bl	mutex_init
	mov	r0, r4
	bl	telemetry_setup
	subs	r6, r0, #0
	bne	.L10
	ldr	r1, [r7]
	ldr	r0, .L30+28
	bl	telemetry_set_pltdata
	subs	r6, r0, #0
	beq	.L1
	mov	r0, r4
	ldr	r1, .L30+32
	bl	dev_err
	b	.L10
.L25:
	ldr	r3, .L30+36
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L10
.L31:
	.align	2
.L30:
	.word	telemetry_cpu_ids
	.word	IORESOURCE_MEM
	.word	telm_conf
	.word	EBUSY
	.word	.LC1
	.word	EINVAL
	.word	ENODEV
	.word	telm_pltops
	.word	.LC0
	.word	ENOMEM
	.size	telemetry_pltdrv_probe, .-telemetry_pltdrv_probe
	.comm	telm_pltops,4,4
	.comm	telm_conf,4,4
	.comm	telemetry_cpu_ids,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
