	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_out_dtd
_add_out_dtd:                           ## @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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %r13
	movq	_port_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	%esi, %rcx
	movq	_VPE_PORT_MV_OUT@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpl	$0, 32(%r14)
	sete	%al
	movq	_vpdma_misc_fmts@GOTPCREL(%rip), %rcx
	movq	_VPDMA_DATA_FMT_MV@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r15
	shlq	$2, %r15
	addq	(%rcx), %r15
	movq	(%r14), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	_Q_DATA_SRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(,%rax,8), %r12
	addq	%r13, %r12
	jmp	LBB0_11
LBB0_2:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_Q_DATA_DST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,4), %rbx
	leaq	(,%rbx,8), %r12
	addq	%r13, %r12
	movq	32(%r13,%rbx,8), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.4:
	movl	(%rdx,%rcx,8), %esi
	jmp	LBB0_5
LBB0_3:
	xorl	%esi, %esi
LBB0_5:
	movq	40(%r14), %rdi
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r15
	cmpl	$1, (%r12)
	jne	LBB0_8
## %bb.6:
	testl	%esi, %esi
	je	LBB0_8
## %bb.7:
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movq	8(%r13,%rbx,8), %rcx
	movl	16(%r13,%rbx,8), %edx
	imull	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_16
LBB0_10:
	addl	%eax, %edx
LBB0_11:
	movl	20(%r12), %ebx
	movq	_Q_DATA_FRAME_1D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	je	LBB0_13
## %bb.12:
	movq	_VPDMA_DATA_FRAME_1D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movl	%edx, %r13d
	movq	_Q_DATA_MODE_TILED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	je	LBB0_15
## %bb.14:
	movq	_VPDMA_DATA_MODE_TILED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_15:
	orl	%eax, %ebx
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	_VPDMA_MAX_SIZE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_W@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX_H@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_vpdma_set_max_size
	addq	$8, %r14
	movl	28(%r12), %esi
	movq	8(%r12), %rax
	movq	_VPE_LUMA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	addq	$24, %r12
	movq	_MAX_OUT_WIDTH_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MAX_OUT_HEIGHT_REG1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rax,%rcx,8), %eax
	movq	%r14, %rdi
	movq	%r12, %rcx
	movq	%r15, %r8
	movl	%r13d, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_vpdma_add_out_dtd
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	_vb2_dma_contig_plane_dma_addr
	xorl	%edx, %edx
	testl	%eax, %eax
	jne	LBB0_10
LBB0_16:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vpe_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_DATA_DST,8,3                 ## @Q_DATA_DST
	.comm	_port_data,8,3                  ## @port_data
	.comm	_VPE_PORT_MV_OUT,4,2            ## @VPE_PORT_MV_OUT
	.comm	_vpdma_misc_fmts,8,3            ## @vpdma_misc_fmts
	.comm	_VPDMA_DATA_FMT_MV,8,3          ## @VPDMA_DATA_FMT_MV
	.comm	_Q_DATA_SRC,8,3                 ## @Q_DATA_SRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acquiring output buffer(%d) dma_addr failed\n"

	.comm	_Q_DATA_FRAME_1D,4,2            ## @Q_DATA_FRAME_1D
	.comm	_VPDMA_DATA_FRAME_1D,4,2        ## @VPDMA_DATA_FRAME_1D
	.comm	_Q_DATA_MODE_TILED,4,2          ## @Q_DATA_MODE_TILED
	.comm	_VPDMA_DATA_MODE_TILED,4,2      ## @VPDMA_DATA_MODE_TILED
	.comm	_VPDMA_MAX_SIZE1,4,2            ## @VPDMA_MAX_SIZE1
	.comm	_MAX_W,4,2                      ## @MAX_W
	.comm	_MAX_H,4,2                      ## @MAX_H
	.comm	_VPE_LUMA,8,3                   ## @VPE_LUMA
	.comm	_MAX_OUT_WIDTH_REG1,4,2         ## @MAX_OUT_WIDTH_REG1
	.comm	_MAX_OUT_HEIGHT_REG1,4,2        ## @MAX_OUT_HEIGHT_REG1
	.no_dead_strip	_add_out_dtd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_out_dtd
_add_out_dtd:                           ; @add_out_dtd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x25, [x0, #24]
Lloh0:
	adrp	x8, _port_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _port_data@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	sxtw	x23, w21
Lloh3:
	adrp	x8, _VPE_PORT_MV_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPE_PORT_MV_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #32]
	cmp	w8, #0
	cset	w8, eq
Lloh6:
	adrp	x9, _vpdma_misc_fmts@GOTPAGE
Lloh7:
	ldr	x9, [x9, _vpdma_misc_fmts@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _VPDMA_DATA_FMT_MV@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VPDMA_DATA_FMT_MV@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	x11, [x19]
	ldr	w21, [x11, w8, uxtw #2]
	add	x20, x9, x10, lsl #2
Lloh12:
	adrp	x8, _Q_DATA_SRC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Q_DATA_SRC@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	mov	w9, #40
	madd	x24, x8, x9, x25
	b	LBB0_9
LBB0_2:
Lloh15:
	adrp	x8, _Q_DATA_DST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Q_DATA_DST@GOTPAGEOFF]
Lloh17:
	ldr	x26, [x8]
	mov	w8, #40
	madd	x24, x26, x8, x25
	ldr	x0, [x19, #40]
	ldr	x8, [x24, #32]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_6
; %bb.3:
	lsl	x9, x23, #3
	ldrsw	x1, [x22, x9]
	ldr	x8, [x8]
	ldr	x20, [x8, x1, lsl #3]
	ldr	w8, [x24]
	cmp	w8, #1
	ccmp	w1, #0, #4, eq
	b.eq	LBB0_7
; %bb.4:
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	mov	w8, #40
	madd	x8, x26, x8, x25
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	ldr	w8, [x8, #16]
	mul	w8, w8, w9
	cbnz	w0, LBB0_8
LBB0_5:
	ldr	x0, [x19, #16]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_vpe_err
LBB0_6:
	mov	w1, #0
	ldr	x8, [x8]
	ldr	x20, [x8]
LBB0_7:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_vb2_dma_contig_plane_dma_addr
	mov	w8, #0
	cbz	w0, LBB0_5
LBB0_8:
	add	w21, w8, w0
LBB0_9:
	ldr	w8, [x24, #20]
Lloh20:
	adrp	x9, _Q_DATA_FRAME_1D@GOTPAGE
Lloh21:
	ldr	x9, [x9, _Q_DATA_FRAME_1D@GOTPAGEOFF]
Lloh22:
	adrp	x10, _VPDMA_DATA_FRAME_1D@GOTPAGE
Lloh23:
	ldr	x10, [x10, _VPDMA_DATA_FRAME_1D@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh26:
	adrp	x10, _Q_DATA_MODE_TILED@GOTPAGE
Lloh27:
	ldr	x10, [x10, _Q_DATA_MODE_TILED@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
Lloh29:
	adrp	x11, _VPDMA_DATA_MODE_TILED@GOTPAGE
Lloh30:
	ldr	x11, [x11, _VPDMA_DATA_MODE_TILED@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w25, w8, w9
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _VPDMA_MAX_SIZE1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VPDMA_MAX_SIZE1@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _MAX_W@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MAX_W@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x8, _MAX_H@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MAX_H@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
	bl	_vpdma_set_max_size
	add	x0, x19, #8
	ldr	w1, [x24, #28]
	ldr	x8, [x24, #8]
Lloh41:
	adrp	x9, _VPE_LUMA@GOTPAGE
Lloh42:
	ldr	x9, [x9, _VPE_LUMA@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
	add	x3, x24, #24
Lloh44:
	adrp	x8, _MAX_OUT_WIDTH_REG1@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MAX_OUT_WIDTH_REG1@GOTPAGEOFF]
Lloh46:
	ldr	w6, [x8]
Lloh47:
	adrp	x8, _MAX_OUT_HEIGHT_REG1@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MAX_OUT_HEIGHT_REG1@GOTPAGEOFF]
Lloh49:
	ldr	w7, [x8]
	add	x8, x22, x23, lsl #3
	ldr	w8, [x8, #4]
	stp	w8, w25, [sp]
	mov	x4, x20
	mov	x5, x21
	bl	_vpdma_add_out_dtd
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_DATA_DST,8,3                 ; @Q_DATA_DST
	.comm	_port_data,8,3                  ; @port_data
	.comm	_VPE_PORT_MV_OUT,4,2            ; @VPE_PORT_MV_OUT
	.comm	_vpdma_misc_fmts,8,3            ; @vpdma_misc_fmts
	.comm	_VPDMA_DATA_FMT_MV,8,3          ; @VPDMA_DATA_FMT_MV
	.comm	_Q_DATA_SRC,8,3                 ; @Q_DATA_SRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acquiring output buffer(%d) dma_addr failed\n"

	.comm	_Q_DATA_FRAME_1D,4,2            ; @Q_DATA_FRAME_1D
	.comm	_VPDMA_DATA_FRAME_1D,4,2        ; @VPDMA_DATA_FRAME_1D
	.comm	_Q_DATA_MODE_TILED,4,2          ; @Q_DATA_MODE_TILED
	.comm	_VPDMA_DATA_MODE_TILED,4,2      ; @VPDMA_DATA_MODE_TILED
	.comm	_VPDMA_MAX_SIZE1,4,2            ; @VPDMA_MAX_SIZE1
	.comm	_MAX_W,4,2                      ; @MAX_W
	.comm	_MAX_H,4,2                      ; @MAX_H
	.comm	_VPE_LUMA,8,3                   ; @VPE_LUMA
	.comm	_MAX_OUT_WIDTH_REG1,4,2         ; @MAX_OUT_WIDTH_REG1
	.comm	_MAX_OUT_HEIGHT_REG1,4,2        ; @MAX_OUT_HEIGHT_REG1
	.no_dead_strip	_add_out_dtd
.subsections_via_symbols
