	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_rect_clip_scaled           ## -- Begin function drm_rect_clip_scaled
	.p2align	4, 0x90
_drm_rect_clip_scaled:                  ## @drm_rect_clip_scaled
	.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, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rdx), %ebx
	subl	(%rsi), %ebx
	jle	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_drm_rect_width
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_drm_rect_width
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_clip_scaled
	movq	_int64_t@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	4(%r15), %esi
	subl	%eax, %esi
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_clamp_t
	movl	%eax, (%r15)
	movl	(%r14), %eax
	movl	%eax, (%r12)
LBB0_2:
	movl	8(%r14), %ebx
	subl	8(%r12), %ebx
	jle	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_drm_rect_height
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_drm_rect_height
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_clip_scaled
	movq	_int64_t@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	12(%r15), %esi
	subl	%eax, %esi
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_clamp_t
	movl	%eax, 8(%r15)
	movl	8(%r14), %eax
	movl	%eax, 8(%r12)
LBB0_4:
	movl	4(%r12), %ebx
	subl	4(%r14), %ebx
	jle	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_drm_rect_width
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_drm_rect_width
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_clip_scaled
	movq	_int64_t@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%r15), %eax
	movq	_INT_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_clamp_t
	movl	%eax, 4(%r15)
	movl	4(%r14), %eax
	movl	%eax, 4(%r12)
LBB0_6:
	movl	12(%r12), %ebx
	subl	12(%r14), %ebx
	jle	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_drm_rect_height
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_drm_rect_height
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_clip_scaled
	movq	_int64_t@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	8(%r15), %eax
	movq	_INT_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_clamp_t
	movl	%eax, 12(%r15)
	movl	12(%r14), %eax
	movl	%eax, 12(%r12)
LBB0_8:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_rect_visible               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_int64_t,4,2                    ## @int64_t
	.comm	_INT_MIN,4,2                    ## @INT_MIN
	.comm	_INT_MAX,4,2                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_rect_clip_scaled           ; -- Begin function drm_rect_clip_scaled
	.p2align	2
_drm_rect_clip_scaled:                  ; @drm_rect_clip_scaled
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x2]
	ldr	w9, [x1]
Lloh0:
	adrp	x26, _int64_t@GOTPAGE
Lloh1:
	ldr	x26, [x26, _int64_t@GOTPAGEOFF]
	sub	w22, w8, w9
Lloh2:
	adrp	x24, _INT_MIN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _INT_MIN@GOTPAGEOFF]
Lloh4:
	adrp	x25, _INT_MAX@GOTPAGE
Lloh5:
	ldr	x25, [x25, _INT_MAX@GOTPAGEOFF]
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_drm_rect_width
	mov	x23, x0
	mov	x0, x19
	bl	_drm_rect_width
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_clip_scaled
	ldr	w8, [x26]
	ldr	w9, [x21, #4]
	sub	w1, w9, w0
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x8
	bl	_clamp_t
	str	w0, [x21]
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_2:
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #8]
	sub	w22, w8, w9
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_drm_rect_height
	mov	x23, x0
	mov	x0, x19
	bl	_drm_rect_height
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_clip_scaled
	ldr	w8, [x26]
	ldr	w9, [x21, #12]
	sub	w1, w9, w0
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x8
	bl	_clamp_t
	str	w0, [x21, #8]
	ldr	w8, [x20, #8]
	str	w8, [x19, #8]
LBB0_4:
	ldr	w8, [x19, #4]
	ldr	w9, [x20, #4]
	sub	w22, w8, w9
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_drm_rect_width
	mov	x23, x0
	mov	x0, x19
	bl	_drm_rect_width
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_clip_scaled
	ldr	w8, [x26]
	ldr	w9, [x21]
	add	w1, w9, w0
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x8
	bl	_clamp_t
	str	w0, [x21, #4]
	ldr	w8, [x20, #4]
	str	w8, [x19, #4]
LBB0_6:
	ldr	w8, [x19, #12]
	ldr	w9, [x20, #12]
	sub	w22, w8, w9
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_drm_rect_height
	mov	x23, x0
	mov	x0, x19
	bl	_drm_rect_height
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_clip_scaled
	ldr	w8, [x26]
	ldr	w9, [x21, #8]
	add	w1, w9, w0
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x8
	bl	_clamp_t
	str	w0, [x21, #12]
	ldr	w8, [x20, #12]
	str	w8, [x19, #12]
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_drm_rect_visible
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_int64_t,4,2                    ; @int64_t
	.comm	_INT_MIN,4,2                    ; @INT_MIN
	.comm	_INT_MAX,4,2                    ; @INT_MAX
.subsections_via_symbols
