	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GPU_SetScissorTest             ## -- Begin function GPU_SetScissorTest
	.p2align	4, 0x90
_GPU_SetScissorTest:                    ## @GPU_SetScissorTest
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
                                        ## kill: def $r8d killed $r8d def $r8
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	%edi, -20(%rbp)
	shll	$16, %edx
	movzwl	%si, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	shll	$16, %r8d
	decl	%ecx
	movzwl	%cx, %eax
	addl	%r8d, %eax
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	movl	%eax, -12(%rbp)
	movq	_GPUREG_SCISSORTEST_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rsi
	movl	$3, %edx
	callq	_GPUCMD_AddIncrementalWrites
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GPUREG_SCISSORTEST_MODE,4,2    ## @GPUREG_SCISSORTEST_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GPU_SetScissorTest             ; -- Begin function GPU_SetScissorTest
	.p2align	2
_GPU_SetScissorTest:                    ; @GPU_SetScissorTest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	bfi	w1, w2, #16, #16
	stp	w0, w1, [sp, #12]
	sub	w8, w3, #1
	bfi	w8, w4, #16, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	str	w8, [sp, #20]
Lloh3:
	adrp	x8, _GPUREG_SCISSORTEST_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPUREG_SCISSORTEST_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	w2, #3
	bl	_GPUCMD_AddIncrementalWrites
	ldur	x8, [x29, #-8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPUREG_SCISSORTEST_MODE,4,2    ; @GPUREG_SCISSORTEST_MODE
.subsections_via_symbols
