	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_irq_handler_cq              ## -- Begin function hl_irq_handler_cq
	.p2align	4, 0x90
_hl_irq_handler_cq:                     ## @hl_irq_handler_cq
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	32(%rsi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movl	%edi, %edx
	movl	24(%rax), %edi
	movq	(%r15), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	24(%r15), %r12
	movl	(%r12,%rax,4), %edi
	callq	_le32_to_cpu
	movq	_CQ_ENTRY_READY_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CQ_ENTRY_READY_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	leaq	16(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	shlq	$4, %r13
	movl	(%r12,%r13), %edi
	callq	_hl_queue_inc_ptr
	movl	%eax, (%r12,%r13)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12,%r14,4), %edi
	callq	_le32_to_cpu
	movq	_CQ_ENTRY_READY_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	notl	%edi
	andl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r12,%r14,4)
	movq	8(%r15), %rdi
	callq	_hl_cq_inc_ptr
	movq	%rax, 8(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
	movq	8(%r15), %rax
	movl	(%r12,%rax,4), %edi
	callq	_le32_to_cpu
	andl	(%rbx), %eax
	movq	_CQ_ENTRY_READY_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	xorl	%eax, %eax
	callq	_dma_rmb
	movl	(%r12,%r14,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_CQ_ENTRY_SHADOW_INDEX_VALID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_CQ_ENTRY_SHADOW_INDEX_VALID_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %ebx
	movl	(%r12,%r14,4), %edi
	callq	_le32_to_cpu
	movq	_CQ_ENTRY_SHADOW_INDEX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CQ_ENTRY_SHADOW_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %r12
	movq	(%r15), %r13
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 8(%rcx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rdi
	movq	%r13, %rax
	shlq	$4, %rax
	movq	8(%r12,%rax), %rbx
	callq	_hl_pi_2_offset
	movq	(%rbx,%rax,8), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_queue_work
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device disabled but received IRQ %d for CQ %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_CQ_ENTRY_READY_MASK,4,2        ## @CQ_ENTRY_READY_MASK
	.comm	_CQ_ENTRY_READY_SHIFT,4,2       ## @CQ_ENTRY_READY_SHIFT
	.comm	_CQ_ENTRY_SHADOW_INDEX_VALID_MASK,4,2 ## @CQ_ENTRY_SHADOW_INDEX_VALID_MASK
	.comm	_CQ_ENTRY_SHADOW_INDEX_VALID_SHIFT,4,2 ## @CQ_ENTRY_SHADOW_INDEX_VALID_SHIFT
	.comm	_CQ_ENTRY_SHADOW_INDEX_MASK,4,2 ## @CQ_ENTRY_SHADOW_INDEX_MASK
	.comm	_CQ_ENTRY_SHADOW_INDEX_SHIFT,4,2 ## @CQ_ENTRY_SHADOW_INDEX_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_irq_handler_cq              ; -- Begin function hl_irq_handler_cq
	.p2align	2
_hl_irq_handler_cq:                     ; @hl_irq_handler_cq
	.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
	ldr	x21, [x1, #32]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x2, x0
	ldr	w0, [x21, #24]
	ldr	x3, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_2:
Lloh2:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh4:
	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_3:
	ldr	x22, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	w0, [x22, x8, lsl #2]
	bl	_le32_to_cpu
Lloh5:
	adrp	x23, _CQ_ENTRY_READY_MASK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CQ_ENTRY_READY_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w0
Lloh7:
	adrp	x9, _CQ_ENTRY_READY_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CQ_ENTRY_READY_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cbz	w8, LBB0_2
; %bb.4:
	add	x20, x19, #16
Lloh10:
	adrp	x26, _CQ_ENTRY_SHADOW_INDEX_VALID_SHIFT@GOTPAGE
Lloh11:
	ldr	x26, [x26, _CQ_ENTRY_SHADOW_INDEX_VALID_SHIFT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	lsl	x24, x24, #4
	ldr	w0, [x28, x24]
	bl	_hl_queue_inc_ptr
	str	w0, [x28, x24]
	ldr	w0, [x22, x27]
	bl	_le32_to_cpu
	ldr	w8, [x23]
	bic	w0, w0, w8
	bl	_cpu_to_le32
	str	w0, [x22, x27]
	ldr	x0, [x19, #8]
	bl	_hl_cq_inc_ptr
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_atomic_inc
	ldr	x8, [x19, #8]
	ldr	w0, [x22, x8, lsl #2]
	bl	_le32_to_cpu
	ldr	w8, [x23]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _CQ_ENTRY_READY_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CQ_ENTRY_READY_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cbz	w8, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #8]
	bl	_dma_rmb
	lsl	x27, x24, #2
	ldr	w0, [x22, x27]
	bl	_le32_to_cpu
Lloh15:
	adrp	x8, _CQ_ENTRY_SHADOW_INDEX_VALID_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CQ_ENTRY_SHADOW_INDEX_VALID_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [x26]
	asr	w25, w8, w9
	ldr	w0, [x22, x27]
	bl	_le32_to_cpu
	ldr	x28, [x21, #16]
	ldr	x24, [x19]
	cbz	w25, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh18:
	adrp	x8, _CQ_ENTRY_SHADOW_INDEX_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CQ_ENTRY_SHADOW_INDEX_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh21:
	adrp	x9, _CQ_ENTRY_SHADOW_INDEX_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CQ_ENTRY_SHADOW_INDEX_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sxtw	x0, w8
	add	x8, x28, x24, lsl #4
	ldr	x25, [x8, #8]
	bl	_hl_pi_2_offset
	ldr	x1, [x25, x0, lsl #3]
	ldr	w0, [x21]
	bl	_queue_work
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device disabled but received IRQ %d for CQ %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_CQ_ENTRY_READY_MASK,4,2        ; @CQ_ENTRY_READY_MASK
	.comm	_CQ_ENTRY_READY_SHIFT,4,2       ; @CQ_ENTRY_READY_SHIFT
	.comm	_CQ_ENTRY_SHADOW_INDEX_VALID_MASK,4,2 ; @CQ_ENTRY_SHADOW_INDEX_VALID_MASK
	.comm	_CQ_ENTRY_SHADOW_INDEX_VALID_SHIFT,4,2 ; @CQ_ENTRY_SHADOW_INDEX_VALID_SHIFT
	.comm	_CQ_ENTRY_SHADOW_INDEX_MASK,4,2 ; @CQ_ENTRY_SHADOW_INDEX_MASK
	.comm	_CQ_ENTRY_SHADOW_INDEX_SHIFT,4,2 ; @CQ_ENTRY_SHADOW_INDEX_SHIFT
.subsections_via_symbols
