	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vdoa_context_configure         ## -- Begin function vdoa_context_configure
	.p2align	4, 0x90
_vdoa_context_configure:                ## @vdoa_context_configure
	.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	%esi, %r15d
	leal	-8193(%r15), %eax
	cmpl	$-8177, %eax                    ## imm = 0xE00F
	jae	LBB0_1
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r14d
	leal	-16(%r14), %eax
	cmpl	$4080, %eax                     ## imm = 0xFF0
	ja	LBB0_3
## %bb.2:
	movl	%r14d, %eax
	orl	%r15d, %eax
	andl	$15, %eax
	jne	LBB0_3
## %bb.4:
	movl	%ecx, %r12d
	movl	%ecx, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.5:
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.6:
	movq	(%rdi), %r13
	movq	_V4L2_M2M_SRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_V4L2_M2M_DST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, (%r13,%rax,4)
	movl	%r14d, 4(%r13,%rax,4)
	movl	%r15d, 8(%r13,%rax,4)
	movl	%r14d, %edi
	imull	%r15d, %edi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_round_up
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%r13,%rdx,4), %ecx
	imull	%r14d, %ecx
	shrl	%ecx
	addl	%eax, %ecx
	movl	%ecx, 12(%r13,%rdx,4)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,4), %rax
	movl	%r15d, (%r13,%rax,4)
	movl	%r14d, 4(%r13,%rax,4)
	movl	%r12d, 16(%r13,%rax,4)
	cmpl	$128, %r12d
	jne	LBB0_8
## %bb.7:
	addl	%r15d, %r15d
	movl	%r15d, 8(%r13,%rax,4)
	imull	%r14d, %r15d
	movl	%r15d, 12(%r13,%rax,4)
	jmp	LBB0_9
LBB0_8:
	movl	%r15d, 8(%r13,%rax,4)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rcx,2), %ecx
	shrl	%ecx
	movl	%ecx, 12(%r13,%rax,4)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_M2M_SRC,8,3               ## @V4L2_M2M_SRC
	.comm	_V4L2_M2M_DST,8,3               ## @V4L2_M2M_DST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vdoa_context_configure         ; -- Begin function vdoa_context_configure
	.p2align	2
_vdoa_context_configure:                ; @vdoa_context_configure
	.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	w8, #-8193
	mov	w9, #-8177
	add	w8, w1, w8
	cmp	w8, w9
	b.hs	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
	ret
LBB0_3:
	mov	x20, x2
	sub	w8, w2, #16
	cmp	w8, #4080
	b.hi	LBB0_1
; %bb.4:
	mov	x19, x1
	orr	w8, w20, w1
	and	w8, w8, #0xf
	cbnz	w8, LBB0_1
; %bb.5:
	mov	x21, x3
	and	w8, w3, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.6:
	cbz	x0, LBB0_2
; %bb.7:
	ldr	x23, [x0]
Lloh3:
	adrp	x8, _V4L2_M2M_SRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_M2M_SRC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _V4L2_M2M_DST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_M2M_DST@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x9]
	mov	w25, #20
	madd	x26, x8, x25, x23
	stp	w19, w20, [x26]
	str	w19, [x26, #8]
	mul	w22, w20, w19
	mov	x0, x22
	mov	w1, #4096
	bl	_round_up
	ldr	w8, [x26, #8]
	mul	w8, w8, w20
	add	w8, w0, w8, lsr #1
	str	w8, [x26, #12]
	madd	x8, x24, x25, x23
	stp	w19, w20, [x8]
	str	w21, [x8, #16]
	cmp	w21, #128
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	lsl	w8, w19, #1
	mov	w9, #20
	madd	x9, x24, x9, x23
	mul	w10, w8, w20
	stp	w8, w10, [x9, #8]
	b	LBB0_2
LBB0_9:
	mov	w0, #0
	mov	w8, #20
	madd	x8, x24, x8, x23
	add	w9, w22, w22, lsl #1
	lsr	w9, w9, #1
	stp	w19, w9, [x8, #8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_M2M_SRC,8,3               ; @V4L2_M2M_SRC
	.comm	_V4L2_M2M_DST,8,3               ; @V4L2_M2M_DST
.subsections_via_symbols
