	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_scaler_validate
_komeda_scaler_validate:                ## @komeda_scaler_validate
	.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
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rsi), %r12
	cmpq	$0, 32(%rdx)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 24(%r13)
	je	LBB0_2
LBB0_3:
	movl	8(%r13), %edi
	movq	%r12, %rsi
	callq	_komeda_component_get_avail_scaler
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_komeda_scaler_check_cfg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_komeda_component_get_state_and_set_user
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_ATOMIC
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_7:
	leaq	8(%r13), %r12
	movq	%rbx, %rdi
	callq	_to_scaler_st
	movl	72(%r13), %ecx
	movl	%ecx, 64(%rax)
	movups	56(%r13), %xmm0
	movups	%xmm0, 48(%rax)
	movups	40(%r13), %xmm0
	movups	%xmm0, 32(%rax)
	movq	(%r13), %rcx
	movq	_DRM_MODE_BLEND_PIXEL_NONE@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setne	%sil
	movl	%esi, (%rax)
	movups	24(%r13), %xmm0
	movups	%xmm0, 16(%rax)
	movl	16(%r13), %ecx
	movl	%ecx, 12(%rax)
	movl	12(%r13), %ecx
	movl	%ecx, 8(%rax)
	leaq	4(%rax), %rdi
	xorl	%r15d, %r15d
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_komeda_component_add_input
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_komeda_component_set_output
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No scaler available"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_BLEND_PIXEL_NONE,8,3  ## @DRM_MODE_BLEND_PIXEL_NONE
	.no_dead_strip	_komeda_scaler_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_scaler_validate
_komeda_scaler_validate:                ; @komeda_scaler_validate
	.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, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x23, [x1, #8]
	ldr	x8, [x2, #32]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
LBB0_2:
	mov	x20, x19
	ldr	w0, [x20, #8]!
	mov	x1, x23
	bl	_komeda_component_get_avail_scaler
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	mov	x1, x24
	mov	x2, x19
	bl	_komeda_scaler_check_cfg
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	w3, [x24]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_komeda_component_get_state_and_set_user
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x22
	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
	b	_PTR_ERR
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_ATOMIC
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	bl	_to_scaler_st
	ldr	w8, [x19, #72]
	str	w8, [x0, #64]
	ldur	q0, [x19, #56]
	str	q0, [x0, #48]
	ldur	q0, [x19, #40]
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, ne
	str	w8, [x0]
	ldur	q1, [x19, #24]
	stp	q1, q0, [x0, #16]
	ldur	d0, [x19, #12]
	str	d0, [x0, #8]
	add	x0, x0, #4
	mov	x1, x20
	mov	w2, #0
	bl	_komeda_component_add_input
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_komeda_component_set_output
LBB0_8:
	mov	w0, #0
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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No scaler available"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_BLEND_PIXEL_NONE,8,3  ; @DRM_MODE_BLEND_PIXEL_NONE
	.no_dead_strip	_komeda_scaler_validate
.subsections_via_symbols
