	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpdma_rawchan_add_out_dtd      ## -- Begin function vpdma_rawchan_add_out_dtd
	.p2align	4, 0x90
_vpdma_rawchan_add_out_dtd:             ## @vpdma_rawchan_add_out_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r12
	movl	40(%rbp), %r15d
	movl	32(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	4(%rcx), %esi
	movl	8(%rcx), %r8d
	movl	(%r12), %r13d
	movq	8(%r12), %rcx
	movq	_VPDMA_DATA_FMT_TYPE_YUV@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_2
## %bb.1:
	movq	16(%r12), %rcx
	movq	_DATA_TYPE_C420@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movl	$8, %ecx
	cmovel	%ecx, %r13d
	sete	%cl
	sarl	%cl, %esi
LBB0_2:
	imull	%r8d, %r13d
	imull	%edx, %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	sarl	$3, %r13d
	movq	(%rdi), %r14
	movslq	16(%rdi), %rax
	addq	8(%rdi), %rax
	leaq	56(%r14), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setb	%dil
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_WARN_ON
	movq	16(%r12), %rdi
	movq	_VPDMA_DATA_FRAME_1D@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r15d, %eax
	setne	%cl
	movq	_VPDMA_DATA_EVEN_LINE_SKIP@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	movl	(%rax), %eax
	andl	%r15d, %eax
	setne	%r8b
	movq	_VPDMA_DATA_ODD_LINE_SKIP@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	movl	(%rax), %eax
	andl	%r15d, %eax
	setne	%r9b
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_dtd_type_ctl_stride
	movl	%eax, 48(%r14)
	movq	$0, 40(%r14)
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%r13d, %ebx
	movl	%ebx, (%r14)
	movq	_VPDMA_DATA_MODE_TILED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	andl	(%rax), %r15d
	setne	%dil
	movq	_DTD_DIR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	%edx, %r8d
	callq	_dtd_pkt_ctl
	movl	%eax, 32(%r14)
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dtd_desc_write_addr
	movl	%eax, 28(%r14)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_dtd_max_width_height
	movl	%eax, 24(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%r14, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dump_dtd                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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_OUT,4,2                ## @DTD_DIR_OUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpdma_rawchan_add_out_dtd      ; -- Begin function vpdma_rawchan_add_out_dtd
	.p2align	2
_vpdma_rawchan_add_out_dtd:             ; @vpdma_rawchan_add_out_dtd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	w6, w7, [sp, #8]                ; 8-byte Folded Spill
	mov	x23, x5
	mov	x26, x4
	mov	x25, x2
	mov	x19, x0
	ldp	w22, w27, [x29, #16]
	ldp	w20, w8, [x3, #4]
	ldr	w9, [x4]
	ldr	x10, [x4, #8]
Lloh0:
	adrp	x11, _VPDMA_DATA_FMT_TYPE_YUV@GOTPAGE
Lloh1:
	ldr	x11, [x11, _VPDMA_DATA_FMT_TYPE_YUV@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x26, #16]
Lloh3:
	adrp	x11, _DATA_TYPE_C420@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DATA_TYPE_C420@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	cset	w10, eq
	asr	w20, w20, w10
	mov	w10, #8
	csel	w9, w10, w9, eq
LBB0_2:
	mul	w21, w9, w8
	ldp	x24, x8, [x19]
	add	x28, x24, #56
	ldrsw	x9, [x19, #16]
	add	x8, x8, x9
	cmp	x8, x28
	cset	w0, lo
	bl	_WARN_ON
	ldr	x0, [x26, #16]
Lloh6:
	adrp	x8, _VPDMA_DATA_FRAME_1D@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPDMA_DATA_FRAME_1D@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w27
	cset	w3, ne
Lloh9:
	adrp	x8, _VPDMA_DATA_EVEN_LINE_SKIP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VPDMA_DATA_EVEN_LINE_SKIP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w27
	cset	w4, ne
Lloh12:
	adrp	x8, _VPDMA_DATA_ODD_LINE_SKIP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VPDMA_DATA_ODD_LINE_SKIP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w27
	cset	w5, ne
	mov	w1, #1
	mov	w2, #0
	mov	x6, x25
	bl	_dtd_type_ctl_stride
	str	w0, [x24, #48]
	str	xzr, [x24, #40]
	madd	w8, w20, w25, w23
	add	w8, w8, w21, asr #3
	str	w8, [x24]
Lloh15:
	adrp	x8, _VPDMA_DATA_MODE_TILED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VPDMA_DATA_MODE_TILED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w27
	cset	w0, ne
Lloh18:
	adrp	x8, _DTD_DIR_OUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DTD_DIR_OUT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x2, x22
	mov	w3, #0
	mov	x4, x22
	bl	_dtd_pkt_ctl
	str	w0, [x24, #32]
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_dtd_desc_write_addr
	str	w0, [x24, #28]
	ldp	w0, w1, [sp, #8]                ; 8-byte Folded Reload
	bl	_dtd_max_width_height
	str	w0, [x24, #24]
	stp	xzr, xzr, [x24, #8]
	str	x28, [x19]
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_dump_dtd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.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_OUT,4,2                ; @DTD_DIR_OUT
.subsections_via_symbols
