	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_detect_error                ## -- Begin function be_detect_error
	.p2align	4, 0x90
_be_detect_error:                       ## @be_detect_error
	.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, %r13
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	callq	_be_hw_error
	testq	%rax, %rax
	je	LBB0_1
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, %rdi
	callq	_lancer_chip
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_SLIPORT_STATUS_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	callq	_ioread32
	movl	%eax, %r14d
	movq	_SLIPORT_STATUS_ERR_MASK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_SLIPORT_ERROR1_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	callq	_ioread32
	movl	%eax, %r15d
	movq	_SLIPORT_ERROR2_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	callq	_ioread32
	movl	%eax, %r12d
	jmp	LBB0_6
LBB0_4:
	movq	8(%r13), %rdi
	movq	_PCICFG_UE_STATUS_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_pci_read_config_dword
	movq	8(%r13), %rdi
	movq	_PCICFG_UE_STATUS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_dword
	movq	8(%r13), %rdi
	movq	_PCICFG_UE_STATUS_LOW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_pci_read_config_dword
	movq	8(%r13), %rdi
	movq	_PCICFG_UE_STATUS_HI_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-56(%rbp), %eax
	notl	%eax
	andl	%eax, -48(%rbp)
	movl	-52(%rbp), %eax
	notl	%eax
	andl	%eax, -44(%rbp)
	xorl	%r14d, %r14d
LBB0_5:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
LBB0_6:
	movq	_SLIPORT_STATUS_ERR_MASK@GOTPCREL(%rip), %rbx
	testl	%r14d, (%rbx)
	je	LBB0_9
## %bb.7:
	movl	$1, (%r13)
	movq	8(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	testl	%r14d, (%rbx)
	je	LBB0_9
## %bb.8:
	movq	8(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movq	_ue_status_low_desc@GOTPCREL(%rip), %r15
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, -48(%rbp)
	addq	$4, %rbx
	cmpl	$1, %eax
	movl	%ecx, %eax
	jbe	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testb	$1, %al
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r13), %rdi
	movq	(%r15), %rax
	movl	(%rax,%rbx), %edx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	-48(%rbp), %eax
	jmp	LBB0_13
LBB0_14:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movq	_ue_status_hi_desc@GOTPCREL(%rip), %r15
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, -44(%rbp)
	addq	$4, %rbx
	cmpl	$1, %eax
	movl	%ecx, %eax
	jbe	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	testb	$1, %al
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r13), %rdi
	movq	(%r15), %rax
	movl	(%rax,%rbx), %edx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	-44(%rbp), %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SLIPORT_STATUS_OFFSET,8,3      ## @SLIPORT_STATUS_OFFSET
	.comm	_SLIPORT_STATUS_ERR_MASK,4,2    ## @SLIPORT_STATUS_ERR_MASK
	.comm	_SLIPORT_ERROR1_OFFSET,8,3      ## @SLIPORT_ERROR1_OFFSET
	.comm	_SLIPORT_ERROR2_OFFSET,8,3      ## @SLIPORT_ERROR2_OFFSET
	.comm	_PCICFG_UE_STATUS_LOW,4,2       ## @PCICFG_UE_STATUS_LOW
	.comm	_PCICFG_UE_STATUS_HIGH,4,2      ## @PCICFG_UE_STATUS_HIGH
	.comm	_PCICFG_UE_STATUS_LOW_MASK,4,2  ## @PCICFG_UE_STATUS_LOW_MASK
	.comm	_PCICFG_UE_STATUS_HI_MASK,4,2   ## @PCICFG_UE_STATUS_HI_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error detected in the card\n"

L_.str.1:                               ## @.str.1
	.asciz	"ERR: sliport status 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"ERR: sliport error1 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"ERR: sliport error2 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"UE: %s bit set\n"

	.comm	_ue_status_low_desc,8,3         ## @ue_status_low_desc
	.comm	_ue_status_hi_desc,8,3          ## @ue_status_hi_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_detect_error                ; -- Begin function be_detect_error
	.p2align	2
_be_detect_error:                       ; @be_detect_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	bl	_be_hw_error
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	x0, x19
	bl	_lancer_chip
Lloh0:
	adrp	x23, _SLIPORT_STATUS_ERR_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SLIPORT_STATUS_ERR_MASK@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _SLIPORT_STATUS_OFFSET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SLIPORT_STATUS_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	mov	x20, x0
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _SLIPORT_ERROR1_OFFSET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SLIPORT_ERROR1_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	mov	x21, x0
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _SLIPORT_ERROR2_OFFSET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SLIPORT_ERROR2_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	mov	x22, x0
	b	LBB0_7
LBB0_5:
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x8, _PCICFG_UE_STATUS_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCICFG_UE_STATUS_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #28
	bl	_pci_read_config_dword
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x8, _PCICFG_UE_STATUS_HIGH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCICFG_UE_STATUS_HIGH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_pci_read_config_dword
	ldr	x0, [x19, #8]
Lloh17:
	adrp	x8, _PCICFG_UE_STATUS_LOW_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCICFG_UE_STATUS_LOW_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #20
	bl	_pci_read_config_dword
	ldr	x0, [x19, #8]
Lloh20:
	adrp	x8, _PCICFG_UE_STATUS_HI_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCICFG_UE_STATUS_HI_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_pci_read_config_dword
	mov	w20, #0
	mov	w21, #0
	mov	w22, #0
	ldr	w8, [sp, #28]
	ldr	w9, [sp, #20]
	bic	w8, w8, w9
	str	w8, [sp, #28]
	ldr	w8, [sp, #24]
	ldr	w9, [sp, #16]
	bic	w8, w8, w9
	str	w8, [sp, #24]
	b	LBB0_7
LBB0_6:
	mov	w21, #0
	mov	w22, #0
LBB0_7:
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x19, #8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	x0, [x19, #8]
	str	x20, [sp]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #8]
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #8]
	str	x22, [sp]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
LBB0_10:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_15
; %bb.11:
	mov	x21, #0
Lloh31:
	adrp	x22, _ue_status_low_desc@GOTPAGE
Lloh32:
	ldr	x22, [x22, _ue_status_low_desc@GOTPAGEOFF]
Lloh33:
	adrp	x20, l_.str.4@PAGE
Lloh34:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	asr	w9, w8, #1
	str	w9, [sp, #28]
	add	x21, x21, #4
	cmp	w8, #1
	mov	x8, x9
	b.ls	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	tbz	w8, #0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x19, #8]
	ldr	x8, [x22]
	ldr	w8, [x8, x21]
	str	x8, [sp]
	mov	x1, x20
	bl	_dev_err
	ldr	w8, [sp, #28]
	b	LBB0_12
LBB0_15:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_1
; %bb.16:
	mov	x21, #0
Lloh35:
	adrp	x22, _ue_status_hi_desc@GOTPAGE
Lloh36:
	ldr	x22, [x22, _ue_status_hi_desc@GOTPAGEOFF]
Lloh37:
	adrp	x20, l_.str.4@PAGE
Lloh38:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	asr	w9, w8, #1
	str	w9, [sp, #24]
	add	x21, x21, #4
	cmp	w8, #1
	mov	x8, x9
	b.ls	LBB0_1
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	tbz	w8, #0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x19, #8]
	ldr	x8, [x22]
	ldr	w8, [x8, x21]
	str	x8, [sp]
	mov	x1, x20
	bl	_dev_err
	ldr	w8, [sp, #24]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_SLIPORT_STATUS_OFFSET,8,3      ; @SLIPORT_STATUS_OFFSET
	.comm	_SLIPORT_STATUS_ERR_MASK,4,2    ; @SLIPORT_STATUS_ERR_MASK
	.comm	_SLIPORT_ERROR1_OFFSET,8,3      ; @SLIPORT_ERROR1_OFFSET
	.comm	_SLIPORT_ERROR2_OFFSET,8,3      ; @SLIPORT_ERROR2_OFFSET
	.comm	_PCICFG_UE_STATUS_LOW,4,2       ; @PCICFG_UE_STATUS_LOW
	.comm	_PCICFG_UE_STATUS_HIGH,4,2      ; @PCICFG_UE_STATUS_HIGH
	.comm	_PCICFG_UE_STATUS_LOW_MASK,4,2  ; @PCICFG_UE_STATUS_LOW_MASK
	.comm	_PCICFG_UE_STATUS_HI_MASK,4,2   ; @PCICFG_UE_STATUS_HI_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error detected in the card\n"

l_.str.1:                               ; @.str.1
	.asciz	"ERR: sliport status 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"ERR: sliport error1 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"ERR: sliport error2 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"UE: %s bit set\n"

	.comm	_ue_status_low_desc,8,3         ; @ue_status_low_desc
	.comm	_ue_status_hi_desc,8,3          ; @ue_status_hi_desc
.subsections_via_symbols
