	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_pciefd_receive_irq
_kvaser_pciefd_receive_irq:             ## @kvaser_pciefd_receive_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_SRB_IRQ_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	movl	%eax, %ebx
	movq	_KVASER_PCIEFD_SRB_IRQ_DPD0@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_kvaser_pciefd_read_buffer
	movq	_KVASER_PCIEFD_SRB_CMD_RDB0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KVASER_PCIEFD_SRB_CMD_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_iowrite32
LBB0_2:
	movq	_KVASER_PCIEFD_SRB_IRQ_DPD1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_kvaser_pciefd_read_buffer
	movq	_KVASER_PCIEFD_SRB_CMD_RDB1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KVASER_PCIEFD_SRB_CMD_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_iowrite32
LBB0_4:
	movq	_KVASER_PCIEFD_SRB_IRQ_DOF0@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_8
## %bb.5:
	movq	_KVASER_PCIEFD_SRB_IRQ_DOF1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	_KVASER_PCIEFD_SRB_IRQ_DUF0@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_KVASER_PCIEFD_SRB_IRQ_DUF1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
LBB0_8:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_9:
	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_SRB_IRQ_REG,8,3  ## @KVASER_PCIEFD_SRB_IRQ_REG
	.comm	_KVASER_PCIEFD_SRB_IRQ_DPD0,4,2 ## @KVASER_PCIEFD_SRB_IRQ_DPD0
	.comm	_KVASER_PCIEFD_SRB_CMD_RDB0,4,2 ## @KVASER_PCIEFD_SRB_CMD_RDB0
	.comm	_KVASER_PCIEFD_SRB_CMD_REG,8,3  ## @KVASER_PCIEFD_SRB_CMD_REG
	.comm	_KVASER_PCIEFD_SRB_IRQ_DPD1,4,2 ## @KVASER_PCIEFD_SRB_IRQ_DPD1
	.comm	_KVASER_PCIEFD_SRB_CMD_RDB1,4,2 ## @KVASER_PCIEFD_SRB_CMD_RDB1
	.comm	_KVASER_PCIEFD_SRB_IRQ_DOF0,4,2 ## @KVASER_PCIEFD_SRB_IRQ_DOF0
	.comm	_KVASER_PCIEFD_SRB_IRQ_DOF1,4,2 ## @KVASER_PCIEFD_SRB_IRQ_DOF1
	.comm	_KVASER_PCIEFD_SRB_IRQ_DUF0,4,2 ## @KVASER_PCIEFD_SRB_IRQ_DUF0
	.comm	_KVASER_PCIEFD_SRB_IRQ_DUF1,4,2 ## @KVASER_PCIEFD_SRB_IRQ_DUF1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA IRQ error 0x%08X\n"

	.no_dead_strip	_kvaser_pciefd_receive_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_receive_irq
_kvaser_pciefd_receive_irq:             ; @kvaser_pciefd_receive_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_SRB_IRQ_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KVASER_PCIEFD_SRB_IRQ_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	mov	x20, x0
Lloh2:
	adrp	x8, _KVASER_PCIEFD_SRB_IRQ_DPD0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KVASER_PCIEFD_SRB_IRQ_DPD0@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x22, _KVASER_PCIEFD_SRB_CMD_REG@GOTPAGE
Lloh6:
	ldr	x22, [x22, _KVASER_PCIEFD_SRB_CMD_REG@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_kvaser_pciefd_read_buffer
Lloh7:
	adrp	x8, _KVASER_PCIEFD_SRB_CMD_RDB0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KVASER_PCIEFD_SRB_CMD_RDB0@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_iowrite32
LBB0_2:
Lloh10:
	adrp	x8, _KVASER_PCIEFD_SRB_IRQ_DPD1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KVASER_PCIEFD_SRB_IRQ_DPD1@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_kvaser_pciefd_read_buffer
Lloh13:
	adrp	x8, _KVASER_PCIEFD_SRB_CMD_RDB1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KVASER_PCIEFD_SRB_CMD_RDB1@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_iowrite32
LBB0_4:
Lloh16:
	adrp	x8, _KVASER_PCIEFD_SRB_IRQ_DOF0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KVASER_PCIEFD_SRB_IRQ_DOF0@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_8
; %bb.5:
Lloh19:
	adrp	x8, _KVASER_PCIEFD_SRB_IRQ_DOF1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KVASER_PCIEFD_SRB_IRQ_DOF1@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_8
; %bb.6:
Lloh22:
	adrp	x8, _KVASER_PCIEFD_SRB_IRQ_DUF0@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KVASER_PCIEFD_SRB_IRQ_DUF0@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_8
; %bb.7:
Lloh25:
	adrp	x8, _KVASER_PCIEFD_SRB_IRQ_DUF1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KVASER_PCIEFD_SRB_IRQ_DUF1@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
LBB0_8:
	ldr	x0, [x19, #8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_9:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_KVASER_PCIEFD_SRB_IRQ_REG,8,3  ; @KVASER_PCIEFD_SRB_IRQ_REG
	.comm	_KVASER_PCIEFD_SRB_IRQ_DPD0,4,2 ; @KVASER_PCIEFD_SRB_IRQ_DPD0
	.comm	_KVASER_PCIEFD_SRB_CMD_RDB0,4,2 ; @KVASER_PCIEFD_SRB_CMD_RDB0
	.comm	_KVASER_PCIEFD_SRB_CMD_REG,8,3  ; @KVASER_PCIEFD_SRB_CMD_REG
	.comm	_KVASER_PCIEFD_SRB_IRQ_DPD1,4,2 ; @KVASER_PCIEFD_SRB_IRQ_DPD1
	.comm	_KVASER_PCIEFD_SRB_CMD_RDB1,4,2 ; @KVASER_PCIEFD_SRB_CMD_RDB1
	.comm	_KVASER_PCIEFD_SRB_IRQ_DOF0,4,2 ; @KVASER_PCIEFD_SRB_IRQ_DOF0
	.comm	_KVASER_PCIEFD_SRB_IRQ_DOF1,4,2 ; @KVASER_PCIEFD_SRB_IRQ_DOF1
	.comm	_KVASER_PCIEFD_SRB_IRQ_DUF0,4,2 ; @KVASER_PCIEFD_SRB_IRQ_DUF0
	.comm	_KVASER_PCIEFD_SRB_IRQ_DUF1,4,2 ; @KVASER_PCIEFD_SRB_IRQ_DUF1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA IRQ error 0x%08X\n"

	.no_dead_strip	_kvaser_pciefd_receive_irq
.subsections_via_symbols
