	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcan_current_error_state
_xcan_current_error_state:              ## @xcan_current_error_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_netdev_priv
	movq	_XCAN_SR_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	*(%rax)
	movq	_XCAN_SR_ESTAT_MASK@GOTPCREL(%rip), %rcx
	movq	_XCAN_SR_ERRWRN_MASK@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	notl	%eax
	jne	LBB0_1
## %bb.2:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rcx)
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rdx
	testl	%eax, (%rcx)
	jne	LBB0_5
LBB0_4:
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rdx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XCAN_SR_OFFSET,4,2             ## @XCAN_SR_OFFSET
	.comm	_XCAN_SR_ESTAT_MASK,4,2         ## @XCAN_SR_ESTAT_MASK
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ## @CAN_STATE_ERROR_PASSIVE
	.comm	_XCAN_SR_ERRWRN_MASK,4,2        ## @XCAN_SR_ERRWRN_MASK
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ## @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ## @CAN_STATE_ERROR_ACTIVE
	.no_dead_strip	_xcan_current_error_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcan_current_error_state
_xcan_current_error_state:              ; @xcan_current_error_state
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _XCAN_SR_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XCAN_SR_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
Lloh3:
	adrp	x8, _XCAN_SR_ESTAT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XCAN_SR_ESTAT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _XCAN_SR_ERRWRN_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XCAN_SR_ERRWRN_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
Lloh11:
	adrp	x11, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh12:
	ldr	x11, [x11, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
Lloh13:
	adrp	x12, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh14:
	ldr	x12, [x12, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
	tst	w9, w0
	csel	x9, x11, x12, eq
	bics	wzr, w8, w0
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XCAN_SR_OFFSET,4,2             ; @XCAN_SR_OFFSET
	.comm	_XCAN_SR_ESTAT_MASK,4,2         ; @XCAN_SR_ESTAT_MASK
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ; @CAN_STATE_ERROR_PASSIVE
	.comm	_XCAN_SR_ERRWRN_MASK,4,2        ; @XCAN_SR_ERRWRN_MASK
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ; @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ; @CAN_STATE_ERROR_ACTIVE
	.no_dead_strip	_xcan_current_error_state
.subsections_via_symbols
