	.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, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_DRM_MODESET_ACQUIRE_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_DRM_MODESET_LOCK_ALL_BEGIN
	movl	(%r14), %edi
	callq	_drm_drv_uses_atomic_modeset
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	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	___setplane_atomic
	jmp	LBB0_3
LBB0_2:
	leaq	-48(%rbp), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	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	___setplane_internal
LBB0_3:
	addq	$48, %rsp
	movl	%eax, %ebx
	movl	-48(%rbp), %edi
	movl	%eax, %esi
	callq	_DRM_MODESET_LOCK_ALL_END
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODESET_ACQUIRE_INTERRUPTIBLE,4,2 ## @DRM_MODESET_ACQUIRE_INTERRUPTIBLE
	.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
	str	w7, [sp, #36]                   ; 4-byte Folded Spill
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	ldp	w28, w19, [x29, #20]
	ldr	w27, [x29, #16]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _DRM_MODESET_ACQUIRE_INTERRUPTIBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODESET_ACQUIRE_INTERRUPTIBLE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_DRM_MODESET_LOCK_ALL_BEGIN
	ldr	w0, [x26]
	bl	_drm_drv_uses_atomic_modeset
	add	x8, sp, #40
	cbz	x0, LBB0_2
; %bb.1:
	str	x8, [sp, #16]
	stp	w28, w19, [sp, #4]
	str	w27, [sp]
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	ldr	w7, [sp, #36]                   ; 4-byte Folded Reload
	bl	___setplane_atomic
	b	LBB0_3
LBB0_2:
	str	x8, [sp, #16]
	stp	w28, w19, [sp, #4]
	str	w27, [sp]
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	ldr	w7, [sp, #36]                   ; 4-byte Folded Reload
	bl	___setplane_internal
LBB0_3:
	mov	x19, x0
	ldr	w0, [sp, #40]
	mov	x1, x19
	bl	_DRM_MODESET_LOCK_ALL_END
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODESET_ACQUIRE_INTERRUPTIBLE,4,2 ; @DRM_MODESET_ACQUIRE_INTERRUPTIBLE
	.no_dead_strip	_setplane_internal
.subsections_via_symbols
