	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ifi_canfd_handle_state_errors
_ifi_canfd_handle_state_errors:         ## @ifi_canfd_handle_state_errors
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_IFI_CANFD_STCMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_IFI_CANFD_STCMD_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_ifi_canfd_handle_state_change
	movq	%rax, %r15
LBB0_3:
	movq	_IFI_CANFD_STCMD_ERROR_WARNING@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.4:
	movq	(%r12), %rax
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_ifi_canfd_handle_state_change
	addl	%eax, %r15d
LBB0_6:
	movq	_IFI_CANFD_STCMD_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.7:
	movq	(%r12), %rax
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_ifi_canfd_handle_state_change
	addl	%eax, %r15d
LBB0_9:
	movq	_IFI_CANFD_STCMD_BUSOFF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.10:
	movq	(%r12), %rax
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_ifi_canfd_handle_state_change
	addl	%eax, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFI_CANFD_STCMD,8,3            ## @IFI_CANFD_STCMD
	.comm	_IFI_CANFD_STCMD_ERROR_ACTIVE,4,2 ## @IFI_CANFD_STCMD_ERROR_ACTIVE
	.comm	_CAN_STATE_ERROR_ACTIVE,8,3     ## @CAN_STATE_ERROR_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error, entered active state\n"

	.comm	_IFI_CANFD_STCMD_ERROR_WARNING,4,2 ## @IFI_CANFD_STCMD_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_WARNING,8,3    ## @CAN_STATE_ERROR_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Error, entered warning state\n"

	.comm	_IFI_CANFD_STCMD_ERROR_PASSIVE,4,2 ## @IFI_CANFD_STCMD_ERROR_PASSIVE
	.comm	_CAN_STATE_ERROR_PASSIVE,8,3    ## @CAN_STATE_ERROR_PASSIVE
L_.str.2:                               ## @.str.2
	.asciz	"Error, entered passive state\n"

	.comm	_IFI_CANFD_STCMD_BUSOFF,4,2     ## @IFI_CANFD_STCMD_BUSOFF
	.comm	_CAN_STATE_BUS_OFF,8,3          ## @CAN_STATE_BUS_OFF
L_.str.3:                               ## @.str.3
	.asciz	"Error, entered bus-off state\n"

	.no_dead_strip	_ifi_canfd_handle_state_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ifi_canfd_handle_state_errors
_ifi_canfd_handle_state_errors:         ; @ifi_canfd_handle_state_errors
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IFI_CANFD_STCMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFI_CANFD_STCMD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
Lloh3:
	adrp	x8, _IFI_CANFD_STCMD_ERROR_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFI_CANFD_STCMD_ERROR_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh6:
	adrp	x21, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	w21, #0
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	x1, [x21]
	mov	x0, x19
	bl	_ifi_canfd_handle_state_change
	mov	x21, x0
LBB0_4:
Lloh10:
	adrp	x8, _IFI_CANFD_STCMD_ERROR_WARNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IFI_CANFD_STCMD_ERROR_WARNING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x20]
Lloh13:
	adrp	x23, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh14:
	ldr	x23, [x23, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	x1, [x23]
	mov	x0, x19
	bl	_ifi_canfd_handle_state_change
	add	w21, w21, w0
LBB0_7:
Lloh17:
	adrp	x8, _IFI_CANFD_STCMD_ERROR_PASSIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IFI_CANFD_STCMD_ERROR_PASSIVE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x20]
Lloh20:
	adrp	x23, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh21:
	ldr	x23, [x23, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	x1, [x23]
	mov	x0, x19
	bl	_ifi_canfd_handle_state_change
	add	w21, w21, w0
LBB0_10:
Lloh24:
	adrp	x8, _IFI_CANFD_STCMD_BUSOFF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IFI_CANFD_STCMD_BUSOFF@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.11:
	ldr	x8, [x20]
Lloh27:
	adrp	x20, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh28:
	ldr	x20, [x20, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	x1, [x20]
	mov	x0, x19
	bl	_ifi_canfd_handle_state_change
	add	w21, w21, w0
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IFI_CANFD_STCMD,8,3            ; @IFI_CANFD_STCMD
	.comm	_IFI_CANFD_STCMD_ERROR_ACTIVE,4,2 ; @IFI_CANFD_STCMD_ERROR_ACTIVE
	.comm	_CAN_STATE_ERROR_ACTIVE,8,3     ; @CAN_STATE_ERROR_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error, entered active state\n"

	.comm	_IFI_CANFD_STCMD_ERROR_WARNING,4,2 ; @IFI_CANFD_STCMD_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_WARNING,8,3    ; @CAN_STATE_ERROR_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Error, entered warning state\n"

	.comm	_IFI_CANFD_STCMD_ERROR_PASSIVE,4,2 ; @IFI_CANFD_STCMD_ERROR_PASSIVE
	.comm	_CAN_STATE_ERROR_PASSIVE,8,3    ; @CAN_STATE_ERROR_PASSIVE
l_.str.2:                               ; @.str.2
	.asciz	"Error, entered passive state\n"

	.comm	_IFI_CANFD_STCMD_BUSOFF,4,2     ; @IFI_CANFD_STCMD_BUSOFF
	.comm	_CAN_STATE_BUS_OFF,8,3          ; @CAN_STATE_BUS_OFF
l_.str.3:                               ; @.str.3
	.asciz	"Error, entered bus-off state\n"

	.no_dead_strip	_ifi_canfd_handle_state_errors
.subsections_via_symbols
