	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vou_adjust_input
_vou_adjust_input:                      ## @vou_adjust_input
	.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, %r12
	movq	_UINT_MAX@GOTPCREL(%rip), %rcx
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movl	$576, %eax                      ## imm = 0x240
	movl	$480, %ebx                      ## imm = 0x1E0
	cmovel	%eax, %ebx
	movl	(%rcx), %r14d
	movq	_VOU_MIN_IMAGE_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VOU_MAX_IMAGE_WIDTH@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	4(%rdi), %r8
	movq	_VOU_MIN_IMAGE_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movl	$2, %ecx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	pushq	$0
	pushq	$1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	pushq	%rbx
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movq	_vou_scale_h_num@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movq	_vou_scale_h_den@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	(%rbx), %r9
	movl	(%r15), %edi
	movl	%eax, %ebx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%rbx
	movl	%ebx, %ecx
	shlq	$2, %rcx
	movl	(%r8,%rcx), %eax
	imull	16(%r12), %eax
	xorl	%edx, %edx
	divl	(%r9,%rcx)
	cmpl	%edi, %eax
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %ecx
	movl	%eax, %esi
	subl	%ecx, %esi
	movl	%esi, %edx
	negl	%edx
	cmovsl	%esi, %edx
	cmpl	%r14d, %edx
	cmovbl	%ebx, %r13d
	cmovbl	%eax, %r15d
	cmovbl	%edx, %r14d
	cmpl	%ecx, %eax
	jne	LBB0_1
LBB0_4:
	movl	%r15d, (%r12)
	movl	%r13d, 8(%r12)
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_vou_scale_v_num@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movq	_vou_scale_v_den@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	(%r14), %r9
	movl	%eax, %edi
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edi, %edi
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	decq	%rdi
	movl	%edi, %ecx
	shlq	$2, %rcx
	movl	(%r8,%rcx), %eax
	imull	20(%r12), %eax
	xorl	%edx, %edx
	divl	(%r9,%rcx)
	cmpl	%r10d, %eax
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r11), %ecx
	movl	%eax, %esi
	subl	%ecx, %esi
	movl	%esi, %edx
	negl	%edx
	cmovsl	%esi, %edx
	cmpl	%ebx, %edx
	cmovbl	%edi, %r13d
	cmovbl	%eax, %r15d
	cmovbl	%edx, %ebx
	cmpl	%ecx, %eax
	jne	LBB0_5
LBB0_8:
	movl	%r15d, 4(%r12)
	movl	%r13d, 12(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_VOU_MIN_IMAGE_WIDTH,4,2        ## @VOU_MIN_IMAGE_WIDTH
	.comm	_VOU_MAX_IMAGE_WIDTH,4,2        ## @VOU_MAX_IMAGE_WIDTH
	.comm	_VOU_MIN_IMAGE_HEIGHT,4,2       ## @VOU_MIN_IMAGE_HEIGHT
	.comm	_vou_scale_h_num,8,3            ## @vou_scale_h_num
	.comm	_vou_scale_h_den,8,3            ## @vou_scale_h_den
	.comm	_vou_scale_v_num,8,3            ## @vou_scale_v_num
	.comm	_vou_scale_v_den,8,3            ## @vou_scale_v_den
	.no_dead_strip	_vou_adjust_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vou_adjust_input
_vou_adjust_input:                      ; @vou_adjust_input
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _UINT_MAX@GOTPAGEOFF]
	ldr	w25, [x24]
Lloh2:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w1
	mov	w8, #480
	mov	w9, #576
	csel	w20, w9, w8, eq
Lloh5:
	adrp	x8, _VOU_MIN_IMAGE_WIDTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VOU_MIN_IMAGE_WIDTH@GOTPAGEOFF]
Lloh7:
	adrp	x26, _VOU_MAX_IMAGE_WIDTH@GOTPAGE
Lloh8:
	ldr	x26, [x26, _VOU_MAX_IMAGE_WIDTH@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x26]
	add	x21, x0, #4
Lloh10:
	adrp	x8, _VOU_MIN_IMAGE_HEIGHT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VOU_MIN_IMAGE_HEIGHT@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	str	wzr, [sp]
	mov	w3, #2
	mov	x4, x21
	mov	x6, x20
	mov	w7, #1
	bl	_v4l_bound_align_image
Lloh13:
	adrp	x27, _vou_scale_h_num@GOTPAGE
Lloh14:
	ldr	x27, [x27, _vou_scale_h_num@GOTPAGEOFF]
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	mov	w22, #0
	mov	w23, #0
Lloh15:
	adrp	x8, _vou_scale_h_den@GOTPAGE
Lloh16:
	ldr	x8, [x8, _vou_scale_h_den@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [x27]
	ldr	w10, [x26]
	mov	w11, w0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w11, #1
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x11, x11, #1
	ubfiz	x12, x11, #2, #32
	ldr	w13, [x8, x12]
	ldr	w14, [x19, #16]
	mul	w13, w13, w14
	ldr	w12, [x9, x12]
	udiv	w12, w13, w12
	cmp	w12, w10
	b.hi	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w13, [x19]
	subs	w14, w12, w13
	cneg	w14, w14, mi
	cmp	w14, w25
	csel	w22, w11, w22, lo
	csel	w23, w12, w23, lo
	csel	w25, w14, w25, lo
	cmp	w12, w13
	b.ne	LBB0_1
LBB0_4:
	str	w23, [x19]
	str	w22, [x19, #8]
	ldr	w24, [x24]
Lloh18:
	adrp	x25, _vou_scale_v_num@GOTPAGE
Lloh19:
	ldr	x25, [x25, _vou_scale_v_num@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
Lloh20:
	adrp	x8, _vou_scale_v_den@GOTPAGE
Lloh21:
	ldr	x8, [x8, _vou_scale_v_den@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x25]
	mov	w10, w0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x10, x10, #1
	ubfiz	x11, x10, #2, #32
	ldr	w12, [x8, x11]
	ldr	w13, [x19, #20]
	mul	w12, w12, w13
	ldr	w11, [x9, x11]
	udiv	w11, w12, w11
	cmp	w11, w20
	b.hi	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x21]
	subs	w13, w11, w12
	cneg	w13, w13, mi
	cmp	w13, w24
	csel	w22, w10, w22, lo
	csel	w23, w11, w23, lo
	csel	w24, w13, w24, lo
	cmp	w11, w12
	b.ne	LBB0_5
LBB0_8:
	str	w23, [x19, #4]
	str	w22, [x19, #12]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_VOU_MIN_IMAGE_WIDTH,4,2        ; @VOU_MIN_IMAGE_WIDTH
	.comm	_VOU_MAX_IMAGE_WIDTH,4,2        ; @VOU_MAX_IMAGE_WIDTH
	.comm	_VOU_MIN_IMAGE_HEIGHT,4,2       ; @VOU_MIN_IMAGE_HEIGHT
	.comm	_vou_scale_h_num,8,3            ; @vou_scale_h_num
	.comm	_vou_scale_h_den,8,3            ; @vou_scale_h_den
	.comm	_vou_scale_v_num,8,3            ; @vou_scale_v_num
	.comm	_vou_scale_v_den,8,3            ; @vou_scale_v_den
	.no_dead_strip	_vou_adjust_input
.subsections_via_symbols
