	.file	"extr_phy-ab8500-usb.c_ab8500_usb_irq_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"USB_LINK_STATUS"
.LC1:
	.string	"usb-link-status"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"request_irq failed for link status irq\n"
	.section	.rodata.str1.1
.LC3:
	.string	"ID_WAKEUP_F"
.LC4:
	.string	"usb-id-fall"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"request_irq failed for ID fall irq\n"
	.section	.rodata.str1.1
.LC6:
	.string	"VBUS_DET_F"
.LC7:
	.string	"usb-vbus-fall"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"request_irq failed for Vbus fall irq\n"
	.text
	.p2align 4
	.type	ab8500_usb_irq_setup, @function
ab8500_usb_irq_setup:
.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	rbx, rsi
	mov	eax, DWORD PTR [rsi]
	test	DWORD PTR AB8500_USB_FLAG_USE_LINK_STATUS_IRQ[rip], eax
	jne	.L17
	test	DWORD PTR AB8500_USB_FLAG_USE_ID_WAKEUP_IRQ[rip], eax
	jne	.L18
.L5:
	test	DWORD PTR AB8500_USB_FLAG_USE_VBUS_DET_IRQ[rip], eax
	jne	.L7
.L8:
	xor	r12d, r12d
.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
.L7:
	.cfi_restore_state
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	platform_get_irq_byname@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	ecx, DWORD PTR ab8500_usb_disconnect_irq[rip]
	xor	edx, edx
	mov	esi, eax
	push	rbx
	.cfi_def_cfa_offset 48
	mov	r8d, DWORD PTR IRQF_NO_SUSPEND[rip]
	lea	r9, .LC7[rip]
	mov	rdi, rbp
	or	r8d, DWORD PTR IRQF_SHARED[rip]
	or	r8d, DWORD PTR IRQF_ONESHOT[rip]
	call	devm_request_threaded_irq@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 40
	pop	rdx
	.cfi_def_cfa_offset 32
	test	r12d, r12d
	jns	.L8
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC8[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, .LC0[rip]
	call	platform_get_irq_byname@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	ecx, DWORD PTR ab8500_usb_link_status_irq[rip]
	mov	rdi, rbp
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 48
	mov	r8d, DWORD PTR IRQF_NO_SUSPEND[rip]
	lea	r9, .LC1[rip]
	mov	esi, eax
	or	r8d, DWORD PTR IRQF_SHARED[rip]
	or	r8d, DWORD PTR IRQF_ONESHOT[rip]
	call	devm_request_threaded_irq@PLT
	pop	rdi
	.cfi_def_cfa_offset 40
	pop	r8
	.cfi_def_cfa_offset 32
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR AB8500_USB_FLAG_USE_ID_WAKEUP_IRQ[rip], eax
	je	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	platform_get_irq_byname@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	ecx, DWORD PTR ab8500_usb_disconnect_irq[rip]
	mov	esi, eax
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 48
	mov	r8d, DWORD PTR IRQF_NO_SUSPEND[rip]
	lea	r9, .LC4[rip]
	mov	rdi, rbp
	or	r8d, DWORD PTR IRQF_SHARED[rip]
	or	r8d, DWORD PTR IRQF_ONESHOT[rip]
	call	devm_request_threaded_irq@PLT
	pop	rcx
	.cfi_def_cfa_offset 40
	pop	rsi
	.cfi_def_cfa_offset 32
	mov	r12d, eax
	test	eax, eax
	js	.L6
	mov	eax, DWORD PTR [rbx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC5[rip]
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ab8500_usb_irq_setup, .-ab8500_usb_irq_setup
	.comm	ab8500_usb_link_status_irq,4,4
	.comm	ab8500_usb_disconnect_irq,4,4
	.comm	IRQF_SHARED,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	IRQF_NO_SUSPEND,4,4
	.comm	AB8500_USB_FLAG_USE_VBUS_DET_IRQ,4,4
	.comm	AB8500_USB_FLAG_USE_LINK_STATUS_IRQ,4,4
	.comm	AB8500_USB_FLAG_USE_ID_WAKEUP_IRQ,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_irq_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"USB_LINK_STATUS\000"
	.align	2
.LC1:
	.ascii	"usb-link-status\000"
	.align	2
.LC2:
	.ascii	"request_irq failed for link status irq\012\000"
	.align	2
.LC3:
	.ascii	"ID_WAKEUP_F\000"
	.align	2
.LC4:
	.ascii	"usb-id-fall\000"
	.align	2
.LC5:
	.ascii	"request_irq failed for ID fall irq\012\000"
	.align	2
.LC6:
	.ascii	"VBUS_DET_F\000"
	.align	2
.LC7:
	.ascii	"usb-vbus-fall\000"
	.align	2
.LC8:
	.ascii	"request_irq failed for Vbus fall irq\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ab8500_usb_irq_setup, %function
ab8500_usb_irq_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L19
	ldr	r3, [r1]
	ldr	r2, [r2]
	mov	r5, r1
	tst	r3, r2
	mov	r6, r0
	sub	sp, sp, #16
	bne	.L17
	ldr	r2, .L19+4
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L18
.L5:
	ldr	r2, .L19+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L7
.L8:
	mov	r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, r6
	ldr	r1, .L19+12
	bl	platform_get_irq_byname
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, .L19+16
	ldr	r1, .L19+20
	ldr	r2, .L19+24
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	ldr	ip, .L19+28
	ldr	r2, .L19+32
	mov	r1, r4
	str	r3, [sp]
	str	r2, [sp, #4]
	mov	r0, r6
	mov	r2, #0
	ldr	r3, [ip]
	str	r5, [sp, #8]
	bl	devm_request_threaded_irq
	subs	r4, r0, #0
	bge	.L8
	ldr	r0, [r5, #4]
	ldr	r1, .L19+36
	bl	dev_err
	b	.L1
.L17:
	ldr	r1, .L19+40
	bl	platform_get_irq_byname
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, .L19+16
	ldr	r2, .L19+20
	ldr	r1, .L19+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	orr	r3, r3, r1
	ldr	r0, .L19+44
	ldr	r2, .L19+48
	str	r5, [sp, #8]
	str	r3, [sp]
	ldr	r3, [r0]
	mov	r1, r4
	str	r2, [sp, #4]
	mov	r0, r6
	mov	r2, #0
	bl	devm_request_threaded_irq
	subs	r4, r0, #0
	blt	.L4
	ldr	r2, .L19+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L5
.L18:
	mov	r0, r6
	ldr	r1, .L19+52
	bl	platform_get_irq_byname
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, .L19+16
	ldr	r2, .L19+20
	ldr	r1, .L19+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	orr	r3, r3, r1
	ldr	r0, .L19+28
	ldr	r2, .L19+56
	str	r5, [sp, #8]
	str	r3, [sp]
	ldr	r3, [r0]
	mov	r1, r4
	str	r2, [sp, #4]
	mov	r0, r6
	mov	r2, #0
	bl	devm_request_threaded_irq
	subs	r4, r0, #0
	blt	.L6
	ldr	r3, [r5]
	b	.L5
.L4:
	ldr	r0, [r5, #4]
	ldr	r1, .L19+60
	bl	dev_err
	b	.L1
.L6:
	ldr	r0, [r5, #4]
	ldr	r1, .L19+64
	bl	dev_err
	b	.L1
.L20:
	.align	2
.L19:
	.word	AB8500_USB_FLAG_USE_LINK_STATUS_IRQ
	.word	AB8500_USB_FLAG_USE_ID_WAKEUP_IRQ
	.word	AB8500_USB_FLAG_USE_VBUS_DET_IRQ
	.word	.LC6
	.word	IRQF_NO_SUSPEND
	.word	IRQF_SHARED
	.word	IRQF_ONESHOT
	.word	ab8500_usb_disconnect_irq
	.word	.LC7
	.word	.LC8
	.word	.LC0
	.word	ab8500_usb_link_status_irq
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.word	.LC2
	.word	.LC5
	.size	ab8500_usb_irq_setup, .-ab8500_usb_irq_setup
	.comm	ab8500_usb_link_status_irq,4,4
	.comm	ab8500_usb_disconnect_irq,4,4
	.comm	IRQF_SHARED,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	IRQF_NO_SUSPEND,4,4
	.comm	AB8500_USB_FLAG_USE_VBUS_DET_IRQ,4,4
	.comm	AB8500_USB_FLAG_USE_LINK_STATUS_IRQ,4,4
	.comm	AB8500_USB_FLAG_USE_ID_WAKEUP_IRQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
