	.file	"extr_phy-ab8500-usb.c_ab8500_usb_phy_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not get/set default pinstate\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"can't prepare/enable clock\n"
	.text
	.p2align 4
	.type	ab8500_usb_phy_enable, @function
ab8500_usb_phy_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	esi, esi
	mov	edi, DWORD PTR [rdi]
	mov	esi, DWORD PTR PINCTRL_STATE_DEFAULT[rip]
	mov	r12d, DWORD PTR AB8500_BIT_PHY_CTRL_HOST_EN[rip]
	cmove	r12d, DWORD PTR AB8500_BIT_PHY_CTRL_DEVICE_EN[rip]
	call	pinctrl_get_select@PLT
	mov	DWORD PTR 8[rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L14
	mov	edi, DWORD PTR 4[rbx]
	call	clk_prepare_enable@PLT
	test	rax, rax
	jne	.L15
.L5:
	mov	rdi, rbx
	call	ab8500_usb_regulator_enable@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, DWORD PTR AB8500_USB_PHY_CTRL_REG[rip]
	mov	r8d, r12d
	mov	esi, DWORD PTR AB8500_USB[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	ecx, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	abx500_mask_and_set_register_interruptible@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	clk_prepare_enable@PLT
	test	rax, rax
	je	.L5
.L15:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ab8500_usb_phy_enable, .-ab8500_usb_phy_enable
	.comm	PINCTRL_STATE_DEFAULT,4,4
	.comm	AB8500_USB_PHY_CTRL_REG,4,4
	.comm	AB8500_USB,4,4
	.comm	AB8500_BIT_PHY_CTRL_HOST_EN,4,4
	.comm	AB8500_BIT_PHY_CTRL_DEVICE_EN,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-ab8500-usb.c_ab8500_usb_phy_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not get/set default pinstate\012\000"
	.align	2
.LC1:
	.ascii	"can't prepare/enable clock\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ab8500_usb_phy_enable, %function
ab8500_usb_phy_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, lr}
	ldrne	r3, .L16
	ldreq	r3, .L16+4
	mov	r4, r0
	ldr	r5, [r3]
	ldr	r3, .L16+8
	sub	sp, sp, #12
	ldr	r1, [r3]
	ldr	r0, [r0]
	bl	pinctrl_get_select
	str	r0, [r4, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L14
	ldr	r0, [r4, #4]
	bl	clk_prepare_enable
	cmp	r0, #0
	bne	.L15
.L5:
	mov	r0, r4
	bl	ab8500_usb_regulator_enable
	ldr	r2, .L16+12
	ldr	r1, .L16+16
	str	r5, [sp]
	mov	r3, r5
	ldr	r0, [r4]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	abx500_mask_and_set_register_interruptible
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L14:
	ldr	r1, .L16+20
	ldr	r0, [r4]
	bl	dev_err
	ldr	r0, [r4, #4]
	bl	clk_prepare_enable
	cmp	r0, #0
	beq	.L5
.L15:
	ldr	r1, .L16+24
	ldr	r0, [r4]
	bl	dev_err
	b	.L5
.L17:
	.align	2
.L16:
	.word	AB8500_BIT_PHY_CTRL_HOST_EN
	.word	AB8500_BIT_PHY_CTRL_DEVICE_EN
	.word	PINCTRL_STATE_DEFAULT
	.word	AB8500_USB_PHY_CTRL_REG
	.word	AB8500_USB
	.word	.LC0
	.word	.LC1
	.size	ab8500_usb_phy_enable, .-ab8500_usb_phy_enable
	.comm	PINCTRL_STATE_DEFAULT,4,4
	.comm	AB8500_USB_PHY_CTRL_REG,4,4
	.comm	AB8500_USB,4,4
	.comm	AB8500_BIT_PHY_CTRL_HOST_EN,4,4
	.comm	AB8500_BIT_PHY_CTRL_DEVICE_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
