	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_scaler_check_cfg
_komeda_scaler_check_cfg:               ## @komeda_scaler_check_cfg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdx), %r14
	movq	8(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdx), %r12
	movq	24(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	24(%rdi), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_in_range
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_in_range
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leaq	20(%r15), %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_in_range
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_in_range
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	32(%r13), %rax
	movl	(%rax), %edi
	movq	_KOMEDA_PIPELINE_COMPIZS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_has_bit
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	(%r15), %r12
LBB0_9:
	movl	16(%r15), %ecx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_scaling_ratio_valid
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	16(%r15), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_scaling_ratio_valid
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	xorl	%r12d, %r12d
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	jg	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_17
LBB0_15:
	movq	8(%r15), %r15
	movq	(%r15), %rax
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_komeda_crtc_get_aclk
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	*%r14
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_DRM_DEBUG_ATOMIC
	movl	%ebx, %r12d
	jmp	LBB0_17
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	callq	_DRM_DEBUG_ATOMIC
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid horizontal sizes"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid vertical sizes"

	.comm	_KOMEDA_PIPELINE_COMPIZS,4,2    ## @KOMEDA_PIPELINE_COMPIZS
L_.str.2:                               ## @.str.2
	.asciz	"Invalid horizontal scaling ratio"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid vertical scaling ratio"

L_.str.4:                               ## @.str.4
	.asciz	"aclk can't satisfy the clock requirement of the downscaling\n"

	.no_dead_strip	_komeda_scaler_check_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_scaler_check_cfg
_komeda_scaler_check_cfg:               ; @komeda_scaler_check_cfg
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x24, x22, [x2]
	ldp	x25, x23, [x2, #16]
	add	x26, x0, #24
	mov	x0, x26
	mov	x1, x24
	bl	_in_range
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x26
	mov	x1, x25
	bl	_in_range
	cbz	w0, LBB0_6
; %bb.2:
	add	x26, x21, #20
	mov	x0, x26
	mov	x1, x22
	bl	_in_range
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x26
	mov	x1, x23
	bl	_in_range
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _KOMEDA_PIPELINE_COMPIZS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KOMEDA_PIPELINE_COMPIZS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_has_bit
	cbz	x0, LBB0_10
; %bb.5:
	mov	w26, #1
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_DRM_DEBUG_ATOMIC
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	mov	x0, x19
	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:
	ldr	x26, [x21]
LBB0_11:
	ldr	w3, [x21, #16]
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_scaling_ratio_valid
	cbz	w0, LBB0_16
; %bb.12:
	ldr	w3, [x21, #16]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x26
	bl	_scaling_ratio_valid
	cbz	w0, LBB0_17
; %bb.13:
	cmp	x24, x25
	b.gt	LBB0_18
; %bb.14:
	cmp	x22, x23
	b.gt	LBB0_18
; %bb.15:
	mov	w19, #0
	b	LBB0_9
LBB0_16:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_17:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_18:
	ldr	x21, [x21, #8]
	ldr	x8, [x21]
	ldr	x22, [x8]
	mov	x0, x20
	bl	_komeda_crtc_get_aclk
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	blr	x22
	mov	x19, x0
	cbz	w0, LBB0_9
; %bb.19:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG_ATOMIC
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid horizontal sizes"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid vertical sizes"

	.comm	_KOMEDA_PIPELINE_COMPIZS,4,2    ; @KOMEDA_PIPELINE_COMPIZS
l_.str.2:                               ; @.str.2
	.asciz	"Invalid horizontal scaling ratio"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid vertical scaling ratio"

l_.str.4:                               ; @.str.4
	.asciz	"aclk can't satisfy the clock requirement of the downscaling\n"

	.no_dead_strip	_komeda_scaler_check_cfg
.subsections_via_symbols
