	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_merger_validate
_komeda_merger_validate:                ## @komeda_merger_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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rdi, %r13
	addq	$8, %rdi
	movl	8(%r9), %esi
	callq	_in_range
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	leaq	4(%r13), %rdi
	movl	4(%r14), %esi
	callq	_in_range
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ecx
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	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_9
## %bb.11:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_ATOMIC
	jmp	LBB0_5
LBB0_3:
	movl	8(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_7:
	movl	4(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_ATOMIC
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_to_merger_st
	movl	8(%r14), %ecx
	movl	%ecx, 4(%rax)
	movl	4(%r14), %ecx
	movl	%ecx, (%rax)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_komeda_component_add_input
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_komeda_component_add_input
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_komeda_component_set_output
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No merger is available"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"merged_w: %d is out of the accepted range.\n"

L_.str.2:                               ## @.str.2
	.asciz	"merged_h: %d is out of the accepted range.\n"

	.no_dead_strip	_komeda_merger_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_merger_validate
_komeda_merger_validate:                ; @komeda_merger_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x0
	add	x0, x0, #8
	ldr	w1, [x5, #8]
	bl	_in_range
	cbz	w0, LBB0_6
; %bb.2:
	add	x0, x20, #4
	ldr	w1, [x19, #4]
	bl	_in_range
	cbz	w0, LBB0_7
; %bb.3:
	ldp	w2, w1, [x23]
	mov	x0, x20
	mov	x3, x2
	bl	_komeda_component_get_state_and_set_user
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.4:
	mov	x0, x23
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_DRM_DEBUG_ATOMIC
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	add	sp, sp, #80
	ret
LBB0_10:
	mov	x0, x23
	bl	_to_merger_st
	ldur	d0, [x19, #4]
	str	d0, [x0]
	mov	x0, x23
	mov	x1, x22
	mov	w2, #0
	bl	_komeda_component_add_input
	mov	x0, x23
	mov	x1, x21
	mov	w2, #1
	bl	_komeda_component_add_input
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_komeda_component_set_output
	mov	w0, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No merger is available"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"merged_w: %d is out of the accepted range.\n"

l_.str.2:                               ; @.str.2
	.asciz	"merged_h: %d is out of the accepted range.\n"

	.no_dead_strip	_komeda_merger_validate
.subsections_via_symbols
