	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsu_pci_irq
_hsu_pci_irq:                           ## @hsu_pci_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	%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, %r15
	movl	16(%rsi), %edi
	callq	_to_pci_dev
	movq	(%rax), %rax
	movq	_PCI_DEVICE_ID_INTEL_MRFLD_HSU_DMA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_2:
	movq	_HSU_PCI_DMAISR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	(%r15), %rax
	cmpw	$0, (%rax)
	je	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	orl	$1, %r14d
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	sarl	%ebx
	incl	%r12d
	movq	(%r15), %rax
	cmpw	(%rax), %r12w
	jae	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %bl
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzwl	%r12w, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	-44(%rbp), %rdx
	callq	_hsu_dma_get_status
	testl	%eax, %eax
	jg	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_hsu_dma_do_irq
	orl	%eax, %r14d
	jmp	LBB0_10
LBB0_3:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %edi
	callq	_IRQ_RETVAL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEVICE_ID_INTEL_MRFLD_HSU_DMA,8,3 ## @PCI_DEVICE_ID_INTEL_MRFLD_HSU_DMA
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_HSU_PCI_DMAISR,8,3             ## @HSU_PCI_DMAISR
	.no_dead_strip	_hsu_pci_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsu_pci_irq
_hsu_pci_irq:                           ; @hsu_pci_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	w0, [x1, #16]
	bl	_to_pci_dev
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCI_DEVICE_ID_INTEL_MRFLD_HSU_DMA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DEVICE_ID_INTEL_MRFLD_HSU_DMA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_2:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _HSU_PCI_DMAISR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HSU_PCI_DMAISR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19]
	ldrh	w8, [x8]
	cbz	w8, LBB0_10
; %bb.3:
	mov	x20, x0
	mov	w21, #0
	mov	w22, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	orr	w21, w21, #0x1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	asr	w20, w20, #1
	add	w22, w22, #1
	ldr	x8, [x19]
	ldrh	w8, [x8]
	cmp	w8, w22, uxth
	b.ls	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w20, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w1, w22, #0xffff
	add	x2, sp, #12
	mov	x0, x19
	bl	_hsu_dma_get_status
	cmp	w0, #1
	b.ge	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [sp, #12]
	and	w1, w22, #0xffff
	mov	x0, x19
	bl	_hsu_dma_do_irq
	orr	w21, w0, w21
	b	LBB0_5
LBB0_10:
	mov	w21, #0
LBB0_11:
	mov	x0, x21
	bl	_IRQ_RETVAL
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEVICE_ID_INTEL_MRFLD_HSU_DMA,8,3 ; @PCI_DEVICE_ID_INTEL_MRFLD_HSU_DMA
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_HSU_PCI_DMAISR,8,3             ; @HSU_PCI_DMAISR
	.no_dead_strip	_hsu_pci_irq
.subsections_via_symbols
