	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_setplane              ## -- Begin function drm_mode_setplane
	.p2align	4, 0x90
_drm_mode_setplane:                     ## @drm_mode_setplane
	.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	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	48(%r13), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_drm_plane_find
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r15
	movq	40(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_drm_framebuffer_lookup
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r14
	movq	32(%r13), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_drm_crtc_find
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%rax, %rsi
	jmp	LBB0_12
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	48(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	xorl	%esi, %esi
	xorl	%r14d, %r14d
LBB0_12:
	movl	28(%r13), %ecx
	movl	24(%r13), %r8d
	movl	20(%r13), %r9d
	movl	16(%r13), %r10d
	movl	12(%r13), %r11d
	movl	8(%r13), %r12d
	movl	(%r13), %ebx
	movl	4(%r13), %eax
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r14, %rdx
	pushq	%rbx
	pushq	%rax
	pushq	%r12
	pushq	%r11
	pushq	%r10
	callq	_setplane_internal
	addq	$48, %rsp
	movl	%eax, %ebx
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_drm_framebuffer_put
	jmp	LBB0_14
LBB0_9:
	movq	40(%r13), %rsi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_15:
	movq	%r14, %rdi
	callq	_drm_framebuffer_put
	movq	32(%r13), %rsi
	leaq	L_.str.2(%rip), %rdi
LBB0_5:
	callq	_DRM_DEBUG_KMS
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown plane ID %d\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"Unknown framebuffer ID %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown crtc ID %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_setplane              ; -- Begin function drm_mode_setplane
	.p2align	2
_drm_mode_setplane:                     ; @drm_mode_setplane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x2, [x19, #48]
	mov	x0, x23
	mov	x1, x22
	bl	_drm_plane_find
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	x2, [x19, #40]
	cbz	x2, LBB0_8
; %bb.3:
	mov	x0, x23
	mov	x1, x22
	bl	_drm_framebuffer_lookup
	cbz	x0, LBB0_11
; %bb.4:
	mov	x21, x0
	ldr	x2, [x19, #32]
	mov	x0, x23
	mov	x1, x22
	bl	_drm_crtc_find
	cbz	x0, LBB0_12
; %bb.5:
	mov	x1, x0
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	ldr	x1, [x19, #48]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_8:
	mov	x1, #0
	mov	x21, #0
LBB0_9:
	ldp	w4, w3, [x19, #24]
	ldp	w6, w5, [x19, #16]
	ldp	w8, w7, [x19, #8]
	ldp	w10, w9, [x19]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x0, x20
	mov	x2, x21
	bl	_setplane_internal
	mov	x19, x0
	cbz	x21, LBB0_15
; %bb.10:
	mov	x0, x21
	bl	_drm_framebuffer_put
	b	LBB0_15
LBB0_11:
	ldr	x1, [x19, #40]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
	mov	x0, x21
	bl	_drm_framebuffer_put
	ldr	x1, [x19, #32]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_DRM_DEBUG_KMS
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown plane ID %d\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"Unknown framebuffer ID %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown crtc ID %d\n"

.subsections_via_symbols
