	.file	"extr_mtk-pmic-wrap.c_pwrap_mt8135_init_soc_specific.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enable dewrap fail\n"
	.text
	.p2align 4
	.type	pwrap_mt8135_init_soc_specific, @function
pwrap_mt8135_init_soc_specific:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edx, DWORD PTR PWRAP_EVENT_IN_EN[rip]
	mov	esi, 1
	mov	rbx, rdi
	call	pwrap_writel@PLT
	mov	edx, DWORD PTR PWRAP_EVENT_DST_EN[rip]
	mov	esi, 65535
	mov	rdi, rbx
	call	pwrap_writel@PLT
	mov	rsi, QWORD PTR PWRAP_MT8135_BRIDGE_IORD_ARB_EN[rip]
	mov	edi, 127
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	rsi, QWORD PTR PWRAP_MT8135_BRIDGE_WACS3_EN[rip]
	mov	edi, 1
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	rsi, QWORD PTR PWRAP_MT8135_BRIDGE_WACS4_EN[rip]
	mov	edi, 1
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	rsi, QWORD PTR PWRAP_MT8135_BRIDGE_WDT_UNIT[rip]
	mov	edi, 1
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	rsi, QWORD PTR PWRAP_MT8135_BRIDGE_WDT_SRC_EN[rip]
	mov	edi, 65535
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	rsi, QWORD PTR PWRAP_MT8135_BRIDGE_TIMER_EN[rip]
	mov	edi, 1
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	rsi, QWORD PTR PWRAP_MT8135_BRIDGE_INT_EN[rip]
	mov	edi, 2047
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR PWRAP_DEW_EVENT_OUT_EN[rip]
	mov	rdi, rbx
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	edx, 1
	call	pwrap_write@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR PWRAP_DEW_EVENT_SRC_EN[rip]
	mov	rdi, rbx
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	edx, 65535
	call	pwrap_write@PLT
	test	rax, rax
	jne	.L4
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EFAULT[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	pwrap_mt8135_init_soc_specific, .-pwrap_mt8135_init_soc_specific
	.comm	PWRAP_MT8135_BRIDGE_WDT_UNIT,8,8
	.comm	PWRAP_MT8135_BRIDGE_WDT_SRC_EN,8,8
	.comm	PWRAP_MT8135_BRIDGE_WACS4_EN,8,8
	.comm	PWRAP_MT8135_BRIDGE_WACS3_EN,8,8
	.comm	PWRAP_MT8135_BRIDGE_TIMER_EN,8,8
	.comm	PWRAP_MT8135_BRIDGE_IORD_ARB_EN,8,8
	.comm	PWRAP_MT8135_BRIDGE_INT_EN,8,8
	.comm	PWRAP_EVENT_IN_EN,4,4
	.comm	PWRAP_EVENT_DST_EN,4,4
	.comm	PWRAP_DEW_EVENT_SRC_EN,8,8
	.comm	PWRAP_DEW_EVENT_OUT_EN,8,8
	.comm	EFAULT,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_mtk-pmic-wrap.c_pwrap_mt8135_init_soc_specific.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enable dewrap fail\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwrap_mt8135_init_soc_specific, %function
pwrap_mt8135_init_soc_specific:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L7
	mov	r1, #1
	ldr	r2, [r3]
	bl	pwrap_writel
	ldr	r3, .L7+4
	ldr	r1, .L7+8
	ldr	r2, [r3]
	mov	r0, r4
	bl	pwrap_writel
	ldr	r3, .L7+12
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	mov	r0, #127
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L7+16
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	mov	r0, #1
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L7+20
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	mov	r0, #1
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L7+24
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	mov	r0, #1
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L7+28
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	ldr	r0, .L7+8
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L7+32
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	mov	r0, #1
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L7+36
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	ldr	r0, .L7+40
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r4, #4]
	ldr	r2, .L7+44
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	mov	r2, #1
	bl	pwrap_write
	cmp	r0, #0
	bne	.L4
	ldr	r3, [r4, #4]
	ldr	r2, .L7+48
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, .L7+8
	ldr	r1, [r3, r1, lsl #2]
	bl	pwrap_write
	cmp	r0, #0
	popeq	{r4, pc}
.L4:
	ldr	r0, [r4]
	ldr	r1, .L7+52
	bl	dev_err
	ldr	r3, .L7+56
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	PWRAP_EVENT_IN_EN
	.word	PWRAP_EVENT_DST_EN
	.word	65535
	.word	PWRAP_MT8135_BRIDGE_IORD_ARB_EN
	.word	PWRAP_MT8135_BRIDGE_WACS3_EN
	.word	PWRAP_MT8135_BRIDGE_WACS4_EN
	.word	PWRAP_MT8135_BRIDGE_WDT_UNIT
	.word	PWRAP_MT8135_BRIDGE_WDT_SRC_EN
	.word	PWRAP_MT8135_BRIDGE_TIMER_EN
	.word	PWRAP_MT8135_BRIDGE_INT_EN
	.word	2047
	.word	PWRAP_DEW_EVENT_OUT_EN
	.word	PWRAP_DEW_EVENT_SRC_EN
	.word	.LC0
	.word	EFAULT
	.size	pwrap_mt8135_init_soc_specific, .-pwrap_mt8135_init_soc_specific
	.comm	PWRAP_MT8135_BRIDGE_WDT_UNIT,4,4
	.comm	PWRAP_MT8135_BRIDGE_WDT_SRC_EN,4,4
	.comm	PWRAP_MT8135_BRIDGE_WACS4_EN,4,4
	.comm	PWRAP_MT8135_BRIDGE_WACS3_EN,4,4
	.comm	PWRAP_MT8135_BRIDGE_TIMER_EN,4,4
	.comm	PWRAP_MT8135_BRIDGE_IORD_ARB_EN,4,4
	.comm	PWRAP_MT8135_BRIDGE_INT_EN,4,4
	.comm	PWRAP_EVENT_IN_EN,4,4
	.comm	PWRAP_EVENT_DST_EN,4,4
	.comm	PWRAP_DEW_EVENT_SRC_EN,4,4
	.comm	PWRAP_DEW_EVENT_OUT_EN,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
