	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decrement_dma_busy
_decrement_dma_busy:                    ## @decrement_dma_busy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$36, %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_ib_ipath_state_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	_IPATH_FLUSH_SEND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_4
LBB0_3:
	movq	_IPATH_S_WAIT_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rbx)
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_ipath_schedule_send
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	$28, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_ipath_state_ops,8,3         ## @ib_ipath_state_ops
	.comm	_IPATH_FLUSH_SEND,4,2           ## @IPATH_FLUSH_SEND
	.comm	_IPATH_S_WAIT_DMA,4,2           ## @IPATH_S_WAIT_DMA
	.no_dead_strip	_decrement_dma_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decrement_dma_busy
_decrement_dma_busy:                    ; @decrement_dma_busy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #36
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_6
; %bb.1:
	add	x20, x19, #32
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _ib_ipath_state_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_ipath_state_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _IPATH_FLUSH_SEND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPATH_FLUSH_SEND@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	ldr	w8, [x19, #24]
Lloh6:
	adrp	x9, _IPATH_S_WAIT_DMA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPATH_S_WAIT_DMA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_ipath_schedule_send
LBB0_5:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x0, x19, #28
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_ipath_state_ops,8,3         ; @ib_ipath_state_ops
	.comm	_IPATH_FLUSH_SEND,4,2           ; @IPATH_FLUSH_SEND
	.comm	_IPATH_S_WAIT_DMA,4,2           ; @IPATH_S_WAIT_DMA
	.no_dead_strip	_decrement_dma_busy
.subsections_via_symbols
