	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_can_poll
_c_can_poll:                            ## @c_can_poll
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	%r13, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %ebx
	leaq	40(%rax), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_atomic_xchg
	movl	%ebx, %r14d
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_C_CAN_STS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	*8(%r12)
	movl	%eax, %r14d
	movl	%eax, (%r12)
	movq	16(%r12), %rax
	movq	_BOSCH_D_CAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_C_CAN_STS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LEC_UNUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	*32(%r12)
LBB0_3:
	movq	_STATUS_EWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %eax
	je	LBB0_6
## %bb.4:
	andl	%ebx, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_dbg
	movq	_C_CAN_ERROR_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_c_can_handle_state_change
	movq	%rax, %r15
LBB0_6:
	movq	_STATUS_EPASS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	testl	%r14d, %eax
	je	LBB0_9
## %bb.7:
	andl	%ebx, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_dbg
	movq	_C_CAN_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_c_can_handle_state_change
	movq	_STATUS_EPASS@GOTPCREL(%rip), %rdx
	addl	%eax, %r15d
LBB0_9:
	movq	_STATUS_BOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	andl	%ebx, %eax
	testl	%r14d, %ecx
	je	LBB0_12
## %bb.10:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_dbg
	movq	_C_CAN_BUS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_c_can_handle_state_change
	addl	%eax, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, %r15d
	jl	LBB0_23
	jmp	LBB0_25
LBB0_12:
	testl	%r14d, %ecx
	jne	LBB0_15
## %bb.13:
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_dbg
	movq	_C_CAN_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_c_can_handle_state_change
	movq	_STATUS_EPASS@GOTPCREL(%rip), %rdx
	addl	%eax, %r15d
LBB0_15:
	movl	(%rdx), %eax
	testl	%r14d, %eax
	jne	LBB0_18
## %bb.16:
	andl	%ebx, %eax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_dbg
	movq	_C_CAN_ERROR_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_c_can_handle_state_change
	addl	%eax, %r15d
LBB0_18:
	movq	_STATUS_EWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %eax
	jne	LBB0_21
## %bb.19:
	andl	%ebx, %eax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_dbg
	movq	_C_CAN_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_c_can_handle_state_change
	addl	%eax, %r15d
LBB0_21:
	movq	_LEC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_c_can_handle_bus_err
	movq	%rax, %rbx
	addl	%r15d, %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	subl	%ebx, %esi
	movq	%r13, %rdi
	callq	_c_can_do_rx_poll
	movq	%rax, %r15
	addl	%ebx, %r15d
	movq	%r13, %rdi
	callq	_c_can_do_tx
	cmpl	%r14d, %r15d
	jge	LBB0_25
LBB0_23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_napi_complete_done
	movq	24(%r12), %rax
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.24:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_c_can_irq_control
LBB0_25:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C_CAN_STS_REG,4,2              ## @C_CAN_STS_REG
	.comm	_BOSCH_D_CAN,8,3                ## @BOSCH_D_CAN
	.comm	_LEC_UNUSED,4,2                 ## @LEC_UNUSED
	.comm	_STATUS_EWARN,4,2               ## @STATUS_EWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entered error warning state\n"

	.comm	_C_CAN_ERROR_WARNING,4,2        ## @C_CAN_ERROR_WARNING
	.comm	_STATUS_EPASS,4,2               ## @STATUS_EPASS
L_.str.1:                               ## @.str.1
	.asciz	"entered error passive state\n"

	.comm	_C_CAN_ERROR_PASSIVE,4,2        ## @C_CAN_ERROR_PASSIVE
	.comm	_STATUS_BOFF,4,2                ## @STATUS_BOFF
L_.str.2:                               ## @.str.2
	.asciz	"entered bus off state\n"

	.comm	_C_CAN_BUS_OFF,4,2              ## @C_CAN_BUS_OFF
L_.str.3:                               ## @.str.3
	.asciz	"left bus off state\n"

L_.str.4:                               ## @.str.4
	.asciz	"left error passive state\n"

L_.str.5:                               ## @.str.5
	.asciz	"left error warning state\n"

	.comm	_C_CAN_NO_ERROR,4,2             ## @C_CAN_NO_ERROR
	.comm	_LEC_MASK,4,2                   ## @LEC_MASK
	.comm	_CAN_STATE_BUS_OFF,8,3          ## @CAN_STATE_BUS_OFF
	.no_dead_strip	_c_can_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_can_poll
_c_can_poll:                            ; @c_can_poll
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0]
	mov	x0, x22
	bl	_netdev_priv
	mov	x19, x0
	ldr	w25, [x0], #40
	mov	w1, #0
	bl	_atomic_xchg
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x24, _C_CAN_STS_REG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _C_CAN_STS_REG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	blr	x8
	mov	x23, x0
	str	w0, [x19]
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _BOSCH_D_CAN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BOSCH_D_CAN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19, #32]
	ldr	w1, [x24]
Lloh5:
	adrp	x9, _LEC_UNUSED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LEC_UNUSED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	mov	x0, x19
	blr	x8
	b	LBB0_4
LBB0_3:
	mov	x23, x25
LBB0_4:
Lloh8:
	adrp	x26, _STATUS_EWARN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _STATUS_EWARN@GOTPAGEOFF]
	ldr	w8, [x26]
	and	w9, w8, w23
	and	w8, w8, w25
	cmp	w9, #0
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_6
; %bb.5:
	mov	w24, #0
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_netdev_dbg
Lloh12:
	adrp	x8, _C_CAN_ERROR_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _C_CAN_ERROR_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_c_can_handle_state_change
	mov	x24, x0
LBB0_7:
Lloh15:
	adrp	x27, _STATUS_EPASS@GOTPAGE
Lloh16:
	ldr	x27, [x27, _STATUS_EPASS@GOTPAGEOFF]
	ldr	w8, [x27]
	and	w9, w8, w23
	and	w8, w8, w25
	cmp	w9, #0
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_9
; %bb.8:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_netdev_dbg
Lloh19:
	adrp	x8, _C_CAN_ERROR_PASSIVE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _C_CAN_ERROR_PASSIVE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_c_can_handle_state_change
	add	w24, w24, w0
LBB0_9:
Lloh22:
	adrp	x8, _STATUS_BOFF@GOTPAGE
Lloh23:
	ldr	x8, [x8, _STATUS_BOFF@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x8]
	and	w8, w9, w23
	and	w9, w9, w25
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_18
; %bb.10:
	cmp	w8, #0
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_12
; %bb.11:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_netdev_dbg
Lloh27:
	adrp	x8, _C_CAN_ERROR_PASSIVE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _C_CAN_ERROR_PASSIVE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_c_can_handle_state_change
	add	w24, w24, w0
LBB0_12:
	ldr	w8, [x27]
	and	w9, w8, w23
	and	w8, w8, w25
	cmp	w9, #0
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_14
; %bb.13:
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_netdev_dbg
Lloh32:
	adrp	x8, _C_CAN_ERROR_WARNING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _C_CAN_ERROR_WARNING@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_c_can_handle_state_change
	add	w24, w24, w0
LBB0_14:
	ldr	w8, [x26]
	tst	w8, w23
	b.ne	LBB0_17
; %bb.15:
	and	w8, w8, w25
	cbz	w8, LBB0_17
; %bb.16:
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_netdev_dbg
Lloh37:
	adrp	x8, _C_CAN_NO_ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _C_CAN_NO_ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_c_can_handle_state_change
	add	w24, w24, w0
LBB0_17:
Lloh40:
	adrp	x8, _LEC_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _LEC_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	and	w1, w8, w23
	mov	x0, x22
	bl	_c_can_handle_bus_err
	add	w23, w24, w0
	sub	w1, w21, w23
	mov	x0, x22
	bl	_c_can_do_rx_poll
	add	w23, w23, w0
	mov	x0, x22
	bl	_c_can_do_tx
	cmp	w23, w21
	b.lt	LBB0_19
	b	LBB0_21
LBB0_18:
Lloh43:
	adrp	x1, l_.str.2@PAGE
Lloh44:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_netdev_dbg
Lloh45:
	adrp	x8, _C_CAN_BUS_OFF@GOTPAGE
Lloh46:
	ldr	x8, [x8, _C_CAN_BUS_OFF@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_c_can_handle_state_change
	add	w23, w24, w0
	cmp	w23, w21
	b.ge	LBB0_21
LBB0_19:
	mov	x0, x20
	mov	x1, x23
	bl	_napi_complete_done
	ldr	x8, [x19, #24]
Lloh48:
	adrp	x9, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh49:
	ldr	x9, [x9, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w1, #1
	bl	_c_can_irq_control
LBB0_21:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_C_CAN_STS_REG,4,2              ; @C_CAN_STS_REG
	.comm	_BOSCH_D_CAN,8,3                ; @BOSCH_D_CAN
	.comm	_LEC_UNUSED,4,2                 ; @LEC_UNUSED
	.comm	_STATUS_EWARN,4,2               ; @STATUS_EWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entered error warning state\n"

	.comm	_C_CAN_ERROR_WARNING,4,2        ; @C_CAN_ERROR_WARNING
	.comm	_STATUS_EPASS,4,2               ; @STATUS_EPASS
l_.str.1:                               ; @.str.1
	.asciz	"entered error passive state\n"

	.comm	_C_CAN_ERROR_PASSIVE,4,2        ; @C_CAN_ERROR_PASSIVE
	.comm	_STATUS_BOFF,4,2                ; @STATUS_BOFF
l_.str.2:                               ; @.str.2
	.asciz	"entered bus off state\n"

	.comm	_C_CAN_BUS_OFF,4,2              ; @C_CAN_BUS_OFF
l_.str.3:                               ; @.str.3
	.asciz	"left bus off state\n"

l_.str.4:                               ; @.str.4
	.asciz	"left error passive state\n"

l_.str.5:                               ; @.str.5
	.asciz	"left error warning state\n"

	.comm	_C_CAN_NO_ERROR,4,2             ; @C_CAN_NO_ERROR
	.comm	_LEC_MASK,4,2                   ; @LEC_MASK
	.comm	_CAN_STATE_BUS_OFF,8,3          ; @CAN_STATE_BUS_OFF
	.no_dead_strip	_c_can_poll
.subsections_via_symbols
