	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tricn_init
_tricn_init:                            ## @tricn_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_A_ESPI_RX_RESET@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_F_RX_CLK_STATUS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_F_ESPI_RX_CORE_RST@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_TRICN_CNFG@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$129, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$129, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	movl	$129, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$2, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$4, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$5, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$6, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$7, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$8, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$1, %ecx
	movl	$225, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$2, %ecx
	movl	$225, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$3, %ecx
	movl	$225, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$4, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$5, %ecx
	movl	$225, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$6, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$7, %ecx
	movl	$128, %r9d
	callq	_tricn_write
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$8, %ecx
	movl	$241, %r9d
	callq	_tricn_write
	movq	_F_ESPI_RX_LNK_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r12), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	jmp	LBB0_3
LBB0_1:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_CH_ERR
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_ESPI_RX_RESET,8,3            ## @A_ESPI_RX_RESET
	.comm	_F_RX_CLK_STATUS,4,2            ## @F_RX_CLK_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: ESPI clock not ready\n"

	.comm	_F_ESPI_RX_CORE_RST,4,2         ## @F_ESPI_RX_CORE_RST
	.comm	_TRICN_CNFG,4,2                 ## @TRICN_CNFG
	.comm	_F_ESPI_RX_LNK_RST,4,2          ## @F_ESPI_RX_LNK_RST
	.no_dead_strip	_tricn_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tricn_init
_tricn_init:                            ; @tricn_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _A_ESPI_RX_RESET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _A_ESPI_RX_RESET@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _F_RX_CLK_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _F_RX_CLK_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x21, _F_ESPI_RX_CORE_RST@GOTPAGE
Lloh6:
	ldr	x21, [x21, _F_ESPI_RX_CORE_RST@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
Lloh7:
	adrp	x22, _TRICN_CNFG@GOTPAGE
Lloh8:
	ldr	x22, [x22, _TRICN_CNFG@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w5, #129
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #0
	mov	w5, #129
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w3, #0
	mov	w5, #129
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #1
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #2
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #3
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #4
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #5
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #6
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #7
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #8
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #1
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w3, #1
	mov	w5, #225
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w3, #2
	mov	w5, #225
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w3, #3
	mov	w5, #225
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w3, #4
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w3, #5
	mov	w5, #225
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w3, #6
	mov	w5, #241
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w3, #7
	mov	w5, #128
	bl	_tricn_write
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w3, #8
	mov	w5, #241
	bl	_tricn_write
Lloh9:
	adrp	x8, _F_ESPI_RX_LNK_RST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F_ESPI_RX_LNK_RST@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh11:
	ldr	w8, [x8]
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w1, [x19, #8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CH_ERR
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_A_ESPI_RX_RESET,8,3            ; @A_ESPI_RX_RESET
	.comm	_F_RX_CLK_STATUS,4,2            ; @F_RX_CLK_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: ESPI clock not ready\n"

	.comm	_F_ESPI_RX_CORE_RST,4,2         ; @F_ESPI_RX_CORE_RST
	.comm	_TRICN_CNFG,4,2                 ; @TRICN_CNFG
	.comm	_F_ESPI_RX_LNK_RST,4,2          ; @F_ESPI_RX_LNK_RST
	.no_dead_strip	_tricn_init
.subsections_via_symbols
