	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pciefd_irq_handler
_pciefd_irq_handler:                    ## @pciefd_irq_handler
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	48(%rsi), %rax
	movq	56(%rsi), %r15
	movl	(%rax), %edi
	callq	_pci_dev_msi_enabled
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	48(%rbx), %rdi
	movq	_PCIEFD_REG_SYS_VER1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pciefd_sys_readreg
LBB0_2:
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 40(%rbx)
	movl	%eax, %edi
	callq	_pciefd_irq_tag
	cmpq	(%rbx), %rax
	jne	LBB0_3
## %bb.4:
	leaq	8(%rbx), %r14
	movl	(%r15), %r15d
	movl	40(%rbx), %edi
	callq	_pciefd_irq_rx_cnt
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_peak_canfd_handle_msgs_list
	movl	40(%rbx), %edi
	callq	_pciefd_irq_is_lnk
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	leaq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	incl	36(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	cmpl	$0, (%rcx,%rax,4)
	jne	LBB0_7
## %bb.6:
	movl	20(%rbx), %edi
	callq	_netif_wake_queue
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	movq	%rbx, %rdi
	callq	_pciefd_can_ack_rx_dma
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIEFD_REG_SYS_VER1,4,2        ## @PCIEFD_REG_SYS_VER1
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_pciefd_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pciefd_irq_handler
_pciefd_irq_handler:                    ; @pciefd_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldp	x8, x21, [x1, #48]
	ldr	w0, [x8]
	bl	_pci_dev_msi_enabled
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #48]
Lloh0:
	adrp	x8, _PCIEFD_REG_SYS_VER1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIEFD_REG_SYS_VER1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pciefd_sys_readreg
LBB0_2:
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
	str	w0, [x19, #40]
	bl	_pciefd_irq_tag
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	add	x20, x19, #8
	ldr	w21, [x21]
	ldr	w0, [x19, #40]
	bl	_pciefd_irq_rx_cnt
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_peak_canfd_handle_msgs_list
	ldr	w0, [x19, #40]
	bl	_pciefd_irq_is_lnk
	cbz	x0, LBB0_7
; %bb.4:
	add	x20, x19, #32
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
	cbnz	w8, LBB0_6
; %bb.5:
	ldr	w0, [x19, #20]
	bl	_netif_wake_queue
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_7:
	mov	x0, x19
	bl	_pciefd_can_ack_rx_dma
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIEFD_REG_SYS_VER1,4,2        ; @PCIEFD_REG_SYS_VER1
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_pciefd_irq_handler
.subsections_via_symbols
