	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsc_check_src_scale_info       ## -- Begin function gsc_check_src_scale_info
	.p2align	4, 0x90
_gsc_check_src_scale_info:              ## @gsc_check_src_scale_info
	.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	%r9, %r14
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movl	(%rax), %edi
	callq	_is_yuv420
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GSC_SC_ALIGN_4@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	movl	%ecx, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_is_yuv422
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_GSC_SC_ALIGN_4@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GSC_SC_ALIGN_2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	imull	(%r13), %ecx
	movl	(%r12), %esi
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_8
## %bb.7:
	movl	%edx, %r15d
	subl	%edx, %esi
	movl	%esi, (%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	callq	_gsc_cal_prescaler_ratio
	movl	(%r12), %edx
	addl	%edx, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_info
LBB0_8:
	imull	(%r14), %ebx
	movl	4(%r12), %esi
	movl	%esi, %eax
	cltd
	idivl	%ebx
	testl	%edx, %edx
	je	LBB0_9
## %bb.10:
	movl	%edx, %ebx
	subl	%edx, %esi
	movl	%esi, 4(%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rcx
	callq	_gsc_cal_prescaler_ratio
	movl	4(%r12), %edx
	addl	%edx, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GSC_SC_ALIGN_2@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GSC_SC_ALIGN_4,4,2             ## @GSC_SC_ALIGN_4
	.comm	_GSC_SC_ALIGN_2,4,2             ## @GSC_SC_ALIGN_2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cropped src width size is recalculated from %d to %d"

L_.str.1:                               ## @.str.1
	.asciz	"cropped src height size is recalculated from %d to %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsc_check_src_scale_info       ; -- Begin function gsc_check_src_scale_info
	.p2align	2
_gsc_check_src_scale_info:              ; @gsc_check_src_scale_info
	.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, x5
	mov	x21, x4
	mov	x24, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x8, [x1, #8]
	ldr	w0, [x8]
	bl	_is_yuv420
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _GSC_SC_ALIGN_4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSC_SC_ALIGN_4@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	mov	x25, x8
	b	LBB0_5
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_is_yuv422
	cbz	x0, LBB0_10
; %bb.4:
Lloh2:
	adrp	x8, _GSC_SC_ALIGN_4@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GSC_SC_ALIGN_4@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _GSC_SC_ALIGN_2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GSC_SC_ALIGN_2@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x9]
LBB0_5:
	ldr	w9, [x20]
	ldr	w10, [x23]
	mul	w8, w10, w8
	sdiv	w10, w9, w8
	msub	w26, w10, w8, w9
	cbz	w26, LBB0_7
; %bb.6:
	sub	w1, w9, w26
	str	w1, [x20]
	mov	x0, x22
	mov	x2, x24
	mov	x3, x23
	bl	_gsc_cal_prescaler_ratio
	ldr	w2, [x20]
	add	w1, w2, w26
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_7:
	ldr	w8, [x20, #4]
	ldr	w9, [x19]
	mul	w9, w9, w25
	sdiv	w10, w8, w9
	msub	w23, w10, w9, w8
	cbz	w23, LBB0_9
; %bb.8:
	sub	w1, w8, w23
	str	w1, [x20, #4]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	bl	_gsc_cal_prescaler_ratio
	ldr	w2, [x20, #4]
	add	w1, w2, w23
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_pr_info
LBB0_9:
	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_10:
Lloh12:
	adrp	x8, _GSC_SC_ALIGN_2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GSC_SC_ALIGN_2@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GSC_SC_ALIGN_4,4,2             ; @GSC_SC_ALIGN_4
	.comm	_GSC_SC_ALIGN_2,4,2             ; @GSC_SC_ALIGN_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cropped src width size is recalculated from %d to %d"

l_.str.1:                               ; @.str.1
	.asciz	"cropped src height size is recalculated from %d to %d"

.subsections_via_symbols
