	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_pciefd_transmit_irq
_kvaser_pciefd_transmit_irq:            ## @kvaser_pciefd_transmit_irq
	.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	%rdi, %r14
	movq	_KVASER_PCIEFD_KCAN_IRQ_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	movl	%eax, %ebx
	movq	_KVASER_PCIEFD_KCAN_IRQ_TOF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_2:
	movq	_KVASER_PCIEFD_KCAN_IRQ_TFD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_KVASER_PCIEFD_KCAN_TX_NPACKETS_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	testb	%al, %al
	jne	LBB0_5
## %bb.4:
	movq	_KVASER_PCIEFD_KCAN_CTRL_EFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KVASER_PCIEFD_KCAN_CTRL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_iowrite32
LBB0_5:
	movq	_KVASER_PCIEFD_KCAN_IRQ_BPP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
LBB0_7:
	movq	_KVASER_PCIEFD_KCAN_IRQ_FDIC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movl	8(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_err
LBB0_9:
	movq	_KVASER_PCIEFD_KCAN_IRQ_ROF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movl	8(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_netdev_err
LBB0_11:
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_iowrite32
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVASER_PCIEFD_KCAN_IRQ_REG,8,3 ## @KVASER_PCIEFD_KCAN_IRQ_REG
	.comm	_KVASER_PCIEFD_KCAN_IRQ_TOF,4,2 ## @KVASER_PCIEFD_KCAN_IRQ_TOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx FIFO overflow\n"

	.comm	_KVASER_PCIEFD_KCAN_IRQ_TFD,4,2 ## @KVASER_PCIEFD_KCAN_IRQ_TFD
	.comm	_KVASER_PCIEFD_KCAN_TX_NPACKETS_REG,8,3 ## @KVASER_PCIEFD_KCAN_TX_NPACKETS_REG
	.comm	_KVASER_PCIEFD_KCAN_CTRL_EFLUSH,4,2 ## @KVASER_PCIEFD_KCAN_CTRL_EFLUSH
	.comm	_KVASER_PCIEFD_KCAN_CTRL_REG,8,3 ## @KVASER_PCIEFD_KCAN_CTRL_REG
	.comm	_KVASER_PCIEFD_KCAN_IRQ_BPP,4,2 ## @KVASER_PCIEFD_KCAN_IRQ_BPP
L_.str.1:                               ## @.str.1
	.asciz	"Fail to change bittiming, when not in reset mode\n"

	.comm	_KVASER_PCIEFD_KCAN_IRQ_FDIC,4,2 ## @KVASER_PCIEFD_KCAN_IRQ_FDIC
L_.str.2:                               ## @.str.2
	.asciz	"CAN FD frame in CAN mode\n"

	.comm	_KVASER_PCIEFD_KCAN_IRQ_ROF,4,2 ## @KVASER_PCIEFD_KCAN_IRQ_ROF
L_.str.3:                               ## @.str.3
	.asciz	"Rx FIFO overflow\n"

	.no_dead_strip	_kvaser_pciefd_transmit_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_pciefd_transmit_irq
_kvaser_pciefd_transmit_irq:            ; @kvaser_pciefd_transmit_irq
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _KVASER_PCIEFD_KCAN_IRQ_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KVASER_PCIEFD_KCAN_IRQ_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	mov	x20, x0
Lloh2:
	adrp	x8, _KVASER_PCIEFD_KCAN_IRQ_TOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KVASER_PCIEFD_KCAN_IRQ_TOF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_2:
Lloh7:
	adrp	x8, _KVASER_PCIEFD_KCAN_IRQ_TFD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KVASER_PCIEFD_KCAN_IRQ_TFD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _KVASER_PCIEFD_KCAN_TX_NPACKETS_REG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _KVASER_PCIEFD_KCAN_TX_NPACKETS_REG@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	tst	w0, #0xff
	b.ne	LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _KVASER_PCIEFD_KCAN_CTRL_EFLUSH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KVASER_PCIEFD_KCAN_CTRL_EFLUSH@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _KVASER_PCIEFD_KCAN_CTRL_REG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _KVASER_PCIEFD_KCAN_CTRL_REG@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
LBB0_5:
Lloh19:
	adrp	x8, _KVASER_PCIEFD_KCAN_IRQ_BPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KVASER_PCIEFD_KCAN_IRQ_BPP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
LBB0_7:
Lloh24:
	adrp	x8, _KVASER_PCIEFD_KCAN_IRQ_FDIC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KVASER_PCIEFD_KCAN_IRQ_FDIC@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19, #8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_err
LBB0_9:
Lloh29:
	adrp	x8, _KVASER_PCIEFD_KCAN_IRQ_ROF@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KVASER_PCIEFD_KCAN_IRQ_ROF@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x19, #8]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_err
LBB0_11:
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_iowrite32
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_KVASER_PCIEFD_KCAN_IRQ_REG,8,3 ; @KVASER_PCIEFD_KCAN_IRQ_REG
	.comm	_KVASER_PCIEFD_KCAN_IRQ_TOF,4,2 ; @KVASER_PCIEFD_KCAN_IRQ_TOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx FIFO overflow\n"

	.comm	_KVASER_PCIEFD_KCAN_IRQ_TFD,4,2 ; @KVASER_PCIEFD_KCAN_IRQ_TFD
	.comm	_KVASER_PCIEFD_KCAN_TX_NPACKETS_REG,8,3 ; @KVASER_PCIEFD_KCAN_TX_NPACKETS_REG
	.comm	_KVASER_PCIEFD_KCAN_CTRL_EFLUSH,4,2 ; @KVASER_PCIEFD_KCAN_CTRL_EFLUSH
	.comm	_KVASER_PCIEFD_KCAN_CTRL_REG,8,3 ; @KVASER_PCIEFD_KCAN_CTRL_REG
	.comm	_KVASER_PCIEFD_KCAN_IRQ_BPP,4,2 ; @KVASER_PCIEFD_KCAN_IRQ_BPP
l_.str.1:                               ; @.str.1
	.asciz	"Fail to change bittiming, when not in reset mode\n"

	.comm	_KVASER_PCIEFD_KCAN_IRQ_FDIC,4,2 ; @KVASER_PCIEFD_KCAN_IRQ_FDIC
l_.str.2:                               ; @.str.2
	.asciz	"CAN FD frame in CAN mode\n"

	.comm	_KVASER_PCIEFD_KCAN_IRQ_ROF,4,2 ; @KVASER_PCIEFD_KCAN_IRQ_ROF
l_.str.3:                               ; @.str.3
	.asciz	"Rx FIFO overflow\n"

	.no_dead_strip	_kvaser_pciefd_transmit_irq
.subsections_via_symbols
