	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_mdp_check_scaler_ratio
_mtk_mdp_check_scaler_ratio:            ## @mtk_mdp_check_scaler_ratio
	.cfi_startproc
## %bb.0:
	movl	%edx, %r11d
	movl	%esi, %r10d
	cmpl	$90, %r9d
	je	LBB0_1
## %bb.2:
	cmpl	$270, %r9d                      ## imm = 0x10E
	jne	LBB0_3
LBB0_1:
	movl	%r8d, %esi
	movl	%ecx, %r8d
	jmp	LBB0_4
LBB0_3:
	movl	%ecx, %esi
LBB0_4:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%r10d, %eax
	cltd
	idivl	%esi
	cmpl	(%rdi), %eax
	jg	LBB0_8
## %bb.5:
	movl	%r11d, %eax
	cltd
	idivl	%r8d
	cmpl	4(%rdi), %eax
	jg	LBB0_8
## %bb.6:
	movl	%esi, %eax
	cltd
	idivl	%r10d
	cmpl	8(%rdi), %eax
	jg	LBB0_8
## %bb.7:
	movl	%r8d, %eax
	cltd
	idivl	%r11d
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	12(%rdi), %ecx
	jle	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mtk_mdp_check_scaler_ratio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_mdp_check_scaler_ratio
_mtk_mdp_check_scaler_ratio:            ; @mtk_mdp_check_scaler_ratio
	.cfi_startproc
; %bb.0:
	cmp	w5, #90
	b.eq	LBB0_2
; %bb.1:
	cmp	w5, #270
	csel	w8, w4, w3, eq
	csel	w3, w3, w4, eq
	mov	x4, x8
LBB0_2:
	sdiv	w8, w1, w4
	ldr	w9, [x0]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.3:
	sdiv	w8, w2, w3
	ldr	w9, [x0, #4]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.4:
	sdiv	w8, w4, w1
	ldr	w9, [x0, #8]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.5:
	sdiv	w8, w3, w2
	ldr	w9, [x0, #12]
	cmp	w8, w9
	b.le	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mtk_mdp_check_scaler_ratio
.subsections_via_symbols
