	.file	"extr_sec_drv.c_sec_hw_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to set ipv4 hashmask %d\n"
	.text
	.p2align 4
	.type	sec_hw_init, @function
sec_hw_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	xmm0, xmm0
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR [rsp], xmm0
	mov	QWORD PTR 32[rsp], 0
	movaps	XMMWORD PTR 16[rsp], xmm0
	call	iommu_get_domain_for_dev@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR [rax]
	and	eax, DWORD PTR __IOMMU_DOMAIN_PAGING[rip]
	cmp	eax, 1
	sbb	edi, edi
	and	edi, 5
	add	edi, 4
	cmp	eax, 1
	sbb	eax, eax
	and	eax, 5
	add	eax, 5
.L2:
	mov	DWORD PTR [rbx], eax
	mov	rdx, QWORD PTR SEC_SAA[rip]
	xor	esi, esi
	mov	rax, QWORD PTR 8[rbx]
	mov	r12, QWORD PTR SEC_CLK_EN_REG[rip]
	add	r12, QWORD PTR [rax+rdx*8]
	call	GENMASK@PLT
	mov	rsi, r12
	mov	edi, eax
	call	writel_relaxed@PLT
	mov	rdi, rbx
	call	sec_bd_endian_little@PLT
	mov	rdi, rbx
	call	sec_cache_config@PLT
	mov	esi, 7
	mov	rdi, rbx
	call	sec_data_axiwr_otsd_cfg@PLT
	mov	esi, 7
	mov	rdi, rbx
	call	sec_data_axird_otsd_cfg@PLT
	mov	esi, 1
	mov	rdi, rbx
	call	sec_clk_gate_en@PLT
	xor	esi, esi
	mov	rdi, rbx
	call	sec_comm_cnt_cfg@PLT
	xor	esi, esi
	mov	rdi, rbx
	call	sec_commsnap_en@PLT
	mov	rdx, QWORD PTR SEC_SAA[rip]
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, -1
	mov	rsi, QWORD PTR SEC_FSM_MAX_CNT_REG[rip]
	add	rsi, QWORD PTR [rax+rdx*8]
	call	writel_relaxed@PLT
	xor	esi, esi
	mov	rdi, rbx
	call	sec_ipv4_hashmask@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L22
	mov	rsi, rsp
	mov	rdi, rbx
	call	sec_ipv6_hashmask@PLT
	xor	esi, esi
	mov	rdi, rbx
	call	sec_set_dbg_bd_cfg@PLT
	test	rbp, rbp
	je	.L7
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR __IOMMU_DOMAIN_PAGING[rip], eax
	je	.L7
	mov	eax, DWORD PTR SEC_Q_NUM[rip]
	test	eax, eax
	jle	.L7
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, ebp
	mov	rdi, rbx
	call	sec_streamid@PLT
	mov	rdx, QWORD PTR SEC_SAA[rip]
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, ebp
	add	ebp, 1
	mov	r12, QWORD PTR [rax+rdx*8]
	call	SEC_Q_WEIGHT_CFG_REG@PLT
	mov	edi, 63
	lea	rsi, [r12+rax]
	call	writel_relaxed@PLT
	cmp	DWORD PTR SEC_Q_NUM[rip], ebp
	jg	.L8
.L7:
	mov	edx, DWORD PTR [rbx]
	xor	ebp, ebp
	test	edx, edx
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, ebp
	mov	edx, 1
	mov	rdi, rbx
	call	sec_saa_getqm_en@PLT
	mov	esi, ebp
	xor	edx, edx
	mov	rdi, rbx
	call	sec_saa_int_mask@PLT
	add	ebp, 1
	cmp	DWORD PTR [rbx], ebp
	jg	.L6
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, 9
	mov	eax, 10
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sec_hw_init, .-sec_hw_init
	.comm	__IOMMU_DOMAIN_PAGING,4,4
	.comm	SEC_SAA,8,8
	.comm	SEC_Q_NUM,4,4
	.comm	SEC_FSM_MAX_CNT_REG,8,8
	.comm	SEC_CLK_EN_REG,8,8
	.comm	EIO,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_sec_drv.c_sec_hw_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to set ipv4 hashmask %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sec_hw_init, %function
sec_hw_init:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	sub	sp, sp, #52
	ldr	r3, .L23
	mov	r2, #40
	mov	r1, #0
	add	r0, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	memset
	ldr	r0, [r4, #8]
	bl	iommu_get_domain_for_dev
	subs	r5, r0, #0
	beq	.L11
	ldr	r2, .L23+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	and	r3, r3, r2
	cmp	r3, #0
	moveq	r0, #9
	movne	r0, #4
	moveq	r3, #10
	movne	r3, #5
.L2:
	ldr	r7, .L23+8
	mov	r1, #0
	str	r3, [r4]
	bl	GENMASK
	ldr	r2, [r4, #4]
	ldr	r1, [r7]
	ldr	r3, .L23+12
	ldr	r1, [r2, r1, lsl #2]
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	writel_relaxed
	mov	r0, r4
	bl	sec_bd_endian_little
	mov	r0, r4
	bl	sec_cache_config
	mov	r1, #7
	mov	r0, r4
	bl	sec_data_axiwr_otsd_cfg
	mov	r1, #7
	mov	r0, r4
	bl	sec_data_axird_otsd_cfg
	mov	r1, #1
	mov	r0, r4
	bl	sec_clk_gate_en
	mov	r1, #0
	mov	r0, r4
	bl	sec_comm_cnt_cfg
	mov	r1, #0
	mov	r0, r4
	bl	sec_commsnap_en
	ldr	r2, [r4, #4]
	ldr	r1, [r7]
	ldr	r3, .L23+16
	ldr	r1, [r2, r1, lsl #2]
	ldr	r3, [r3]
	mvn	r0, #0
	add	r1, r1, r3
	bl	writel_relaxed
	mov	r1, #0
	mov	r0, r4
	bl	sec_ipv4_hashmask
	subs	r6, r0, #0
	bne	.L21
	add	r1, sp, #4
	mov	r0, r4
	bl	sec_ipv6_hashmask
	mov	r1, r6
	mov	r0, r4
	bl	sec_set_dbg_bd_cfg
	cmp	r5, #0
	beq	.L7
	ldr	r3, .L23+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L7
	ldr	r9, .L23+20
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L7
	mov	r5, r6
.L8:
	mov	r1, r5
	mov	r0, r4
	bl	sec_streamid
	ldr	r3, [r4, #4]
	ldr	r2, [r7]
	mov	r0, r5
	ldr	r8, [r3, r2, lsl #2]
	bl	SEC_Q_WEIGHT_CFG_REG
	mov	r1, r0
	mov	r0, #63
	add	r1, r8, r1
	bl	writel_relaxed
	ldr	r3, [r9]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L8
.L7:
	ldr	r3, [r4]
	cmp	r3, #0
	movgt	r5, #0
	ble	.L1
.L6:
	mov	r1, r5
	mov	r2, #1
	mov	r0, r4
	bl	sec_saa_getqm_en
	mov	r1, r5
	mov	r2, #0
	mov	r0, r4
	bl	sec_saa_int_mask
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L6
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r6
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L21:
	mov	r2, r6
	ldr	r0, [r4, #8]
	ldr	r1, .L23+24
	bl	dev_err
	ldr	r3, .L23+28
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L11:
	mov	r0, #9
	mov	r3, #10
	b	.L2
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	__IOMMU_DOMAIN_PAGING
	.word	SEC_SAA
	.word	SEC_CLK_EN_REG
	.word	SEC_FSM_MAX_CNT_REG
	.word	SEC_Q_NUM
	.word	.LC0
	.word	EIO
	.size	sec_hw_init, .-sec_hw_init
	.comm	__IOMMU_DOMAIN_PAGING,4,4
	.comm	SEC_SAA,4,4
	.comm	SEC_Q_NUM,4,4
	.comm	SEC_FSM_MAX_CNT_REG,4,4
	.comm	SEC_CLK_EN_REG,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
