	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function diva_free_dma_descriptor
_diva_free_dma_descriptor:              ## @diva_free_dma_descriptor
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	$0, 16(%rbp)
	movq	_IDI_SYNC_REQ_DMA_DESCRIPTOR_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbp)
	movq	_IDI_SYNC_REQ_DMA_DESCRIPTOR_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	%esi, -16(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -8(%rbp)
	movq	(%rdi), %rax
	movq	8(%rax), %rcx
	decq	%rcx
	movq	-16(%rbp), %rdx
	movq	%rcx, (%rdx)
	leaq	-16(%rbp), %rdi
	callq	*(%rax)
	cmpl	$0, -12(%rbp)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	movl	%ebx, %esi
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDI_SYNC_REQ_DMA_DESCRIPTOR_OPERATION,4,2 ## @IDI_SYNC_REQ_DMA_DESCRIPTOR_OPERATION
	.comm	_IDI_SYNC_REQ_DMA_DESCRIPTOR_FREE,4,2 ## @IDI_SYNC_REQ_DMA_DESCRIPTOR_FREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma_free(%d)"

L_.str.1:                               ## @.str.1
	.asciz	"dma_free failed (%d)"

	.no_dead_strip	_diva_free_dma_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diva_free_dma_descriptor
_diva_free_dma_descriptor:              ; @diva_free_dma_descriptor
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_2
; %bb.1:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _IDI_SYNC_REQ_DMA_DESCRIPTOR_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDI_SYNC_REQ_DMA_DESCRIPTOR_OPERATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IDI_SYNC_REQ_DMA_DESCRIPTOR_FREE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IDI_SYNC_REQ_DMA_DESCRIPTOR_FREE@GOTPAGEOFF]
	str	w8, [sp, #32]
Lloh5:
	ldr	w8, [x9]
	stp	w1, w8, [sp, #8]
	stp	xzr, xzr, [sp, #16]
	ldr	x8, [x0]
	ldp	x8, x9, [x8]
	sub	x9, x9, #1
	ldr	x10, [sp, #8]
	str	x9, [x10]
	add	x0, sp, #8
	blr	x8
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh8:
	adrp	x10, l_.str@PAGE
Lloh9:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #0
	csel	x0, x10, x9, eq
	mov	x1, x19
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDI_SYNC_REQ_DMA_DESCRIPTOR_OPERATION,4,2 ; @IDI_SYNC_REQ_DMA_DESCRIPTOR_OPERATION
	.comm	_IDI_SYNC_REQ_DMA_DESCRIPTOR_FREE,4,2 ; @IDI_SYNC_REQ_DMA_DESCRIPTOR_FREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma_free(%d)"

l_.str.1:                               ; @.str.1
	.asciz	"dma_free failed (%d)"

	.no_dead_strip	_diva_free_dma_descriptor
.subsections_via_symbols
