	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_atomic_setup_scalers     ## -- Begin function intel_atomic_setup_scalers
	.p2align	4, 0x90
_intel_atomic_setup_scalers:            ## @intel_atomic_setup_scalers
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_to_intel_atomic_state
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_hweight32
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edx
	cmpl	%edx, %eax
	jle	LBB0_1
## %bb.14:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%rbx), %r15
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	20(%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %r13d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	L_.str.1(%rip), %rcx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%r13d, %r8d
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_intel_atomic_setup_scaler
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	$32, %r14
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	btl	%r14d, %eax
	jae	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SKL_CRTC_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r14
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_drm_plane_from_index
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_drm_atomic_get_plane_state
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_to_intel_plane
	movq	%rax, %r12
	movl	(%rbx), %r13d
	movq	(%rax), %rax
	xorl	%edi, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	8(%rbx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_intel_atomic_get_new_plane_state
	movq	%rax, %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_10
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r12, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many scaling requests %d > %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SKL_CRTC_INDEX,4,2             ## @SKL_CRTC_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"CRTC"

L_.str.2:                               ## @.str.2
	.asciz	"PLANE"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to add [PLANE:%d] to drm_state\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_atomic_setup_scalers     ; -- Begin function intel_atomic_setup_scalers
	.p2align	2
_intel_atomic_setup_scalers:            ; @intel_atomic_setup_scalers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x22, [x2, #8]
	mov	x0, x22
	bl	_to_intel_atomic_state
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	x25, x19
	ldr	w0, [x25, #16]!
	bl	_hweight32
	mov	x23, x0
	ldr	w8, [x20]
	cmp	w0, w8
	b.le	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_2:
	mov	x26, #0
	mov	x27, #0
Lloh5:
	adrp	x24, _SKL_CRTC_INDEX@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SKL_CRTC_INDEX@GOTPAGEOFF]
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	add	x19, x19, #20
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w28, [x20, #16]
	mov	x6, x19
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x23
	mov	x2, x20
	mov	x4, x28
	mov	x5, x27
	bl	_intel_atomic_setup_scaler
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	cmp	x26, #32
	b.eq	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	lsr	w8, w8, w26
	tbz	w8, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	cmp	x26, x8
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	x28, [x8, x26, lsl #3]
	cbnz	x28, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x26
	bl	_drm_plane_from_index
	mov	x28, x0
	mov	x0, x22
	mov	x1, x28
	bl	_drm_atomic_get_plane_state
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	mov	w9, #1
	str	w9, [x8]
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
	bl	_to_intel_plane
	mov	x21, x0
	ldr	w28, [x28]
	ldr	x8, [x0]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x21
	bl	_intel_atomic_get_new_plane_state
	mov	x27, x0
	mov	x6, x0
Lloh9:
	adrp	x3, l_.str.2@PAGE
Lloh10:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	ldr	w1, [x28]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_PTR_ERR
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many scaling requests %d > %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SKL_CRTC_INDEX,4,2             ; @SKL_CRTC_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"CRTC"

l_.str.2:                               ; @.str.2
	.asciz	"PLANE"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to add [PLANE:%d] to drm_state\n"

.subsections_via_symbols
