	.file	"extr_phy-core.c_phy_power_on.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"phy poweron failed --> %d\n"
	.text
	.p2align 4
	.globl	phy_power_on
	.type	phy_power_on, @function
phy_power_on:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	rdi, rdi
	je	.L10
	mov	rbx, rdi
	mov	rdi, QWORD PTR 8[rdi]
	test	rdi, rdi
	je	.L6
	call	regulator_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
.L6:
	mov	rdi, rbx
	call	phy_pm_runtime_get_sync@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L5
	add	eax, DWORD PTR ENOTSUPP[rip]
	jne	.L7
.L5:
	lea	rbp, 16[rbx]
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L8
	mov	rdx, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR [rdx]
	test	rdx, rdx
	je	.L8
	mov	rdi, rbx
	call	rdx
	mov	r12d, eax
	test	eax, eax
	js	.L9
	mov	rax, QWORD PTR [rbx]
.L8:
	add	rax, 1
	mov	rdi, rbp
	xor	r12d, r12d
	mov	QWORD PTR [rbx], rax
	call	mutex_unlock@PLT
.L1:
	mov	eax, r12d
	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
.L9:
	.cfi_restore_state
	lea	rdi, 20[rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	rdi, rbx
	call	phy_pm_runtime_put_sync@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	je	.L1
	call	regulator_disable@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	phy_power_on, .-phy_power_on
	.comm	ENOTSUPP,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_phy-core.c_phy_power_on.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"phy poweron failed --> %d\012\000"
	.text
	.align	2
	.global	phy_power_on
	.syntax unified
	.arm
	.fpu softvfp
	.type	phy_power_on, %function
phy_power_on:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	moveq	r5, r4
	beq	.L1
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L6
	bl	regulator_enable
	subs	r5, r0, #0
	bne	.L1
.L6:
	mov	r0, r4
	bl	phy_pm_runtime_get_sync
	subs	r5, r0, #0
	bge	.L5
	ldr	r3, .L19
	ldr	r3, [r3]
	cmn	r5, r3
	bne	.L7
.L5:
	add	r6, r4, #8
	mov	r0, r6
	bl	mutex_lock
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L8
	ldr	r2, [r4, #16]
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L8
	mov	r0, r4
	blx	r2
	subs	r5, r0, #0
	blt	.L9
	ldr	r3, [r4]
.L8:
	add	r3, r3, #1
	mov	r0, r6
	str	r3, [r4]
	bl	mutex_unlock
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L9:
	mov	r2, r5
	ldr	r1, .L19+4
	add	r0, r4, #12
	bl	dev_err
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r4
	bl	phy_pm_runtime_put_sync
.L7:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L1
	bl	regulator_disable
	b	.L1
.L20:
	.align	2
.L19:
	.word	ENOTSUPP
	.word	.LC0
	.size	phy_power_on, .-phy_power_on
	.comm	ENOTSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
