	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_compiz_set_input
_komeda_compiz_set_input:               ## @komeda_compiz_set_input
	.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, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rsi), %r13
	movslq	(%rdx), %r14
	leaq	-80(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pipeline_composition_size
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rcx
	leaq	(%rcx,%rsi), %rax
	movq	24(%rbx), %rdx
	movq	32(%rbx), %r8
	cmpq	-80(%rbp), %rax
	jle	LBB0_1
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_ATOMIC
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	(%r8,%rdx), %rax
	cmpq	-72(%rbp), %rax
	jg	LBB0_4
## %bb.2:
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	testq	%r8, %r8
	je	LBB0_4
## %bb.5:
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ecx, %edx
	callq	_komeda_component_get_state_and_set_user
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_7:
	leaq	40(%rbx), %rsi
	movq	%r15, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edx
	callq	_komeda_component_check_input
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_to_compiz_st
	movq	(%rax), %rax
	leaq	(,%r14,8), %rcx
	leaq	(%rcx,%rcx,4), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rdx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rcx
	movq	%rcx, (%rax,%rdx)
	movq	32(%rbx), %rcx
	movq	%rcx, 8(%rax,%rdx)
	movq	8(%rbx), %rcx
	movq	%rcx, 16(%rax,%rdx)
	movq	24(%rbx), %rcx
	movq	%rcx, 24(%rax,%rdx)
	movl	48(%rbx), %ecx
	movl	%ecx, 36(%rax,%rdx)
	movl	44(%rbx), %ecx
	movl	%ecx, 32(%rax,%rdx)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_komeda_component_get_old_state
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_to_compiz_st
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	(%rax), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$40, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	%r14d, %edi
	callq	_BIT
	orl	%eax, (%r15)
LBB0_11:
	movq	%r15, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_komeda_component_add_input
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_komeda_component_set_output
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid disp rect [x=%d, y=%d, w=%d, h=%d]\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_komeda_compiz_set_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_compiz_set_input
_komeda_compiz_set_input:               ; @komeda_compiz_set_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x1, #8]
	ldrsw	x20, [x2]
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x21
	bl	_pipeline_composition_size
	ldp	x1, x3, [x23, #8]
	ldr	x8, [sp, #8]
	ldp	x2, x4, [x23, #24]
	add	x9, x3, x1
	cmp	x9, x8
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [sp]
	add	x9, x4, x2
	cmp	x9, x8
	ccmp	x3, #0, #4, le
	ccmp	x4, #0, #4, ne
	b.ne	LBB0_5
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_ATOMIC
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x2
	bl	_komeda_component_get_state_and_set_user
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_4
LBB0_7:
	add	x24, x23, #40
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	bl	_komeda_component_check_input
	cbnz	x0, LBB0_3
; %bb.8:
	mov	x0, x21
	bl	_to_compiz_st
	ldr	x8, [x0]
	add	x9, x20, x20, lsl #2
	lsl	x26, x9, #3
	add	x25, x8, x26
	ldr	x8, [x23, #16]
	str	x8, [x25]
	ldr	x8, [x23, #32]
	str	x8, [x25, #8]
	ldr	x8, [x23, #8]
	str	x8, [x25, #16]
	ldr	x8, [x23, #24]
	str	x8, [x25, #24]
	ldur	d0, [x23, #44]
	str	d0, [x25, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_komeda_component_get_old_state
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x22
	bl	_to_compiz_st
	ldr	x8, [x0]
	add	x0, x8, x26
	mov	x1, x25
	mov	w2, #40
	bl	_memcmp
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_BIT
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
LBB0_10:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	bl	_komeda_component_add_input
	mov	x0, x24
	mov	x1, x19
	mov	w2, #0
	bl	_komeda_component_set_output
	mov	w0, #0
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid disp rect [x=%d, y=%d, w=%d, h=%d]\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_komeda_compiz_set_input
.subsections_via_symbols
