	.file	"extr_lpc32xx_udc.c_udc_handle_dev.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	udc_handle_dev, @function
udc_handle_dev:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR CMD_GET_DEV_STAT[rip]
	mov	rbp, rdi
	call	udc_protocol_cmd_w@PLT
	mov	esi, DWORD PTR DAT_GET_DEV_STAT[rip]
	mov	rdi, rbp
	call	udc_protocol_cmd_r@PLT
	test	DWORD PTR DEV_RST[rip], eax
	jne	.L12
	test	DWORD PTR DEV_CON_CH[rip], eax
	jne	.L13
	test	DWORD PTR DEV_SUS_CH[rip], eax
	je	.L1
	test	DWORD PTR DEV_SUS[rip], eax
	je	.L5
	cmp	QWORD PTR 0[rbp], 0
	je	.L14
	mov	rax, QWORD PTR USB_SPEED_UNKNOWN[rip]
	cmp	QWORD PTR 24[rbp], rax
	je	.L1
	cmp	QWORD PTR 16[rbp], 0
	je	.L1
	mov	DWORD PTR 8[rbp], 0
	lea	rdi, 12[rbp]
	call	schedule_work@PLT
	mov	rdi, rbp
	mov	esi, 1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	uda_resm_susp_event@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	and	eax, DWORD PTR DEV_CON[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	esi, eax
	jmp	uda_power_event@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR USB_SPEED_UNKNOWN[rip]
	cmp	QWORD PTR 24[rbp], rax
	je	.L1
	cmp	QWORD PTR 16[rbp], 0
	jne	.L15
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	uda_usb_reset@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	cmp	QWORD PTR 0[rbp], 0
	je	.L1
	mov	rdi, rbp
	xor	esi, esi
	call	uda_resm_susp_event@PLT
	mov	DWORD PTR 8[rbp], 1
	lea	rdi, 12[rbp]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	schedule_work@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	stop_activity@PLT
	.cfi_endproc
.LFE0:
	.size	udc_handle_dev, .-udc_handle_dev
	.comm	USB_SPEED_UNKNOWN,8,8
	.comm	DEV_SUS_CH,4,4
	.comm	DEV_SUS,4,4
	.comm	DEV_RST,4,4
	.comm	DEV_CON_CH,4,4
	.comm	DEV_CON,4,4
	.comm	DAT_GET_DEV_STAT,4,4
	.comm	CMD_GET_DEV_STAT,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_lpc32xx_udc.c_udc_handle_dev.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	udc_handle_dev, %function
udc_handle_dev:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L24
	ldr	r1, [r3]
	bl	udc_protocol_cmd_w
	ldr	r3, .L24+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	udc_protocol_cmd_r
	ldr	r3, .L24+8
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L21
	ldr	r3, .L24+12
	mov	r1, r0
	ldr	r3, [r3]
	ands	r3, r0, r3
	bne	.L22
	ldr	r2, .L24+16
	ldr	r2, [r2]
	tst	r0, r2
	popeq	{r4, pc}
	ldr	r2, .L24+20
	ldr	r0, [r2]
	ands	r1, r1, r0
	beq	.L5
	ldr	r2, [r4]
	cmp	r2, #0
	beq	.L23
	ldr	r2, .L24+24
	ldr	r1, [r4, #16]
	ldr	r2, [r2]
	cmp	r1, r2
	popeq	{r4, pc}
	ldr	r2, [r4, #12]
	cmp	r2, #0
	popeq	{r4, pc}
	str	r3, [r4, #4]
	add	r0, r4, #8
	bl	schedule_work
	mov	r0, r4
	pop	{r4, lr}
	mov	r1, #1
	b	uda_resm_susp_event
.L22:
	ldr	r3, .L24+28
	mov	r0, r4
	pop	{r4, lr}
	ldr	r3, [r3]
	and	r1, r1, r3
	b	uda_power_event
.L21:
	mov	r0, r4
	pop	{r4, lr}
	b	uda_usb_reset
.L5:
	ldr	r3, .L24+24
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	popeq	{r4, pc}
	ldr	r3, [r4, #12]
	cmp	r3, #0
	popeq	{r4, pc}
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, pc}
	mov	r0, r4
	bl	uda_resm_susp_event
	mov	r3, #1
	add	r0, r4, #8
	str	r3, [r4, #4]
	pop	{r4, lr}
	b	schedule_work
.L23:
	mov	r0, r4
	pop	{r4, lr}
	b	stop_activity
.L25:
	.align	2
.L24:
	.word	CMD_GET_DEV_STAT
	.word	DAT_GET_DEV_STAT
	.word	DEV_RST
	.word	DEV_CON_CH
	.word	DEV_SUS_CH
	.word	DEV_SUS
	.word	USB_SPEED_UNKNOWN
	.word	DEV_CON
	.size	udc_handle_dev, .-udc_handle_dev
	.comm	USB_SPEED_UNKNOWN,4,4
	.comm	DEV_SUS_CH,4,4
	.comm	DEV_SUS,4,4
	.comm	DEV_RST,4,4
	.comm	DEV_CON_CH,4,4
	.comm	DEV_CON,4,4
	.comm	DAT_GET_DEV_STAT,4,4
	.comm	CMD_GET_DEV_STAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
