	.file	"extr_gadget.c_dwc2_hsotg_resume.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"resuming usb gadget %s\n"
	.text
	.p2align 4
	.globl	dwc2_hsotg_resume
	.type	dwc2_hsotg_resume, @function
dwc2_hsotg_resume:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR DWC2_L2[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L8
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 24[rdi]
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR [rax]
	mov	edi, DWORD PTR 32[rdi]
	lea	rsi, .LC0[rip]
	lea	r12, 8[rbp]
	call	dev_info@PLT
	xor	esi, esi
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	dwc2_hsotg_core_init_disconnected@PLT
	cmp	QWORD PTR 16[rbp], 0
	jne	.L12
.L3:
	xor	esi, esi
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore 6
	.cfi_restore 12
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	mov	rdi, rbp
	call	dwc2_enable_acg@PLT
	mov	rdi, rbp
	call	dwc2_hsotg_core_connect@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	dwc2_hsotg_resume, .-dwc2_hsotg_resume
	.comm	DWC2_L2,8,8
	.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_gadget.c_dwc2_hsotg_resume.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"resuming usb gadget %s\012\000"
	.text
	.align	2
	.global	dwc2_hsotg_resume
	.syntax unified
	.arm
	.fpu softvfp
	.type	dwc2_hsotg_resume, %function
dwc2_hsotg_resume:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L11
	ldr	r3, [r0, #12]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	beq	.L2
	ldr	r2, [r3]
	ldr	r1, .L16+4
	ldr	r0, [r0, #16]
	add	r5, r4, #4
	bl	dev_info
	mov	r1, #0
	mov	r0, r5
	bl	spin_lock_irqsave
	mov	r1, #0
	mov	r0, r4
	bl	dwc2_hsotg_core_init_disconnected
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L15
.L3:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, #0
	bx	lr
.L15:
	mov	r0, r4
	bl	dwc2_enable_acg
	mov	r0, r4
	bl	dwc2_hsotg_core_connect
	b	.L3
.L17:
	.align	2
.L16:
	.word	DWC2_L2
	.word	.LC0
	.size	dwc2_hsotg_resume, .-dwc2_hsotg_resume
	.comm	DWC2_L2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
