	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_check_scaler_ratio        ## -- Begin function fimc_check_scaler_ratio
	.p2align	4, 0x90
_fimc_check_scaler_ratio:               ## @fimc_check_scaler_ratio
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	cmpl	$270, %r9d                      ## imm = 0x10E
	je	LBB0_2
## %bb.1:
	cmpl	$90, %r9d
	jne	LBB0_3
LBB0_2:
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_swap
LBB0_3:
	cmpl	$0, (%r13)
	je	LBB0_4
## %bb.5:
	movq	_SCALER_MAX_HRATIO@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	cmpl	%r15d, %ebx
	jle	LBB0_7
## %bb.6:
	movq	_SCALER_MAX_VRATIO@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	xorl	%eax, %eax
	cmpl	%r14d, %r12d
	jg	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_4:
	xorl	%ebx, %r15d
	xorl	%r12d, %r14d
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	orl	%r15d, %r14d
	cmovel	%ecx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCALER_MAX_HRATIO,4,2          ## @SCALER_MAX_HRATIO
	.comm	_SCALER_MAX_VRATIO,4,2          ## @SCALER_MAX_VRATIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_check_scaler_ratio        ; -- Begin function fimc_check_scaler_ratio
	.p2align	2
_fimc_check_scaler_ratio:               ; @fimc_check_scaler_ratio
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	cmp	w5, #270
	b.eq	LBB0_2
; %bb.1:
	cmp	w5, #90
	b.ne	LBB0_3
LBB0_2:
	mov	x0, x21
	mov	x1, x19
	bl	_swap
LBB0_3:
	ldr	w8, [x23]
	cbz	w8, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _SCALER_MAX_HRATIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCALER_MAX_HRATIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w8, w8, w21
	cmp	w8, w22
	b.le	LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _SCALER_MAX_VRATIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCALER_MAX_VRATIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mul	w8, w8, w19
	cmp	w8, w20
	b.le	LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	cmp	w20, w19
	ccmp	w22, w21, #0, eq
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	csneg	w0, wzr, w8, eq
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCALER_MAX_HRATIO,4,2          ; @SCALER_MAX_HRATIO
	.comm	_SCALER_MAX_VRATIO,4,2          ; @SCALER_MAX_VRATIO
.subsections_via_symbols
