	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vdoa_device_run                ## -- Begin function vdoa_device_run
	.p2align	4, 0x90
_vdoa_device_run:                       ## @vdoa_device_run
	.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	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_vdoa_wait_for_completion
LBB0_2:
	movq	%rbx, 8(%r12)
	leaq	12(%rbx), %rdi
	callq	_reinit_completion
	incl	8(%rbx)
	movq	(%rbx), %rbx
	movq	_V4L2_M2M_SRC@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_V4L2_M2M_DST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %r14
	movq	(%rbx,%r14,8), %rax
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	movl	$0, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_VDOAC_PFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_4:
	movq	_VDOAC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movl	8(%rbx,%r14,8), %edi
	shll	$16, %edi
	orl	12(%rbx,%r14,8), %edi
	movq	_VDOAFP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movq	_VDOAIEBA00@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_writel
	leaq	(%r15,%r15,2), %r15
	leaq	(%rbx,%r15,8), %rax
	addq	$16, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx,%r15,8), %edi
	shll	$16, %edi
	orl	16(%rbx,%r14,8), %edi
	movq	_VDOASL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movq	(%rbx,%r14,8), %rax
	movq	_V4L2_PIX_FMT_NV12@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_V4L2_PIX_FMT_NV21@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	leaq	(%rbx,%r14,8), %rax
	addq	$8, %rax
	movl	(%rax), %r13d
	imull	8(%rax), %r13d
LBB0_7:
	movq	_VDOAIUBO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	%r13d, %edi
	callq	_writel
	movq	_VDOAVEBA0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_writel
	movl	8(%rbx,%r15,8), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax), %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_round_up
	movq	_VDOAVUBO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_VDOAIE_EITERR@GOTPCREL(%rip), %rax
	movq	_VDOAIE_EIEOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_VDOAIE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movq	_VDOASRR_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VDOASRR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_M2M_SRC,8,3               ## @V4L2_M2M_SRC
	.comm	_V4L2_M2M_DST,8,3               ## @V4L2_M2M_DST
	.comm	_V4L2_PIX_FMT_YUYV,8,3          ## @V4L2_PIX_FMT_YUYV
	.comm	_VDOAC_PFS,4,2                  ## @VDOAC_PFS
	.comm	_VDOAC,8,3                      ## @VDOAC
	.comm	_VDOAFP,8,3                     ## @VDOAFP
	.comm	_VDOAIEBA00,8,3                 ## @VDOAIEBA00
	.comm	_VDOASL,8,3                     ## @VDOASL
	.comm	_V4L2_PIX_FMT_NV12,8,3          ## @V4L2_PIX_FMT_NV12
	.comm	_V4L2_PIX_FMT_NV21,8,3          ## @V4L2_PIX_FMT_NV21
	.comm	_VDOAIUBO,8,3                   ## @VDOAIUBO
	.comm	_VDOAVEBA0,8,3                  ## @VDOAVEBA0
	.comm	_VDOAVUBO,8,3                   ## @VDOAVUBO
	.comm	_VDOAIE_EITERR,4,2              ## @VDOAIE_EITERR
	.comm	_VDOAIE_EIEOT,4,2               ## @VDOAIE_EIEOT
	.comm	_VDOAIE,8,3                     ## @VDOAIE
	.comm	_VDOASRR_START,4,2              ## @VDOASRR_START
	.comm	_VDOASRR,8,3                    ## @VDOASRR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vdoa_device_run                ; -- Begin function vdoa_device_run
	.p2align	2
_vdoa_device_run:                       ; @vdoa_device_run
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #16]
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_vdoa_wait_for_completion
LBB0_2:
	str	x21, [x22, #8]
	add	x0, x21, #12
	bl	_reinit_completion
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	ldr	x21, [x21]
Lloh0:
	adrp	x8, _V4L2_M2M_SRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_M2M_SRC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _V4L2_M2M_DST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_M2M_DST@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
Lloh5:
	ldr	x8, [x9]
	mov	w25, #24
	madd	x26, x8, x25, x21
Lloh6:
	adrp	x8, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x10, _VDOAC_PFS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VDOAC_PFS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	x9, x8
	csel	w0, w10, wzr, eq
	ldr	x8, [x22]
Lloh12:
	adrp	x9, _VDOAC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VDOAC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x24, x26
	ldr	w8, [x24, #8]!
	ldr	w9, [x26, #12]
	orr	w0, w9, w8, lsl #16
	ldr	x8, [x22]
Lloh15:
	adrp	x9, _VDOAFP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VDOAFP@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x22]
Lloh18:
	adrp	x9, _VDOAIEBA00@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VDOAIEBA00@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	madd	x20, x23, x25, x21
	ldr	w8, [x20, #16]!
	mov	x25, x26
	ldr	w9, [x25, #16]!
	orr	w0, w9, w8, lsl #16
	ldr	x8, [x22]
Lloh21:
	adrp	x9, _VDOASL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VDOASL@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	ldr	x8, [x26]
Lloh24:
	adrp	x9, _V4L2_PIX_FMT_NV12@GOTPAGE
Lloh25:
	ldr	x9, [x9, _V4L2_PIX_FMT_NV12@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x10, _V4L2_PIX_FMT_NV21@GOTPAGE
Lloh28:
	ldr	x10, [x10, _V4L2_PIX_FMT_NV21@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x25]
	ldr	w9, [x24]
	mul	w0, w9, w8
LBB0_4:
	ldr	x8, [x22]
Lloh30:
	adrp	x9, _VDOAIUBO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _VDOAIUBO@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x22]
Lloh33:
	adrp	x9, _VDOAVEBA0@GOTPAGE
Lloh34:
	ldr	x9, [x9, _VDOAVEBA0@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	ldr	w8, [x20]
	mov	w9, #24
	madd	x9, x23, x9, x21
	ldr	w9, [x9, #8]
	mul	w0, w9, w8
	mov	w1, #4096
	bl	_round_up
	ldr	x8, [x22]
Lloh36:
	adrp	x9, _VDOAVUBO@GOTPAGE
Lloh37:
	ldr	x9, [x9, _VDOAVUBO@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh39:
	adrp	x8, _VDOAIE_EITERR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _VDOAIE_EITERR@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _VDOAIE_EIEOT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _VDOAIE_EIEOT@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x22]
Lloh45:
	adrp	x9, _VDOAIE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _VDOAIE@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh48:
	adrp	x8, _VDOASRR_START@GOTPAGE
Lloh49:
	ldr	x8, [x8, _VDOASRR_START@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	ldr	x8, [x22]
Lloh51:
	adrp	x9, _VDOASRR@GOTPAGE
Lloh52:
	ldr	x9, [x9, _VDOASRR@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_M2M_SRC,8,3               ; @V4L2_M2M_SRC
	.comm	_V4L2_M2M_DST,8,3               ; @V4L2_M2M_DST
	.comm	_V4L2_PIX_FMT_YUYV,8,3          ; @V4L2_PIX_FMT_YUYV
	.comm	_VDOAC_PFS,4,2                  ; @VDOAC_PFS
	.comm	_VDOAC,8,3                      ; @VDOAC
	.comm	_VDOAFP,8,3                     ; @VDOAFP
	.comm	_VDOAIEBA00,8,3                 ; @VDOAIEBA00
	.comm	_VDOASL,8,3                     ; @VDOASL
	.comm	_V4L2_PIX_FMT_NV12,8,3          ; @V4L2_PIX_FMT_NV12
	.comm	_V4L2_PIX_FMT_NV21,8,3          ; @V4L2_PIX_FMT_NV21
	.comm	_VDOAIUBO,8,3                   ; @VDOAIUBO
	.comm	_VDOAVEBA0,8,3                  ; @VDOAVEBA0
	.comm	_VDOAVUBO,8,3                   ; @VDOAVUBO
	.comm	_VDOAIE_EITERR,4,2              ; @VDOAIE_EITERR
	.comm	_VDOAIE_EIEOT,4,2               ; @VDOAIE_EIEOT
	.comm	_VDOAIE,8,3                     ; @VDOAIE
	.comm	_VDOASRR_START,4,2              ; @VDOASRR_START
	.comm	_VDOASRR,8,3                    ; @VDOASRR
.subsections_via_symbols
