	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_sdma_intr
_handle_sdma_intr:                      ## @handle_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_INFINIPATH_I_SDMAINT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_IPATH_SDMA_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_ipath_sdma_intr
LBB0_3:
	movq	_INFINIPATH_I_SDMADISABLED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_IPATH_SDMA_ABORTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %r15
	movq	%r15, %rsi
	callq	_test_bit
	movl	%eax, %r12d
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_ipath_dbg
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_IPATH_SDMA_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	___set_bit
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ipath_cancel_sends
LBB0_6:
	movq	_IPATH_SDMA_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_hi_schedule            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINIPATH_I_SDMAINT,4,2       ## @INFINIPATH_I_SDMAINT
	.comm	_IPATH_SDMA_SHUTDOWN,4,2        ## @IPATH_SDMA_SHUTDOWN
	.comm	_INFINIPATH_I_SDMADISABLED,4,2  ## @INFINIPATH_I_SDMADISABLED
	.comm	_IPATH_SDMA_ABORTING,4,2        ## @IPATH_SDMA_ABORTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s SDmaDisabled intr\n"

L_.str.1:                               ## @.str.1
	.asciz	"expected"

L_.str.2:                               ## @.str.2
	.asciz	"unexpected"

	.comm	_IPATH_SDMA_DISABLED,4,2        ## @IPATH_SDMA_DISABLED
	.no_dead_strip	_handle_sdma_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_sdma_intr
_handle_sdma_intr:                      ; @handle_sdma_intr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _INFINIPATH_I_SDMAINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINIPATH_I_SDMAINT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x23, _IPATH_SDMA_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IPATH_SDMA_SHUTDOWN@GOTPAGEOFF]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x23]
	add	x1, x19, #4
	bl	_test_bit
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ipath_sdma_intr
LBB0_3:
Lloh5:
	adrp	x8, _INFINIPATH_I_SDMADISABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INFINIPATH_I_SDMADISABLED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _IPATH_SDMA_ABORTING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPATH_SDMA_ABORTING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_bit
	mov	x21, x0
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x1, x9, x8, eq
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ipath_dbg
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh17:
	adrp	x8, _IPATH_SDMA_DISABLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IPATH_SDMA_DISABLED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbnz	w21, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_ipath_cancel_sends
LBB0_6:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_8
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tasklet_hi_schedule
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINIPATH_I_SDMAINT,4,2       ; @INFINIPATH_I_SDMAINT
	.comm	_IPATH_SDMA_SHUTDOWN,4,2        ; @IPATH_SDMA_SHUTDOWN
	.comm	_INFINIPATH_I_SDMADISABLED,4,2  ; @INFINIPATH_I_SDMADISABLED
	.comm	_IPATH_SDMA_ABORTING,4,2        ; @IPATH_SDMA_ABORTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s SDmaDisabled intr\n"

l_.str.1:                               ; @.str.1
	.asciz	"expected"

l_.str.2:                               ; @.str.2
	.asciz	"unexpected"

	.comm	_IPATH_SDMA_DISABLED,4,2        ; @IPATH_SDMA_DISABLED
	.no_dead_strip	_handle_sdma_intr
.subsections_via_symbols
