	.file	"extr_tps68470_pmic.c_tps68470_pmic_opregion_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dev or regmap is NULL\n"
.LC1:
	.string	"acpi handle is NULL\n"
	.text
	.p2align 4
	.type	tps68470_pmic_opregion_probe, @function
tps68470_pmic_opregion_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR [rdi]
	call	dev_get_drvdata@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rbx, rax
	call	ACPI_HANDLE@PLT
	test	rbx, rbx
	je	.L13
	mov	r12d, eax
	test	eax, eax
	je	.L14
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rbp
	mov	esi, 16
	call	devm_kzalloc@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	test	rbp, rbp
	je	.L1
	mov	rdi, rbp
	call	mutex_init@PLT
	mov	QWORD PTR 8[rbp], rbx
	xor	ecx, ecx
	mov	edi, r12d
	mov	edx, DWORD PTR tps68470_pmic_pwr_handler[rip]
	mov	esi, DWORD PTR TI_PMIC_POWER_OPREGION_ID[rip]
	mov	r8, rbp
	call	acpi_install_address_space_handler@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	je	.L15
.L6:
	endbr64
	mov	rdi, rbp
	call	mutex_destroy@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	dev_warn@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edx, DWORD PTR tps68470_pmic_vrval_handler[rip]
	xor	ecx, ecx
	mov	edi, r12d
	mov	r8, rbp
	mov	esi, DWORD PTR TI_PMIC_VR_VAL_OPREGION_ID[rip]
	call	acpi_install_address_space_handler@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L7
	mov	edx, DWORD PTR tps68470_pmic_clk_handler[rip]
	xor	ecx, ecx
	mov	edi, r12d
	mov	r8, rbp
	mov	esi, DWORD PTR TI_PMIC_CLOCK_OPREGION_ID[rip]
	call	acpi_install_address_space_handler@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	je	.L16
.L8:
	mov	edx, DWORD PTR tps68470_pmic_vrval_handler[rip]
	mov	esi, DWORD PTR TI_PMIC_VR_VAL_OPREGION_ID[rip]
	mov	edi, r12d
	call	acpi_remove_address_space_handler@PLT
.L7:
	mov	edx, DWORD PTR tps68470_pmic_pwr_handler[rip]
	mov	esi, DWORD PTR TI_PMIC_POWER_OPREGION_ID[rip]
	mov	edi, r12d
	call	acpi_remove_address_space_handler@PLT
	mov	rdi, rbp
	call	mutex_destroy@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edx, DWORD PTR tps68470_pmic_cfreq_handler[rip]
	mov	r8, rbp
	xor	ecx, ecx
	mov	edi, r12d
	mov	esi, DWORD PTR TI_PMIC_CLKFREQ_OPREGION_ID[rip]
	call	acpi_install_address_space_handler@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L1
	mov	edx, DWORD PTR tps68470_pmic_clk_handler[rip]
	mov	esi, DWORD PTR TI_PMIC_CLOCK_OPREGION_ID[rip]
	mov	edi, r12d
	call	acpi_remove_address_space_handler@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	tps68470_pmic_opregion_probe, .-tps68470_pmic_opregion_probe
	.comm	tps68470_pmic_vrval_handler,4,4
	.comm	tps68470_pmic_pwr_handler,4,4
	.comm	tps68470_pmic_clk_handler,4,4
	.comm	tps68470_pmic_cfreq_handler,4,4
	.comm	TI_PMIC_VR_VAL_OPREGION_ID,4,4
	.comm	TI_PMIC_POWER_OPREGION_ID,4,4
	.comm	TI_PMIC_CLOCK_OPREGION_ID,4,4
	.comm	TI_PMIC_CLKFREQ_OPREGION_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,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_tps68470_pmic.c_tps68470_pmic_opregion_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dev or regmap is NULL\012\000"
	.align	2
.LC1:
	.ascii	"acpi handle is NULL\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tps68470_pmic_opregion_probe, %function
tps68470_pmic_opregion_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r0, [r0]
	bl	dev_get_drvdata
	mov	r6, r0
	ldr	r0, [r4]
	bl	ACPI_HANDLE
	cmp	r6, #0
	beq	.L14
	cmp	r0, #0
	mov	r5, r0
	beq	.L15
	ldr	r3, .L19
	mov	r0, r4
	mov	r1, #8
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L16
	ldr	r8, .L19+4
	ldr	r7, .L19+8
	bl	mutex_init
	mov	r3, #0
	ldr	r2, [r8]
	ldr	r1, [r7]
	str	r6, [r4, #4]
	mov	r0, r5
	str	r4, [sp]
	bl	acpi_install_address_space_handler
	bl	ACPI_FAILURE
	subs	r3, r0, #0
	beq	.L17
.L6:
	mov	r0, r4
	bl	mutex_destroy
	ldr	r3, .L19+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r0, r4
	ldr	r1, .L19+16
	bl	dev_warn
	ldr	r3, .L19+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r0, r4
	ldr	r1, .L19+20
	bl	dev_warn
	ldr	r3, .L19+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r9, .L19+28
	ldr	r6, .L19+32
	str	r4, [sp]
	ldr	r2, [r9]
	ldr	r1, [r6]
	mov	r0, r5
	bl	acpi_install_address_space_handler
	bl	ACPI_FAILURE
	subs	r3, r0, #0
	bne	.L7
	ldr	fp, .L19+36
	ldr	r10, .L19+40
	ldr	r2, [fp]
	ldr	r1, [r10]
	mov	r0, r5
	str	r4, [sp]
	bl	acpi_install_address_space_handler
	bl	ACPI_FAILURE
	subs	r3, r0, #0
	beq	.L18
.L8:
	mov	r0, r5
	ldr	r2, [r9]
	ldr	r1, [r6]
	bl	acpi_remove_address_space_handler
.L7:
	mov	r0, r5
	ldr	r2, [r8]
	ldr	r1, [r7]
	bl	acpi_remove_address_space_handler
	b	.L6
.L16:
	ldr	r3, .L19+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r2, .L19+48
	ldr	r1, .L19+52
	str	r4, [sp]
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r5
	bl	acpi_install_address_space_handler
	bl	ACPI_FAILURE
	cmp	r0, #0
	beq	.L1
	mov	r0, r5
	ldr	r2, [fp]
	ldr	r1, [r10]
	bl	acpi_remove_address_space_handler
	b	.L8
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	tps68470_pmic_pwr_handler
	.word	TI_PMIC_POWER_OPREGION_ID
	.word	ENODEV
	.word	.LC1
	.word	.LC0
	.word	EINVAL
	.word	tps68470_pmic_vrval_handler
	.word	TI_PMIC_VR_VAL_OPREGION_ID
	.word	tps68470_pmic_clk_handler
	.word	TI_PMIC_CLOCK_OPREGION_ID
	.word	ENOMEM
	.word	tps68470_pmic_cfreq_handler
	.word	TI_PMIC_CLKFREQ_OPREGION_ID
	.size	tps68470_pmic_opregion_probe, .-tps68470_pmic_opregion_probe
	.comm	tps68470_pmic_vrval_handler,4,4
	.comm	tps68470_pmic_pwr_handler,4,4
	.comm	tps68470_pmic_clk_handler,4,4
	.comm	tps68470_pmic_cfreq_handler,4,4
	.comm	TI_PMIC_VR_VAL_OPREGION_ID,4,4
	.comm	TI_PMIC_POWER_OPREGION_ID,4,4
	.comm	TI_PMIC_CLOCK_OPREGION_ID,4,4
	.comm	TI_PMIC_CLKFREQ_OPREGION_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
