	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_can_poll
_pch_can_poll:                          ## @pch_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, %r13d
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_pch_can_int_pending
	movl	%r13d, %r15d
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	_PCH_STATUS_INT@GOTPCREL(%rip), %rcx
	movl	%r13d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	callq	_ioread32
	movq	%rax, %r12
	movq	_PCH_BUS_OFF@GOTPCREL(%rip), %rcx
	movq	_PCH_LEC_ALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx), %rcx
	orq	%rax, %rcx
	movl	%r13d, %r15d
	testq	%r12, %rcx
	je	LBB0_5
## %bb.3:
	movq	%rax, %rcx
	andq	%r12, %rcx
	movl	%r13d, %r15d
	cmpq	%rax, %rcx
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_pch_can_error
	leal	-1(%r13), %r15d
LBB0_5:
	movq	_PCH_TX_OK@GOTPCREL(%rip), %rax
	movq	_PCH_RX_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	orq	(%rax), %rsi
	andq	%r12, %rsi
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	callq	_pch_can_bit_clear
LBB0_7:
	movq	%r14, %rdi
	callq	_pch_can_int_pending
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.10:
	movq	_PCH_RX_OBJ_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_13
## %bb.11:
	movq	_PCH_RX_OBJ_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_pch_can_rx_normal
	subl	%eax, %r15d
	jmp	LBB0_16
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_13:
	movq	_PCH_TX_OBJ_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_16
## %bb.14:
	movq	_PCH_TX_OBJ_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_pch_can_tx_complete
LBB0_16:
	movq	%r12, %rdi
	callq	_napi_complete
	movq	_PCH_CAN_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pch_can_set_int_enables
	subl	%r15d, %r13d
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCH_STATUS_INT,8,3             ## @PCH_STATUS_INT
	.comm	_PCH_BUS_OFF,8,3                ## @PCH_BUS_OFF
	.comm	_PCH_LEC_ALL,8,3                ## @PCH_LEC_ALL
	.comm	_PCH_TX_OK,8,3                  ## @PCH_TX_OK
	.comm	_PCH_RX_OK,8,3                  ## @PCH_RX_OK
	.comm	_PCH_RX_OBJ_START,8,3           ## @PCH_RX_OBJ_START
	.comm	_PCH_RX_OBJ_END,8,3             ## @PCH_RX_OBJ_END
	.comm	_PCH_TX_OBJ_START,8,3           ## @PCH_TX_OBJ_START
	.comm	_PCH_TX_OBJ_END,8,3             ## @PCH_TX_OBJ_END
	.comm	_PCH_CAN_ALL,4,2                ## @PCH_CAN_ALL
	.no_dead_strip	_pch_can_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_can_poll
_pch_can_poll:                          ; @pch_can_poll
	.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, x1
	mov	x21, x0
	ldr	x22, [x0]
	mov	x0, x22
	bl	_netdev_priv
	mov	x20, x0
	bl	_pch_can_int_pending
	mov	x23, x19
	cbz	x0, LBB0_12
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x8, _PCH_STATUS_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCH_STATUS_INT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x23, x19
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [x20]
	bl	_ioread32
	mov	x24, x0
Lloh3:
	adrp	x8, _PCH_BUS_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCH_BUS_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _PCH_LEC_ALL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCH_LEC_ALL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	orr	x8, x9, x8
	and	x8, x8, x0
	and	x10, x9, x0
	cmp	x8, #0
	ccmp	x10, x9, #4, ne
	mov	x23, x19
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x22
	mov	x1, x24
	bl	_pch_can_error
	sub	w23, w19, #1
LBB0_4:
Lloh9:
	adrp	x8, _PCH_TX_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCH_TX_OK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _PCH_RX_OK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCH_RX_OK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	orr	x8, x9, x8
	ands	x1, x8, x24
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [x20]
	bl	_pch_can_bit_clear
LBB0_6:
	mov	x0, x20
	bl	_pch_can_int_pending
	mov	x1, x0
LBB0_7:
	cbz	w23, LBB0_12
; %bb.8:
Lloh15:
	adrp	x8, _PCH_RX_OBJ_START@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCH_RX_OBJ_START@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _PCH_RX_OBJ_END@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PCH_RX_OBJ_END@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x1, x8
	ccmp	x1, x9, #0, ge
	b.le	LBB0_11
; %bb.9:
Lloh21:
	adrp	x8, _PCH_TX_OBJ_START@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCH_TX_OBJ_START@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _PCH_TX_OBJ_END@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PCH_TX_OBJ_END@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x1, x8
	ccmp	x1, x9, #0, ge
	b.gt	LBB0_12
; %bb.10:
	mov	x0, x22
	bl	_pch_can_tx_complete
	b	LBB0_12
LBB0_11:
	mov	x0, x22
	mov	x2, x23
	bl	_pch_can_rx_normal
	sub	w23, w23, w0
LBB0_12:
	mov	x0, x21
	bl	_napi_complete
Lloh27:
	adrp	x8, _PCH_CAN_ALL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PCH_CAN_ALL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pch_can_set_int_enables
	sub	w0, w19, w23
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PCH_STATUS_INT,8,3             ; @PCH_STATUS_INT
	.comm	_PCH_BUS_OFF,8,3                ; @PCH_BUS_OFF
	.comm	_PCH_LEC_ALL,8,3                ; @PCH_LEC_ALL
	.comm	_PCH_TX_OK,8,3                  ; @PCH_TX_OK
	.comm	_PCH_RX_OK,8,3                  ; @PCH_RX_OK
	.comm	_PCH_RX_OBJ_START,8,3           ; @PCH_RX_OBJ_START
	.comm	_PCH_RX_OBJ_END,8,3             ; @PCH_RX_OBJ_END
	.comm	_PCH_TX_OBJ_START,8,3           ; @PCH_TX_OBJ_START
	.comm	_PCH_TX_OBJ_END,8,3             ; @PCH_TX_OBJ_END
	.comm	_PCH_CAN_ALL,4,2                ; @PCH_CAN_ALL
	.no_dead_strip	_pch_can_poll
.subsections_via_symbols
