	.file	"extr_otg_fsm.c_ci_hdrc_otg_fsm_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Couldn't init OTG timers\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Can't register sysfs attr group: %d\n"
	.text
	.p2align 4
	.globl	ci_hdrc_otg_fsm_init
	.type	ci_hdrc_otg_fsm_init, @function
ci_hdrc_otg_fsm_init:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 112[rdi]
	test	rax, rax
	je	.L2
	mov	QWORD PTR 96[rdi], rax
.L3:
	lea	rax, 64[rbp]
	mov	DWORD PTR 0[rbp], 1
	mov	esi, DWORD PTR OTGSC_ID[rip]
	mov	rdi, rbp
	mov	QWORD PTR 80[rbp], rax
	lea	rax, 72[rbp]
	mov	QWORD PTR 32[rbp], rax
	call	hw_read_otgsc@PLT
	mov	edx, DWORD PTR OTG_STATE_UNDEFINED[rip]
	mov	rdi, QWORD PTR 40[rbp]
	mov	esi, 1
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR 4[rbp], eax
	mov	rax, QWORD PTR 32[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, ci_otg_ops[rip]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	QWORD PTR 24[rbp], rax
	mov	DWORD PTR 64[rbp], 1
	call	devm_kzalloc@PLT
	mov	DWORD PTR 20[rbp], eax
	test	eax, eax
	jne	.L4
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 104[rdi]
	mov	DWORD PTR 88[rdi], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, 16[rbp]
	call	mutex_init@PLT
	mov	rdi, rbp
	call	ci_otg_init_timers@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR NUM_OTG_FSM_TIMERS[rip]
	mov	QWORD PTR 56[rbp], 0
	lea	rsi, inputs_attr_group[rip]
	mov	rdi, QWORD PTR 40[rbp]
	mov	DWORD PTR 48[rbp], eax
	call	sysfs_create_group@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L14
	mov	esi, DWORD PTR OTGSC_AVVIE[rip]
	mov	rdi, rbp
	mov	edx, esi
	call	hw_write_otgsc@PLT
	mov	r12d, DWORD PTR 4[rbp]
	test	r12d, r12d
	je	.L1
	mov	esi, DWORD PTR OTGSC_BSV[rip]
	mov	rdi, rbp
	call	hw_read_otgsc@PLT
	mov	esi, DWORD PTR OTGSC_BSV[rip]
	mov	rdi, rbp
	test	rax, rax
	sete	al
	movzx	eax, al
	mov	DWORD PTR 8[rbp], eax
	call	hw_read_otgsc@PLT
	mov	esi, DWORD PTR OTGSC_BSVIE[rip]
	mov	rdi, rbp
	test	rax, rax
	setne	al
	mov	edx, esi
	xor	r12d, r12d
	movzx	eax, al
	mov	DWORD PTR 12[rbp], eax
	call	hw_write_otgsc@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 40[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, QWORD PTR 40[rbp]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	dev_dbg@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ci_hdrc_otg_fsm_init, .-ci_hdrc_otg_fsm_init
	.comm	inputs_attr_group,4,4
	.comm	ci_otg_ops,4,4
	.comm	OTG_STATE_UNDEFINED,4,4
	.comm	OTGSC_ID,4,4
	.comm	OTGSC_BSVIE,4,4
	.comm	OTGSC_BSV,4,4
	.comm	OTGSC_AVVIE,4,4
	.comm	NUM_OTG_FSM_TIMERS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_otg_fsm.c_ci_hdrc_otg_fsm_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Couldn't init OTG timers\012\000"
	.align	2
.LC1:
	.ascii	"Can't register sysfs attr group: %d\012\000"
	.text
	.align	2
	.global	ci_hdrc_otg_fsm_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	ci_hdrc_otg_fsm_init, %function
ci_hdrc_otg_fsm_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, #1
	ldr	r3, [r0, #68]
	ldr	r1, .L15
	cmp	r3, #0
	ldreq	r3, [r0, #64]
	strne	r3, [r0, #60]
	streq	r3, [r0, #56]
	add	r2, r0, #44
	add	r3, r0, #48
	ldr	r1, [r1]
	str	r2, [r0, #52]
	str	r3, [r0, #28]
	str	r5, [r0]
	mov	r4, r0
	bl	hw_read_otgsc
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r3, .L15+4
	ldr	r1, [r4, #28]
	ldr	ip, [r3]
	ldr	r2, .L15+8
	ldr	r3, .L15+12
	str	r0, [r4, #4]
	str	ip, [r1]
	ldr	r0, [r4, #32]
	str	r2, [r4, #24]
	mov	r1, r5
	ldr	r2, [r3]
	str	r5, [r4, #44]
	bl	devm_kzalloc
	cmp	r0, #0
	str	r0, [r4, #20]
	bne	.L4
	ldr	r3, .L15+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L4:
	add	r0, r4, #16
	bl	mutex_init
	mov	r0, r4
	bl	ci_otg_init_timers
	subs	r6, r0, #0
	bne	.L13
	ldr	r3, .L15+20
	ldr	r1, .L15+24
	ldr	r3, [r3]
	ldr	r0, [r4, #32]
	str	r6, [r4, #40]
	str	r3, [r4, #36]
	bl	sysfs_create_group
	subs	r5, r0, #0
	blt	.L14
	ldr	r3, .L15+28
	mov	r0, r4
	ldr	r2, [r3]
	mov	r1, r2
	bl	hw_write_otgsc
	ldr	r5, [r4, #4]
	cmp	r5, #0
	beq	.L1
	ldr	r5, .L15+32
	mov	r0, r4
	ldr	r1, [r5]
	bl	hw_read_otgsc
	clz	r0, r0
	lsr	r0, r0, #5
	ldr	r1, [r5]
	str	r0, [r4, #8]
	mov	r0, r4
	bl	hw_read_otgsc
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r3, .L15+36
	str	r0, [r4, #12]
	ldr	r2, [r3]
	mov	r0, r4
	mov	r1, r2
	mov	r5, r6
	bl	hw_write_otgsc
	b	.L1
.L13:
	mov	r5, r6
	ldr	r0, [r4, #32]
	ldr	r1, .L15+40
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	mov	r2, r5
	ldr	r0, [r4, #32]
	ldr	r1, .L15+44
	bl	dev_dbg
	b	.L1
.L16:
	.align	2
.L15:
	.word	OTGSC_ID
	.word	OTG_STATE_UNDEFINED
	.word	ci_otg_ops
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	NUM_OTG_FSM_TIMERS
	.word	inputs_attr_group
	.word	OTGSC_AVVIE
	.word	OTGSC_BSV
	.word	OTGSC_BSVIE
	.word	.LC0
	.word	.LC1
	.size	ci_hdrc_otg_fsm_init, .-ci_hdrc_otg_fsm_init
	.comm	inputs_attr_group,4,4
	.comm	ci_otg_ops,4,4
	.comm	OTG_STATE_UNDEFINED,4,4
	.comm	OTGSC_ID,4,4
	.comm	OTGSC_BSVIE,4,4
	.comm	OTGSC_BSV,4,4
	.comm	OTGSC_AVVIE,4,4
	.comm	NUM_OTG_FSM_TIMERS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
