	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disable_dangling_plane
_disable_dangling_plane:                ## @disable_dangling_plane
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_dc_create_state
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movq	(%r12), %rdi
	movq	%rax, %rsi
	callq	_dc_resource_state_copy_construct
	movq	16(%r12), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.2:
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	(%rax), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%r12), %rcx
	movq	16(%rcx), %rcx
	movq	(%rcx,%r13,8), %rbx
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rdx,%rsi,8), %rbx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_dc_rem_all_planes_for_stream
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	*8(%r12)
	movq	16(%r12), %rax
	jmp	LBB0_9
LBB0_10:
	movq	(%r12), %rdi
	movq	%r15, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dc_release_state               ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_disable_dangling_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disable_dangling_plane
_disable_dangling_plane:                ; @disable_dangling_plane
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_dc_create_state
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	ldr	x0, [x19]
	mov	x1, x21
	bl	_dc_resource_state_copy_construct
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x23, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x9, [x8]
	cmp	x23, x9
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x9, [x19]
	ldr	x9, [x9, #16]
	ldr	x22, [x9, x23, lsl #3]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x20, #8]
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10]
	cmp	x22, x11
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x22, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_dc_rem_all_planes_for_stream
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	x3, x21
	blr	x8
	ldr	x8, [x19, #16]
	b	LBB0_3
LBB0_10:
	ldr	x0, [x19]
	str	x21, [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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dc_release_state
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_disable_dangling_plane
.subsections_via_symbols
