	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_pipeline_get_state_and_set_crtc
_komeda_pipeline_get_state_and_set_crtc: ## @komeda_pipeline_get_state_and_set_crtc
	.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, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_komeda_pipeline_get_state
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_is_switching_user
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_drm_crtc_index
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_ATOMIC
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	testq	%r15, %r15
	je	LBB0_4
## %bb.8:
	movq	%r15, (%rbx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_drm_atomic_get_new_crtc_state
	movl	%eax, %edi
	callq	_to_kcrtc_st
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_BIT
	orl	%eax, 4(%r15)
	movl	(%r14), %edi
	callq	_BIT
	orl	%eax, (%r15)
	jmp	LBB0_9
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_ATOMIC
	jmp	LBB0_6
LBB0_7:
	movq	$0, (%rbx)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRTC%d required pipeline%d is busy.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"Disabling a busy pipeline:%d.\n"

	.no_dead_strip	_komeda_pipeline_get_state_and_set_crtc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_pipeline_get_state_and_set_crtc
_komeda_pipeline_get_state_and_set_crtc: ; @komeda_pipeline_get_state_and_set_crtc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_komeda_pipeline_get_state
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	x1, [x19]
	mov	x0, x21
	bl	_is_switching_user
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_drm_crtc_index
	mov	x1, x0
	ldr	w8, [x20]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_DRM_DEBUG_ATOMIC
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #64
	b	_ERR_PTR
LBB0_5:
	cbz	x21, LBB0_7
; %bb.6:
	str	x21, [x19]
	mov	x0, x22
	mov	x1, x21
	bl	_drm_atomic_get_new_crtc_state
	bl	_to_kcrtc_st
	mov	x21, x0
	ldr	w0, [x20]
	bl	_BIT
	ldr	w8, [x21, #4]
	orr	w8, w8, w0
	str	w8, [x21, #4]
	ldr	w0, [x20]
	bl	_BIT
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
	b	LBB0_1
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x20]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_9:
	str	xzr, [x19]
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRTC%d required pipeline%d is busy.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"Disabling a busy pipeline:%d.\n"

	.no_dead_strip	_komeda_pipeline_get_state_and_set_crtc
.subsections_via_symbols
