	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_idle_intr
_sdma_idle_intr:                        ## @sdma_idle_intr
	.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	8(%rsi), %rbx
	movq	_QIB_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_QIB_BADINTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	andl	(%rbx), %ecx
	cmpl	%eax, %ecx
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_this_cpu_inc
	movq	_kr_intclear@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpq	$0, (%r14)
	movl	(%rax), %r15d
	setne	%sil
	movq	_SDmaIdle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_INT_MASK_P
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_qib_write_kreg
	movq	%r14, %rdi
	callq	_qib_sdma_intr
LBB0_2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_PRESENT,4,2                ## @QIB_PRESENT
	.comm	_QIB_BADINTR,4,2                ## @QIB_BADINTR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_kr_intclear,4,2                ## @kr_intclear
	.comm	_SDmaIdle,4,2                   ## @SDmaIdle
	.no_dead_strip	_sdma_idle_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_idle_intr
_sdma_idle_intr:                        ; @sdma_idle_intr
	.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
	ldr	x20, [x1, #8]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _QIB_PRESENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIB_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _QIB_BADINTR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QIB_BADINTR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w10, w10, w9
	and	w8, w10, w8
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_this_cpu_inc
Lloh6:
	adrp	x8, _kr_intclear@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kr_intclear@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w1, ne
Lloh9:
	adrp	x8, _SDmaIdle@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDmaIdle@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_INT_MASK_P
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_qib_write_kreg
	mov	x0, x19
	bl	_qib_sdma_intr
LBB0_2:
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh14:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_PRESENT,4,2                ; @QIB_PRESENT
	.comm	_QIB_BADINTR,4,2                ; @QIB_BADINTR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_kr_intclear,4,2                ; @kr_intclear
	.comm	_SDmaIdle,4,2                   ; @SDmaIdle
	.no_dead_strip	_sdma_idle_intr
.subsections_via_symbols
