	.file	"extr_mach-mx31_3ds.c_mx31_3ds_usbotg_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"otgusb-reset"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to request the USB OTG reset gpio\n"
	.align 8
.LC2:
	.string	"Failed to drive the USB OTG reset gpio\n"
	.text
	.p2align 4
	.type	mx31_3ds_usbotg_init, @function
mx31_3ds_usbotg_init:
.LFB0:
	.cfi_startproc
	endbr64
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_DATA0[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_DATA1[rip]
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_DATA2[rip]
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_DATA3[rip]
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_DATA4[rip]
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_DATA5[rip]
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_DATA6[rip]
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_DATA7[rip]
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_CLK[rip]
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_DIR[rip]
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_NXT[rip]
	call	mxc_iomux_set_pad@PLT
	mov	esi, DWORD PTR USB_PAD_CFG[rip]
	mov	edi, DWORD PTR MX31_PIN_USBOTG_STP[rip]
	call	mxc_iomux_set_pad@PLT
	mov	edi, DWORD PTR USBOTG_RST_B[rip]
	lea	rsi, .LC0[rip]
	call	gpio_request@PLT
	test	eax, eax
	jne	.L7
	mov	edi, DWORD PTR USBOTG_RST_B[rip]
	xor	esi, esi
	call	gpio_direction_output@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	edi, 1
	call	mdelay@PLT
	mov	edi, DWORD PTR USBOTG_RST_B[rip]
	mov	esi, 1
	call	gpio_set_value@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	pr_err@PLT
	mov	edi, DWORD PTR USBOTG_RST_B[rip]
	call	gpio_free@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r12d, eax
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mx31_3ds_usbotg_init, .-mx31_3ds_usbotg_init
	.comm	USB_PAD_CFG,4,4
	.comm	USBOTG_RST_B,4,4
	.comm	MX31_PIN_USBOTG_STP,4,4
	.comm	MX31_PIN_USBOTG_NXT,4,4
	.comm	MX31_PIN_USBOTG_DIR,4,4
	.comm	MX31_PIN_USBOTG_DATA7,4,4
	.comm	MX31_PIN_USBOTG_DATA6,4,4
	.comm	MX31_PIN_USBOTG_DATA5,4,4
	.comm	MX31_PIN_USBOTG_DATA4,4,4
	.comm	MX31_PIN_USBOTG_DATA3,4,4
	.comm	MX31_PIN_USBOTG_DATA2,4,4
	.comm	MX31_PIN_USBOTG_DATA1,4,4
	.comm	MX31_PIN_USBOTG_DATA0,4,4
	.comm	MX31_PIN_USBOTG_CLK,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_mach-mx31_3ds.c_mx31_3ds_usbotg_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"otgusb-reset\000"
	.align	2
.LC1:
	.ascii	"Failed to request the USB OTG reset gpio\012\000"
	.align	2
.LC2:
	.ascii	"Failed to drive the USB OTG reset gpio\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mx31_3ds_usbotg_init, %function
mx31_3ds_usbotg_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L9
	ldr	r4, .L9+4
	ldr	r0, [r3]
	ldr	r1, [r4]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+8
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+12
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+16
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+20
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+24
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+28
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+32
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+36
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+40
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+44
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r3, .L9+48
	ldr	r5, .L9+52
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	mxc_iomux_set_pad
	ldr	r0, [r5]
	ldr	r1, .L9+56
	bl	gpio_request
	subs	r4, r0, #0
	bne	.L7
	mov	r1, r4
	ldr	r0, [r5]
	bl	gpio_direction_output
	subs	r4, r0, #0
	bne	.L8
	mov	r0, #1
	bl	mdelay
	mov	r1, #1
	ldr	r0, [r5]
	bl	gpio_set_value
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, .L9+60
	bl	pr_err
	ldr	r0, [r5]
	bl	gpio_free
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L9+64
	bl	pr_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	MX31_PIN_USBOTG_DATA0
	.word	USB_PAD_CFG
	.word	MX31_PIN_USBOTG_DATA1
	.word	MX31_PIN_USBOTG_DATA2
	.word	MX31_PIN_USBOTG_DATA3
	.word	MX31_PIN_USBOTG_DATA4
	.word	MX31_PIN_USBOTG_DATA5
	.word	MX31_PIN_USBOTG_DATA6
	.word	MX31_PIN_USBOTG_DATA7
	.word	MX31_PIN_USBOTG_CLK
	.word	MX31_PIN_USBOTG_DIR
	.word	MX31_PIN_USBOTG_NXT
	.word	MX31_PIN_USBOTG_STP
	.word	USBOTG_RST_B
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	mx31_3ds_usbotg_init, .-mx31_3ds_usbotg_init
	.comm	USB_PAD_CFG,4,4
	.comm	USBOTG_RST_B,4,4
	.comm	MX31_PIN_USBOTG_STP,4,4
	.comm	MX31_PIN_USBOTG_NXT,4,4
	.comm	MX31_PIN_USBOTG_DIR,4,4
	.comm	MX31_PIN_USBOTG_DATA7,4,4
	.comm	MX31_PIN_USBOTG_DATA6,4,4
	.comm	MX31_PIN_USBOTG_DATA5,4,4
	.comm	MX31_PIN_USBOTG_DATA4,4,4
	.comm	MX31_PIN_USBOTG_DATA3,4,4
	.comm	MX31_PIN_USBOTG_DATA2,4,4
	.comm	MX31_PIN_USBOTG_DATA1,4,4
	.comm	MX31_PIN_USBOTG_DATA0,4,4
	.comm	MX31_PIN_USBOTG_CLK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
