	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_hw_init
_safexcel_hw_init:                      ## @safexcel_hw_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	20(%rdi), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_SAFEXCEL_HW_EIP197@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_EIP197_HIA_AIC
	movq	_EIP197_HIA_MST_CTRL@GOTPCREL(%rip), %r15
	addq	(%r15), %rax
	movq	%rax, %rdi
	callq	_readl
	movl	%eax, %ebx
	movl	$5, %edi
	callq	_EIP197_MST_CTRL_TX_MAX_CMD
	orl	%eax, %ebx
	movq	%r14, %rdi
	callq	_EIP197_HIA_AIC
	addq	(%r15), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_writel
LBB0_2:
	movq	_RD_CACHE_4BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EIP197_MST_CTRL_RD_CACHE
	movl	%eax, %ebx
	movq	_WR_CACHE_4BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EIP197_MST_CTRL_WD_CACHE
	orl	%eax, %ebx
	movq	%r14, %rdi
	callq	_EIP197_HIA_GEN_CFG
	movq	_EIP197_MST_CTRL@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_EIP197_HIA_AIC_G
	movq	_EIP197_HIA_AIC_G_ENABLE_CTRL@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_writel
	movl	$31, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_EIP197_HIA_AIC_G
	movq	_EIP197_HIA_AIC_G_ACK@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_writel
	cmpl	$0, 4(%r14)
	jg	LBB0_13
LBB0_3:
	movl	8(%r14), %edi
	testl	%edi, %edi
	jle	LBB0_9
## %bb.4:
	xorl	%r12d, %r12d
	movq	_EIP197_HIA_xDR_CFG@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$31, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movq	%r15, %r13
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_EIP197_HIA_AIC_R
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_EIP197_HIA_AIC_R_ENABLE_CLR
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%r13, %r15
	movq	%rbx, %rsi
	callq	_writel
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_CDR
	addq	(%r13), %rax
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	_EIP197_xDR_PREP_CLR_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_CDR
	movq	_EIP197_HIA_xDR_PREP_COUNT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	_EIP197_xDR_PROC_CLR_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_CDR
	movq	_EIP197_HIA_xDR_PROC_COUNT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_CDR
	movq	_EIP197_HIA_xDR_PREP_PNTR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_CDR
	movq	_EIP197_HIA_xDR_PROC_PNTR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	_EIP197_DEFAULT_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	12(%r14), %ebx
	shll	$2, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_CDR
	movq	_EIP197_HIA_xDR_RING_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_writel
	incl	%r12d
	movl	8(%r14), %edi
	cmpl	%edi, %r12d
	jl	LBB0_5
## %bb.6:
	testl	%edi, %edi
	jle	LBB0_9
## %bb.7:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_RDR
	addq	(%r15), %rax
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	_EIP197_xDR_PREP_CLR_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_RDR
	movq	_EIP197_HIA_xDR_PREP_COUNT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	_EIP197_xDR_PROC_CLR_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_RDR
	movq	_EIP197_HIA_xDR_PROC_COUNT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%r15d, %edi
	movq	%r13, %r15
	movq	%rax, %rsi
	callq	_writel
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_RDR
	movq	_EIP197_HIA_xDR_PREP_PNTR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_RDR
	movq	_EIP197_HIA_xDR_PROC_PNTR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	_EIP197_DEFAULT_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	16(%r14), %ebx
	shll	$2, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_EIP197_HIA_RDR
	movq	_EIP197_HIA_xDR_RING_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_writel
	incl	%r12d
	movl	8(%r14), %edi
	cmpl	%edi, %r12d
	jl	LBB0_8
LBB0_9:
	cmpl	$0, 4(%r14)
	jle	LBB0_22
## %bb.10:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%r13), %r15d
	movq	_EIP197_DxE_THR_CTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	decl	%edi
	xorl	%esi, %esi
	callq	_GENMASK
	orl	%eax, %r12d
	movq	%r14, %rdi
	callq	_EIP197_HIA_DFE_THR
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_HIA_DFE_THR_CTRL
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_EIP197_DxE_THR_CTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	8(%r14), %edi
	decl	%edi
	xorl	%esi, %esi
	callq	_GENMASK
	orl	%eax, %r12d
	movq	%r14, %rdi
	callq	_EIP197_HIA_DSE_THR
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_HIA_DSE_THR_CTRL
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	cmpl	4(%r14), %r13d
	jge	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	8(%r14), %edi
	incl	%r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	orl	%r13d, %r12d
	orl	%r12d, %ebx
	orl	%eax, %ebx
	movq	_EIP197_HIA_DSE_CFG_ALWAYS_BUFFERABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	%ecx, %ebx
	movq	%r14, %rdi
	callq	_EIP197_HIA_DSE
	movq	%rax, %r12
	movl	%r15d, %edi
	callq	_EIP197_HIA_DSE_CFG
	addq	%rax, %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_EIP197_HIA_DSE_THR
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_HIA_DSE_THR_CTRL
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	$7, %edi
	callq	_EIP197_PE_OUT_DBUF_THRES_MIN
	movl	%eax, %r12d
	movl	$8, %edi
	callq	_EIP197_PE_OUT_DBUF_THRES_MAX
	orl	%eax, %r12d
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_PE_OUT_DBUF_THRES
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_EIP197_PE_EIP96_TOKEN_CTRL_NO_TOKEN_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EIP197_PE_EIP96_TOKEN_CTRL_CTX_UPDATES@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_EIP197_PE_EIP96_TOKEN_CTRL_ENABLE_TIMEOUT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %r12
	movl	%r15d, %edi
	callq	_EIP197_PE_EIP96_TOKEN_CTRL
	addq	%rax, %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_writel
	movq	_EIP197_FUNCTION_ALL@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_PE_EIP96_FUNCTION_EN
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	(%r13), %r12d
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_PE_EIP96_FUNCTION2_EN
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	incl	%r15d
	cmpl	4(%r14), %r15d
	jge	LBB0_3
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	_EIP197_DxE_THR_CTRL_RESET_PE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_EIP197_HIA_DFE_THR
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_HIA_DFE_THR_CTRL
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_SAFEXCEL_HW_EIP197@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_EIP197_HIA_RA_PE_CTRL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_EIP197_HIA_AIC
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_HIA_RA_PE_CTRL
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_EIP197_HIA_DFE_CFG_DIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	$6, %edi
	callq	_EIP197_HIA_DxE_CFG_MIN_DATA_SIZE
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$9, %edi
	callq	_EIP197_HIA_DxE_CFG_MAX_DATA_SIZE
	movl	%eax, %ebx
	movl	$6, %edi
	callq	_EIP197_HIA_DxE_CFG_MIN_CTRL_SIZE
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$7, %edi
	callq	_EIP197_HIA_DxE_CFG_MAX_CTRL_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_RD_CACHE_3BITS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_EIP197_HIA_DxE_CFG_DATA_CACHE_CTRL
	movl	%eax, %r13d
	movl	(%r12), %edi
	callq	_EIP197_HIA_DxE_CFG_CTRL_CACHE_CTRL
	orl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r13d, %ebx
	orl	%eax, %ebx
	movq	%r14, %rdi
	callq	_EIP197_HIA_DFE
	movq	%rax, %r12
	movl	%r15d, %edi
	callq	_EIP197_HIA_DFE_CFG
	addq	%rax, %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_EIP197_HIA_DFE_THR
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_HIA_DFE_THR_CTRL
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	$6, %edi
	callq	_EIP197_PE_IN_xBUF_THRES_MIN
	movl	%eax, %r12d
	movl	$9, %edi
	callq	_EIP197_PE_IN_xBUF_THRES_MAX
	orl	%eax, %r12d
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_PE_IN_DBUF_THRES
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	$6, %edi
	callq	_EIP197_PE_IN_xBUF_THRES_MIN
	movl	%eax, %r12d
	movl	$7, %edi
	callq	_EIP197_PE_IN_xBUF_THRES_MAX
	orl	%eax, %r12d
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_PE_IN_TBUF_THRES
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_SAFEXCEL_HW_EIP197@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_EIP197_HIA_RA_PE_CTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	8(%r14), %edi
	decl	%edi
	xorl	%esi, %esi
	callq	_GENMASK
	orl	%eax, %r12d
	movq	%r14, %rdi
	callq	_EIP197_HIA_AIC
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_HIA_RA_PE_CTRL
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_EIP197_DxE_THR_CTRL_RESET_PE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_EIP197_HIA_DSE_THR
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_HIA_DSE_THR_CTRL
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_EIP197_HIA_DSE_THR
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EIP197_HIA_DSE_THR_STAT
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%eax, %r12d
	movl	$15, %edi
	movl	$12, %esi
	callq	_GENMASK
	movl	%eax, %ebx
	andl	%r12d, %ebx
	movl	$15, %edi
	movl	$12, %esi
	callq	_GENMASK
	cmpl	%eax, %ebx
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_EIP197_HIA_DSE_CFG_DIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$7, %edi
	callq	_EIP197_HIA_DxE_CFG_MIN_DATA_SIZE
	movl	%eax, %r12d
	movl	$8, %edi
	callq	_EIP197_HIA_DxE_CFG_MAX_DATA_SIZE
	movl	%eax, %r13d
	movq	_WR_CACHE_3BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EIP197_HIA_DxE_CFG_DATA_CACHE_CTRL
	movq	_SAFEXCEL_HW_EIP197@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r14), %ecx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_EIP197_HIA_DSE_CFG_EN_SINGLE_WR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_21
LBB0_22:
	movl	$30, %edi
	movl	$20, %esi
	callq	_GENMASK
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_EIP197_HIA_AIC_G
	movq	_EIP197_HIA_AIC_G_ACK@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	_SAFEXCEL_HW_EIP197@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	callq	_eip197_trc_cache_init
	movq	_EIP197_TRC_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_eip197_load_firmwares
	testl	%eax, %eax
	jne	LBB0_25
LBB0_24:
	movq	%r14, %rdi
	callq	_safexcel_hw_setup_cdesc_rings
	movq	%r14, %rdi
	callq	_safexcel_hw_setup_rdesc_rings
	xorl	%eax, %eax
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW init: using %d pipe(s) and %d ring(s)\n"

	.comm	_SAFEXCEL_HW_EIP197,4,2         ## @SAFEXCEL_HW_EIP197
	.comm	_EIP197_HIA_MST_CTRL,8,3        ## @EIP197_HIA_MST_CTRL
	.comm	_RD_CACHE_4BITS,4,2             ## @RD_CACHE_4BITS
	.comm	_WR_CACHE_4BITS,4,2             ## @WR_CACHE_4BITS
	.comm	_EIP197_MST_CTRL,8,3            ## @EIP197_MST_CTRL
	.comm	_EIP197_HIA_AIC_G_ENABLE_CTRL,8,3 ## @EIP197_HIA_AIC_G_ENABLE_CTRL
	.comm	_EIP197_HIA_AIC_G_ACK,8,3       ## @EIP197_HIA_AIC_G_ACK
	.comm	_EIP197_DxE_THR_CTRL_RESET_PE,4,2 ## @EIP197_DxE_THR_CTRL_RESET_PE
	.comm	_EIP197_HIA_RA_PE_CTRL_RESET,4,2 ## @EIP197_HIA_RA_PE_CTRL_RESET
	.comm	_EIP197_HIA_DFE_CFG_DIS_DEBUG,4,2 ## @EIP197_HIA_DFE_CFG_DIS_DEBUG
	.comm	_RD_CACHE_3BITS,4,2             ## @RD_CACHE_3BITS
	.comm	_EIP197_HIA_RA_PE_CTRL_EN,4,2   ## @EIP197_HIA_RA_PE_CTRL_EN
	.comm	_EIP197_HIA_DSE_CFG_DIS_DEBUG,4,2 ## @EIP197_HIA_DSE_CFG_DIS_DEBUG
	.comm	_WR_CACHE_3BITS,4,2             ## @WR_CACHE_3BITS
	.comm	_EIP197_HIA_DSE_CFG_ALWAYS_BUFFERABLE,4,2 ## @EIP197_HIA_DSE_CFG_ALWAYS_BUFFERABLE
	.comm	_EIP197_HIA_DSE_CFG_EN_SINGLE_WR,4,2 ## @EIP197_HIA_DSE_CFG_EN_SINGLE_WR
	.comm	_EIP197_PE_EIP96_TOKEN_CTRL_CTX_UPDATES,4,2 ## @EIP197_PE_EIP96_TOKEN_CTRL_CTX_UPDATES
	.comm	_EIP197_PE_EIP96_TOKEN_CTRL_NO_TOKEN_WAIT,4,2 ## @EIP197_PE_EIP96_TOKEN_CTRL_NO_TOKEN_WAIT
	.comm	_EIP197_PE_EIP96_TOKEN_CTRL_ENABLE_TIMEOUT,4,2 ## @EIP197_PE_EIP96_TOKEN_CTRL_ENABLE_TIMEOUT
	.comm	_EIP197_FUNCTION_ALL,4,2        ## @EIP197_FUNCTION_ALL
	.comm	_EIP197_HIA_xDR_CFG,8,3         ## @EIP197_HIA_xDR_CFG
	.comm	_EIP197_xDR_PREP_CLR_COUNT,4,2  ## @EIP197_xDR_PREP_CLR_COUNT
	.comm	_EIP197_HIA_xDR_PREP_COUNT,8,3  ## @EIP197_HIA_xDR_PREP_COUNT
	.comm	_EIP197_xDR_PROC_CLR_COUNT,4,2  ## @EIP197_xDR_PROC_CLR_COUNT
	.comm	_EIP197_HIA_xDR_PROC_COUNT,8,3  ## @EIP197_HIA_xDR_PROC_COUNT
	.comm	_EIP197_HIA_xDR_PREP_PNTR,8,3   ## @EIP197_HIA_xDR_PREP_PNTR
	.comm	_EIP197_HIA_xDR_PROC_PNTR,8,3   ## @EIP197_HIA_xDR_PROC_PNTR
	.comm	_EIP197_DEFAULT_RING_SIZE,4,2   ## @EIP197_DEFAULT_RING_SIZE
	.comm	_EIP197_HIA_xDR_RING_SIZE,8,3   ## @EIP197_HIA_xDR_RING_SIZE
	.comm	_EIP197_DxE_THR_CTRL_EN,4,2     ## @EIP197_DxE_THR_CTRL_EN
	.comm	_EIP197_TRC_CACHE,4,2           ## @EIP197_TRC_CACHE
	.no_dead_strip	_safexcel_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safexcel_hw_init
_safexcel_hw_init:                      ; @safexcel_hw_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w0, [x0, #20]
	ldp	w2, w3, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19]
Lloh2:
	adrp	x25, _SAFEXCEL_HW_EIP197@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SAFEXCEL_HW_EIP197@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_EIP197_HIA_AIC
Lloh4:
	adrp	x21, _EIP197_HIA_MST_CTRL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _EIP197_HIA_MST_CTRL@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x0
	bl	_readl
	mov	x20, x0
	mov	w0, #5
	bl	_EIP197_MST_CTRL_TX_MAX_CMD
	orr	w20, w0, w20
	mov	x0, x19
	bl	_EIP197_HIA_AIC
	ldr	x8, [x21]
	add	x1, x8, x0
	mov	x0, x20
	bl	_writel
LBB0_2:
Lloh6:
	adrp	x8, _RD_CACHE_4BITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RD_CACHE_4BITS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_EIP197_MST_CTRL_RD_CACHE
	mov	x20, x0
Lloh9:
	adrp	x8, _WR_CACHE_4BITS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WR_CACHE_4BITS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_EIP197_MST_CTRL_WD_CACHE
	orr	w20, w0, w20
	mov	x0, x19
	bl	_EIP197_HIA_GEN_CFG
Lloh12:
	adrp	x8, _EIP197_MST_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIP197_MST_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	x0, x20
	bl	_writel
	mov	x0, x19
	bl	_EIP197_HIA_AIC_G
Lloh15:
	adrp	x8, _EIP197_HIA_AIC_G_ENABLE_CTRL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIP197_HIA_AIC_G_ENABLE_CTRL@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	w0, #0
	bl	_writel
	mov	w0, #31
	mov	w1, #0
	bl	_GENMASK
	mov	x20, x0
	mov	x0, x19
	bl	_EIP197_HIA_AIC_G
Lloh18:
	adrp	x8, _EIP197_HIA_AIC_G_ACK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIP197_HIA_AIC_G_ACK@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	x0, x20
	bl	_writel
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	w20, #0
Lloh21:
	adrp	x24, _EIP197_DxE_THR_CTRL_RESET_PE@GOTPAGE
Lloh22:
	ldr	x24, [x24, _EIP197_DxE_THR_CTRL_RESET_PE@GOTPAGEOFF]
Lloh23:
	adrp	x26, _RD_CACHE_3BITS@GOTPAGE
Lloh24:
	ldr	x26, [x26, _RD_CACHE_3BITS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w21, [x24]
	mov	x0, x19
	bl	_EIP197_HIA_DFE_THR
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_HIA_DFE_THR_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	ldr	w8, [x19]
	mov	x27, x25
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh25:
	adrp	x8, _EIP197_HIA_RA_PE_CTRL_RESET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIP197_HIA_RA_PE_CTRL_RESET@GOTPAGEOFF]
Lloh27:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_EIP197_HIA_AIC
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_HIA_RA_PE_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh28:
	adrp	x8, _EIP197_HIA_DFE_CFG_DIS_DEBUG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EIP197_HIA_DFE_CFG_DIS_DEBUG@GOTPAGEOFF]
Lloh30:
	ldr	w28, [x8]
	mov	w0, #6
	bl	_EIP197_HIA_DxE_CFG_MIN_DATA_SIZE
	mov	x21, x0
	mov	w0, #9
	bl	_EIP197_HIA_DxE_CFG_MAX_DATA_SIZE
	mov	x22, x0
	mov	w0, #6
	bl	_EIP197_HIA_DxE_CFG_MIN_CTRL_SIZE
	mov	x23, x0
	mov	w0, #7
	bl	_EIP197_HIA_DxE_CFG_MAX_CTRL_SIZE
	mov	x24, x0
	ldr	w0, [x26]
	bl	_EIP197_HIA_DxE_CFG_DATA_CACHE_CTRL
	mov	x25, x0
	ldr	w0, [x26]
	bl	_EIP197_HIA_DxE_CFG_CTRL_CACHE_CTRL
	orr	w8, w21, w28
	orr	w8, w8, w22
	orr	w8, w8, w23
	orr	w8, w8, w24
	orr	w8, w8, w25
	orr	w21, w8, w0
	mov	x0, x19
	bl	_EIP197_HIA_DFE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_HIA_DFE_CFG
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	mov	x0, x19
	bl	_EIP197_HIA_DFE_THR
	mov	x21, x0
	mov	x0, x20
	bl	_EIP197_HIA_DFE_THR_CTRL
	add	x1, x0, x21
	mov	w0, #0
	bl	_writel
	mov	w0, #6
	bl	_EIP197_PE_IN_xBUF_THRES_MIN
	mov	x21, x0
	mov	w0, #9
	bl	_EIP197_PE_IN_xBUF_THRES_MAX
	orr	w21, w0, w21
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_PE_IN_DBUF_THRES
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	mov	w0, #6
	bl	_EIP197_PE_IN_xBUF_THRES_MIN
	mov	x21, x0
	mov	w0, #7
	bl	_EIP197_PE_IN_xBUF_THRES_MAX
	orr	w21, w0, w21
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_PE_IN_TBUF_THRES
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	ldr	w8, [x19]
	mov	x25, x27
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh31:
	adrp	x8, _EIP197_HIA_RA_PE_CTRL_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EIP197_HIA_RA_PE_CTRL_EN@GOTPAGEOFF]
Lloh33:
	ldr	w21, [x8]
	ldr	w8, [x19, #8]
	sub	w0, w8, #1
	mov	w1, #0
	bl	_GENMASK
	orr	w21, w0, w21
	mov	x0, x19
	bl	_EIP197_HIA_AIC
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_HIA_RA_PE_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh34:
	adrp	x24, _EIP197_DxE_THR_CTRL_RESET_PE@GOTPAGE
Lloh35:
	ldr	x24, [x24, _EIP197_DxE_THR_CTRL_RESET_PE@GOTPAGEOFF]
	ldr	w21, [x24]
	mov	x0, x19
	bl	_EIP197_HIA_DSE_THR
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_HIA_DSE_THR_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_EIP197_HIA_DSE_THR
	mov	x21, x0
	mov	x0, x20
	bl	_EIP197_HIA_DSE_THR_STAT
	add	x0, x0, x21
	bl	_readl
	mov	x21, x0
	mov	w0, #15
	mov	w1, #12
	bl	_GENMASK
	and	w21, w0, w21
	mov	w0, #15
	mov	w1, #12
	bl	_GENMASK
	cmp	w21, w0
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh36:
	adrp	x8, _EIP197_HIA_DSE_CFG_DIS_DEBUG@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EIP197_HIA_DSE_CFG_DIS_DEBUG@GOTPAGEOFF]
Lloh38:
	ldr	w23, [x8]
	mov	w0, #7
	bl	_EIP197_HIA_DxE_CFG_MIN_DATA_SIZE
	mov	x21, x0
	mov	w0, #8
	bl	_EIP197_HIA_DxE_CFG_MAX_DATA_SIZE
	mov	x22, x0
Lloh39:
	adrp	x8, _WR_CACHE_3BITS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _WR_CACHE_3BITS@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_EIP197_HIA_DxE_CFG_DATA_CACHE_CTRL
Lloh42:
	adrp	x8, _EIP197_HIA_DSE_CFG_ALWAYS_BUFFERABLE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EIP197_HIA_DSE_CFG_ALWAYS_BUFFERABLE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	ldr	w9, [x19]
	ldr	w10, [x25]
Lloh45:
	adrp	x11, _EIP197_HIA_DSE_CFG_EN_SINGLE_WR@GOTPAGE
Lloh46:
	ldr	x11, [x11, _EIP197_HIA_DSE_CFG_EN_SINGLE_WR@GOTPAGEOFF]
Lloh47:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w10, w21, w23
	orr	w10, w10, w22
	orr	w10, w10, w0
	orr	w8, w10, w8
	orr	w21, w8, w9
	mov	x0, x19
	bl	_EIP197_HIA_DSE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_HIA_DSE_CFG
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	mov	x0, x19
	bl	_EIP197_HIA_DSE_THR
	mov	x21, x0
	mov	x0, x20
	bl	_EIP197_HIA_DSE_THR_CTRL
	add	x1, x0, x21
	mov	w0, #0
	bl	_writel
	mov	w0, #7
	bl	_EIP197_PE_OUT_DBUF_THRES_MIN
	mov	x21, x0
	mov	w0, #8
	bl	_EIP197_PE_OUT_DBUF_THRES_MAX
	orr	w21, w0, w21
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_PE_OUT_DBUF_THRES
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
Lloh48:
	adrp	x8, _EIP197_PE_EIP96_TOKEN_CTRL_CTX_UPDATES@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EIP197_PE_EIP96_TOKEN_CTRL_CTX_UPDATES@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _EIP197_PE_EIP96_TOKEN_CTRL_NO_TOKEN_WAIT@GOTPAGE
Lloh52:
	ldr	x9, [x9, _EIP197_PE_EIP96_TOKEN_CTRL_NO_TOKEN_WAIT@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh54:
	adrp	x9, _EIP197_PE_EIP96_TOKEN_CTRL_ENABLE_TIMEOUT@GOTPAGE
Lloh55:
	ldr	x9, [x9, _EIP197_PE_EIP96_TOKEN_CTRL_ENABLE_TIMEOUT@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w21, w8, w9
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_PE_EIP96_TOKEN_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
Lloh57:
	adrp	x23, _EIP197_FUNCTION_ALL@GOTPAGE
Lloh58:
	ldr	x23, [x23, _EIP197_FUNCTION_ALL@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_PE_EIP96_FUNCTION_EN
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	ldr	w21, [x23]
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_PE_EIP96_FUNCTION2_EN
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.lt	LBB0_4
LBB0_11:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.12:
	mov	w20, #0
Lloh59:
	adrp	x22, _EIP197_HIA_xDR_CFG@GOTPAGE
Lloh60:
	ldr	x22, [x22, _EIP197_HIA_xDR_CFG@GOTPAGEOFF]
Lloh61:
	adrp	x26, _EIP197_xDR_PREP_CLR_COUNT@GOTPAGE
Lloh62:
	ldr	x26, [x26, _EIP197_xDR_PREP_CLR_COUNT@GOTPAGEOFF]
Lloh63:
	adrp	x27, _EIP197_HIA_xDR_PREP_COUNT@GOTPAGE
Lloh64:
	ldr	x27, [x27, _EIP197_HIA_xDR_PREP_COUNT@GOTPAGEOFF]
Lloh65:
	adrp	x28, _EIP197_xDR_PROC_CLR_COUNT@GOTPAGE
Lloh66:
	ldr	x28, [x28, _EIP197_xDR_PROC_CLR_COUNT@GOTPAGEOFF]
Lloh67:
	adrp	x23, _EIP197_HIA_xDR_PROC_COUNT@GOTPAGE
Lloh68:
	ldr	x23, [x23, _EIP197_HIA_xDR_PROC_COUNT@GOTPAGEOFF]
Lloh69:
	adrp	x24, _EIP197_HIA_xDR_PREP_PNTR@GOTPAGE
Lloh70:
	ldr	x24, [x24, _EIP197_HIA_xDR_PREP_PNTR@GOTPAGEOFF]
Lloh71:
	adrp	x25, _EIP197_HIA_xDR_PROC_PNTR@GOTPAGE
Lloh72:
	ldr	x25, [x25, _EIP197_HIA_xDR_PROC_PNTR@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #31
	mov	w1, #0
	bl	_GENMASK
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_EIP197_HIA_AIC_R
	mov	x21, x25
	mov	x25, x24
	mov	x24, x23
	mov	x23, x28
	mov	x28, x27
	mov	x27, x26
	mov	x26, x22
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_HIA_AIC_R_ENABLE_CLR
	add	x1, x0, x22
	mov	x22, x26
	mov	x26, x27
	mov	x27, x28
	mov	x28, x23
	mov	x23, x24
	mov	x24, x25
	mov	x25, x21
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_writel
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_CDR
	ldr	x8, [x22]
	add	x1, x8, x0
	mov	w0, #0
	bl	_writel
	ldr	w21, [x26]
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_CDR
	ldr	x8, [x27]
	add	x1, x8, x0
	mov	x0, x21
	bl	_writel
	ldr	w21, [x28]
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_CDR
	ldr	x8, [x23]
	add	x1, x8, x0
	mov	x0, x21
	bl	_writel
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_CDR
	ldr	x8, [x24]
	add	x1, x8, x0
	mov	w0, #0
	bl	_writel
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_CDR
	ldr	x8, [x25]
	add	x1, x8, x0
	mov	w0, #0
	bl	_writel
Lloh73:
	adrp	x8, _EIP197_DEFAULT_RING_SIZE@GOTPAGE
Lloh74:
	ldr	x8, [x8, _EIP197_DEFAULT_RING_SIZE@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	mul	w8, w8, w9
	lsl	w21, w8, #2
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_CDR
Lloh76:
	adrp	x8, _EIP197_HIA_xDR_RING_SIZE@GOTPAGE
Lloh77:
	ldr	x8, [x8, _EIP197_HIA_xDR_RING_SIZE@GOTPAGEOFF]
Lloh78:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	x0, x21
	bl	_writel
	add	w20, w20, #1
	ldr	w8, [x19, #8]
	cmp	w20, w8
	b.lt	LBB0_13
; %bb.14:
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:
	mov	w20, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_RDR
	ldr	x8, [x22]
	add	x1, x8, x0
	mov	w0, #0
	bl	_writel
	ldr	w21, [x26]
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_RDR
	ldr	x8, [x27]
	add	x1, x8, x0
	mov	x0, x21
	bl	_writel
	ldr	w21, [x28]
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_RDR
	ldr	x8, [x23]
	add	x1, x8, x0
	mov	x0, x21
	bl	_writel
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_RDR
	ldr	x8, [x24]
	add	x1, x8, x0
	mov	w0, #0
	bl	_writel
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_RDR
	ldr	x8, [x25]
	add	x1, x8, x0
	mov	w0, #0
	bl	_writel
Lloh79:
	adrp	x8, _EIP197_DEFAULT_RING_SIZE@GOTPAGE
Lloh80:
	ldr	x8, [x8, _EIP197_DEFAULT_RING_SIZE@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	mul	w8, w8, w9
	lsl	w21, w8, #2
	mov	x0, x19
	mov	x1, x20
	bl	_EIP197_HIA_RDR
Lloh82:
	adrp	x8, _EIP197_HIA_xDR_RING_SIZE@GOTPAGE
Lloh83:
	ldr	x8, [x8, _EIP197_HIA_xDR_RING_SIZE@GOTPAGEOFF]
Lloh84:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	x0, x21
	bl	_writel
	add	w20, w20, #1
	ldr	w8, [x19, #8]
	cmp	w20, w8
	b.lt	LBB0_16
LBB0_17:
Lloh85:
	adrp	x25, _SAFEXCEL_HW_EIP197@GOTPAGE
Lloh86:
	ldr	x25, [x25, _SAFEXCEL_HW_EIP197@GOTPAGEOFF]
LBB0_18:
Lloh87:
	adrp	x26, _EIP197_HIA_AIC_G_ACK@GOTPAGE
Lloh88:
	ldr	x26, [x26, _EIP197_HIA_AIC_G_ACK@GOTPAGEOFF]
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.19:
	mov	w23, #1
Lloh89:
	adrp	x24, _EIP197_DxE_THR_CTRL_EN@GOTPAGE
Lloh90:
	ldr	x24, [x24, _EIP197_DxE_THR_CTRL_EN@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	sub	w20, w23, #1
	ldr	w21, [x24]
	sub	w0, w8, #1
	mov	w1, #0
	bl	_GENMASK
	orr	w21, w0, w21
	mov	x0, x19
	bl	_EIP197_HIA_DFE_THR
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_HIA_DFE_THR_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	ldr	w21, [x24]
	ldr	w8, [x19, #8]
	sub	w0, w8, #1
	mov	w1, #0
	bl	_GENMASK
	orr	w21, w0, w21
	mov	x0, x19
	bl	_EIP197_HIA_DSE_THR
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_HIA_DSE_THR_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	ldr	w8, [x19, #4]
	cmp	w23, w8
	b.ge	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x19, #8]
	add	w23, w23, #1
	b	LBB0_20
LBB0_22:
	mov	w0, #30
	mov	w1, #20
	bl	_GENMASK
	mov	x20, x0
	mov	x0, x19
	bl	_EIP197_HIA_AIC_G
	ldr	x8, [x26]
	add	x1, x8, x0
	mov	x0, x20
	bl	_writel
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
	mov	x0, x19
	bl	_eip197_trc_cache_init
Lloh91:
	adrp	x8, _EIP197_TRC_CACHE@GOTPAGE
Lloh92:
	ldr	x8, [x8, _EIP197_TRC_CACHE@GOTPAGEOFF]
Lloh93:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_eip197_load_firmwares
	cbnz	w0, LBB0_25
LBB0_24:
	mov	x0, x19
	bl	_safexcel_hw_setup_cdesc_rings
	mov	x0, x19
	bl	_safexcel_hw_setup_rdesc_rings
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW init: using %d pipe(s) and %d ring(s)\n"

	.comm	_SAFEXCEL_HW_EIP197,4,2         ; @SAFEXCEL_HW_EIP197
	.comm	_EIP197_HIA_MST_CTRL,8,3        ; @EIP197_HIA_MST_CTRL
	.comm	_RD_CACHE_4BITS,4,2             ; @RD_CACHE_4BITS
	.comm	_WR_CACHE_4BITS,4,2             ; @WR_CACHE_4BITS
	.comm	_EIP197_MST_CTRL,8,3            ; @EIP197_MST_CTRL
	.comm	_EIP197_HIA_AIC_G_ENABLE_CTRL,8,3 ; @EIP197_HIA_AIC_G_ENABLE_CTRL
	.comm	_EIP197_HIA_AIC_G_ACK,8,3       ; @EIP197_HIA_AIC_G_ACK
	.comm	_EIP197_DxE_THR_CTRL_RESET_PE,4,2 ; @EIP197_DxE_THR_CTRL_RESET_PE
	.comm	_EIP197_HIA_RA_PE_CTRL_RESET,4,2 ; @EIP197_HIA_RA_PE_CTRL_RESET
	.comm	_EIP197_HIA_DFE_CFG_DIS_DEBUG,4,2 ; @EIP197_HIA_DFE_CFG_DIS_DEBUG
	.comm	_RD_CACHE_3BITS,4,2             ; @RD_CACHE_3BITS
	.comm	_EIP197_HIA_RA_PE_CTRL_EN,4,2   ; @EIP197_HIA_RA_PE_CTRL_EN
	.comm	_EIP197_HIA_DSE_CFG_DIS_DEBUG,4,2 ; @EIP197_HIA_DSE_CFG_DIS_DEBUG
	.comm	_WR_CACHE_3BITS,4,2             ; @WR_CACHE_3BITS
	.comm	_EIP197_HIA_DSE_CFG_ALWAYS_BUFFERABLE,4,2 ; @EIP197_HIA_DSE_CFG_ALWAYS_BUFFERABLE
	.comm	_EIP197_HIA_DSE_CFG_EN_SINGLE_WR,4,2 ; @EIP197_HIA_DSE_CFG_EN_SINGLE_WR
	.comm	_EIP197_PE_EIP96_TOKEN_CTRL_CTX_UPDATES,4,2 ; @EIP197_PE_EIP96_TOKEN_CTRL_CTX_UPDATES
	.comm	_EIP197_PE_EIP96_TOKEN_CTRL_NO_TOKEN_WAIT,4,2 ; @EIP197_PE_EIP96_TOKEN_CTRL_NO_TOKEN_WAIT
	.comm	_EIP197_PE_EIP96_TOKEN_CTRL_ENABLE_TIMEOUT,4,2 ; @EIP197_PE_EIP96_TOKEN_CTRL_ENABLE_TIMEOUT
	.comm	_EIP197_FUNCTION_ALL,4,2        ; @EIP197_FUNCTION_ALL
	.comm	_EIP197_HIA_xDR_CFG,8,3         ; @EIP197_HIA_xDR_CFG
	.comm	_EIP197_xDR_PREP_CLR_COUNT,4,2  ; @EIP197_xDR_PREP_CLR_COUNT
	.comm	_EIP197_HIA_xDR_PREP_COUNT,8,3  ; @EIP197_HIA_xDR_PREP_COUNT
	.comm	_EIP197_xDR_PROC_CLR_COUNT,4,2  ; @EIP197_xDR_PROC_CLR_COUNT
	.comm	_EIP197_HIA_xDR_PROC_COUNT,8,3  ; @EIP197_HIA_xDR_PROC_COUNT
	.comm	_EIP197_HIA_xDR_PREP_PNTR,8,3   ; @EIP197_HIA_xDR_PREP_PNTR
	.comm	_EIP197_HIA_xDR_PROC_PNTR,8,3   ; @EIP197_HIA_xDR_PROC_PNTR
	.comm	_EIP197_DEFAULT_RING_SIZE,4,2   ; @EIP197_DEFAULT_RING_SIZE
	.comm	_EIP197_HIA_xDR_RING_SIZE,8,3   ; @EIP197_HIA_xDR_RING_SIZE
	.comm	_EIP197_DxE_THR_CTRL_EN,4,2     ; @EIP197_DxE_THR_CTRL_EN
	.comm	_EIP197_TRC_CACHE,4,2           ; @EIP197_TRC_CACHE
	.no_dead_strip	_safexcel_hw_init
.subsections_via_symbols
