	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_layer_check_cfg
_komeda_layer_check_cfg:                ## @komeda_layer_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	16(%rdi), %esi
	movl	32(%rdx), %edx
	movq	%r15, %rdi
	callq	_komeda_fb_is_layer_supported
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	8(%r14), %rax
	movq	_KOMEDA_COMPONENT_WB_LAYER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	28(%rbx), %rax
	leaq	24(%rbx), %rcx
	leaq	20(%rbx), %rdx
	addq	$16, %rbx
	jmp	LBB0_4
LBB0_3:
	leaq	12(%rbx), %rax
	leaq	8(%rbx), %rcx
	leaq	4(%rbx), %rdx
LBB0_4:
	movl	(%rbx), %r12d
	movl	(%rdx), %ebx
	movl	(%rcx), %edx
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_komeda_fb_check_src_coords
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	leaq	4(%r14), %rdi
	movl	%ebx, %esi
	callq	_in_range
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_in_range
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
LBB0_9:
	callq	_DRM_DEBUG_ATOMIC
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KOMEDA_COMPONENT_WB_LAYER,8,3  ## @KOMEDA_COMPONENT_WB_LAYER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalidate src_w %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalidate src_h %d.\n"

	.no_dead_strip	_komeda_layer_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_layer_check_cfg
_komeda_layer_check_cfg:                ; @komeda_layer_check_cfg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x0, #16]
	ldr	w2, [x2, #32]
	mov	x0, x20
	bl	_komeda_fb_is_layer_supported
	cbz	w0, LBB0_11
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _KOMEDA_COMPONENT_WB_LAYER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KOMEDA_COMPONENT_WB_LAYER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	add	x8, x21, #28
	add	x9, x21, #24
	add	x10, x21, #20
	add	x21, x21, #16
	b	LBB0_4
LBB0_3:
	add	x8, x21, #12
	add	x9, x21, #8
	add	x10, x21, #4
LBB0_4:
	ldr	w21, [x21]
	ldr	w22, [x10]
	ldr	w2, [x9]
	ldr	w1, [x8]
	mov	x0, x20
	mov	x3, x22
	mov	x4, x21
	bl	_komeda_fb_check_src_coords
	cbnz	x0, LBB0_11
; %bb.5:
	add	x0, x19, #4
	mov	x1, x22
	bl	_in_range
	cbz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	bl	_in_range
	cbz	w0, LBB0_9
; %bb.7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
LBB0_10:
	bl	_DRM_DEBUG_ATOMIC
LBB0_11:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KOMEDA_COMPONENT_WB_LAYER,8,3  ; @KOMEDA_COMPONENT_WB_LAYER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalidate src_w %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalidate src_h %d.\n"

	.no_dead_strip	_komeda_layer_check_cfg
.subsections_via_symbols
