	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpdma_add_in_dtd               ## -- Begin function vpdma_add_in_dtd
	.p2align	4, 0x90
_vpdma_add_in_dtd:                      ## @vpdma_add_in_dtd
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, %r15
	movl	%edx, %r8d
	movl	16(%rbp), %eax
	movl	64(%rbp), %edx
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	56(%rbp), %edx
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	48(%rbp), %edx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %edx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %ebx
	movl	4(%rcx), %esi
	movq	_chan_info@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rax,4), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	8(%rcx), %eax
	movl	12(%rcx), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	32(%rbp), %r14d
	movl	24(%rbp), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	(%r15), %r13d
	movq	8(%r15), %rcx
	movq	_VPDMA_DATA_FMT_TYPE_YUV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.1:
	movq	16(%r15), %rcx
	movq	_DATA_TYPE_C420@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	sarl	%ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	sarl	%esi
	movl	$8, %r13d
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_5:
	imull	%eax, %r13d
	imull	%r8d, %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	sarl	$3, %r13d
	movq	(%rdi), %r12
	movslq	16(%rdi), %rax
	addq	8(%rdi), %rax
	leaq	48(%r12), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setb	%dil
	movl	%r8d, %ebx
	callq	_WARN_ON
	movq	16(%r15), %rdi
	movq	_VPDMA_DATA_FRAME_1D@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%cl
	movq	_VPDMA_DATA_EVEN_LINE_SKIP@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%r8b
	movq	_VPDMA_DATA_ODD_LINE_SKIP@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%r9b
	movl	%ebx, (%rsp)
	movl	$1, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_dtd_type_ctl_stride
	movl	%eax, 40(%r12)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_dtd_xfer_length_height
	movl	%eax, 36(%r12)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addl	%r13d, %eax
	addl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, (%r12)
	movq	_VPDMA_DATA_MODE_TILED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	andl	(%rax), %r14d
	setne	%dil
	movq	_DTD_DIR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	%edx, %r8d
	callq	_dtd_pkt_ctl
	movl	%eax, 32(%r12)
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_dtd_frame_width_height
	movl	%eax, 28(%r12)
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_dtd_start_h_v
	movl	%eax, 24(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%r12, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dump_dtd                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_chan_info,8,3                  ## @chan_info
	.comm	_VPDMA_DATA_FMT_TYPE_YUV,8,3    ## @VPDMA_DATA_FMT_TYPE_YUV
	.comm	_DATA_TYPE_C420,8,3             ## @DATA_TYPE_C420
	.comm	_VPDMA_DATA_FRAME_1D,4,2        ## @VPDMA_DATA_FRAME_1D
	.comm	_VPDMA_DATA_EVEN_LINE_SKIP,4,2  ## @VPDMA_DATA_EVEN_LINE_SKIP
	.comm	_VPDMA_DATA_ODD_LINE_SKIP,4,2   ## @VPDMA_DATA_ODD_LINE_SKIP
	.comm	_VPDMA_DATA_MODE_TILED,4,2      ## @VPDMA_DATA_MODE_TILED
	.comm	_DTD_DIR_IN,4,2                 ## @DTD_DIR_IN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpdma_add_in_dtd               ; -- Begin function vpdma_add_in_dtd
	.p2align	2
_vpdma_add_in_dtd:                      ; @vpdma_add_in_dtd
	.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
	str	w7, [sp, #4]                    ; 4-byte Folded Spill
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x4
	mov	x25, x2
	mov	x19, x0
	ldr	w8, [x29, #32]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #28]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #24]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #20]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	w23, [x29, #16]
	ldr	w8, [x4]
	ldp	w20, w24, [x3]
Lloh0:
	adrp	x9, _chan_info@GOTPAGE
Lloh1:
	ldr	x9, [x9, _chan_info@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w26, [x9, w6, uxtw #2]
	ldp	w9, w10, [x3, #8]
	str	w10, [sp]                       ; 4-byte Folded Spill
	ldr	x10, [x4, #8]
Lloh3:
	adrp	x11, _VPDMA_DATA_FMT_TYPE_YUV@GOTPAGE
Lloh4:
	ldr	x11, [x11, _VPDMA_DATA_FMT_TYPE_YUV@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x22, #16]
Lloh6:
	adrp	x11, _DATA_TYPE_C420@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DATA_TYPE_C420@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	asr	w10, w20, #1
	asr	w11, w24, #1
	mov	w12, #8
	csel	w8, w8, w12, ne
	csel	w24, w24, w11, ne
	csel	w20, w20, w10, ne
LBB0_2:
	mul	w21, w8, w9
	ldp	x28, x8, [x19]
	add	x27, x28, #48
	ldrsw	x9, [x19, #16]
	add	x8, x8, x9
	cmp	x8, x27
	cset	w0, lo
	bl	_WARN_ON
	ldr	x0, [x22, #16]
Lloh9:
	adrp	x8, _VPDMA_DATA_FRAME_1D@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VPDMA_DATA_FRAME_1D@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w23
	cset	w3, ne
Lloh12:
	adrp	x8, _VPDMA_DATA_EVEN_LINE_SKIP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VPDMA_DATA_EVEN_LINE_SKIP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w23
	cset	w4, ne
Lloh15:
	adrp	x8, _VPDMA_DATA_ODD_LINE_SKIP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VPDMA_DATA_ODD_LINE_SKIP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w23
	cset	w5, ne
	mov	w1, #1
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	mov	x6, x25
	bl	_dtd_type_ctl_stride
	str	w0, [x28, #40]
	ldr	w0, [sp]                        ; 4-byte Folded Reload
	mov	x1, x20
	bl	_dtd_xfer_length_height
	str	w0, [x28, #36]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	w8, w8, w21, asr #3
	madd	w8, w24, w25, w8
	str	w8, [x28]
Lloh18:
	adrp	x8, _VPDMA_DATA_MODE_TILED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VPDMA_DATA_MODE_TILED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w23
	cset	w0, ne
Lloh21:
	adrp	x8, _DTD_DIR_IN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DTD_DIR_IN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, x26
	mov	w3, #0
	mov	x4, x26
	bl	_dtd_pkt_ctl
	str	w0, [x28, #32]
	ldp	w0, w1, [sp, #16]               ; 8-byte Folded Reload
	bl	_dtd_frame_width_height
	str	w0, [x28, #28]
	ldp	w0, w1, [sp, #24]               ; 8-byte Folded Reload
	bl	_dtd_start_h_v
	str	w0, [x28, #24]
	stp	xzr, xzr, [x28, #8]
	str	x27, [x19]
	mov	x0, x28
	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
	b	_dump_dtd
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_chan_info,8,3                  ; @chan_info
	.comm	_VPDMA_DATA_FMT_TYPE_YUV,8,3    ; @VPDMA_DATA_FMT_TYPE_YUV
	.comm	_DATA_TYPE_C420,8,3             ; @DATA_TYPE_C420
	.comm	_VPDMA_DATA_FRAME_1D,4,2        ; @VPDMA_DATA_FRAME_1D
	.comm	_VPDMA_DATA_EVEN_LINE_SKIP,4,2  ; @VPDMA_DATA_EVEN_LINE_SKIP
	.comm	_VPDMA_DATA_ODD_LINE_SKIP,4,2   ; @VPDMA_DATA_ODD_LINE_SKIP
	.comm	_VPDMA_DATA_MODE_TILED,4,2      ; @VPDMA_DATA_MODE_TILED
	.comm	_DTD_DIR_IN,4,2                 ; @DTD_DIR_IN
.subsections_via_symbols
