	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_alloc_dma_map_entry       ## -- Begin function diva_alloc_dma_map_entry
	.p2align	4, 0x90
_diva_alloc_dma_map_entry:              ## @diva_alloc_dma_map_entry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	cmpq	$0, 8(%rdi)
	je	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	cmpq	$0, 24(%rdi)
	leaq	16(%rdi), %rdi
	jne	LBB0_3
LBB0_6:
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	$1, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_alloc_dma_map_entry       ; -- Begin function diva_alloc_dma_map_entry
	.p2align	2
_diva_alloc_dma_map_entry:              ; @diva_alloc_dma_map_entry
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_5
; %bb.1:
	mov	x8, x0
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_5
; %bb.2:
	mov	w0, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	cbz	w9, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x8, #24]
	add	w0, w0, #1
	add	x8, x8, #16
	cbnz	x9, LBB0_3
LBB0_5:
	mov	w0, #-1
	ret
LBB0_6:
	mov	w9, #1
	str	w9, [x8]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
