	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc770_interrupt
_cc770_interrupt:                       ## @cc770_interrupt
	.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	%rsi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	24(%rax), %rax
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.1:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	*%rax
LBB0_3:
	movq	_CC770_MAX_IRQ@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	cmpl	$0, (%r12)
	jle	LBB0_12
## %bb.4:
	movq	_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movl	%eax, %ebx
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r13d
	cmpl	$1, %ebx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_cc770_status_interrupt
	testq	%rax, %rax
	je	LBB0_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_intid2obj
	movq	_CC770_OBJ_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_9
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rcx
	movslq	%eax, %rdx
	movl	(%rcx,%rdx,4), %ecx
	movq	_CC770_OBJ_FLAG_RTR@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_cc770_rtr_interrupt
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_err
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	(%r12), %r13d
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_cc770_read_reg
	movl	%eax, %ebx
	leal	1(%r13), %eax
	testl	%ebx, %ebx
	jne	LBB0_6
	jmp	LBB0_12
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_CC770_OBJ_FLAG_RX@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_cc770_rx_interrupt
	jmp	LBB0_10
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_cc770_tx_interrupt
	jmp	LBB0_10
LBB0_12:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	*%rax
LBB0_14:
	cmpl	(%r12), %r13d
	jl	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_netdev_dbg
LBB0_16:
	testl	%r13d, %r13d
	jne	LBB0_17
LBB0_23:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_17:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_STATE_STOPPED,8,3          ## @CAN_STATE_STOPPED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_CC770_MAX_IRQ,4,2              ## @CC770_MAX_IRQ
	.comm	_interrupt,4,2                  ## @interrupt
	.comm	_CC770_OBJ_MAX,4,2              ## @CC770_OBJ_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected interrupt id %d\n"

	.comm	_CC770_OBJ_FLAG_RTR,4,2         ## @CC770_OBJ_FLAG_RTR
	.comm	_CC770_OBJ_FLAG_RX,4,2          ## @CC770_OBJ_FLAG_RX
L_.str.1:                               ## @.str.1
	.asciz	"%d messages handled in ISR"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_cc770_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc770_interrupt
_cc770_interrupt:                       ; @cc770_interrupt
	.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	x19, x1
	mov	x0, x1
	bl	_netdev_priv
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _CAN_STATE_STOPPED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAN_STATE_STOPPED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_24
LBB0_2:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	blr	x8
LBB0_4:
Lloh5:
	adrp	x24, _CC770_MAX_IRQ@GOTPAGE
Lloh6:
	ldr	x24, [x24, _CC770_MAX_IRQ@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.5:
Lloh7:
	adrp	x25, _interrupt@GOTPAGE
Lloh8:
	ldr	x25, [x25, _interrupt@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_cc770_read_reg
	cbz	w0, LBB0_25
; %bb.6:
	mov	x23, x0
	mov	w8, #1
Lloh9:
	adrp	x26, _CC770_OBJ_MAX@GOTPAGE
Lloh10:
	ldr	x26, [x26, _CC770_OBJ_MAX@GOTPAGEOFF]
Lloh11:
	adrp	x27, _CC770_OBJ_FLAG_RTR@GOTPAGE
Lloh12:
	ldr	x27, [x27, _CC770_OBJ_FLAG_RTR@GOTPAGEOFF]
Lloh13:
	adrp	x28, _CC770_OBJ_FLAG_RX@GOTPAGE
Lloh14:
	ldr	x28, [x28, _CC770_OBJ_FLAG_RX@GOTPAGEOFF]
Lloh15:
	adrp	x22, l_.str@PAGE
Lloh16:
	add	x22, x22, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	cmp	w23, #1
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_cc770_status_interrupt
	cbz	x0, LBB0_13
	b	LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_intid2obj
	ldr	w8, [x26]
	cmp	w0, w8
	b.ge	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x0
	ldr	x8, [x20]
	ldr	w8, [x8, w0, sxtw #2]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_cc770_rtr_interrupt
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_netdev_err
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24]
	cmp	w21, w8
	b.ge	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_cc770_read_reg
	mov	x23, x0
	add	w8, w21, #1
	cbnz	w0, LBB0_7
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x28]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_cc770_rx_interrupt
	b	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_cc770_tx_interrupt
	b	LBB0_13
LBB0_18:
	mov	w21, #0
LBB0_19:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_21
LBB0_20:
	mov	x0, x20
	blr	x8
LBB0_21:
	ldr	w8, [x24]
	cmp	w21, w8
	b.lt	LBB0_23
; %bb.22:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_dbg
LBB0_23:
Lloh19:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh21:
	adrp	x9, _IRQ_NONE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IRQ_NONE@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
LBB0_24:
	ldr	w0, [x8]
	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
LBB0_25:
	mov	w21, #0
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_20
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_STATE_STOPPED,8,3          ; @CAN_STATE_STOPPED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_CC770_MAX_IRQ,4,2              ; @CC770_MAX_IRQ
	.comm	_interrupt,4,2                  ; @interrupt
	.comm	_CC770_OBJ_MAX,4,2              ; @CC770_OBJ_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected interrupt id %d\n"

	.comm	_CC770_OBJ_FLAG_RTR,4,2         ; @CC770_OBJ_FLAG_RTR
	.comm	_CC770_OBJ_FLAG_RX,4,2          ; @CC770_OBJ_FLAG_RX
l_.str.1:                               ; @.str.1
	.asciz	"%d messages handled in ISR"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_cc770_interrupt
.subsections_via_symbols
