	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvin_crop_scale_comp           ## -- Begin function rvin_crop_scale_comp
	.p2align	4, 0x90
_rvin_crop_scale_comp:                  ## @rvin_crop_scale_comp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %esi
	movq	_VNSPPRC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rvin_write
	movl	24(%rbx), %eax
	movl	28(%rbx), %ecx
	leal	(%rax,%rcx), %esi
	decl	%esi
	movq	_VNEPPRC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rvin_write
	movl	(%rbx), %eax
	movl	32(%rbx), %esi
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	movq	_VNSLPRC_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_rvin_write
	movl	36(%rbx), %eax
	addl	32(%rbx), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	decl	%esi
	jmp	LBB0_3
LBB0_2:
	movq	_VNSLPRC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rvin_write
	movl	32(%rbx), %eax
	movl	36(%rbx), %ecx
	leal	(%rax,%rcx), %esi
	decl	%esi
LBB0_3:
	movq	_VNELPRC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rvin_write
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_RCAR_GEN3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_rvin_crop_scale_comp_gen2
LBB0_5:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_rvin_format_from_pixel
	movq	%rax, %rcx
	movl	4(%rbx), %eax
	cltd
	idivl	(%rcx)
	movq	_VNIS_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rvin_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VNSPPRC_REG,4,2                ## @VNSPPRC_REG
	.comm	_VNEPPRC_REG,4,2                ## @VNEPPRC_REG
	.comm	_VNSLPRC_REG,4,2                ## @VNSLPRC_REG
	.comm	_VNELPRC_REG,4,2                ## @VNELPRC_REG
	.comm	_RCAR_GEN3,8,3                  ## @RCAR_GEN3
	.comm	_VNIS_REG,4,2                   ## @VNIS_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvin_crop_scale_comp           ; -- Begin function rvin_crop_scale_comp
	.p2align	2
_rvin_crop_scale_comp:                  ; @rvin_crop_scale_comp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w1, [x0, #24]
Lloh0:
	adrp	x8, _VNSPPRC_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VNSPPRC_REG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_rvin_write
	ldp	w8, w9, [x19, #24]
	add	w8, w8, w9
	sub	w1, w8, #1
Lloh3:
	adrp	x8, _VNEPPRC_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VNEPPRC_REG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rvin_write
	ldr	w8, [x19]
	sub	w8, w8, #128
	ldr	w1, [x19, #32]
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w1, w8, #1
Lloh6:
	adrp	x8, _VNSLPRC_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VNSLPRC_REG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rvin_write
	ldp	w8, w9, [x19, #32]
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _VNSLPRC_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VNSLPRC_REG@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rvin_write
	ldp	w8, w9, [x19, #32]
	add	w8, w8, w9
LBB0_3:
	sub	w1, w8, #1
Lloh12:
	adrp	x8, _VNELPRC_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VNELPRC_REG@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rvin_write
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _RCAR_GEN3@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RCAR_GEN3@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_rvin_crop_scale_comp_gen2
LBB0_5:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_rvin_format_from_pixel
	ldr	w8, [x19, #4]
	ldr	w9, [x0]
	sdiv	w1, w8, w9
Lloh18:
	adrp	x8, _VNIS_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VNIS_REG@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rvin_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_VNSPPRC_REG,4,2                ; @VNSPPRC_REG
	.comm	_VNEPPRC_REG,4,2                ; @VNEPPRC_REG
	.comm	_VNSLPRC_REG,4,2                ; @VNSLPRC_REG
	.comm	_VNELPRC_REG,4,2                ; @VNELPRC_REG
	.comm	_RCAR_GEN3,8,3                  ; @RCAR_GEN3
	.comm	_VNIS_REG,4,2                   ; @VNIS_REG
.subsections_via_symbols
