	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __setplane_internal
___setplane_internal:                   ## @__setplane_internal
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	56(%rbp), %r12
	movl	32(%rdi), %edi
	callq	_drm_drv_uses_atomic_modeset
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movl	48(%rbp), %r10d
	movl	40(%rbp), %r12d
	movl	32(%rbp), %eax
	movl	24(%rbp), %r11d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r10
	pushq	%r12
	pushq	%rax
	pushq	%r11
	movl	16(%rbp), %eax
	pushq	%rax
	callq	___setplane_check
	addq	$48, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	8(%rbx), %rax
	movq	24(%rbx), %r10
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	56(%rbp)
	movl	48(%rbp), %eax
	pushq	%rax
	movl	40(%rbp), %eax
	pushq	%rax
	movl	32(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	callq	*8(%r10)
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	%r14, %rdi
	callq	_drm_framebuffer_get
	jmp	LBB0_7
LBB0_4:
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	*(%rcx)
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movl	%eax, %r13d
	movq	$0, (%rbx)
	jmp	LBB0_8
LBB0_6:
	leaq	8(%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_drm_framebuffer_put
LBB0_10:
	movq	$0, (%rbx)
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___setplane_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __setplane_internal
___setplane_internal:                   ; @__setplane_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x28, x7
	str	w6, [sp, #44]                   ; 4-byte Folded Spill
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x29, #32]
	ldr	w0, [x0, #32]
	bl	_drm_drv_uses_atomic_modeset
	bl	_WARN_ON
	cbz	x20, LBB0_4
; %bb.1:
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	ldp	w22, w27, [x29, #20]
	ldr	w23, [x29, #16]
	stp	w22, w27, [sp, #4]
	str	w23, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x26
	mov	x4, x25
	mov	x5, x24
	ldr	w6, [sp, #44]                   ; 4-byte Folded Reload
	str	w28, [sp, #40]                  ; 4-byte Folded Spill
	mov	x7, x28
	bl	___setplane_check
	mov	x28, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	str	x8, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	x9, [sp, #16]
	stp	w22, w27, [sp, #4]
	str	w23, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x26
	mov	x4, x25
	mov	x5, x24
	ldp	w7, w6, [sp, #40]               ; 8-byte Folded Reload
	blr	x8
	mov	x28, x0
	cbnz	w0, LBB0_5
; %bb.3:
	stp	x20, x21, [x19, #8]
	mov	x0, x20
	bl	_drm_framebuffer_get
	ldr	x0, [x19]
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_4:
	mov	x20, x19
	ldr	x8, [x20, #8]!
	str	x8, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x22
	blr	x8
	mov	x28, x0
	cbz	w0, LBB0_9
LBB0_5:
	str	xzr, [x19]
LBB0_6:
	ldr	x0, [x19]
	cbz	x0, LBB0_8
LBB0_7:
	bl	_drm_framebuffer_put
LBB0_8:
	str	xzr, [x19]
	mov	x0, x28
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
	stp	xzr, xzr, [x20]
	ldr	x0, [x19]
	cbnz	x0, LBB0_7
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___setplane_internal
.subsections_via_symbols
