	.file	"extr_extcon-palmas.c_palmas_enable_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	palmas_enable_irq, @function
palmas_enable_irq:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP[rip]
	mov	edx, DWORD PTR PALMAS_USB_VBUS_CTRL_SET[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	esi, DWORD PTR PALMAS_USB_OTG_BASE[rip]
	mov	edi, DWORD PTR 32[rdi]
	call	palmas_write@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L10
	cmp	QWORD PTR 24[rbx], 0
	jne	.L6
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 32[rbx]
	mov	ecx, DWORD PTR PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP[rip]
	mov	edx, DWORD PTR PALMAS_USB_ID_CTRL_SET[rip]
	mov	esi, DWORD PTR PALMAS_USB_OTG_BASE[rip]
	call	palmas_write@PLT
	mov	edi, DWORD PTR 32[rbx]
	mov	edx, DWORD PTR PALMAS_USB_ID_INT_EN_HI_SET[rip]
	mov	esi, DWORD PTR PALMAS_USB_OTG_BASE[rip]
	mov	ecx, DWORD PTR PALMAS_USB_ID_INT_EN_HI_SET_ID_GND[rip]
	or	ecx, DWORD PTR PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT[rip]
	call	palmas_write@PLT
	cmp	QWORD PTR 24[rbx], 0
	je	.L3
.L6:
	mov	edi, DWORD PTR 16[rbx]
	mov	rsi, rbx
	call	palmas_vbus_irq_handler@PLT
.L3:
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
	mov	edi, 30
	call	msleep@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbx
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	palmas_id_irq_handler@PLT
	.cfi_endproc
.LFE0:
	.size	palmas_enable_irq, .-palmas_enable_irq
	.comm	PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP,4,4
	.comm	PALMAS_USB_VBUS_CTRL_SET,4,4
	.comm	PALMAS_USB_OTG_BASE,4,4
	.comm	PALMAS_USB_ID_INT_EN_HI_SET_ID_GND,4,4
	.comm	PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT,4,4
	.comm	PALMAS_USB_ID_INT_EN_HI_SET,4,4
	.comm	PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP,4,4
	.comm	PALMAS_USB_ID_CTRL_SET,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_extcon-palmas.c_palmas_enable_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	palmas_enable_irq, %function
palmas_enable_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L14
	ldr	r2, .L14+4
	ldr	r5, .L14+8
	ldr	r3, [r3]
	ldr	r0, [r0, #16]
	ldr	r2, [r2]
	ldr	r1, [r5]
	bl	palmas_write
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [r4, #12]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
.L6:
	mov	r1, r4
	ldr	r0, [r4, #8]
	bl	palmas_vbus_irq_handler
.L3:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, #30
	bl	msleep
	mov	r1, r4
	ldr	r0, [r4]
	pop	{r4, r5, r6, lr}
	b	palmas_id_irq_handler
.L13:
	ldr	r3, .L14+12
	ldr	r2, .L14+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r5]
	ldr	r0, [r4, #16]
	bl	palmas_write
	ldr	r2, .L14+20
	ldr	r3, .L14+24
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r2, .L14+28
	orr	r3, r0, r3
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r0, [r4, #16]
	bl	palmas_write
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L3
	b	.L6
.L15:
	.align	2
.L14:
	.word	PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP
	.word	PALMAS_USB_VBUS_CTRL_SET
	.word	PALMAS_USB_OTG_BASE
	.word	PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP
	.word	PALMAS_USB_ID_CTRL_SET
	.word	PALMAS_USB_ID_INT_EN_HI_SET_ID_GND
	.word	PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT
	.word	PALMAS_USB_ID_INT_EN_HI_SET
	.size	palmas_enable_irq, .-palmas_enable_irq
	.comm	PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP,4,4
	.comm	PALMAS_USB_VBUS_CTRL_SET,4,4
	.comm	PALMAS_USB_OTG_BASE,4,4
	.comm	PALMAS_USB_ID_INT_EN_HI_SET_ID_GND,4,4
	.comm	PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT,4,4
	.comm	PALMAS_USB_ID_INT_EN_HI_SET,4,4
	.comm	PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP,4,4
	.comm	PALMAS_USB_ID_CTRL_SET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
