	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HandleClipping
_HandleClipping:                        ## @HandleClipping
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsi)
	movq	(%rdi), %rax
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rax, 16(%rsi)
	movslq	8(%rdi), %r8
	addq	%r8, %rax
	movq	_vdp2width@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rax, %rcx
	subq	%rdx, %rcx
	jle	LBB0_4
## %bb.3:
	movq	%rdx, 24(%rsi)
	movq	%rcx, 8(%rsi)
	jmp	LBB0_5
LBB0_1:
	movq	$0, 16(%rsi)
	movslq	8(%rdi), %r8
	movq	%r8, %rcx
	addq	%rax, %rcx
	movq	%rcx, 24(%rsi)
	negq	%rax
	movq	%rax, (%rsi)
	movq	%rax, 8(%rsi)
	jmp	LBB0_6
LBB0_4:
	movq	%rax, 24(%rsi)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	movq	16(%rdi), %rdx
	testq	%rdx, %rdx
	js	LBB0_7
## %bb.8:
	movl	%edx, 32(%rsi)
	addq	24(%rdi), %rdx
	movq	_vdp2height@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	LBB0_9
## %bb.10:
	movq	%rdx, 40(%rsi)
	popq	%rbp
	retq
LBB0_7:
	movl	$0, 32(%rsi)
	movq	24(%rdi), %rcx
	addq	%rdx, %rcx
	movq	%rcx, 40(%rsi)
	movslq	%r8d, %rcx
	imulq	%rdx, %rcx
	subq	%rcx, %rax
	movq	%rax, (%rsi)
	popq	%rbp
	retq
LBB0_9:
	movq	%rax, 40(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vdp2width,8,3                  ## @vdp2width
	.comm	_vdp2height,8,3                 ## @vdp2height
	.no_dead_strip	_HandleClipping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HandleClipping
_HandleClipping:                        ; @HandleClipping
	.cfi_startproc
; %bb.0:
	stp	xzr, xzr, [x1]
	ldr	x9, [x0]
	tbnz	x9, #63, LBB0_3
; %bb.1:
	str	x9, [x1, #16]
	ldrsw	x8, [x0, #8]
Lloh0:
	adrp	x10, _vdp2width@GOTPAGE
Lloh1:
	ldr	x10, [x10, _vdp2width@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x12, x9, x8
	mov	x9, #0
	subs	x11, x12, x10
	b.le	LBB0_6
; %bb.2:
	str	x10, [x1, #24]
	str	x11, [x1, #8]
	ldr	x10, [x0, #16]
	tbz	x10, #63, LBB0_4
	b	LBB0_7
LBB0_3:
	ldrsw	x8, [x0, #8]
	add	x10, x9, x8
	stp	xzr, x10, [x1, #16]
	neg	x9, x9
	stp	x9, x9, [x1]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	ldr	x10, [x0, #16]
	tbnz	x10, #63, LBB0_7
LBB0_4:
	str	w10, [x1, #32]
	ldr	x9, [x0, #24]
Lloh3:
	adrp	x8, _vdp2height@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vdp2height@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x9, x9, x10
	cmp	x9, x8
	b.ge	LBB0_8
; %bb.5:
	str	x9, [x1, #40]
	ret
LBB0_6:
	str	x12, [x1, #24]
	ldr	x10, [x0, #16]
	tbz	x10, #63, LBB0_4
LBB0_7:
	str	wzr, [x1, #32]
	ldr	x11, [x0, #24]
	add	x11, x11, x10
	str	x11, [x1, #40]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	msub	x8, x10, x8, x9
	str	x8, [x1]
	ret
LBB0_8:
	str	x8, [x1, #40]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_vdp2width,8,3                  ; @vdp2width
	.comm	_vdp2height,8,3                 ; @vdp2height
	.no_dead_strip	_HandleClipping
.subsections_via_symbols
