	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_engine_interrupt          ## -- Begin function sdma_engine_interrupt
	.p2align	4, 0x90
_sdma_engine_interrupt:                 ## @sdma_engine_interrupt
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_trace_hfi1_sdma_engine_interrupt
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_write_seqlock
	movq	_sdma_desct_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdma_set_desc_cnt
	testl	%r14d, (%rbx)
	je	LBB0_2
## %bb.1:
	leaq	24(%rbx), %rax
	jmp	LBB0_6
LBB0_2:
	testl	%r14d, 4(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	20(%rbx), %rax
	jmp	LBB0_6
LBB0_4:
	testl	%r14d, 8(%rbx)
	je	LBB0_7
## %bb.5:
	leaq	16(%rbx), %rax
LBB0_6:
	incl	(%rax)
LBB0_7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sdma_make_progress
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_sequnlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sdma_desct_intr,4,2            ## @sdma_desct_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_engine_interrupt          ; -- Begin function sdma_engine_interrupt
	.p2align	2
_sdma_engine_interrupt:                 ; @sdma_engine_interrupt
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_trace_hfi1_sdma_engine_interrupt
	add	x21, x20, #12
	mov	x0, x21
	bl	_write_seqlock
Lloh0:
	adrp	x8, _sdma_desct_intr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sdma_desct_intr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdma_set_desc_cnt
	ldr	w8, [x20]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.1:
	add	x8, x20, #24
	b	LBB0_6
LBB0_2:
	ldr	w8, [x20, #4]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
	add	x8, x20, #20
	b	LBB0_6
LBB0_4:
	ldr	w8, [x20, #8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.5:
	add	x8, x20, #16
LBB0_6:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_sdma_make_progress
	mov	x0, x21
	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
	b	_write_sequnlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sdma_desct_intr,4,2            ; @sdma_desct_intr
.subsections_via_symbols
