	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_ddl
_setup_ddl:                             ## @setup_ddl
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rdx, %rdi
	callq	_nx842_get_pa
	movq	%rax, %r15
	movq	_DDE_BUFFER_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_DDE_BUFFER_LAST_MULT@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%ebx, %r13d
	testl	%edx, %edx
	je	LBB0_7
## %bb.3:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	testl	%r12d, %r12d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	_DDE_BUFFER_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_6:
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_round_down
	movl	%eax, %r13d
LBB0_7:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_LEN_ON_PAGE
	cmpl	%eax, %r13d
	jbe	LBB0_12
## %bb.8:
	movq	_DDL_LEN_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.13:
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_setup_direct_dde
	cltq
	addq	%rax, %r14
	subl	%eax, %r13d
	movq	%r14, %rdi
	callq	_nx842_get_pa
	movq	%rax, %r15
	incq	%r12
	movq	_DDL_LEN_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	addq	$4, %rbx
	testl	%r13d, %r13d
	jne	LBB0_14
LBB0_16:
	testl	%r13d, %r13d
	jne	LBB0_10
## %bb.17:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_setup_direct_dde
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	setb	%dil
	callq	_WARN_ON
	jmp	LBB0_20
LBB0_9:
	xorl	%r12d, %r12d
LBB0_10:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.11:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_18:
	subl	%r13d, %ebx
	movl	%ebx, %ecx
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_setup_indirect_dde
LBB0_20:
	xorl	%ebx, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DDE_BUFFER_ALIGN,4,2           ## @DDE_BUFFER_ALIGN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s buffer pa 0x%lx not 0x%x-byte aligned\n"

L_.str.1:                               ## @.str.1
	.asciz	"input"

L_.str.2:                               ## @.str.2
	.asciz	"output"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DDE_BUFFER_LAST_MULT,4,2       ## @DDE_BUFFER_LAST_MULT
L_.str.3:                               ## @.str.3
	.asciz	"%s buffer len 0x%x not a multiple of 0x%x\n"

	.comm	_DDL_LEN_MAX,4,2                ## @DDL_LEN_MAX
L_.str.4:                               ## @.str.4
	.asciz	"0x%x total %s bytes 0x%x too many for DDL.\n"

	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_setup_ddl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_ddl
_setup_ddl:                             ; @setup_ddl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	bl	_nx842_get_pa
	mov	x24, x0
Lloh0:
	adrp	x25, _DDE_BUFFER_ALIGN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DDE_BUFFER_ALIGN@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_IS_ALIGNED
	cbz	w0, LBB0_9
; %bb.1:
Lloh2:
	adrp	x26, _DDE_BUFFER_LAST_MULT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DDE_BUFFER_LAST_MULT@GOTPAGEOFF]
	ldr	w8, [x26]
	udiv	w9, w19, w8
	msub	w9, w9, w8, w19
	mov	x25, x19
	cbz	w9, LBB0_4
; %bb.2:
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w22, #0
	csel	x9, x10, x9, eq
	str	x8, [sp, #16]
	mov	x8, x19
	stp	x9, x8, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	cbnz	w22, LBB0_10
; %bb.3:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_round_down
	mov	x25, x0
LBB0_4:
	mov	x0, x24
	bl	_LEN_ON_PAGE
	cmp	w25, w0
	b.ls	LBB0_12
; %bb.5:
Lloh10:
	adrp	x28, _DDL_LEN_MAX@GOTPAGE
Lloh11:
	ldr	x28, [x28, _DDL_LEN_MAX@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x26, #0
	mov	x27, x21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	mov	x1, x24
	mov	x2, x25
	bl	_setup_direct_dde
	add	x23, x23, w0, sxtw
	sub	w25, w25, w0
	mov	x0, x23
	bl	_nx842_get_pa
	mov	x24, x0
	add	x26, x26, #1
	ldrsw	x8, [x28]
	add	x27, x27, #4
	cmp	x26, x8
	ccmp	w25, #0, #4, lt
	b.ne	LBB0_7
; %bb.8:
	cbnz	w25, LBB0_14
	b	LBB0_17
LBB0_9:
Lloh12:
	adrp	x8, l_.str.1@PAGE
Lloh13:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w9, [x25]
	stp	x24, x9, [sp, #8]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_10:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_12:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_setup_direct_dde
	cmp	w0, w25
	cset	w0, lo
	bl	_WARN_ON
	b	LBB0_18
LBB0_13:
	mov	w26, #0
LBB0_14:
Lloh20:
	adrp	x8, l_.str.1@PAGE
Lloh21:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh22:
	adrp	x9, l_.str.2@PAGE
Lloh23:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w22, #0
	csel	x8, x9, x8, eq
	stp	x8, x25, [sp, #8]
	str	x19, [sp]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	cbz	w22, LBB0_16
; %bb.15:
Lloh26:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_11
LBB0_16:
	sub	w19, w19, w25
LBB0_17:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x26
	mov	x3, x19
	bl	_setup_indirect_dde
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DDE_BUFFER_ALIGN,4,2           ; @DDE_BUFFER_ALIGN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s buffer pa 0x%lx not 0x%x-byte aligned\n"

l_.str.1:                               ; @.str.1
	.asciz	"input"

l_.str.2:                               ; @.str.2
	.asciz	"output"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DDE_BUFFER_LAST_MULT,4,2       ; @DDE_BUFFER_LAST_MULT
l_.str.3:                               ; @.str.3
	.asciz	"%s buffer len 0x%x not a multiple of 0x%x\n"

	.comm	_DDL_LEN_MAX,4,2                ; @DDL_LEN_MAX
l_.str.4:                               ; @.str.4
	.asciz	"0x%x total %s bytes 0x%x too many for DDL.\n"

	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_setup_ddl
.subsections_via_symbols
