	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m_can_handle_state_errors
_m_can_handle_state_errors:             ## @m_can_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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_PSR_EW@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_dbg
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_m_can_handle_state_change
	movq	%rax, %r14
LBB0_3:
	movq	_PSR_EP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.4:
	movq	(%r12), %rax
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_dbg
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_m_can_handle_state_change
	addl	%eax, %r14d
LBB0_6:
	movq	_PSR_BO@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.7:
	movq	(%r12), %rax
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_dbg
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_m_can_handle_state_change
	addl	%eax, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSR_EW,4,2                     ## @PSR_EW
	.comm	_CAN_STATE_ERROR_WARNING,8,3    ## @CAN_STATE_ERROR_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entered error warning state\n"

	.comm	_PSR_EP,4,2                     ## @PSR_EP
	.comm	_CAN_STATE_ERROR_PASSIVE,8,3    ## @CAN_STATE_ERROR_PASSIVE
L_.str.1:                               ## @.str.1
	.asciz	"entered error passive state\n"

	.comm	_PSR_BO,4,2                     ## @PSR_BO
	.comm	_CAN_STATE_BUS_OFF,8,3          ## @CAN_STATE_BUS_OFF
L_.str.2:                               ## @.str.2
	.asciz	"entered error bus off state\n"

	.no_dead_strip	_m_can_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 m_can_handle_state_errors
_m_can_handle_state_errors:             ; @m_can_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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _PSR_EW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSR_EW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x22, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	w22, #0
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	x1, [x22]
	mov	x0, x19
	bl	_m_can_handle_state_change
	mov	x22, x0
LBB0_4:
Lloh7:
	adrp	x8, _PSR_EP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PSR_EP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x21]
Lloh10:
	adrp	x23, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	x1, [x23]
	mov	x0, x19
	bl	_m_can_handle_state_change
	add	w22, w22, w0
LBB0_7:
Lloh14:
	adrp	x8, _PSR_BO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PSR_BO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x21]
Lloh17:
	adrp	x20, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh18:
	ldr	x20, [x20, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	x1, [x20]
	mov	x0, x19
	bl	_m_can_handle_state_change
	add	w22, w22, w0
LBB0_10:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PSR_EW,4,2                     ; @PSR_EW
	.comm	_CAN_STATE_ERROR_WARNING,8,3    ; @CAN_STATE_ERROR_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entered error warning state\n"

	.comm	_PSR_EP,4,2                     ; @PSR_EP
	.comm	_CAN_STATE_ERROR_PASSIVE,8,3    ; @CAN_STATE_ERROR_PASSIVE
l_.str.1:                               ; @.str.1
	.asciz	"entered error passive state\n"

	.comm	_PSR_BO,4,2                     ; @PSR_BO
	.comm	_CAN_STATE_BUS_OFF,8,3          ; @CAN_STATE_BUS_OFF
l_.str.2:                               ; @.str.2
	.asciz	"entered error bus off state\n"

	.no_dead_strip	_m_can_handle_state_errors
.subsections_via_symbols
