	.file	"extr_ti-sysc.c_sysc_init_syss_mask.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ti,syss-mask"
	.text
	.p2align 4
	.type	sysc_init_syss_mask, @function
sysc_init_syss_mask:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	lea	rsi, .LC0[rip]
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 24[rdi]
	lea	rdx, 4[rsp]
	mov	rdi, QWORD PTR [rax]
	call	of_property_read_u32@PLT
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR 4[rsp]
	test	al, 1
	je	.L16
.L5:
	mov	DWORD PTR 4[rbx], eax
.L4:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edx, DWORD PTR [rbx]
	test	DWORD PTR SYSC_OMAP4_SOFTRESET[rip], edx
	je	.L5
	mov	edx, DWORD PTR SYSC_QUIRK_RESET_STATUS[rip]
	or	DWORD PTR 8[rbx], edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR TI_SYSC_OMAP4[rip]
	je	.L3
	cmp	rax, QWORD PTR TI_SYSC_OMAP4_TIMER[rip]
	jne	.L4
.L3:
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR SYSC_OMAP4_SOFTRESET[rip], eax
	je	.L4
	mov	eax, DWORD PTR SYSC_QUIRK_RESET_STATUS[rip]
	or	DWORD PTR 8[rbx], eax
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sysc_init_syss_mask, .-sysc_init_syss_mask
	.comm	TI_SYSC_OMAP4_TIMER,8,8
	.comm	TI_SYSC_OMAP4,8,8
	.comm	SYSC_QUIRK_RESET_STATUS,4,4
	.comm	SYSC_OMAP4_SOFTRESET,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_ti-sysc.c_sysc_init_syss_mask.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ti,syss-mask\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sysc_init_syss_mask, %function
sysc_init_syss_mask:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, [r0, #16]
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r0, [r3]
	ldr	r3, .L18
	mov	r2, sp
	ldr	r1, .L18+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	of_property_read_u32
	cmp	r0, #0
	bne	.L15
	ldr	r3, [sp]
	tst	r3, #1
	beq	.L16
.L5:
	str	r3, [r4, #4]
.L4:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L16:
	ldr	r2, .L18+8
	ldr	r1, [r4]
	ldr	r2, [r2]
	tst	r1, r2
	ldrne	r1, .L18+12
	ldrne	r2, [r4, #8]
	ldrne	r1, [r1]
	orrne	r2, r2, r1
	strne	r2, [r4, #8]
	b	.L5
.L15:
	ldr	r3, [r4, #12]
	ldr	r2, .L18+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L18+20
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L4
.L3:
	ldr	r3, .L18+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L4
	ldr	r2, .L18+12
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #8]
	b	.L4
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	.LC0
	.word	SYSC_OMAP4_SOFTRESET
	.word	SYSC_QUIRK_RESET_STATUS
	.word	TI_SYSC_OMAP4
	.word	TI_SYSC_OMAP4_TIMER
	.size	sysc_init_syss_mask, .-sysc_init_syss_mask
	.comm	TI_SYSC_OMAP4_TIMER,4,4
	.comm	TI_SYSC_OMAP4,4,4
	.comm	SYSC_QUIRK_RESET_STATUS,4,4
	.comm	SYSC_OMAP4_SOFTRESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
