	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PushUserClipping
_PushUserClipping:                      ## @PushUserClipping
	.cfi_startproc
## %bb.0:
	cmpl	$1, %edi
	jne	LBB0_1
## %bb.7:
	leaq	L_.str(%rip), %rdi
	jmp	_VDP1LOG                        ## TAILCALL
LBB0_1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_Vdp1Regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_vdp1clipxstart@GOTPCREL(%rip), %r11
	movq	%rbx, (%r11)
	movq	8(%rax), %rcx
	movq	_vdp1clipxend@GOTPCREL(%rip), %r10
	movq	%rcx, (%r10)
	movq	16(%rax), %rsi
	movq	_vdp1clipystart@GOTPCREL(%rip), %r9
	movq	%rsi, (%r9)
	movq	24(%rax), %rdx
	movq	_vdp1clipyend@GOTPCREL(%rip), %r8
	movq	%rdx, (%r8)
	movq	32(%rax), %rdi
	cmpq	%rdi, %rbx
	jle	LBB0_3
## %bb.2:
	movq	(%rax), %rdi
LBB0_3:
	movq	%rdi, (%r11)
	movq	40(%rax), %rdi
	cmpq	%rdi, %rcx
	cmovlq	%rcx, %rdi
	movq	%rdi, (%r10)
	movq	48(%rax), %rcx
	cmpq	%rcx, %rsi
	cmovgq	%rsi, %rcx
	movq	%rcx, (%r9)
	movq	56(%rax), %rax
	cmpq	%rax, %rdx
	jge	LBB0_5
## %bb.4:
	movq	%rdx, (%r8)
	jmp	LBB0_6
LBB0_5:
	movq	%rax, (%r8)
LBB0_6:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"User clipping mode 1 not implemented\n"

	.comm	_Vdp1Regs,8,3                   ## @Vdp1Regs
	.comm	_vdp1clipxstart,8,3             ## @vdp1clipxstart
	.comm	_vdp1clipxend,8,3               ## @vdp1clipxend
	.comm	_vdp1clipystart,8,3             ## @vdp1clipystart
	.comm	_vdp1clipyend,8,3               ## @vdp1clipyend
	.no_dead_strip	_PushUserClipping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PushUserClipping
_PushUserClipping:                      ; @PushUserClipping
	.cfi_startproc
; %bb.0:
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	_VDP1LOG
LBB0_2:
Lloh2:
	adrp	x8, _Vdp1Regs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Vdp1Regs@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x15, _vdp1clipxstart@GOTPAGE
Lloh6:
	ldr	x15, [x15, _vdp1clipxstart@GOTPAGEOFF]
	ldp	x17, x11, [x8]
Lloh7:
	adrp	x12, _vdp1clipxend@GOTPAGE
Lloh8:
	ldr	x12, [x12, _vdp1clipxend@GOTPAGEOFF]
	str	x17, [x15]
	str	x11, [x12]
Lloh9:
	adrp	x13, _vdp1clipystart@GOTPAGE
Lloh10:
	ldr	x13, [x13, _vdp1clipystart@GOTPAGEOFF]
	ldp	x14, x10, [x8, #16]
	str	x14, [x13]
Lloh11:
	adrp	x9, _vdp1clipyend@GOTPAGE
Lloh12:
	ldr	x9, [x9, _vdp1clipyend@GOTPAGEOFF]
	str	x10, [x9]
	ldr	x16, [x8, #32]
	cmp	x17, x16
	b.le	LBB0_4
; %bb.3:
	ldr	x16, [x8]
LBB0_4:
	str	x16, [x15]
	ldp	x15, x16, [x8, #40]
	cmp	x11, x15
	csel	x11, x11, x15, lt
	str	x11, [x12]
	cmp	x14, x16
	csel	x11, x14, x16, gt
	str	x11, [x13]
	ldr	x8, [x8, #56]
	cmp	x10, x8
	b.ge	LBB0_6
; %bb.5:
	str	x10, [x9]
	ret
LBB0_6:
	str	x8, [x9]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"User clipping mode 1 not implemented\n"

	.comm	_Vdp1Regs,8,3                   ; @Vdp1Regs
	.comm	_vdp1clipxstart,8,3             ; @vdp1clipxstart
	.comm	_vdp1clipxend,8,3               ; @vdp1clipxend
	.comm	_vdp1clipystart,8,3             ; @vdp1clipystart
	.comm	_vdp1clipyend,8,3               ; @vdp1clipyend
	.no_dead_strip	_PushUserClipping
.subsections_via_symbols
