	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddb_set_dma_table
_ddb_set_dma_table:                     ## @ddb_set_dma_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.3:
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movl	$4, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	32(%r15), %rcx
	movl	(%rax,%rbx,4), %esi
	leaq	(%r12,%rcx), %rdx
	addq	$-4, %rdx
	movq	%r14, %rdi
	callq	_ddbwritel
	movq	32(%r15), %rdx
	addq	%r12, %rdx
	movq	%r14, %rdi
	callq	_ddbwritel
	incq	%rbx
	movq	(%r15), %rax
	addq	$8, %r12
	cmpq	%rax, %rbx
	jb	LBB0_4
## %bb.5:
	shll	$11, %eax
	movzwl	%ax, %eax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
	movl	20(%r15), %ecx
	movl	24(%r15), %edx
	andl	$15, %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	shrl	$7, %edx
	andl	$2047, %edx                     ## imm = 0x7FF
	orl	%ecx, %edx
	movl	%edx, 16(%r15)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ddb_set_dma_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddb_set_dma_table
_ddb_set_dma_table:                     ; @ddb_set_dma_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x20, [x0]
	cbz	x20, LBB0_6
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x21, #0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	mov	w22, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x21, lsl #2]
	ldr	x8, [x20, #32]
	add	x8, x22, x8
	sub	x2, x8, #4
	mov	x0, x19
	bl	_ddbwritel
	ldr	x8, [x20, #32]
	add	x2, x22, x8
	mov	x0, x19
	bl	_ddbwritel
	add	x21, x21, #1
	ldr	x8, [x20]
	add	x22, x22, #8
	cmp	x21, x8
	b.lo	LBB0_3
; %bb.4:
	ubfiz	w8, w8, #11, #5
LBB0_5:
	ldp	w9, w10, [x20, #20]
	ubfx	w10, w10, #7, #11
	bfi	w8, w9, #16, #4
	orr	w8, w8, w10
	str	w8, [x20, #16]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ddb_set_dma_table
.subsections_via_symbols
