	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __setplane_check
___setplane_check:                      ## @__setplane_check
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	48(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	40(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rbp), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r14
	movl	(%rdi), %r15d
	movq	%rsi, %rdi
	callq	_drm_crtc_mask
	testl	%r15d, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_drm_plane_check_pixel_format
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	8(%r13), %rax
	movl	(%rax), %edi
	leaq	-96(%rbp), %rsi
	callq	_drm_get_format_name
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rax
	subq	%r14, %rax
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	jl	LBB0_8
## %bb.5:
	cmpq	%rsi, %rcx
	jl	LBB0_8
## %bb.6:
	subq	%rsi, %rcx
	cmpq	%r12, %rcx
	jl	LBB0_8
## %bb.7:
	cmpq	%r8, %rax
	jl	LBB0_8
## %bb.11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_framebuffer_check_src_coords ## TAILCALL
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid crtc for plane\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid pixel format %s, modifier 0x%llx\n"

	.comm	_INT_MAX,8,3                    ## @INT_MAX
L_.str.2:                               ## @.str.2
	.asciz	"Invalid CRTC coordinates %ux%u+%d+%d\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	___setplane_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __setplane_check
___setplane_check:                      ; @__setplane_check
	.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	x7, [sp, #32]                   ; 8-byte Folded Spill
	mov	x21, x6
	mov	x20, x5
	mov	x24, x4
	mov	x23, x3
	mov	x19, x2
	mov	x28, x0
	ldp	x26, x25, [x29, #24]
	ldr	x27, [x29, #16]
	ldr	w22, [x0]
	mov	x0, x1
	bl	_drm_crtc_mask
	tst	w0, w22
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x28
	bl	_drm_plane_check_pixel_format
	cbz	w0, LBB0_4
; %bb.2:
	mov	x28, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	add	x1, sp, #40
	bl	_drm_get_format_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	stp	x0, x8, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	sub	x9, x8, x20
	subs	x10, x8, x21
	ccmp	x8, x20, #8, ge
	ccmp	x9, x23, #8, ge
	ccmp	x10, x24, #8, ge
	b.ge	LBB0_8
; %bb.5:
	stp	x23, x24, [sp, #16]
	stp	x20, x21, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh11:
	adrp	x8, _ERANGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_7:
	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_8:
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x27
	mov	x2, x26
	mov	x3, x25
	mov	x4, 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
	b	_drm_framebuffer_check_src_coords
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid crtc for plane\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid pixel format %s, modifier 0x%llx\n"

	.comm	_INT_MAX,8,3                    ; @INT_MAX
l_.str.2:                               ; @.str.2
	.asciz	"Invalid CRTC coordinates %ux%u+%d+%d\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	___setplane_check
.subsections_via_symbols
