	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_bus_error
_decode_bus_error:                      ## @decode_bus_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	(%rsi), %edi
	movl	$31, %esi
	callq	_XEC
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_EC
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_edac_mc_find
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	(%rax), %rbx
	movl	%r15d, %edi
	callq	_PP
	movq	_NBSL_PP_OBS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	_F10_NBSL_EXT_ERR_ECC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_5
LBB0_4:
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get_error_address
	movq	(%rbx), %rcx
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	*(%rcx)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	___log_ecc_error
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBSL_PP_OBS,8,3                ## @NBSL_PP_OBS
	.comm	_F10_NBSL_EXT_ERR_ECC,8,3       ## @F10_NBSL_EXT_ERR_ECC
	.no_dead_strip	_decode_bus_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_bus_error
_decode_bus_error:                      ; @decode_bus_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	ldr	w0, [x1]
	mov	w1, #31
	bl	_XEC
	mov	x22, x0
	ldr	w0, [x19]
	bl	_EC
	mov	x23, x0
	mov	x0, x20
	bl	_edac_mc_find
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x23
	bl	_PP
Lloh0:
	adrp	x8, _NBSL_PP_OBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBSL_PP_OBS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.2:
	cbz	x22, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _F10_NBSL_EXT_ERR_ECC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _F10_NBSL_EXT_ERR_ECC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_5
LBB0_4:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x21
	mov	x1, x19
	bl	_get_error_address
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x2, sp, #8
	mov	x0, x20
	blr	x8
	add	x1, sp, #8
	mov	x0, x20
	bl	___log_ecc_error
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NBSL_PP_OBS,8,3                ; @NBSL_PP_OBS
	.comm	_F10_NBSL_EXT_ERR_ECC,8,3       ; @F10_NBSL_EXT_ERR_ECC
	.no_dead_strip	_decode_bus_error
.subsections_via_symbols
