	.file	"extr_omap_hwmod.c__idle_sysc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_idle_sysc, @function
_idle_sysc:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L1
	mov	rdx, QWORD PTR [rdi]
	mov	ebx, DWORD PTR [rax]
	mov	rbp, rdi
	mov	QWORD PTR [rsp], rdx
	test	DWORD PTR SYSC_HAS_SIDLEMODE[rip], ebx
	je	.L3
	mov	edx, DWORD PTR 8[rdi]
	test	DWORD PTR HWMOD_SWSUP_SIDLE[rip], edx
	je	.L4
	mov	esi, DWORD PTR HWMOD_IDLEMODE_FORCE[rip]
	mov	r12, rsp
.L5:
	mov	rdx, r12
	mov	rdi, rbp
	call	_set_slave_idlemode@PLT
	test	DWORD PTR SYSC_HAS_MIDLEMODE[rip], ebx
	jne	.L15
.L8:
	mov	rdi, QWORD PTR [rsp]
	cmp	QWORD PTR 0[rbp], rdi
	je	.L1
	mov	rsi, rbp
	call	_write_sysconfig@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r12, rsp
	test	DWORD PTR SYSC_HAS_MIDLEMODE[rip], ebx
	je	.L1
.L15:
	mov	eax, DWORD PTR HWMOD_SWSUP_MSTANDBY[rip]
	mov	esi, DWORD PTR HWMOD_IDLEMODE_FORCE[rip]
	or	eax, DWORD PTR HWMOD_FORCE_MSTANDBY[rip]
	test	DWORD PTR 8[rbp], eax
	jne	.L10
	test	DWORD PTR SYSC_HAS_ENAWAKEUP[rip], ebx
	jne	.L31
.L11:
	mov	rax, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR HWMOD_IDLEMODE_SMART_WKUP[rip]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	test	DWORD PTR MSTANDBY_SMART_WKUP[rip], eax
	cmove	esi, DWORD PTR HWMOD_IDLEMODE_SMART[rip]
.L10:
	mov	rdx, r12
	mov	rdi, rbp
	call	_set_master_standbymode@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12, rsp
	test	DWORD PTR SYSC_HAS_ENAWAKEUP[rip], ebx
	jne	.L32
.L6:
	mov	eax, DWORD PTR 4[rax]
	mov	esi, DWORD PTR HWMOD_IDLEMODE_SMART_WKUP[rip]
	test	DWORD PTR SIDLE_SMART_WKUP[rip], eax
	cmove	esi, DWORD PTR HWMOD_IDLEMODE_SMART[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rsi, r12
	call	_enable_wakeup@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rsi, r12
	mov	rdi, rbp
	call	_enable_wakeup@PLT
	jmp	.L11
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_idle_sysc, .-_idle_sysc
	.comm	SYSC_HAS_SIDLEMODE,4,4
	.comm	SYSC_HAS_MIDLEMODE,4,4
	.comm	SYSC_HAS_ENAWAKEUP,4,4
	.comm	SIDLE_SMART_WKUP,4,4
	.comm	MSTANDBY_SMART_WKUP,4,4
	.comm	HWMOD_SWSUP_SIDLE,4,4
	.comm	HWMOD_SWSUP_MSTANDBY,4,4
	.comm	HWMOD_IDLEMODE_SMART_WKUP,4,4
	.comm	HWMOD_IDLEMODE_SMART,4,4
	.comm	HWMOD_IDLEMODE_FORCE,4,4
	.comm	HWMOD_FORCE_MSTANDBY,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_omap_hwmod.c__idle_sysc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_idle_sysc, %function
_idle_sysc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0, #8]
	ldr	r2, .L33
	ldr	r3, [r3]
	sub	sp, sp, #8
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	beq	.L1
	ldr	r2, .L33+4
	ldr	r5, [r3]
	ldr	r1, [r2]
	ldr	r2, [r0]
	tst	r5, r1
	mov	r4, r0
	str	r2, [sp]
	beq	.L3
	ldr	r2, .L33+8
	ldr	r1, [r0, #4]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L4
	mov	r6, sp
	ldr	r3, .L33+12
	ldr	r1, [r3]
.L5:
	mov	r2, r6
	mov	r0, r4
	bl	_set_slave_idlemode
	ldr	r3, .L33+16
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L15
.L8:
	ldr	r0, [sp]
	ldr	r3, [r4]
	cmp	r3, r0
	beq	.L1
	mov	r1, r4
	bl	_write_sysconfig
.L1:
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L33+16
	ldr	r3, [r3]
	tst	r5, r3
	movne	r6, sp
	beq	.L1
.L15:
	ldr	r2, .L33+20
	ldr	r3, .L33+24
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4, #4]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L31
	ldr	r3, .L33+28
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L32
.L11:
	ldr	r2, [r4, #8]
	ldr	r3, .L33+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r2, [r2, #4]
	tst	r2, r3
	ldrne	r3, .L33+36
	ldreq	r3, .L33+40
	ldr	r1, [r3]
	b	.L10
.L31:
	ldr	r3, .L33+12
	ldr	r1, [r3]
.L10:
	mov	r2, r6
	mov	r0, r4
	bl	_set_master_standbymode
	b	.L8
.L4:
	ldr	r2, .L33+28
	mov	r6, sp
	ldr	r2, [r2]
	tst	r5, r2
	bne	.L27
.L6:
	ldr	r1, .L33+44
	ldr	r2, [r3, #4]
	ldr	r3, [r1]
	tst	r2, r3
	ldrne	r3, .L33+36
	ldreq	r3, .L33+40
	ldr	r1, [r3]
	b	.L5
.L27:
	mov	r1, r6
	bl	_enable_wakeup
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	b	.L6
.L32:
	mov	r1, r6
	mov	r0, r4
	bl	_enable_wakeup
	b	.L11
.L30:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	SYSC_HAS_SIDLEMODE
	.word	HWMOD_SWSUP_SIDLE
	.word	HWMOD_IDLEMODE_FORCE
	.word	SYSC_HAS_MIDLEMODE
	.word	HWMOD_FORCE_MSTANDBY
	.word	HWMOD_SWSUP_MSTANDBY
	.word	SYSC_HAS_ENAWAKEUP
	.word	MSTANDBY_SMART_WKUP
	.word	HWMOD_IDLEMODE_SMART_WKUP
	.word	HWMOD_IDLEMODE_SMART
	.word	SIDLE_SMART_WKUP
	.size	_idle_sysc, .-_idle_sysc
	.comm	SYSC_HAS_SIDLEMODE,4,4
	.comm	SYSC_HAS_MIDLEMODE,4,4
	.comm	SYSC_HAS_ENAWAKEUP,4,4
	.comm	SIDLE_SMART_WKUP,4,4
	.comm	MSTANDBY_SMART_WKUP,4,4
	.comm	HWMOD_SWSUP_SIDLE,4,4
	.comm	HWMOD_SWSUP_MSTANDBY,4,4
	.comm	HWMOD_IDLEMODE_SMART_WKUP,4,4
	.comm	HWMOD_IDLEMODE_SMART,4,4
	.comm	HWMOD_IDLEMODE_FORCE,4,4
	.comm	HWMOD_FORCE_MSTANDBY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
