	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_release_from_coherent      ## -- Begin function dma_release_from_coherent
	.p2align	4, 0x90
_dma_release_from_coherent:             ## @dma_release_from_coherent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	%esi, %r8d
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	(%rsi), %r9
	cmpq	%rdx, %r9
	ja	LBB0_5
## %bb.3:
	movl	8(%rsi), %edi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	%cl, %edi
	movslq	%edi, %rdi
	addq	%r9, %rdi
	cmpq	%rdx, %rdi
	jbe	LBB0_5
## %bb.4:
	subq	%r9, %rdx
                                        ## kill: def $cl killed $cl killed $rcx
	sarq	%cl, %rdx
	movl	12(%rsi), %edi
	movl	%edx, %esi
	movl	%r8d, %edx
	callq	_bitmap_release_region
	movl	$1, %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_release_from_coherent      ; -- Begin function dma_release_from_coherent
	.p2align	2
_dma_release_from_coherent:             ; @dma_release_from_coherent
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x9, [x0]
	cbz	x9, LBB0_6
; %bb.2:
	ldr	x10, [x9]
	cmp	x10, x2
	b.hi	LBB0_6
; %bb.3:
	ldr	w12, [x9, #8]
Lloh0:
	adrp	x11, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	lsl	w12, w12, w11
	add	x12, x10, w12, sxtw
	cmp	x12, x2
	b.ls	LBB0_6
; %bb.4:
	mov	x8, x1
	sub	x10, x2, x10
	asr	x1, x10, x11
	ldr	w0, [x9, #12]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x8
	bl	_bitmap_release_region
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
.subsections_via_symbols
