	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageSetClip                 ## -- Begin function gdImageSetClip
	.p2align	4, 0x90
_gdImageSetClip:                        ## @gdImageSetClip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movd	%esi, %xmm0
	pinsrd	$1, %edx, %xmm0
	pinsrd	$2, %ecx, %xmm0
	pinsrd	$3, %r8d, %xmm0
	pxor	%xmm1, %xmm1
	pmaxsd	%xmm0, %xmm1
	movq	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	pcmpeqd	%xmm2, %xmm2
	paddd	%xmm0, %xmm2
	pcmpgtd	%xmm1, %xmm0
	blendvps	%xmm0, %xmm1, %xmm2
	movups	%xmm2, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageSetClip                 ; -- Begin function gdImageSetClip
	.p2align	2
_gdImageSetClip:                        ; @gdImageSetClip
	.cfi_startproc
; %bb.0:
	cmp	w1, #0
	csel	w8, w1, wzr, gt
	ldp	w9, w10, [x0]
	sub	w11, w9, #1
	cmp	w8, w9
	csel	w8, w8, w11, lt
	cmp	w3, #0
	csel	w12, w3, wzr, gt
	cmp	w12, w9
	csel	w9, w12, w11, lt
	cmp	w2, #0
	csel	w11, w2, wzr, gt
	sub	w12, w10, #1
	cmp	w11, w10
	csel	w11, w11, w12, lt
	cmp	w4, #0
	csel	w13, w4, wzr, gt
	stp	w8, w11, [x0, #8]
	cmp	w13, w10
	csel	w8, w13, w12, lt
	stp	w9, w8, [x0, #16]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
