	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_intr
_sdma_intr:                             ## @sdma_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_4
## %bb.1:
	movq	%rsi, %r14
	movq	_qib_stats@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	8(%rbx), %rax
	cmpq	$-1, %rax
	je	LBB0_3
## %bb.2:
	incq	%rax
	movq	%rax, 8(%rbx)
LBB0_3:
	movq	_kr_intclear@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpq	$0, (%r14)
	movl	(%rax), %r15d
	setne	%sil
	movq	_SDma@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_4:
	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	_qib_stats,4,2                  ## @qib_stats
	.comm	_kr_intclear,4,2                ## @kr_intclear
	.comm	_SDma,4,2                       ## @SDma
	.no_dead_strip	_sdma_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_intr
_sdma_intr:                             ; @sdma_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_4
; %bb.1:
	mov	x19, x1
Lloh6:
	adrp	x8, _qib_stats@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qib_stats@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x20, #8]
	cmn	x8, #1
	b.eq	LBB0_3
; %bb.2:
	add	x8, x8, #1
	str	x8, [x20, #8]
LBB0_3:
Lloh8:
	adrp	x8, _kr_intclear@GOTPAGE
Lloh9:
	ldr	x8, [x8, _kr_intclear@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w1, ne
Lloh11:
	adrp	x8, _SDma@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDma@GOTPAGEOFF]
Lloh13:
	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_4:
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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	_qib_stats,4,2                  ; @qib_stats
	.comm	_kr_intclear,4,2                ; @kr_intclear
	.comm	_SDma,4,2                       ; @SDma
	.no_dead_strip	_sdma_intr
.subsections_via_symbols
