	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsc_check_scaler_ratio         ## -- Begin function gsc_check_scaler_ratio
	.p2align	4, 0x90
_gsc_check_scaler_ratio:                ## @gsc_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
	movl	%edx, %r10d
	movl	%esi, %r11d
	movq	_GSC_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	cmpl	16(%rbp), %eax
	setne	%dl
	cmpl	$90, %r9d
	sete	%sil
	cmpl	$270, %r9d                      ## imm = 0x10E
	sete	%al
	orb	%sil, %al
	movl	%ecx, %esi
	cmovnel	%r8d, %esi
	cmovnel	%ecx, %r8d
	movl	(%rdi,%rdx,4), %ecx
	movl	%r11d, %eax
	cltd
	idivl	%esi
	cmpl	%ecx, %eax
	jg	LBB0_4
## %bb.1:
	movl	%r10d, %eax
	cltd
	idivl	%r8d
	cmpl	%ecx, %eax
	jg	LBB0_4
## %bb.2:
	movl	%esi, %eax
	cltd
	idivl	%r11d
	movl	8(%rdi), %esi
	cmpl	%esi, %eax
	jg	LBB0_4
## %bb.3:
	movl	%r8d, %eax
	cltd
	idivl	%r10d
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	jle	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSC_DMA,4,2                    ## @GSC_DMA
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsc_check_scaler_ratio         ; -- Begin function gsc_check_scaler_ratio
	.p2align	2
_gsc_check_scaler_ratio:                ; @gsc_check_scaler_ratio
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _GSC_DMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSC_DMA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w6
	cset	w8, ne
	ldr	w9, [x0, w8, uxtw #2]
	cmp	w5, #90
	mov	w8, #270
	ccmp	w5, w8, #4, ne
	csel	w10, w4, w3, eq
	csel	w8, w3, w4, eq
	sdiv	w11, w1, w10
	cmp	w11, w9
	b.gt	LBB0_4
; %bb.1:
	sdiv	w11, w2, w8
	cmp	w11, w9
	b.gt	LBB0_4
; %bb.2:
	sdiv	w10, w10, w1
	ldr	w9, [x0, #8]
	cmp	w10, w9
	b.gt	LBB0_4
; %bb.3:
	sdiv	w8, w8, w2
	cmp	w8, w9
	b.le	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GSC_DMA,4,2                    ; @GSC_DMA
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
