	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_komeda_release_unclaimed_resources ## -- Begin function komeda_release_unclaimed_resources
	.p2align	4, 0x90
_komeda_release_unclaimed_resources:    ## @komeda_release_unclaimed_resources
	.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
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rsi), %r15
	movl	(%rdi), %edi
	movl	4(%rsi), %esi
	callq	_has_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_has_bit
	movq	%r12, %rdi
	movq	%r15, %rsi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_komeda_pipeline_get_new_state
	jmp	LBB0_5
LBB0_4:
	xorl	%edx, %edx
	callq	_komeda_pipeline_get_state_and_set_crtc
LBB0_5:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_komeda_pipeline_unbound_components
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_komeda_release_unclaimed_resources ; -- Begin function komeda_release_unclaimed_resources
	.p2align	2
_komeda_release_unclaimed_resources:    ; @komeda_release_unclaimed_resources
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x1, #8]
	ldr	w0, [x0]
	ldr	w1, [x1, #4]
	bl	_has_bit
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_has_bit
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_komeda_pipeline_get_new_state
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_komeda_pipeline_get_state_and_set_crtc
LBB0_5:
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	bl	_WARN_ON
	cbz	x0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_komeda_pipeline_unbound_components
	mov	w0, #0
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
