	.file	"extr_phy-fsl-usb.c_fsl_otg_start_gadget.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"on"
.LC1:
	.string	"gadget %s\n"
.LC2:
	.string	"off"
	.text
	.p2align 4
	.globl	fsl_otg_start_gadget
	.type	fsl_otg_start_gadget, @function
fsl_otg_start_gadget:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L2
	cmp	QWORD PTR [rax], 0
	je	.L2
	test	esi, esi
	je	.L16
	lea	rdi, .LC1[rip]
	lea	rsi, .LC0[rip]
	call	VDBG@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR [rax]
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L9
	call	rax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	lea	rsi, .LC2[rip]
	call	VDBG@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR [rax]
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L9
	mov	esi, DWORD PTR otg_suspend_state[rip]
	call	rax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR ENODEV[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	fsl_otg_start_gadget, .-fsl_otg_start_gadget
	.comm	otg_suspend_state,4,4
	.comm	ENODEV,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-fsl-usb.c_fsl_otg_start_gadget.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"on\000"
	.align	2
.LC1:
	.ascii	"gadget %s\012\000"
	.align	2
.LC2:
	.ascii	"off\000"
	.text
	.align	2
	.global	fsl_otg_start_gadget
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsl_otg_start_gadget, %function
fsl_otg_start_gadget:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	cmp	r1, #0
	mov	r4, r1
	beq	.L16
	ldr	r1, .L17
	ldr	r0, .L17+4
	bl	VDBG
	ldr	r3, [r5]
	ldr	r0, [r3]
	ldr	r3, [r0]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L9
	blx	r3
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r1, .L17+8
	ldr	r0, .L17+4
	bl	VDBG
	ldr	r3, [r5]
	ldr	r0, [r3]
	ldr	r3, [r0]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r2, .L17+12
	ldr	r1, [r2]
	blx	r3
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L17+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	otg_suspend_state
	.word	ENODEV
	.size	fsl_otg_start_gadget, .-fsl_otg_start_gadget
	.comm	otg_suspend_state,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
