	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_cleanup_sde_map
_sdma_cleanup_sde_map:                  ## @sdma_cleanup_sde_map
	.cfi_startproc
## %bb.0:
	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	(%rdi), %edx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	leaq	(,%rdx,8), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rdi)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rdi
	addq	$8, %rax
	cmpq	%rax, %rcx
	jne	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	leaq	8(%rdi), %rsi
	shll	$3, %edx
	subl	%eax, %edx
	addl	$-8, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	movl	(%rbx), %eax
	decl	%eax
	movl	%eax, (%rbx)
	movl	$1, %edi
	cmovnel	%eax, %edi
	callq	_roundup_pow_of_two
	decl	%eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sdma_populate_sde_map          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sdma_cleanup_sde_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_cleanup_sde_map
_sdma_cleanup_sde_map:                  ; @sdma_cleanup_sde_map
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	lsl	w9, w8, #3
	sub	w2, w9, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x0]
	cmp	x9, x1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #8
	sub	w2, w2, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	x1, x0, #8
	bl	_memmove
	ldr	w8, [x19]
	subs	w8, w8, #1
	str	w8, [x19]
	csinc	w0, w8, wzr, ne
	bl	_roundup_pow_of_two
	sub	w8, w0, #1
	str	w8, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdma_populate_sde_map
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sdma_cleanup_sde_map
.subsections_via_symbols
