	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpc925_htlink_check
_cpc925_htlink_check:                   ## @cpc925_htlink_check
	.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, %r12
	movq	8(%rdi), %r14
	movq	_REG_BRGCTRL_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	___raw_readl
	movl	%eax, %ebx
	movq	_REG_LINKCTRL_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	___raw_readl
	movl	%eax, %r15d
	movq	_REG_ERRCTRL_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	___raw_readl
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_REG_LINKERR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	___raw_readl
	movl	%eax, %r13d
	movq	_BRGCTRL_DETSERR@GOTPCREL(%rip), %rax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	testl	%ebx, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_HT_LINKCTRL_DETECTED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_HT_ERRCTRL_DETECTED@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_HT_LINKERR_DETECTED@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_15
LBB0_4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %ebx
	movq	_KERN_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_cpc925_printk
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_cpc925_printk
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_cpc925_printk
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ebx
	xorl	%eax, %eax
	callq	_cpc925_printk
	movl	(%r15), %edi
	movq	_REG_BRGCTRL_OFFSET@GOTPCREL(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %r15d
	movl	%r13d, %edx
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_cpc925_printk
	movq	_BRGCTRL_DETSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r12d, %edi
	je	LBB0_6
## %bb.5:
	movq	(%r13), %rsi
	addq	(%r14), %rsi
	callq	___raw_writel
LBB0_6:
	movq	_HT_LINKCTRL_DETECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movq	_REG_LINKCTRL_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	___raw_writel
LBB0_8:
	movq	_ERRCTRL_CHN_FAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movq	_BRGCTRL_SECBUSRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rsi
	addq	(%r14), %rsi
	callq	___raw_writel
LBB0_10:
	movq	_ERRCTRL_RSP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %edi
	je	LBB0_12
## %bb.11:
	movq	_REG_ERRCTRL_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	___raw_writel
LBB0_12:
	movq	_HT_LINKERR_DETECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r15d, %edi
	je	LBB0_14
## %bb.13:
	movq	_REG_LINKERR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	___raw_writel
LBB0_14:
	movl	(%r12), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edac_device_handle_ce          ## TAILCALL
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_BRGCTRL_OFFSET,8,3         ## @REG_BRGCTRL_OFFSET
	.comm	_REG_LINKCTRL_OFFSET,8,3        ## @REG_LINKCTRL_OFFSET
	.comm	_REG_ERRCTRL_OFFSET,8,3         ## @REG_ERRCTRL_OFFSET
	.comm	_REG_LINKERR_OFFSET,8,3         ## @REG_LINKERR_OFFSET
	.comm	_BRGCTRL_DETSERR,4,2            ## @BRGCTRL_DETSERR
	.comm	_HT_LINKCTRL_DETECTED,4,2       ## @HT_LINKCTRL_DETECTED
	.comm	_HT_ERRCTRL_DETECTED,4,2        ## @HT_ERRCTRL_DETECTED
	.comm	_HT_LINKERR_DETECTED,4,2        ## @HT_LINKERR_DETECTED
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HT Link Fault\nHT register dump:\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bridge Ctrl\t\t\t0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Link Config Ctrl\t\t0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error Enum and Ctrl\t\t0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Link Error\t\t\t0x%08x\n"

	.comm	_ERRCTRL_CHN_FAL,4,2            ## @ERRCTRL_CHN_FAL
	.comm	_BRGCTRL_SECBUSRESET,4,2        ## @BRGCTRL_SECBUSRESET
	.comm	_ERRCTRL_RSP_ERR,4,2            ## @ERRCTRL_RSP_ERR
	.no_dead_strip	_cpc925_htlink_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpc925_htlink_check
_cpc925_htlink_check:                   ; @cpc925_htlink_check
	.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	x24, [x0, #8]
	ldr	x8, [x24]
Lloh0:
	adrp	x26, _REG_BRGCTRL_OFFSET@GOTPAGE
Lloh1:
	ldr	x26, [x26, _REG_BRGCTRL_OFFSET@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	___raw_readl
	mov	x23, x0
	ldr	x8, [x24]
Lloh2:
	adrp	x9, _REG_LINKCTRL_OFFSET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REG_LINKCTRL_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
	mov	x22, x0
	ldr	x8, [x24]
Lloh5:
	adrp	x9, _REG_ERRCTRL_OFFSET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _REG_ERRCTRL_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
	mov	x21, x0
	ldr	x8, [x24]
Lloh8:
	adrp	x9, _REG_LINKERR_OFFSET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REG_LINKERR_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
	mov	x20, x0
Lloh11:
	adrp	x27, _BRGCTRL_DETSERR@GOTPAGE
Lloh12:
	ldr	x27, [x27, _BRGCTRL_DETSERR@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh13:
	adrp	x25, _HT_LINKCTRL_DETECTED@GOTPAGE
Lloh14:
	ldr	x25, [x25, _HT_LINKCTRL_DETECTED@GOTPAGEOFF]
Lloh15:
	adrp	x9, _HT_LINKERR_DETECTED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HT_LINKERR_DETECTED@GOTPAGEOFF]
	tst	w8, w23
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x25]
	tst	w8, w22
	b.ne	LBB0_4
; %bb.2:
Lloh17:
	adrp	x8, _HT_ERRCTRL_DETECTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HT_ERRCTRL_DETECTED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x9]
	tst	w8, w20
	b.eq	LBB0_15
LBB0_4:
Lloh20:
	adrp	x28, _KERN_INFO@GOTPAGE
Lloh21:
	ldr	x28, [x28, _KERN_INFO@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_cpc925_printk
	ldr	w0, [x28]
	str	x23, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_cpc925_printk
	ldr	w0, [x28]
	str	x22, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_cpc925_printk
	ldr	w0, [x28]
	str	x21, [sp]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_cpc925_printk
	ldr	w0, [x28]
	str	x20, [sp]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_cpc925_printk
	ldr	w0, [x27]
	tst	w0, w23
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x24]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	___raw_writel
LBB0_6:
	ldr	w0, [x25]
	tst	w0, w22
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x24]
Lloh32:
	adrp	x9, _REG_LINKCTRL_OFFSET@GOTPAGE
Lloh33:
	ldr	x9, [x9, _REG_LINKCTRL_OFFSET@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	___raw_writel
LBB0_8:
Lloh35:
	adrp	x8, _ERRCTRL_CHN_FAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERRCTRL_CHN_FAL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.9:
Lloh38:
	adrp	x8, _BRGCTRL_SECBUSRESET@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BRGCTRL_SECBUSRESET@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldr	x8, [x24]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	___raw_writel
LBB0_10:
Lloh41:
	adrp	x8, _ERRCTRL_RSP_ERR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERRCTRL_RSP_ERR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	tst	w0, w21
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x24]
Lloh44:
	adrp	x9, _REG_ERRCTRL_OFFSET@GOTPAGE
Lloh45:
	ldr	x9, [x9, _REG_ERRCTRL_OFFSET@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	___raw_writel
LBB0_12:
Lloh47:
	adrp	x8, _HT_LINKERR_DETECTED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _HT_LINKERR_DETECTED@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	tst	w0, w20
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x24]
Lloh50:
	adrp	x9, _REG_LINKERR_OFFSET@GOTPAGE
Lloh51:
	ldr	x9, [x9, _REG_LINKERR_OFFSET@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	___raw_writel
LBB0_14:
	ldr	w3, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	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
	b	_edac_device_handle_ce
LBB0_15:
	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	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_BRGCTRL_OFFSET,8,3         ; @REG_BRGCTRL_OFFSET
	.comm	_REG_LINKCTRL_OFFSET,8,3        ; @REG_LINKCTRL_OFFSET
	.comm	_REG_ERRCTRL_OFFSET,8,3         ; @REG_ERRCTRL_OFFSET
	.comm	_REG_LINKERR_OFFSET,8,3         ; @REG_LINKERR_OFFSET
	.comm	_BRGCTRL_DETSERR,4,2            ; @BRGCTRL_DETSERR
	.comm	_HT_LINKCTRL_DETECTED,4,2       ; @HT_LINKCTRL_DETECTED
	.comm	_HT_ERRCTRL_DETECTED,4,2        ; @HT_ERRCTRL_DETECTED
	.comm	_HT_LINKERR_DETECTED,4,2        ; @HT_LINKERR_DETECTED
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HT Link Fault\nHT register dump:\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bridge Ctrl\t\t\t0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Link Config Ctrl\t\t0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error Enum and Ctrl\t\t0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Link Error\t\t\t0x%08x\n"

	.comm	_ERRCTRL_CHN_FAL,4,2            ; @ERRCTRL_CHN_FAL
	.comm	_BRGCTRL_SECBUSRESET,4,2        ; @BRGCTRL_SECBUSRESET
	.comm	_ERRCTRL_RSP_ERR,4,2            ; @ERRCTRL_RSP_ERR
	.no_dead_strip	_cpc925_htlink_check
.subsections_via_symbols
