	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_framebuffer_check_src_coords ## -- Begin function drm_framebuffer_check_src_coords
	.p2align	4, 0x90
_drm_framebuffer_check_src_coords:      ## @drm_framebuffer_check_src_coords
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%r8), %r11d
	movl	4(%r8), %r14d
	movl	%r11d, %eax
	shll	$16, %eax
	movl	%r14d, %ebx
	shll	$16, %ebx
	subl	%ecx, %ebx
	setb	%r8b
	subl	%edx, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	%edi, %eax
	jb	LBB0_4
## %bb.2:
	testb	%r8b, %r8b
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpl	%esi, %ebx
	jae	LBB0_5
LBB0_4:
	movl	%edx, %r10d
	shrl	$16, %r10d
	movzwl	%dx, %eax
	imull	$15625, %eax, %edx              ## imm = 0x3D09
	shrl	$10, %edx
	movl	%ecx, %r12d
	shrl	$16, %r12d
	movzwl	%cx, %ecx
	imull	$15625, %ecx, %r8d              ## imm = 0x3D09
	shrl	$10, %r8d
	movl	%edi, %r9d
	shrl	$16, %r9d
	movzwl	%di, %ecx
	imull	$15625, %ecx, %r15d             ## imm = 0x3D09
	shrl	$10, %r15d
	movl	%esi, %ebx
	shrl	$16, %ebx
	movzwl	%si, %ecx
	imull	$15625, %ecx, %eax              ## imm = 0x3D09
	shrl	$10, %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movl	%r10d, %esi
	movl	%r12d, %ecx
	pushq	%r14
	pushq	%r11
	pushq	%rax
	pushq	%rbx
	pushq	%r15
	callq	_DRM_DEBUG_KMS
	addq	$48, %rsp
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid source coordinates %u.%06ux%u.%06u+%u.%06u+%u.%06u (fb %ux%u)\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_framebuffer_check_src_coords ; -- Begin function drm_framebuffer_check_src_coords
	.p2align	2
_drm_framebuffer_check_src_coords:      ; @drm_framebuffer_check_src_coords
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldp	w10, w11, [x4]
	lsl	w8, w10, #16
	lsl	w9, w11, #16
	sub	w12, w9, w3
	subs	w8, w8, w2
	ccmp	w8, w0, #0, hs
	ccmp	w9, w3, #0, hs
	ccmp	w12, w1, #0, hs
	b.hs	LBB0_2
; %bb.1:
	lsr	w8, w2, #16
	and	w9, w2, #0xffff
	mov	w12, #15625
	mul	w9, w9, w12
	lsr	w2, w9, #10
	lsr	w9, w3, #16
	and	w13, w3, #0xffff
	mul	w13, w13, w12
	lsr	w4, w13, #10
	lsr	w5, w0, #16
	and	w13, w0, #0xffff
	mul	w13, w13, w12
	lsr	w6, w13, #10
	lsr	w7, w1, #16
	and	w13, w1, #0xffff
	mul	w12, w13, w12
	lsr	w12, w12, #10
	stp	w10, w11, [sp, #4]
	str	w12, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	mov	x3, x9
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid source coordinates %u.%06ux%u.%06u+%u.%06u+%u.%06u (fb %ux%u)\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
.subsections_via_symbols
